Browse Source

撤销调试

hella_online_20240904
lijuncheng 5 months ago
parent
commit
eb4a43222d
  1. 174
      src/pages/purchaseReceipt/job/receiptDetail.vue

174
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -517,93 +517,93 @@
this.managementList = res.list; this.managementList = res.list;
var params = this.setParams(); var params = this.setParams();
let that =this let that =this
// purchaseReceiptJobSubmit(params).then(res => { purchaseReceiptJobSubmit(params).then(res => {
// if (res.data) { if (res.data) {
// let isCheckPrint = getSwitchInfoByCode(this.switchCode) let isCheckPrint = getSwitchInfoByCode(this.switchCode)
// if (!isCheckPrint) { if (!isCheckPrint) {
// uni.hideLoading() uni.hideLoading()
// // this.showCommitSuccessMessage("\n\n" + res.data.number) // this.showCommitSuccessMessage("\n\n" + res.data.number)
// uni.redirectTo({ uni.redirectTo({
// url: '/pages/pointPutawayJob/index?number='+that.jobContent.number url: '/pages/pointPutawayJob/index?number='+that.jobContent.number
// }) })
// } else { } else {
// // if (res.data == '') { // if (res.data == '') {
// // this.showCommitSuccessMessage(res.data) // this.showCommitSuccessMessage(res.data)
// // const purchaseReceiptDetailPointParams = { // const purchaseReceiptDetailPointParams = {
// // printDeafult: this.printDeafult, // printDeafult: this.printDeafult,
// // templateDeafult: this.templateDeafult, // templateDeafult: this.templateDeafult,
// // } // }
// // uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams) // uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams)
// // } else { // } else {
// // this.showErrorMessage(res.data) // this.showErrorMessage(res.data)
// // } // }
// uni.showLoading({ uni.showLoading({
// title: ",", title: "提交成功,将跳转到打印页面",
// mask: true mask: true
// }); });
// // //
// let timerCount = 0 let timerCount = 0
// const timer1 = setInterval(async () => { const timer1 = setInterval(async () => {
// if (timerCount == 15) { if (timerCount == 15) {
// clearInterval(timer1) clearInterval(timer1)
// this.showErrorMessage("") this.showErrorMessage("上架任务生成异常,请到收货记录里重新生成上架申请")
// return; return;
// } }
// await getPutawayJobList({ await getPutawayJobList({
// filters: [{ filters: [{
// column: "purchaseReceiptRecordNumber", column: "purchaseReceiptRecordNumber",
// action: "in", action: "in",
// value: res.data.number value: res.data.number
// }], }],
// pageNo: 1, pageNo: 1,
// pageSize: 1000, pageSize: 1000,
// }).then(res1 => { }).then(res1 => {
// timerCount = timerCount + 1 timerCount = timerCount + 1
// if (res1.data && res1.data.list && res1 if (res1.data && res1.data.list && res1
// .data .data
// .list.length && (res1.data.total >= res .list.length && (res1.data.total >= res
// .data.detailCount)) { .data.detailCount)) {
// uni.hideLoading() uni.hideLoading()
// clearInterval(timer1) clearInterval(timer1)
// const dataParams = { const dataParams = {
// toLocationCode: res1.data.list[ toLocationCode: res1.data.list[
// 0] 0]
// .toLocationCode, .toLocationCode,
// number: res1.data.list[0] number: res1.data.list[0]
// .number, .number,
// creator: res1.data.list[0] creator: res1.data.list[0]
// .creator, .creator,
// createTime: res1.data.list[0] createTime: res1.data.list[0]
// .createTime, .createTime,
// ids: res1.data.list.map(item => ids: res1.data.list.map(item =>
// item.masterId).join( item.masterId).join(
// ',') ',')
// } }
// console.log(dataParams) console.log(dataParams)
// uni.hideLoading() uni.hideLoading()
// uni.redirectTo({ uni.redirectTo({
// url: '/pages/pointPutawayJob/index?number='+that.jobContent.number+'&data=' + url: '/pages/pointPutawayJob/index?number='+that.jobContent.number+'&data=' +
// encodeURIComponent(JSON.stringify(dataParams)) encodeURIComponent(JSON.stringify(dataParams))
// }) })
// } }
// }) })
// }, 2000) }, 2000)
// } }
// } else { } else {
// this.showErrorMessage("[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
// } }
// }).catch(error => { }).catch(error => {
// uni.hideLoading() uni.hideLoading()
// this.$refs.comMessage.showErrorMessage(error, res => { this.$refs.comMessage.showErrorMessage(error, res => {
// if (res) { if (res) {
// navigateBack(1) navigateBack(1)
// } }
// }); });
// }) })
} else { } else {
uni.hideLoading(); uni.hideLoading();
this.showErrorMessage(res.message); this.showErrorMessage(res.message);

Loading…
Cancel
Save