|
|
|
@ -15,6 +15,14 @@
|
|
|
|
|
<u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 已扫数量 -->
|
|
|
|
|
<u-form-item :label="$t('message.SweptQuantity')">
|
|
|
|
|
<u-input v-model="scanAmount" :disabled="true" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 已退数量 -->
|
|
|
|
|
<u-form-item :label="$t('message.QuantityReturned')">
|
|
|
|
|
<u-input v-model="retreatNum" :disabled="true" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 成品条码 -->
|
|
|
|
|
<u-form-item :label="$t('message.sweepBarCode')">
|
|
|
|
|
<u-search :placeholder="$t('message.barcode')" v-model="barCode" @search="BackSweep" :show-action="false"></u-search>
|
|
|
|
@ -112,38 +120,9 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
|
// duration: 2000,
|
|
|
|
|
// image: '/static/icons/icon-51.png',
|
|
|
|
|
// });
|
|
|
|
|
if (this.rowItemIndex == null) {
|
|
|
|
|
this.form.productCode = this.model.materielList[0].materialCode;
|
|
|
|
|
this.form.productDescZh = this.model.materielList[0].materialDesc;
|
|
|
|
|
this.form.rowItem = this.model.materielList[0].materialCode;
|
|
|
|
|
this.form.row = this.model.materielList[0].rowItem;
|
|
|
|
|
this.form.orderAmount = this.model.materielList[0].orderAmount;
|
|
|
|
|
this.form.scanAmount = parseFloat(this.model.materielList[0].outAmount);
|
|
|
|
|
this.rowItemIndex = this.model.materielList[0].rowItem;
|
|
|
|
|
} else {
|
|
|
|
|
let rowIndex: any = null;
|
|
|
|
|
this.model.materielList.forEach((item: any, index) => {
|
|
|
|
|
if (item.rowItem == this.rowItemIndex) {
|
|
|
|
|
rowIndex = index;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (rowIndex == null) {
|
|
|
|
|
this.form.productCode = this.model.materielList[0].materialCode;
|
|
|
|
|
this.form.productDescZh = this.model.materielList[0].materialDesc;
|
|
|
|
|
this.form.rowItem = this.model.materielList[0].materialCode;
|
|
|
|
|
this.form.row = this.model.materielList[0].rowItem;
|
|
|
|
|
this.form.orderAmount = this.model.materielList[0].orderAmount;
|
|
|
|
|
this.form.scanAmount = parseFloat(this.model.materielList[0].outAmount);
|
|
|
|
|
this.rowItemIndex = this.model.materielList[0].rowItem;
|
|
|
|
|
} else {
|
|
|
|
|
this.form.productCode = this.model.materielList[rowIndex].materialCode;
|
|
|
|
|
this.form.productDescZh = this.model.materielList[rowIndex].materialDesc;
|
|
|
|
|
this.form.rowItem = this.model.materielList[rowIndex].materialCode;
|
|
|
|
|
this.form.row = this.model.materielList[rowIndex].rowItem;
|
|
|
|
|
this.form.orderAmount = this.model.materielList[rowIndex].orderAmount;
|
|
|
|
|
this.form.scanAmount = parseFloat(this.model.materielList[rowIndex].outAmount);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.model.materielList.forEach((item: any) => {
|
|
|
|
|
this.scanAmount += parseFloat(item.outAmount);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|