|
|
@ -6,6 +6,13 @@ |
|
|
<el-form :inline="true" label-position="top" style="height: 100px;" |
|
|
<el-form :inline="true" label-position="top" style="height: 100px;" |
|
|
label-width="80px"> |
|
|
label-width="80px"> |
|
|
<!-- 半成品卷卷号 --> |
|
|
<!-- 半成品卷卷号 --> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24" style="margin-top: -5px;"> |
|
|
|
|
|
<el-form-item label="材料卷号:"> |
|
|
|
|
|
<el-input ref="rmRollNo" v-model="pageData.rmRollNo" style="width: 180px;" @keyup.enter.native="checkRmRollNo" ></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24" style="margin-top: -5px;"> |
|
|
<el-col :span="24" style="margin-top: -5px;"> |
|
|
<el-form-item :label=labels.rollQty> |
|
|
<el-form-item :label=labels.rollQty> |
|
|
@ -64,6 +71,7 @@ export default { |
|
|
username: this.$store.state.user.name, |
|
|
username: this.$store.state.user.name, |
|
|
orderNo: '', |
|
|
orderNo: '', |
|
|
itemNo: '', |
|
|
itemNo: '', |
|
|
|
|
|
rmRollNo: '', |
|
|
seqNo: '', |
|
|
seqNo: '', |
|
|
rollNo: '', |
|
|
rollNo: '', |
|
|
reportDate: '', |
|
|
reportDate: '', |
|
|
@ -195,10 +203,11 @@ export default { |
|
|
this.getSeqStandardRollQtyFun(); |
|
|
this.getSeqStandardRollQtyFun(); |
|
|
//清空参数 |
|
|
//清空参数 |
|
|
this.pageData.rollNums = 1; |
|
|
this.pageData.rollNums = 1; |
|
|
|
|
|
this.pageData.rmRollNo = ''; |
|
|
this.visible = true; |
|
|
this.visible = true; |
|
|
//获取焦点 |
|
|
//获取焦点 |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.rollQty.focus(); |
|
|
|
|
|
|
|
|
this.$refs.rmRollNo.focus(); |
|
|
}); |
|
|
}); |
|
|
this.titleCon = this.labels.titleCon;//重置标题 |
|
|
this.titleCon = this.labels.titleCon;//重置标题 |
|
|
}, |
|
|
}, |
|
|
@ -246,8 +255,28 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/*检查材料卷号的数据*/ |
|
|
|
|
|
checkRmRollNo() { |
|
|
|
|
|
//判断null和空字符串 |
|
|
|
|
|
if (this.pageData.rmRollNo == null || this.pageData.rmRollNo == '') { |
|
|
|
|
|
this.$message.error('卷号不能为空!'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} else { |
|
|
|
|
|
//分拆site 和 卷号 |
|
|
|
|
|
let siteAndRollNo = this.pageData.rmRollNo.trim().split(','); |
|
|
|
|
|
//判断材料卷号是否合规 |
|
|
|
|
|
if(siteAndRollNo.length != 2){ |
|
|
|
|
|
this.$message.error('材料卷号非法!'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
this.pageData.rmRollNo = siteAndRollNo[1]; |
|
|
|
|
|
} |
|
|
|
|
|
this.pageData.rollNo = this.pageData.rmRollNo; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//检查创建 |
|
|
//检查创建 |
|
|
createSeparateRollFun() { |
|
|
createSeparateRollFun() { |
|
|
|
|
|
let rmRollNo = this.pageData.rmRollNo; |
|
|
//获取当前是的数量 |
|
|
//获取当前是的数量 |
|
|
let rollQty = parseInt(this.pageData.rollQty); |
|
|
let rollQty = parseInt(this.pageData.rollQty); |
|
|
//判断是否可以修改 |
|
|
//判断是否可以修改 |
|
|
|