|
|
@ -8,16 +8,18 @@
|
|
|
|
<view class="right"></view>
|
|
|
|
<view class="right"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<u-form class="form" ref="form" :model="form" :error-type="['toast']" label-width="150rpx">
|
|
|
|
<u-form class="form" ref="form" :model="form" :error-type="['toast']" label-width="150rpx">
|
|
|
|
<u-form-item :required="true" :label="$t('message.CommissionedSingleNumber')" prop="orderNo">
|
|
|
|
<u-form-item :required="true" :label="$t('message.CommissionedSingleNumber')" prop="poNo">
|
|
|
|
|
|
|
|
<!-- 单号 -->
|
|
|
|
<u-search
|
|
|
|
<u-search
|
|
|
|
:placeholder="$t('message.po_PleaseInput')"
|
|
|
|
:placeholder="$t('message.po_PleaseInput')"
|
|
|
|
v-model="form.orderNo"
|
|
|
|
v-model="form.poNo"
|
|
|
|
@search="model.queryOrderInInfo"
|
|
|
|
@search="model.queryOrder"
|
|
|
|
:show-action="false"
|
|
|
|
:show-action="false"
|
|
|
|
></u-search>
|
|
|
|
></u-search>
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
<u-row gutter="0">
|
|
|
|
<u-row gutter="0">
|
|
|
|
<u-col :span="6">
|
|
|
|
<!-- 物料号 -->
|
|
|
|
|
|
|
|
<!-- <u-col :span="6">
|
|
|
|
<u-form-item :required="true" :label="$t('message.CommissionedMaterielNo')">
|
|
|
|
<u-form-item :required="true" :label="$t('message.CommissionedMaterielNo')">
|
|
|
|
<u-input
|
|
|
|
<u-input
|
|
|
|
v-model="form.productCode"
|
|
|
|
v-model="form.productCode"
|
|
|
@ -33,43 +35,53 @@
|
|
|
|
@confirm="materialConfirm"
|
|
|
|
@confirm="materialConfirm"
|
|
|
|
></u-select>
|
|
|
|
></u-select>
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
</u-col> -->
|
|
|
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
|
|
|
<u-form-item :label="$t('message.CommissionedMaterielNo')">
|
|
|
|
|
|
|
|
<u-input v-model="form.materialCode" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
|
|
|
|
</u-form-item>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
<!-- 物料描述 -->
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-form-item :label="$t('message.CommissionedMaterielDesc')">
|
|
|
|
<u-form-item :label="$t('message.CommissionedMaterielDesc')">
|
|
|
|
<u-input v-model="form.scanAmount" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
<u-input v-model="form.materialDesc" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
</u-row>
|
|
|
|
</u-row>
|
|
|
|
<u-row gutter="0">
|
|
|
|
<u-row gutter="0">
|
|
|
|
|
|
|
|
<!-- 需求数量 -->
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-form-item :label="$t('message.CommissionedDemandData')">
|
|
|
|
<u-form-item :label="$t('message.CommissionedDemandData')">
|
|
|
|
<u-input v-model="form.orderAmount" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
<u-input v-model="form.orderAmount" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
<!-- 累计出库数量 -->
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-form-item :label="$t('message.CommissionedCumulativeData')">
|
|
|
|
<u-form-item :label="$t('message.CommissionedCumulativeData')">
|
|
|
|
<u-input v-model="form.scanAmount" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
<u-input v-model="form.outAmount" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
</u-row>
|
|
|
|
</u-row>
|
|
|
|
<u-row gutter="0">
|
|
|
|
<u-row gutter="0">
|
|
|
|
|
|
|
|
<!-- 库位 -->
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-form-item :required="true" :label="$t('message.CommissionedLocation')">
|
|
|
|
<u-form-item :required="true" :label="$t('message.CommissionedLocation')">
|
|
|
|
<u-input
|
|
|
|
<u-input
|
|
|
|
v-model="form.productCode"
|
|
|
|
v-model="form.locationCode"
|
|
|
|
type="select"
|
|
|
|
type="select"
|
|
|
|
@click="materialCodeSelect = true"
|
|
|
|
@click="locationCodeSelect = true"
|
|
|
|
:placeholder="$t('message.po_PleaseInput')"
|
|
|
|
:placeholder="$t('message.po_PleaseInput')"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<u-select
|
|
|
|
<u-select
|
|
|
|
:confirm-text="$t('message.product_Confirm')"
|
|
|
|
:confirm-text="$t('message.product_Confirm')"
|
|
|
|
:cancel-text="$t('message.product_Cancel')"
|
|
|
|
:cancel-text="$t('message.product_Cancel')"
|
|
|
|
v-model="materialCodeSelect"
|
|
|
|
v-model="locationCodeSelect"
|
|
|
|
:list="model.materielList"
|
|
|
|
:list="model.locationCodeList"
|
|
|
|
@confirm="materialConfirm"
|
|
|
|
@confirm="locationCodeConfirm"
|
|
|
|
></u-select>
|
|
|
|
></u-select>
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
<!-- 本次数量 -->
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-form-item :label="$t('message.CommissionedThisNumber')">
|
|
|
|
<u-form-item :label="$t('message.CommissionedThisNumber')">
|
|
|
|
<u-input v-model="form.scanAmount" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
<u-input v-model="form.scanAmount" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
@ -156,11 +168,24 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
* 表单数据
|
|
|
|
* 表单数据
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
form = {
|
|
|
|
form = {
|
|
|
|
|
|
|
|
// poNo
|
|
|
|
|
|
|
|
poNo:null,
|
|
|
|
|
|
|
|
// 物料号
|
|
|
|
|
|
|
|
materialCode:null,
|
|
|
|
|
|
|
|
// 物料描述
|
|
|
|
|
|
|
|
materialDesc:null,
|
|
|
|
|
|
|
|
poLine:null,
|
|
|
|
|
|
|
|
unit:null,
|
|
|
|
|
|
|
|
// 累计出库数量
|
|
|
|
|
|
|
|
outAmount:null,
|
|
|
|
|
|
|
|
// 需求数量
|
|
|
|
|
|
|
|
orderAmount: '',
|
|
|
|
|
|
|
|
locationCode:null,//库位
|
|
|
|
dockCode: null, // 月台类型code
|
|
|
|
dockCode: null, // 月台类型code
|
|
|
|
dockName: null, // 月台类型name
|
|
|
|
dockName: null, // 月台类型name
|
|
|
|
orderNo: null,
|
|
|
|
orderNo: null,
|
|
|
|
qty: 0,
|
|
|
|
qty: 0,
|
|
|
|
orderAmount: '',
|
|
|
|
|
|
|
|
productCode: '', // 物料类型name
|
|
|
|
productCode: '', // 物料类型name
|
|
|
|
productDescZh: '',
|
|
|
|
productDescZh: '',
|
|
|
|
scanAmount: '',
|
|
|
|
scanAmount: '',
|
|
|
@ -179,6 +204,7 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
returningTypeSelect = false;
|
|
|
|
returningTypeSelect = false;
|
|
|
|
// 物料类型选择
|
|
|
|
// 物料类型选择
|
|
|
|
materialCodeSelect = false;
|
|
|
|
materialCodeSelect = false;
|
|
|
|
|
|
|
|
locationCodeSelect = false;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 表单验证规则
|
|
|
|
* 表单验证规则
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -189,7 +215,7 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
async onReady() {
|
|
|
|
async onReady() {
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
model.queryReturningTypeList();
|
|
|
|
model.queryByFactoryCodeAndWorkAreaCode();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onCheck(e: any) {
|
|
|
|
onCheck(e: any) {
|
|
|
|
console.log('e.data', e.data);
|
|
|
|
console.log('e.data', e.data);
|
|
|
@ -219,6 +245,18 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log('this.form', this.form);
|
|
|
|
console.log('this.form', this.form);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
locationCodeConfirm(v: any) {
|
|
|
|
|
|
|
|
console.log('v[0].value', v[0]);
|
|
|
|
|
|
|
|
// this.form.productCode = v[0].value;
|
|
|
|
|
|
|
|
this.model.locationCodeList.forEach((item: any) => {
|
|
|
|
|
|
|
|
console.log('item',item)
|
|
|
|
|
|
|
|
if (v[0].value == item.value) {
|
|
|
|
|
|
|
|
this.form.locationCode = item.value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log('this.form', this.form);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 清空
|
|
|
|
* 清空
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|