Browse Source

page/productDismantle 文件迁移 8/8-10/25

pull/1/head
test 4 months ago
parent
commit
54ddb6bef0
  1. 13
      src/pages/productDismantle/job/productDismantleDetail.vue
  2. 13
      src/pages/productDismantle/record/productDismantleRecord.vue

13
src/pages/productDismantle/job/productDismantleDetail.vue

@ -342,12 +342,14 @@
// //
if (this.jobContent.allowPartialComplete == "TRUE") { if (this.jobContent.allowPartialComplete == "TRUE") {
// //
this.submitJob(); this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => {
if (res) {
this.submitJob()
}
});
} else { } else {
// //
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => {
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) { if (res) {
this.openScanPopup(); this.openScanPopup();
} }
@ -373,7 +375,7 @@
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
// productDismantleJobSubmit(this.id, params).then(res => { // productDismantleJobSubmit(this.id, params).then(res => {
// if (res.data) { // if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data.Number, ) // this.showCommitSuccessMessage("\n" + res.data.Number, )
// } else { // } else {
// this.showErrorMessage("[" + res.msg + "]") // this.showErrorMessage("[" + res.msg + "]")
// } // }
@ -430,7 +432,6 @@
}) })
if (nullLocationList.length > 0) { if (nullLocationList.length > 0) {
// //
this.$refs.comMessage.showQuestionMessage("是否把其他的库位都变成默认库位", res => { this.$refs.comMessage.showQuestionMessage("是否把其他的库位都变成默认库位", res => {

13
src/pages/productDismantle/record/productDismantleRecord.vue

@ -180,9 +180,6 @@
this.$forceUpdate(); this.$forceUpdate();
}, },
updateData() {
this.calcHandleQty();
},
removeItem(index, item) { removeItem(index, item) {
this.detailSource.splice(index, 1) this.detailSource.splice(index, 1)
}, },
@ -243,7 +240,7 @@
// productDismantleRecordSubmit(params).then(res => { // productDismantleRecordSubmit(params).then(res => {
// uni.hideLoading() // uni.hideLoading()
// if (res.data) { // if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, ) // this.showCommitSuccessMessage("\n" + res.data, )
// } else { // } else {
// this.showErrorMessage("[" + res.msg + "]") // this.showErrorMessage("[" + res.msg + "]")
// } // }
@ -276,14 +273,6 @@
if (res) {} if (res) {}
}); });
}, },
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
}
});
},
showScanMessage(message) { showScanMessage(message) {
this.$refs.comMessage.showScanMessage(message); this.$refs.comMessage.showScanMessage(message);
}, },

Loading…
Cancel
Save