|
|
|
@ -416,81 +416,6 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
createNewRoll(){ |
|
|
|
if(this.dataForm.partNo===''){ |
|
|
|
this.$alert('请输入物料!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if(this.dataForm.locationId===''){ |
|
|
|
this.$alert('请选择库位!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if(this.dataForm.batchNo===''){ |
|
|
|
this.$alert('请输入批号!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if(this.dataForm.manufactureDate===''){ |
|
|
|
this.$alert('请选择生产日期!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if(this.dataForm.expiredDate===''){ |
|
|
|
this.$alert('请选择失效日期!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if(this.rollData.perQty===''){ |
|
|
|
this.$alert('请输入每卷数量!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if(this.rollData.rollNumber===''){ |
|
|
|
this.$alert('请输入卷数量!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if(this.rollData.rollNumber>10000){ |
|
|
|
this.$alert('卷数量超过一万!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
let inData={ |
|
|
|
site:this.dataForm.site, |
|
|
|
transNo:this.dataForm.transNo, |
|
|
|
partNo:this.dataForm.partNo, |
|
|
|
rollNo:'', |
|
|
|
rollQty:this.rollData.perQty, |
|
|
|
batchNo:this.dataForm.batchNo, |
|
|
|
wdrNo:this.dataForm.wdrNo, |
|
|
|
locationID:this.dataForm.locationId, |
|
|
|
manufactureDate:this.dataForm.manufactureDate, |
|
|
|
expiredDate:this.dataForm.expiredDate, |
|
|
|
rollNumber:this.rollData.rollNumber, |
|
|
|
|
|
|
|
} |
|
|
|
createNewCachRoll(inData).then(({data})=>{ |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.$message.success( '操作成功') |
|
|
|
searchTransDetailAndSubCach(this.dataForm).then(({data})=>{ |
|
|
|
this.dataList = data.rows |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 表单提交 |
|
|
|
dataFormSubmit () { |
|
|
|
|