|
|
|
@ -37,6 +37,10 @@
|
|
|
|
|
<view class="list-item"> 物料名称: </view>
|
|
|
|
|
<view> {{ item.materialName }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row-list">
|
|
|
|
|
<view class="list-item"> 创建时间: </view>
|
|
|
|
|
<view> {{ item.createTime }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row-list">
|
|
|
|
|
<view class="row-list-item">
|
|
|
|
|
<view class="list-item"> 收货数量: </view>
|
|
|
|
@ -56,7 +60,8 @@
|
|
|
|
|
<div class="item-name">
|
|
|
|
|
<div class="quest">检验项目 :</div>
|
|
|
|
|
<div class="details">
|
|
|
|
|
<div>批次号 : {{ clickitem.incomeBatchNo }}</div>
|
|
|
|
|
<div v-if="!isshow3">批次号 : {{ clickitem.incomeBatchNo }}</div>
|
|
|
|
|
<div style="display: flex; white-space: nowrap" v-if="isshow3">批次号 :<jPicker sureColor="#ff0000" :moren="moren2" @bindpicker="selectProductlocCode1" showKey="label" valKey="value" :val="incomeBatchNo.value" :options="model.locList" /></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="details">
|
|
|
|
|
<div>订单号 : {{ clickitem.orderNo }}</div>
|
|
|
|
@ -197,6 +202,7 @@ import { session } from '@/store/modules/session';
|
|
|
|
|
export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
model = model;
|
|
|
|
|
moren = '请选择检验节点';
|
|
|
|
|
moren2 = '请选择批次号';
|
|
|
|
|
list: any = [];
|
|
|
|
|
show = false;
|
|
|
|
|
showselect = false;
|
|
|
|
@ -300,6 +306,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
isshow1 = false;
|
|
|
|
|
isshow2 = false;
|
|
|
|
|
isshow3 = false;
|
|
|
|
|
incomeBatchNo: any = {};
|
|
|
|
|
//收货按钮
|
|
|
|
|
tagClick(index) {
|
|
|
|
|
this.tagslist.splice(index, 1);
|
|
|
|
@ -343,8 +350,23 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
this.nodelist = this.model.orderNoItemList;
|
|
|
|
|
}
|
|
|
|
|
async onPass(item) {
|
|
|
|
|
console.log('1234567', item);
|
|
|
|
|
console.log('1234567', item, this.selectList);
|
|
|
|
|
this.clickitem = item;
|
|
|
|
|
let query1 = {
|
|
|
|
|
factoryCode: session.PoolName,
|
|
|
|
|
workorderCode: this.clickitem.orderNo,
|
|
|
|
|
};
|
|
|
|
|
await this.model.getBatchList(query1);
|
|
|
|
|
let labelname = this.selectList.label;
|
|
|
|
|
if (labelname == '过程检验') {
|
|
|
|
|
this.isshow3 = true;
|
|
|
|
|
if (item.incomeBatchNo) {
|
|
|
|
|
this.incomeBatchNo.value = item.incomeBatchNo;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.isshow3 = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let belongTo = item.recordId;
|
|
|
|
|
let query = {
|
|
|
|
|
factoryCode: session.PoolName,
|
|
|
|
@ -383,6 +405,9 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
// };
|
|
|
|
|
// await this.model.getpalletLocation(params); //参数:成型区2,烘房3
|
|
|
|
|
}
|
|
|
|
|
async selectProductlocCode1(e: any) {
|
|
|
|
|
this.incomeBatchNo = e.pickerName;
|
|
|
|
|
}
|
|
|
|
|
focus(item, value, index) {
|
|
|
|
|
console.log(item, value, index);
|
|
|
|
|
if (this.detaillistceshi[index].actualValue) {
|
|
|
|
@ -470,7 +495,19 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let incomeBatchNo = '';
|
|
|
|
|
if (this.isshow3) {
|
|
|
|
|
if (this.incomeBatchNo.value == '' || this.incomeBatchNo.value == undefined) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '批次号不能为空',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
incomeBatchNo = this.incomeBatchNo.value;
|
|
|
|
|
} else {
|
|
|
|
|
incomeBatchNo = this.clickitem.incomeBatchNo;
|
|
|
|
|
}
|
|
|
|
|
let query = {
|
|
|
|
|
sampleQuality: this.formdata.sampleQuality,
|
|
|
|
|
updateBy: session.userName,
|
|
|
|
@ -480,22 +517,23 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
orderCode: this.clickitem.orderNo,
|
|
|
|
|
qcCheckTaskDetails: this.detaillistceshi,
|
|
|
|
|
defects: this.detaillistdefects,
|
|
|
|
|
incomeBatchNo: incomeBatchNo,
|
|
|
|
|
};
|
|
|
|
|
console.log(query);
|
|
|
|
|
await this.model.commitCheckTaskList(query);
|
|
|
|
|
if (this.model.SubmitCode.code == '200') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
this.show = false;
|
|
|
|
|
this.getlist();
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '失败',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// await this.model.commitCheckTaskList(query);
|
|
|
|
|
// if (this.model.SubmitCode.code == '200') {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '成功',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// this.show = false;
|
|
|
|
|
// this.getlist();
|
|
|
|
|
// } else {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '失败',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
//await this.model.OnSubmit(this.form3.barCodewl);
|
|
|
|
|
}
|
|
|
|
|
confirmselect(e) {
|
|
|
|
|