|
|
@ -431,8 +431,8 @@ export default { |
|
|
|
type: "number", |
|
|
|
trigger: ["blur"], |
|
|
|
validator: (rule, value, callback) => { |
|
|
|
if(Number(value) > Number(this.rowReceiveQty)){ |
|
|
|
return callback(new Error(`数量不能大于收货数量${this.rowReceiveQty}`)) |
|
|
|
if(Number(value) > Number(this.rowReceiveQty) || Number(value) <= 0){ |
|
|
|
return callback(new Error(`数量必须大于0且不能大于收货数量${this.rowReceiveQty}`)) |
|
|
|
}else{ |
|
|
|
callback() |
|
|
|
} |
|
|
@ -810,20 +810,21 @@ export default { |
|
|
|
inspectButtonClick(row, index, label) { |
|
|
|
this.inspectFormData.details.splice(row.$index, 1) |
|
|
|
}, |
|
|
|
resetInspectForm() { |
|
|
|
this.inspectFormData.inspectQty = null |
|
|
|
this.$refs.inspectForm_Ref.resetCurrenForm() |
|
|
|
resetInspectForm(row) { |
|
|
|
// this.inspectFormData.inspectQty = null |
|
|
|
// this.$refs.inspectForm_Ref.resetCurrenForm() |
|
|
|
console.log(816,row) |
|
|
|
let _detailTable = '[]' |
|
|
|
if(row.otherPropertyJson && row.otherPropertyJson != '' && row.otherPropertyJson != 'null'){ |
|
|
|
_detailTable = JSON.parse(JSON.stringify(row.otherPropertyJson)) |
|
|
|
} |
|
|
|
this.inspectFormData = row |
|
|
|
this.inspectFormData.details = JSON.parse(_detailTable) |
|
|
|
}, |
|
|
|
// 质检详情-检验按钮 table中按钮 |
|
|
|
inspectDetailsButtonClick(row, index, label) { |
|
|
|
// console.log('质检详情-检验按钮 table中按钮', row) |
|
|
|
this.masterID = this.propsData.id |
|
|
|
this.inspectFormData.appearance = '' |
|
|
|
this.inspectFormData.volume = '' |
|
|
|
this.inspectFormData.weight = '' |
|
|
|
this.inspectFormData.inspectQty = '' |
|
|
|
this.inspectFormData.details = [] |
|
|
|
this.$listAssign(this.inspectFormData, row) |
|
|
|
// console.log('质检详情-检验按钮 label', label) |
|
|
|
if(label == '拆箱'){ |
|
|
|
this.devanCurrentRow = row |
|
|
@ -865,12 +866,11 @@ export default { |
|
|
|
if(document.getElementById("uploadPictureCardGuideBook"))document.getElementById("uploadPictureCardGuideBook").innerHTML = '' |
|
|
|
} |
|
|
|
this.inspectShow = true |
|
|
|
console.log(6666,this.$refs.inspectForm_Ref) |
|
|
|
this.resetInspectForm() |
|
|
|
this.resetInspectForm(row) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
this.inspectShow = true |
|
|
|
this.resetInspectForm() |
|
|
|
this.resetInspectForm(row) |
|
|
|
}) |
|
|
|
this.rowId = row.id |
|
|
|
} else if (label == '清除检验') { |
|
|
@ -906,6 +906,12 @@ export default { |
|
|
|
this.propsData = res |
|
|
|
}) |
|
|
|
this.paging() |
|
|
|
this.inspectFormData.appearance = '' |
|
|
|
this.inspectFormData.volume = '' |
|
|
|
this.inspectFormData.weight = '' |
|
|
|
this.inspectFormData.inspectQty = '' |
|
|
|
this.inspectFormData.otherPropertyJson = '[]' |
|
|
|
console.log(913,this.inspectFormData) |
|
|
|
this.loading = false |
|
|
|
this.inspectNoticeDetailsTableLoading = false |
|
|
|
}).catch(err => { |
|
|
|