| | |
| | | <UnPassDialog |
| | | v-if="unPassDialog" |
| | | ref="unPassDialog" |
| | | :orderId="orderId" |
| | | :selectOrderIds="[orderId]" |
| | | :unPassDialog="unPassDialog" |
| | | @resetForm="resetForm" |
| | | ></UnPassDialog> |
| | |
| | | this.param[a.id].insValue.find( |
| | | (m) => m.c == insValue[i].c && m.r == insValue[i].r |
| | | ).u = insValue[i].u; |
| | | // this.param[a.id].insValue[i].v.v = insValue[i].v |
| | | // this.param[a.id].insValue[i].u = insValue[i].u |
| | | } |
| | | } |
| | | } catch (e) {} |
| | | try { |
| | | // 设备编号赋值 |
| | | let equipValue = JSON.parse(a.insProductResult.equipValue); |
| | | for (let i = 0; i < equipValue.length; i++) { |
| | | // 普通设备赋值 |
| | | this.param[a.id].equipValue[i].v.v = equipValue[i].v; |
| | | if(a.insProductResult){ |
| | | // 设备编号赋值 |
| | | let equipValue = JSON.parse(a.insProductResult.equipValue); |
| | | for (let i = 0; i < equipValue.length; i++) { |
| | | // 普通设备赋值 |
| | | this.param[a.id].equipValue[i].v.v = equipValue[i].v; |
| | | } |
| | | } |
| | | } catch (e) {} |
| | | } catch (e) { |
| | | console.log("设备编号赋值----", e); |
| | | } |
| | | try { |
| | | // 设备名称赋值 |
| | | let equipName = JSON.parse(a.insProductResult.equipName); |
| | | for (let i = 0; i < equipName.length; i++) { |
| | | equipName[i].v !== "" && |
| | | if(a.insProductResult){ |
| | | let equipName = JSON.parse(a.insProductResult.equipName); |
| | | for (let i = 0; i < equipName.length; i++) { |
| | | equipName[i].v !== "" && |
| | | equipName[i].v.map((val) => { |
| | | const index = this.equipOptions.findIndex( |
| | | (item) => item.value === val |
| | |
| | | val = this.equipOptions[index].deviceName; |
| | | } |
| | | }); |
| | | } |
| | | for (let i = 0; i < equipName.length; i++) { |
| | | // 普通设备名称赋值 |
| | | this.param[a.id].equipName[i].v.v = equipName[i].v; |
| | | } |
| | | for (let i = 0; i < equipName.length; i++) { |
| | | // 普通设备名称赋值 |
| | | this.param[a.id].equipName[i].v.v = equipName[i].v; |
| | | } |
| | | } |
| | | } catch (e) { |
| | | console.log("设备名称赋值----", e); |
| | |
| | | }) |
| | | .then((res) => { |
| | | if (res.code === 200) { |
| | | if (!res.data || res.data.errorMsg.length == 0) { |
| | | if (!res.data || res.data.errorMsg.length === 0) { |
| | | this.submitLoading = true; |
| | | this.confirmSubmit(true); |
| | | //去除拆分订单是否登记检验结果确认,默认是 |
| | | //检验类型为原材料 |
| | | if ( |
| | | this.typeSource == 1 && |
| | | res.data.unInsOrderCount == 0 && |
| | | this.isSplit == 1 |
| | | ) { |
| | | const htmlStr = |
| | | "是否登记IFS采购检验结果并移库?该操作会登记<span style='color:#ff4949'>同一零件同一订单的所有拆分批次</span>,请谨慎选择。"; |
| | | this.$confirm(htmlStr, "提示", { |
| | | confirmButtonText: "是", |
| | | cancelButtonText: "否", |
| | | type: "warning", |
| | | dangerouslyUseHTMLString: true, |
| | | }) |
| | | .then(() => { |
| | | this.confirmSubmit(true); |
| | | }) |
| | | .catch(() => { |
| | | this.confirmSubmit(false); |
| | | }); |
| | | } else { |
| | | this.confirmSubmit(true); |
| | | } |
| | | // if ( |
| | | // this.typeSource == 1 && |
| | | // res.data.unInsOrderCount == 0 && |
| | | // this.isSplit == 1 |
| | | // ) { |
| | | // const htmlStr = |
| | | // "是否登记IFS采购检验结果并移库?该操作会登记<span style='color:#ff4949'>同一零件同一订单的所有拆分批次</span>,请谨慎选择。"; |
| | | // this.$confirm(htmlStr, "提示", { |
| | | // confirmButtonText: "是", |
| | | // cancelButtonText: "否", |
| | | // type: "warning", |
| | | // dangerouslyUseHTMLString: true, |
| | | // }) |
| | | // .then(() => { |
| | | // this.confirmSubmit(true); |
| | | // }) |
| | | // .catch(() => { |
| | | // this.confirmSubmit(false); |
| | | // }); |
| | | // } else { |
| | | // this.confirmSubmit(true); |
| | | // } |
| | | } else { |
| | | let newData = []; |
| | | const h = this.$createElement; |
| | |
| | | toFixed(v, ct) { |
| | | if (v && ct && ct.fa) { |
| | | if (ct.fa.includes(".")) { |
| | | let num = ct.fa.slice(4).length; |
| | | let num = ct.fa.split(".")[1].length; |
| | | return Number(v).toFixed(num); |
| | | } else { |
| | | return v; |
| | |
| | | display: inline-flex; |
| | | align-items: center; |
| | | } |
| | | </style> |
| | | <style scoped> |
| | | /* .inspection .el-form-item__label { |
| | | color: #000; |
| | | } */ |
| | | |
| | | .inspection .el-drawer__header::before { |
| | | content: ""; |