|
|
|
@ -35,13 +35,10 @@
|
|
|
|
|
<u-form-item :label="$t('message.product_Swept')" prop="productDescZh">
|
|
|
|
|
<u-input v-model="productItem.spQty" placeholder=" " :disabled="true" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 条码 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode">
|
|
|
|
|
<u-search :placeholder="$t('message.barcode')" v-model.trim="barcode" @search="onSearchBarcode" :show-action="false"></u-search>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- <u-form-item :label="$t('message.dn_Number')" prop="spQty">
|
|
|
|
|
<!-- 数量 -->
|
|
|
|
|
<u-form-item :label="$t('message.dn_Number')" prop="spQty">
|
|
|
|
|
<u-input v-model="spQty" :placeholder="$t('message.PleaseQuantity')" type="number" />
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-form>
|
|
|
|
|
<view class="bottom-bar">
|
|
|
|
|
<u-row class="button-bar">
|
|
|
|
@ -65,7 +62,6 @@ import { BasePage } from '@/components/base/page';
|
|
|
|
|
import { VForm } from 'vue/types/form';
|
|
|
|
|
import model from './model';
|
|
|
|
|
import jPicker from '@/components/J-Picker/jPicker.vue';
|
|
|
|
|
//import { indexOf } from 'lodash';
|
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
|
jPicker,
|
|
|
|
@ -77,7 +73,6 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
index() {
|
|
|
|
|
this.toPage(this.page.raw.index);
|
|
|
|
|
}
|
|
|
|
|
barcode: any = '';
|
|
|
|
|
pddNo: any = '';
|
|
|
|
|
spQty: any = '';
|
|
|
|
|
productItem: any = {};
|
|
|
|
@ -168,47 +163,6 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
back() {
|
|
|
|
|
uni.navigateBack({ delta: 1 });
|
|
|
|
|
}
|
|
|
|
|
async onSearchBarcode() {
|
|
|
|
|
if (this.pddNo == '' || this.pddNo.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.barcode == '' || this.barcode.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.barcode') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// let params = {
|
|
|
|
|
// barcode:this.barcode,
|
|
|
|
|
// // loginName: this.session.loginName,
|
|
|
|
|
// // factoryCode: this.session.factoryCode,
|
|
|
|
|
// // orderNo: this.orderNo,
|
|
|
|
|
// // orderItem: this.histroyItem.orderItem,
|
|
|
|
|
// // productCode: this.histroyItem.productCode,
|
|
|
|
|
// // productDescZh: this.histroyItem.productDescZh,
|
|
|
|
|
// // orderType: this.histroyItem.orderType,
|
|
|
|
|
// // barcode: this.barcode,
|
|
|
|
|
// // locCode: this.remove.value,
|
|
|
|
|
// };
|
|
|
|
|
await this.model.rawMaterialInventoryCheckBarcode(this.barcode);
|
|
|
|
|
if (this.model.SubmitCode == '1') {
|
|
|
|
|
//this.customToast(this.$t('message.Warehouse_Tip9') as string);
|
|
|
|
|
if (JSON.stringify(this.model.InventoryList).indexOf(this.model.Semifedcode) != -1) {
|
|
|
|
|
this.model.InventoryList.forEach((item: any) => {
|
|
|
|
|
if (item.productCode == this.model.Semifedcode) {
|
|
|
|
|
this.productItem = item;
|
|
|
|
|
this.productItem.spQty += 1;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.customToast(this.$t('message.Nomatch') as string);
|
|
|
|
|
}
|
|
|
|
|
// this.barcode = '';
|
|
|
|
|
// this.histroyItem = {};
|
|
|
|
|
// this.productCodeList = {};
|
|
|
|
|
// this.model.empty();
|
|
|
|
|
// await this.query();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
@ -281,5 +235,8 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.button-bar {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|