|
|
@ -250,9 +250,15 @@
|
|
|
|
<u-input :border="true" v-model="tagsvalue" :focus="isfocus" style="overflow: hidden" />
|
|
|
|
<u-input :border="true" v-model="tagsvalue" :focus="isfocus" style="overflow: hidden" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<u-button style="width: 100px; height: 35px; margin-left: 5px" @click="ontagsadd" size="mini" type="primary">确认</u-button>
|
|
|
|
<u-button style="width: 100px; height: 35px; margin-left: 5px" @click="ontagsadd" size="mini" type="primary">测量值增加</u-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="upload-name" v-show="isgetAutoJudge">
|
|
|
|
|
|
|
|
<jPicker style="border: 1px solid #dcdfe6; padding: 8px 18px" sureColor="#ff0000" :moren="moren7" @bindpicker="selectProductlocCode6" showKey="label" valKey="value" :val="selectList4.value" :options="model.locList4" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="upload-name" v-show="isgetAutoJudge">
|
|
|
|
|
|
|
|
<jPicker style="border: 1px solid #dcdfe6; padding: 8px 18px" sureColor="#ff0000" :moren="moren8" @bindpicker="selectProductlocCode7" showKey="label" valKey="value" :val="selectList5.value" :options="model.locList5" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</u-modal>
|
|
|
|
</u-modal>
|
|
|
|
<badtype sureColor="#ff0000" ref="babtype" :showtype="isshowtype" @bindtypelist="selectbabTypelist" showKey="label" valKey="value" :options="model.locList1" />
|
|
|
|
<badtype sureColor="#ff0000" ref="babtype" :showtype="isshowtype" @bindtypelist="selectbabTypelist" showKey="label" valKey="value" :options="model.locList1" />
|
|
|
|
<u-toast ref="uToast" />
|
|
|
|
<u-toast ref="uToast" />
|
|
|
@ -281,6 +287,8 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
moren4 = '请选择检验位置';
|
|
|
|
moren4 = '请选择检验位置';
|
|
|
|
moren5 = '请选择来料类别';
|
|
|
|
moren5 = '请选择来料类别';
|
|
|
|
moren6 = '请选择物料来源';
|
|
|
|
moren6 = '请选择物料来源';
|
|
|
|
|
|
|
|
moren7 = '请选择接受质量限';
|
|
|
|
|
|
|
|
moren8 = '请选择检测水平';
|
|
|
|
list: any = [];
|
|
|
|
list: any = [];
|
|
|
|
show = false;
|
|
|
|
show = false;
|
|
|
|
showselect = false;
|
|
|
|
showselect = false;
|
|
|
@ -331,6 +339,9 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
selectList: any = {};
|
|
|
|
selectList: any = {};
|
|
|
|
selectList1: any = {};
|
|
|
|
selectList1: any = {};
|
|
|
|
|
|
|
|
selectList2: any = {};
|
|
|
|
|
|
|
|
selectList4: any = {};
|
|
|
|
|
|
|
|
selectList5: any = {};
|
|
|
|
defectCodeList: any = {};
|
|
|
|
defectCodeList: any = {};
|
|
|
|
// remove: any = {};
|
|
|
|
// remove: any = {};
|
|
|
|
// async onReady() {
|
|
|
|
// async onReady() {
|
|
|
@ -370,6 +381,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
isvalue2 = false;
|
|
|
|
isvalue2 = false;
|
|
|
|
isvalue3 = false;
|
|
|
|
isvalue3 = false;
|
|
|
|
isquality = false;
|
|
|
|
isquality = false;
|
|
|
|
|
|
|
|
isgetAutoJudge = false;
|
|
|
|
isfocus = false;
|
|
|
|
isfocus = false;
|
|
|
|
isshow1 = false;
|
|
|
|
isshow1 = false;
|
|
|
|
isshow2 = false;
|
|
|
|
isshow2 = false;
|
|
|
@ -442,6 +454,8 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
async getselectlist() {
|
|
|
|
async getselectlist() {
|
|
|
|
await this.model.getCheckType();
|
|
|
|
await this.model.getCheckType();
|
|
|
|
await this.model.getcheckLocList();
|
|
|
|
await this.model.getcheckLocList();
|
|
|
|
|
|
|
|
await this.model.getsampleaqlList();
|
|
|
|
|
|
|
|
await this.model.getsamplelevelList();
|
|
|
|
this.nodelist = this.model.orderNoItemList;
|
|
|
|
this.nodelist = this.model.orderNoItemList;
|
|
|
|
this.nodelist1 = this.model.orderNoItemList1;
|
|
|
|
this.nodelist1 = this.model.orderNoItemList1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -650,6 +664,14 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
this.selectmaterialFromList = e.pickerName;
|
|
|
|
this.selectmaterialFromList = e.pickerName;
|
|
|
|
this.formdata.materialFrom = this.selectmaterialFromList.value;
|
|
|
|
this.formdata.materialFrom = this.selectmaterialFromList.value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
async selectProductlocCode6(e: any) {
|
|
|
|
|
|
|
|
this.selectList4 = e.pickerName;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].sampleAql = this.selectList4.value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async selectProductlocCode7(e: any) {
|
|
|
|
|
|
|
|
this.selectList5 = e.pickerName;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].checkLevel = this.selectList5.value;
|
|
|
|
|
|
|
|
}
|
|
|
|
focustype(item, value, index) {
|
|
|
|
focustype(item, value, index) {
|
|
|
|
this.isfocus = false;
|
|
|
|
this.isfocus = false;
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
@ -658,11 +680,25 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
(this.$refs.babtype as any).open(item, index);
|
|
|
|
(this.$refs.babtype as any).open(item, index);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
focus(item, value, index) {
|
|
|
|
focus(item, value, index) {
|
|
|
|
console.log(item, value, index);
|
|
|
|
if (this.detaillistceshi[index].upperDiff == null && this.detaillistceshi[index].downDiff == null) {
|
|
|
|
|
|
|
|
this.isgetAutoJudge = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (this.selectList.value == 'checkTypeLL' || this.selectList.value == 'checkTypeCP') {
|
|
|
|
|
|
|
|
this.isgetAutoJudge = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(item, value, index, this.isgetAutoJudge, this.detaillistceshi[index].upperDiff == null && this.detaillistceshi[index].downDiff == null, this.detaillistceshi[index].updiff);
|
|
|
|
if (this.detaillistceshi[index].actualValue) {
|
|
|
|
if (this.detaillistceshi[index].actualValue) {
|
|
|
|
this.tagslist = JSON.parse(this.detaillistceshi[index].actualValue);
|
|
|
|
this.tagslist = JSON.parse(this.detaillistceshi[index].actualValue);
|
|
|
|
|
|
|
|
console.log(this.detaillistceshi[index], 'sdsaasd');
|
|
|
|
|
|
|
|
this.selectList4.value = this.detaillistceshi[index].sampleAql;
|
|
|
|
|
|
|
|
this.selectList5.value = this.detaillistceshi[index].checkLevel;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.tagslist = [];
|
|
|
|
this.tagslist = [];
|
|
|
|
|
|
|
|
this.detaillistceshi[index].sampleAql = null;
|
|
|
|
|
|
|
|
this.detaillistceshi[index].checkLevel = null;
|
|
|
|
|
|
|
|
// this.selectList4.value = this.detaillistceshi[index].sampleAql;
|
|
|
|
|
|
|
|
// this.selectList5.value = this.detaillistceshi[index].checkLevel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.isfocus = false;
|
|
|
|
this.isfocus = false;
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
@ -879,21 +915,21 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
reason: this.formdata.reason,
|
|
|
|
reason: this.formdata.reason,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log(query, this.formdata);
|
|
|
|
console.log(query, this.formdata);
|
|
|
|
// await this.model.commitCheckTaskList(query);
|
|
|
|
await this.model.commitCheckTaskList(query);
|
|
|
|
// if (this.model.SubmitCode.code == '200') {
|
|
|
|
if (this.model.SubmitCode.code == '200') {
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
// title: '成功',
|
|
|
|
title: '成功',
|
|
|
|
// type: 'default',
|
|
|
|
type: 'default',
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
// this.show = false;
|
|
|
|
this.show = false;
|
|
|
|
// this.getlist();
|
|
|
|
this.getlist();
|
|
|
|
// this.clear();
|
|
|
|
this.clear();
|
|
|
|
// } else {
|
|
|
|
} else {
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
// title: '失败',
|
|
|
|
title: '失败',
|
|
|
|
// type: 'default',
|
|
|
|
type: 'default',
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
clear() {
|
|
|
|
clear() {
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
@ -903,12 +939,41 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].actualValue = null;
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].actualValue = null;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].actualValue = JSON.stringify(this.tagslist);
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].actualValue = JSON.stringify(this.tagslist);
|
|
|
|
|
|
|
|
if (this.isgetAutoJudge) {
|
|
|
|
|
|
|
|
this.getAutoJudgelist();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.tagsvalue = null;
|
|
|
|
this.tagsvalue = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
async getAutoJudgelist() {
|
|
|
|
|
|
|
|
console.log(this.detaillistceshi[this.equipmentindex[0]].actualValue, this.tagslist);
|
|
|
|
|
|
|
|
let query1 = {
|
|
|
|
|
|
|
|
factoryCode: session.PoolName,
|
|
|
|
|
|
|
|
sampleQuality: this.clickitem.quality,
|
|
|
|
|
|
|
|
checkLevel: this.selectList5.value,
|
|
|
|
|
|
|
|
sampleAql: this.selectList4.value,
|
|
|
|
|
|
|
|
actualValues: this.tagslist,
|
|
|
|
|
|
|
|
upperDiff: this.detaillistceshi[this.equipmentindex[0]].upperDiff,
|
|
|
|
|
|
|
|
downDiff: this.detaillistceshi[this.equipmentindex[0]].downDiff,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
await this.model.getAutoJudge(query1);
|
|
|
|
|
|
|
|
// sampleCode:样本量编码
|
|
|
|
|
|
|
|
// sampleQuality:样本数量
|
|
|
|
|
|
|
|
// status:是否台格合格N不合格
|
|
|
|
|
|
|
|
if (this.model.getAutoJudgeList.data) {
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].status = this.model.getAutoJudgeList.data.status;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].sampleCode = this.model.getAutoJudgeList.data.sampleCode;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].sampleQuality = this.model.getAutoJudgeList.data.sampleQuality;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].sampleAql = this.selectList4.value;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].checkLevel = this.selectList5.value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// factoryCode:工厂编码sampleQuality: checkLevel:检测水平sampleaq1:接受质量限actualValue:[]实际测量值upperDiff:上限downDiff:下限
|
|
|
|
cancel() {
|
|
|
|
cancel() {
|
|
|
|
this.isshow = false;
|
|
|
|
this.isshow = false;
|
|
|
|
this.tagsvalue = null;
|
|
|
|
this.tagsvalue = null;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].sampleAql = null;
|
|
|
|
|
|
|
|
this.detaillistceshi[this.equipmentindex[0]].checkLevel = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//查询货单关联采购单信息
|
|
|
|
//查询货单关联采购单信息
|
|
|
|
// 照片上传
|
|
|
|
// 照片上传
|
|
|
@ -1405,7 +1470,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.modal {
|
|
|
|
.modal {
|
|
|
|
.upload-name {
|
|
|
|
.upload-name {
|
|
|
|
padding: 10px 20px;
|
|
|
|
padding: 6px 20px;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
justify-content: space-between;
|
|
|
|
.name {
|
|
|
|
.name {
|
|
|
|