修改质量过程巡检批次号

master
LAPTOP-R6EHHS26\86155 2 years ago
parent 96c2bebda6
commit 6ce9364800

@ -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); //23
}
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) {

@ -55,6 +55,18 @@ export class Materialinspection extends VuexModule {
const SubmitCode: [] = result;
return { SubmitCode };
}
locList: any = [];
@MutationAction
async getBatchList(params: any) {
const result: any = await http.post(url.lanjuquality.Materialinspection.getBatchList, params);
console.log(result);
const DictListoild: [] = result;
const locList = DictListoild.map((item: any) => ({
label: item.batchCode,
value: item.batchCode,
}));
return { locList };
}
}
export default getModule(Materialinspection);

@ -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.checkTime }} </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 收货数量: </view>

@ -65,7 +65,7 @@ export default class RawHome extends BasePage {
model = model;
src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg';
today = dayjs().format('YYYY-MM-DD dddd');
version = '0.0.23';
version = '0.0.24';
checkversion: any = {};
sessiondata: any = '';
onLoad() {

Loading…
Cancel
Save