|
|
@ -110,9 +110,9 @@
|
|
|
|
<div class="details">
|
|
|
|
<div class="details">
|
|
|
|
<div>供应商单位 : {{ clickitem.supplierName }}</div>
|
|
|
|
<div>供应商单位 : {{ clickitem.supplierName }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="selectList.value === 'checkTypeCP'" class="details">
|
|
|
|
<!-- <div v-if="selectList.value === 'checkTypeCP'" class="details">
|
|
|
|
<div style="display: flex; flex-direction: row"><view style="line-height: 70rpx">样本数量: </view><u-input border v-model="sampleQuality"></u-input></div>
|
|
|
|
<div style="display: flex; flex-direction: row"><view style="line-height: 70rpx">样本数量: </view><u-input border v-model="sampleQuality"></u-input></div>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div style="text-align: center">
|
|
|
|
<!-- <div style="text-align: center">
|
|
|
|
<u-button style="width: 100%; height: 35px; margin: auto" @click="onOk" size="mini" type="primary">同步信息</u-button>
|
|
|
|
<u-button style="width: 100%; height: 35px; margin: auto" @click="onOk" size="mini" type="primary">同步信息</u-button>
|
|
|
@ -529,7 +529,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
deptlist: any = [];
|
|
|
|
deptlist: any = [];
|
|
|
|
supplierlist: any = [];
|
|
|
|
supplierlist: any = [];
|
|
|
|
abnormallist: any = [];
|
|
|
|
abnormallist: any = [];
|
|
|
|
sampleQuality = null; //成品检验样本数量
|
|
|
|
//sampleQuality = null; //成品检验样本数量
|
|
|
|
// 引入原生插件
|
|
|
|
// 引入原生插件
|
|
|
|
// 调用插件的 mpaasScan 方法
|
|
|
|
// 调用插件的 mpaasScan 方法
|
|
|
|
|
|
|
|
|
|
|
@ -988,7 +988,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
nopoup() {
|
|
|
|
nopoup() {
|
|
|
|
this.show = false;
|
|
|
|
this.show = false;
|
|
|
|
this.form3.barCodewl = '';
|
|
|
|
this.form3.barCodewl = '';
|
|
|
|
this.sampleQuality = null;
|
|
|
|
//this.sampleQuality = null;
|
|
|
|
this.formdata.attr3 = '';
|
|
|
|
this.formdata.attr3 = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async getlist() {
|
|
|
|
async getlist() {
|
|
|
@ -1187,13 +1187,13 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.selectList.value == 'checkTypeCP' && !this.sampleQuality) {
|
|
|
|
// if (this.selectList.value == 'checkTypeCP' && !this.sampleQuality) {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
title: '请输入样本数量',
|
|
|
|
// title: '请输入样本数量',
|
|
|
|
type: 'default',
|
|
|
|
// type: 'default',
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
// if (this.isquality) {
|
|
|
|
// if (this.isquality) {
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
// title: '数量不能为空',
|
|
|
|
// title: '数量不能为空',
|
|
|
@ -1235,9 +1235,9 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
item.files = [];
|
|
|
|
item.files = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.selectList.value === 'checkTypeCP') {
|
|
|
|
// if (this.selectList.value === 'checkTypeCP') {
|
|
|
|
item.sampleQuality = this.sampleQuality;
|
|
|
|
// item.sampleQuality = this.sampleQuality;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
let query = {};
|
|
|
|
let query = {};
|
|
|
|
if (this.selectList.value == 'checkTypeSC' || this.selectList.value == 'checkTypeSCXJ' || this.selectList.value == 'checkTypeCP') {
|
|
|
|
if (this.selectList.value == 'checkTypeSC' || this.selectList.value == 'checkTypeSCXJ' || this.selectList.value == 'checkTypeCP') {
|
|
|
@ -1431,7 +1431,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
clear() {
|
|
|
|
clear() {
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
|
this.sampleQuality = null;
|
|
|
|
//this.sampleQuality = null;
|
|
|
|
this.formdata.attr3 = '';
|
|
|
|
this.formdata.attr3 = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
confirm() {
|
|
|
|
confirm() {
|
|
|
@ -1616,7 +1616,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
if (res.confirm) {
|
|
|
|
if (res.confirm) {
|
|
|
|
this.SaveDraft();
|
|
|
|
this.SaveDraft();
|
|
|
|
this.show = false;
|
|
|
|
this.show = false;
|
|
|
|
this.sampleQuality = null;
|
|
|
|
//this.sampleQuality = null;
|
|
|
|
} else if (res.cancel) {
|
|
|
|
} else if (res.cancel) {
|
|
|
|
console.log('不关闭');
|
|
|
|
console.log('不关闭');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1634,7 +1634,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
if (res.confirm) {
|
|
|
|
if (res.confirm) {
|
|
|
|
this.SaveDraft();
|
|
|
|
this.SaveDraft();
|
|
|
|
this.show = false;
|
|
|
|
this.show = false;
|
|
|
|
this.sampleQuality = null;
|
|
|
|
//this.sampleQuality = null;
|
|
|
|
} else if (res.cancel) {
|
|
|
|
} else if (res.cancel) {
|
|
|
|
console.log('不关闭');
|
|
|
|
console.log('不关闭');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1691,9 +1691,9 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
item.files = [];
|
|
|
|
item.files = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.selectList.value === 'checkTypeCP') {
|
|
|
|
// if (this.selectList.value === 'checkTypeCP') {
|
|
|
|
item.sampleQuality = this.sampleQuality;
|
|
|
|
// item.sampleQuality = this.sampleQuality;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|