|
|
@ -29,24 +29,24 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" label="原工具实例编码:"> |
|
|
<el-form-item class="customer-item" label="原工具实例编码:"> |
|
|
<el-input v-model="pageData.oriToolInstanceId" readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.oriToolInstanceId" :readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" label="本卷生产数量:"> |
|
|
<el-form-item class="customer-item" label="本卷生产数量:"> |
|
|
<el-input v-model="pageData.consumeQty" readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.consumeQty" :readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" label="之前卷以生产数量:"> |
|
|
<el-form-item class="customer-item" label="之前卷以生产数量:"> |
|
|
<el-input v-model="pageData.oriConsumeQty" readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.oriConsumeQty" :readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" label="累计生产数量:"> |
|
|
<el-form-item class="customer-item" label="累计生产数量:"> |
|
|
<el-input v-model="pageData.totalConsumeQty" readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalConsumeQty" :readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -73,7 +73,7 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
titleCon: '刀模板', |
|
|
titleCon: '刀模板', |
|
|
sfdcTimeList: [], |
|
|
|
|
|
|
|
|
readonlyFlag: true, |
|
|
scheduleData: { |
|
|
scheduleData: { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
userName: this.$store.state.user.name, |
|
|
userName: this.$store.state.user.name, |
|
|
@ -106,13 +106,11 @@ export default { |
|
|
seqNo: '', |
|
|
seqNo: '', |
|
|
rollNo: '', |
|
|
rollNo: '', |
|
|
operatorId: '', |
|
|
operatorId: '', |
|
|
replaceFlag: false, |
|
|
|
|
|
toolInstanceId: '', |
|
|
toolInstanceId: '', |
|
|
oriToolInstanceId: '', |
|
|
oriToolInstanceId: '', |
|
|
consumeQty: 0, |
|
|
consumeQty: 0, |
|
|
oriConsumeQty: 0, |
|
|
oriConsumeQty: 0, |
|
|
totalConsumeQty: 0, |
|
|
totalConsumeQty: 0, |
|
|
readonlyFlag: true, |
|
|
|
|
|
checkFlag: false, |
|
|
checkFlag: false, |
|
|
}, |
|
|
}, |
|
|
operatorData: { |
|
|
operatorData: { |
|
|
@ -130,13 +128,12 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
//初始化组件的参数 |
|
|
//初始化组件的参数 |
|
|
init(scheduleData, operatorData, replaceFlag) { |
|
|
|
|
|
|
|
|
init(scheduleData, operatorData, histSeqNo) { |
|
|
|
|
|
debugger; |
|
|
//初始化参数 |
|
|
//初始化参数 |
|
|
this.scheduleData = scheduleData; |
|
|
this.scheduleData = scheduleData; |
|
|
//初始化操作员对象 |
|
|
//初始化操作员对象 |
|
|
this.operatorData = JSON.parse(JSON.stringify(operatorData)); |
|
|
this.operatorData = JSON.parse(JSON.stringify(operatorData)); |
|
|
//是否是切换 |
|
|
|
|
|
this.pageData.replaceFlag = replaceFlag; |
|
|
|
|
|
//设置参数 |
|
|
//设置参数 |
|
|
this.pageData.orderNo = scheduleData.orderNo; |
|
|
this.pageData.orderNo = scheduleData.orderNo; |
|
|
this.pageData.itemNo = scheduleData.itemNo; |
|
|
this.pageData.itemNo = scheduleData.itemNo; |
|
|
@ -152,16 +149,18 @@ export default { |
|
|
this.$refs.toolInstanceId.focus(); |
|
|
this.$refs.toolInstanceId.focus(); |
|
|
}); |
|
|
}); |
|
|
//区分是否是切换切换的 |
|
|
//区分是否是切换切换的 |
|
|
if(replaceFlag){ |
|
|
|
|
|
|
|
|
if(histSeqNo > 0){ |
|
|
this.pageData.consumeQty = 0; |
|
|
this.pageData.consumeQty = 0; |
|
|
this.pageData.oriConsumeQty = 0; |
|
|
this.pageData.oriConsumeQty = 0; |
|
|
this.pageData.totalConsumeQty = 0; |
|
|
this.pageData.totalConsumeQty = 0; |
|
|
this.readonlyFlag = false; |
|
|
this.readonlyFlag = false; |
|
|
|
|
|
this.replaceFlag = true; |
|
|
}else{ |
|
|
}else{ |
|
|
this.pageData.consumeQty = ''; |
|
|
this.pageData.consumeQty = ''; |
|
|
this.pageData.oriConsumeQty = ''; |
|
|
this.pageData.oriConsumeQty = ''; |
|
|
this.pageData.totalConsumeQty = ''; |
|
|
this.pageData.totalConsumeQty = ''; |
|
|
this.readonlyFlag = true; |
|
|
this.readonlyFlag = true; |
|
|
|
|
|
this.replaceFlag = false; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -177,7 +176,6 @@ export default { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
checkToolInstanceId(this.pageData).then(({data}) => { |
|
|
checkToolInstanceId(this.pageData).then(({data}) => { |
|
|
//判断检查是否通过 |
|
|
|
|
|
//判断是否存在异常 |
|
|
//判断是否存在异常 |
|
|
if(data.code == 500){ |
|
|
if(data.code == 500){ |
|
|
this.$message.error(data.msg); |
|
|
this.$message.error(data.msg); |
|
|
|