|
|
@ -110,6 +110,10 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</scroll-view>
|
|
|
|
</scroll-view>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="item1">不良分类:</div>
|
|
|
|
|
|
|
|
<u-input style="background: #fafafa; border: 1px dashed #e2e2e2; padding: 5px 5px" :disabled="item.defectSubclass == null ? true : true" v-model="item.defectSubclass" placeholder="" />
|
|
|
|
|
|
|
|
<div class="item1">不合格数量:</div>
|
|
|
|
|
|
|
|
<u-input style="background: #fafafa; border: 1px dashed #e2e2e2; padding: 5px 5px" :disabled="item.defectQuality == null ? true : true" v-model="item.defectQuality" placeholder="" />
|
|
|
|
<div class="item1">不合格描述:</div>
|
|
|
|
<div class="item1">不合格描述:</div>
|
|
|
|
<u-input style="background: #fafafa; border: 1px dashed #e2e2e2; padding: 10px 5px" :disabled="item.remark == null ? true : true" v-model="item.remark" placeholder="" type="textarea" />
|
|
|
|
<u-input style="background: #fafafa; border: 1px dashed #e2e2e2; padding: 10px 5px" :disabled="item.remark == null ? true : true" v-model="item.remark" placeholder="" type="textarea" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -341,6 +345,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
console.log(query, this.detailsinfo);
|
|
|
|
console.log(query, this.detailsinfo);
|
|
|
|
await this.model.getCheckTaskList(query);
|
|
|
|
await this.model.getCheckTaskList(query);
|
|
|
|
this.detaillistceshi = this.model.CheckTaskList.qcCheckTaskDetails;
|
|
|
|
this.detaillistceshi = this.model.CheckTaskList.qcCheckTaskDetails;
|
|
|
|
|
|
|
|
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
item.fileList = [];
|
|
|
|
item.fileList = [];
|
|
|
|
if (item.files == null) {
|
|
|
|
if (item.files == null) {
|
|
|
@ -350,6 +355,15 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
item.fileList.push(n.fileAddress);
|
|
|
|
item.fileList.push(n.fileAddress);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.defectCode != null) {
|
|
|
|
|
|
|
|
let isdefectCode = item.defectCode;
|
|
|
|
|
|
|
|
const matchedItem = model.locList1.find((item) => item.value === isdefectCode);
|
|
|
|
|
|
|
|
if (matchedItem) {
|
|
|
|
|
|
|
|
item.defectSubclass = matchedItem.label;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
item.defectSubclass = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.detaillistdefects = this.model.CheckTaskList.defects;
|
|
|
|
this.detaillistdefects = this.model.CheckTaskList.defects;
|
|
|
|
this.show = true;
|
|
|
|
this.show = true;
|
|
|
@ -368,6 +382,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
checkStatus: '1,2',
|
|
|
|
checkStatus: '1,2',
|
|
|
|
checkType: this.selectList.value,
|
|
|
|
checkType: this.selectList.value,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
this.getDefectListPDA();
|
|
|
|
await this.model.getCheckTaskListall(query);
|
|
|
|
await this.model.getCheckTaskListall(query);
|
|
|
|
this.list = this.model.CheckTaskListall;
|
|
|
|
this.list = this.model.CheckTaskListall;
|
|
|
|
// let params = {
|
|
|
|
// let params = {
|
|
|
@ -375,6 +390,15 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
// };
|
|
|
|
// };
|
|
|
|
// await this.model.getpalletLocation(params); //参数:成型区2,烘房3
|
|
|
|
// await this.model.getpalletLocation(params); //参数:成型区2,烘房3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
///获取不良分类
|
|
|
|
|
|
|
|
async getDefectListPDA() {
|
|
|
|
|
|
|
|
let query1 = {
|
|
|
|
|
|
|
|
factoryCode: session.PoolName,
|
|
|
|
|
|
|
|
checkType: this.selectList.value,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
await this.model.getDefectListPDA(query1);
|
|
|
|
|
|
|
|
// this.nodelist = this.model.orderNoItemList;
|
|
|
|
|
|
|
|
}
|
|
|
|
focus(item, value, index) {
|
|
|
|
focus(item, value, index) {
|
|
|
|
console.log(item, value, index);
|
|
|
|
console.log(item, value, index);
|
|
|
|
this.tagslist = [];
|
|
|
|
this.tagslist = [];
|
|
|
|