diff --git a/src/api/request2.js b/src/api/request2.js index b7306f1e..de9c0af9 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -2055,9 +2055,9 @@ export function productPutawayRecordSubmit(params) { * 获取日期任务列表 * @param {*} */ -export function getPickJobList(params) { +export function getStockUpJobList(params) { return request({ - url: baseApi + "/wms/pick-job-main/senior", + url: baseApi + "/wms/stockup-main-job/senior", method: "post", data: params, }); @@ -2068,9 +2068,9 @@ export function getPickJobList(params) { * @param {*} id 任务id * */ -export function getPickJobDetail(id) { +export function getStockUpJobDetail(id) { return request({ - url: baseApi + "/wms/pick-job-main/getPickJobById?id=" + id, + url: baseApi + "/wms/stockup-main-job/getStockupMainJobById?id=" + id, method: "get", data: {}, }); @@ -2081,9 +2081,9 @@ export function getPickJobDetail(id) { * @param {*} id * */ -export function takePickJob(id) { +export function takeStockUpJob(id) { return request({ - url: baseApi + "/wms/pick-job-main/accept?id=" + id, + url: baseApi + "/wms/stockup-main-job/accept?id=" + id, method: "put", data: {}, }); @@ -2094,9 +2094,9 @@ export function takePickJob(id) { * @param {*} id * */ -export function cancleTakePickJob(id) { +export function cancleTakeStockUpJob(id) { return request({ - url: baseApi + "/wms/pick-job-main/abandon?id=" + id, + url: baseApi + "/wms/stockup-main-job/abandon?id=" + id, method: "put", data: {}, }); @@ -2106,9 +2106,9 @@ export function cancleTakePickJob(id) { * 直接备货任务 提交 * @param {*} params */ -export function pickJobsubmit(params) { +export function stockUpJobsubmit(params) { return request({ - url: baseApi + "/wms/pick-job-main/execute", + url: baseApi + "/wms/stockup-main-job/execute", method: "put", data: params, }); diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index 976e827a..adb7be78 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -62,10 +62,10 @@ } from '@/api/request2.js'; import { - getListLocationTypeDesc, + getListLocationAreaTypeDesc, checkDirectoryItemExist, getDirectoryItemArray, - getLocationTypeName, + getLocationAreaTypeName, getInventoryStatusDesc } from '@/common/directory.js'; export default { @@ -114,7 +114,7 @@ fromLocationCode: '', fromLocation: '', fromLocationList: [], - fromLocationTypeArray: [], + fromLocationAreaTypeList: [], locationOnFocus: false, businessType: {}, inventoryStatus: [], @@ -138,7 +138,7 @@ } this.fromInventoryStatuses = this.businessType.outInventoryStatuses this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //出库库存状态 - this.fromLocationTypeArray = getDirectoryItemArray(this.businessType.outLocationTypes); //出库库存状态 + this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.fromLocationAreaTypeList); //出库库区 setTimeout(res => { this.$refs.popup.open('bottom') }, 500) @@ -162,7 +162,7 @@ }, 500) this.fromInventoryStatuses = jobContent.outInventoryStatuses this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态 - this.fromLocationTypeArray = getDirectoryItemArray(jobContent.fromLocationTypes); //出库库存状态 + this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaCodes); //出库库存状态 }, closeScanPopup(content) { @@ -194,25 +194,22 @@ mask: true }); getBasicLocationByCode(this.fromLocationCode).then(res => { + uni.hideLoading(); if (res.data.total > 0) { let result = res.data.list[0]; var type = result.type; var available = result.available; if (available == "TRUE") { - if (checkDirectoryItemExist(this.fromLocationTypeArray, type)) { + if (checkDirectoryItemExist(this.fromLocationAreaTypeList, type)) { this.location = result; // this.packGetFocus(); this.checkPackage(scanResult); } else { - uni.hideLoading(); - var hint = getListLocationTypeDesc(this.fromLocationTypeArray); - this.showErrorMessage("库位[" + this.fromLocationCode + "]是" + - getLocationTypeName(type) + ",
需要的库位类型是[" + hint + "]", callback => { - this.locationGetFocus(); - }) + var hint = getListLocationAreaTypeDesc(this.fromLocationAreaTypeList); + this.showErrorMessage("扫描库位[" + this.code + "]是[" + + getLocationAreaTypeName(areaType) + "],需要的库区是[" + hint + "]") } } else { - uni.hideLoading(); this.showErrorMessage("扫描库位[" + this.fromLocationCode + "]不可用", res => { this.locationGetFocus(); }) diff --git a/src/pages.json b/src/pages.json index 90c8c015..8f8474c1 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1116,7 +1116,7 @@ }, { - "path": "pages/pick/job/pickJob", + "path": "pages/stockUp/job/stockUpJob", "style": { "navigationBarTitleText": "直接备货任务", "enablePullDownRefresh": true, @@ -1143,7 +1143,7 @@ } }, { - "path": "pages/pick/job/pickJobDetail", + "path": "pages/stockUp/job/stockUpJobDetail", "style": { "navigationBarTitleText": "直接备货任务详情", "enablePullDownRefresh": true diff --git a/src/pages/count/job/countJob.vue b/src/pages/count/job/countJob.vue index 7c3e2bd6..d25a1bd1 100644 --- a/src/pages/count/job/countJob.vue +++ b/src/pages/count/job/countJob.vue @@ -157,6 +157,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("盘点(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -164,7 +165,6 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("盘点(" + this.totalCount + ")"); }).catch(error => { if (type === "refresh") { diff --git a/src/pages/customerReturn/job/returnJob.vue b/src/pages/customerReturn/job/returnJob.vue index 960f382d..12b9634f 100644 --- a/src/pages/customerReturn/job/returnJob.vue +++ b/src/pages/customerReturn/job/returnJob.vue @@ -153,6 +153,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("客户退货(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -160,7 +161,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("客户退货(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/customerReturn/record/returnRecord.vue b/src/pages/customerReturn/record/returnRecord.vue index d9aff0f0..44a8d4ef 100644 --- a/src/pages/customerReturn/record/returnRecord.vue +++ b/src/pages/customerReturn/record/returnRecord.vue @@ -55,7 +55,6 @@ } from '@/common/balance.js'; import { goHome, - updateTitle, getPackingNumberAndBatchByList, deepCopyData } from '@/common/basic.js'; diff --git a/src/pages/customerReturn/request/customerReturnRequest.vue b/src/pages/customerReturn/request/customerReturnRequest.vue index 0feb080f..e6d5c04b 100644 --- a/src/pages/customerReturn/request/customerReturnRequest.vue +++ b/src/pages/customerReturn/request/customerReturnRequest.vue @@ -158,6 +158,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("客户退货申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -168,9 +169,7 @@ res.options = options; }) this.requestList = type === "refresh" ? list : this.requestList.concat(list); - this.pageNo++; - updateTitle("客户退货申请(" + this.totalCount + ")"); }).catch(error => { if (type === "refresh") { diff --git a/src/pages/customerReturn/request/customerReturnRequestCreate.vue b/src/pages/customerReturn/request/customerReturnRequestCreate.vue index 5c92ef4d..b5311965 100644 --- a/src/pages/customerReturn/request/customerReturnRequestCreate.vue +++ b/src/pages/customerReturn/request/customerReturnRequestCreate.vue @@ -72,7 +72,6 @@ } from '@/common/balance.js'; import { goHome, - updateTitle, deepCopyData, getPackingNumberAndBatchByList } from '@/common/basic.js'; diff --git a/src/pages/deliver/job/deliverDetail.vue b/src/pages/deliver/job/deliverDetail.vue index 26c89794..29182aa2 100644 --- a/src/pages/deliver/job/deliverDetail.vue +++ b/src/pages/deliver/job/deliverDetail.vue @@ -61,7 +61,6 @@ import { goHome, - updateTitle, navigateBack, getRemoveOption, getCurrDateTime, diff --git a/src/pages/deliver/job/deliverJob.vue b/src/pages/deliver/job/deliverJob.vue index 8d514430..be9e63a7 100644 --- a/src/pages/deliver/job/deliverJob.vue +++ b/src/pages/deliver/job/deliverJob.vue @@ -154,6 +154,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("制品发货任务(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -161,7 +162,6 @@ } this.jobList = type === "refresh" ? list : this.receiptList.concat(list); this.pageNo++; - updateTitle("制品发货任务(" + this.totalCount + ")"); }).catch(error => { if (type === "refresh") { diff --git a/src/pages/deliver/request/deliverRequest.vue b/src/pages/deliver/request/deliverRequest.vue index d770dfc8..4633935d 100644 --- a/src/pages/deliver/request/deliverRequest.vue +++ b/src/pages/deliver/request/deliverRequest.vue @@ -158,6 +158,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("成品发货申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -169,7 +170,7 @@ }) this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.pageNo++; - updateTitle("成品发货申请(" + this.totalCount + ")"); + }).catch(error => { updateTitle("成品发货申请"); diff --git a/src/pages/deliver/request/deliverRequestCreate.vue b/src/pages/deliver/request/deliverRequestCreate.vue index d697fbff..853cc3aa 100644 --- a/src/pages/deliver/request/deliverRequestCreate.vue +++ b/src/pages/deliver/request/deliverRequestCreate.vue @@ -35,7 +35,6 @@ import { goHome, - updateTitle, getRemoveOption, getISODateTime } from '@/common/basic.js'; diff --git a/src/pages/inspect/job/inspectJob.vue b/src/pages/inspect/job/inspectJob.vue index 2cb2ab9b..fa093d52 100644 --- a/src/pages/inspect/job/inspectJob.vue +++ b/src/pages/inspect/job/inspectJob.vue @@ -150,6 +150,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("到货检验(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -157,7 +158,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("到货检验(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/inspect/request/inspectRequest.vue b/src/pages/inspect/request/inspectRequest.vue index bd7b966a..27e32769 100644 --- a/src/pages/inspect/request/inspectRequest.vue +++ b/src/pages/inspect/request/inspectRequest.vue @@ -169,6 +169,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("检验单申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -181,7 +182,7 @@ this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.pageNo++; - updateTitle("检验单申请(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue index a2d0866f..84019b17 100644 --- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -60,7 +60,6 @@ } from '@/common/detail.js'; import { goHome, - updateTitle, navigateBack, getCurrDateTime, getPackingNumberAndBatchByList, diff --git a/src/pages/inventoryMove/job/inventoryMoveJob.vue b/src/pages/inventoryMove/job/inventoryMoveJob.vue index f3f08737..8d7d6a5c 100644 --- a/src/pages/inventoryMove/job/inventoryMoveJob.vue +++ b/src/pages/inventoryMove/job/inventoryMoveJob.vue @@ -143,6 +143,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("库存转移(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -150,7 +151,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("库存转移(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/issue-按批次推荐/job/issueJob.vue b/src/pages/issue-按批次推荐/job/issueJob.vue index 4993edb2..cdb3ca74 100644 --- a/src/pages/issue-按批次推荐/job/issueJob.vue +++ b/src/pages/issue-按批次推荐/job/issueJob.vue @@ -164,6 +164,7 @@ var list = res.data.list; this.totalCount = res.data.total + this.updateTitle(); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -171,7 +172,6 @@ } that.issueList = type === "refresh" ? list : this.issueList.concat(list); that.pageIndex++; - this.updateTitle(); }).catch(error => { this.loadingType = ""; diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue index 262b8162..bfba40ea 100644 --- a/src/pages/issue/job/issueDetail.vue +++ b/src/pages/issue/job/issueDetail.vue @@ -49,7 +49,6 @@ import { goHome, - updateTitle, navigateBack, getRemoveOption, getCurrDateTime, diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue index 2f9cf8e7..e7784bed 100644 --- a/src/pages/issue/job/issueJob.vue +++ b/src/pages/issue/job/issueJob.vue @@ -149,6 +149,7 @@ } var list = res.data.list; this.totalCount = res.data.total + updateTitle("发料任务(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -156,7 +157,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("发料任务(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/issue/record/issueRecord.vue b/src/pages/issue/record/issueRecord.vue index 364db871..478b634c 100644 --- a/src/pages/issue/record/issueRecord.vue +++ b/src/pages/issue/record/issueRecord.vue @@ -56,7 +56,6 @@ import { goHome, - updateTitle, getRemoveOption, getISODateTime, getCurrDateTime, diff --git a/src/pages/issue/request/issueRequest.vue b/src/pages/issue/request/issueRequest.vue index 5f3d8e43..e40dfb40 100644 --- a/src/pages/issue/request/issueRequest.vue +++ b/src/pages/issue/request/issueRequest.vue @@ -175,6 +175,7 @@ if (type === "refresh") { uni.stopPullDownRefresh(); } + updateTitle("发料申请"); this.loadingType = ""; that.showMessage(error.errMsg) }) diff --git a/src/pages/pick/job/pickJobDetail.vue b/src/pages/pick/job/pickJobDetail.vue deleted file mode 100644 index 25a9aea6..00000000 --- a/src/pages/pick/job/pickJobDetail.vue +++ /dev/null @@ -1,418 +0,0 @@ - - - - - diff --git a/src/pages/productReceipt/job/completeReceiveJob.vue b/src/pages/productReceipt/job/completeReceiveJob.vue index 02409e35..f5a4bad9 100644 --- a/src/pages/productReceipt/job/completeReceiveJob.vue +++ b/src/pages/productReceipt/job/completeReceiveJob.vue @@ -1,8 +1,288 @@ - \ No newline at end of file + diff --git a/src/pages/productReceipt/job/completeReceiveJobDetail.vue b/src/pages/productReceipt/job/completeReceiveJobDetail.vue index 02409e35..1b3fb8fa 100644 --- a/src/pages/productReceipt/job/completeReceiveJobDetail.vue +++ b/src/pages/productReceipt/job/completeReceiveJobDetail.vue @@ -1,8 +1,418 @@ - \ No newline at end of file + diff --git a/src/pages/productReceipt/job/productReceiptJob.vue b/src/pages/productReceipt/job/productReceiptJob.vue index c5e524a7..c047a1ba 100644 --- a/src/pages/productReceipt/job/productReceiptJob.vue +++ b/src/pages/productReceipt/job/productReceiptJob.vue @@ -155,6 +155,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("制品收货(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -162,7 +163,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("制品收货(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index f231f6af..6a28d995 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -60,7 +60,6 @@ } from '@/api/request2.js'; import { goHome, - updateTitle, navigateBack, getCurrDateTime, getPackingNumberAndBatch, @@ -183,7 +182,6 @@ that.jobToLocationCode = that.subList[0].toLocationCode that.toLocationAreaTypeList = getLocationTypeArray(that.jobContent.toAreaTypes) that.detailSource = getDataSource(that.subList) - // updateTitle(this.jobContent.number); } else { that.showMessage('列表数据为0'); } diff --git a/src/pages/productionReceipt/job/productionReceiptJob.vue b/src/pages/productionReceipt/job/productionReceiptJob.vue index f5ed5c5f..d0265058 100644 --- a/src/pages/productionReceipt/job/productionReceiptJob.vue +++ b/src/pages/productionReceipt/job/productionReceiptJob.vue @@ -156,6 +156,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("生产收料(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -163,7 +164,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("生产收料(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/productionReturn/coms/comReturnCommonRequest.vue b/src/pages/productionReturn/coms/comReturnCommonRequest.vue index f22e12d1..0a88f667 100644 --- a/src/pages/productionReturn/coms/comReturnCommonRequest.vue +++ b/src/pages/productionReturn/coms/comReturnCommonRequest.vue @@ -183,6 +183,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle(this.title + "(" + this.totalCount + ")") this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -195,7 +196,7 @@ this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.pageNo++; - updateTitle(this.title + "(" + this.totalCount + ")") + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/productionReturn/job/returnJob.vue b/src/pages/productionReturn/job/returnJob.vue index 9e79f81f..b9ed5645 100644 --- a/src/pages/productionReturn/job/returnJob.vue +++ b/src/pages/productionReturn/job/returnJob.vue @@ -156,6 +156,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("生产退料(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -163,12 +164,13 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("生产退料(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); } + updateTitle("生产退料"); this.loadingType = ""; uni.hideLoading(); that.showMessage(error) diff --git a/src/pages/productionReturn/request/returnToHoldRequest.vue b/src/pages/productionReturn/request/returnToHoldRequest.vue index 47463dac..05d247b9 100644 --- a/src/pages/productionReturn/request/returnToHoldRequest.vue +++ b/src/pages/productionReturn/request/returnToHoldRequest.vue @@ -10,7 +10,6 @@ import { goHome, - updateTitle } from '@/common/basic.js'; export default { diff --git a/src/pages/productionReturn/request/returnToStoreRequest.vue b/src/pages/productionReturn/request/returnToStoreRequest.vue index 2bcde74f..834e6d80 100644 --- a/src/pages/productionReturn/request/returnToStoreRequest.vue +++ b/src/pages/productionReturn/request/returnToStoreRequest.vue @@ -10,7 +10,6 @@ import { goHome, - updateTitle } from '@/common/basic.js'; export default { diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index 99cc4624..4b31684e 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -65,7 +65,6 @@ goHome, getCurrDateTime, getPackingNumberAndBatch, - updateTitle, compareAsc, navigateBack } from '@/common/basic.js'; @@ -207,7 +206,6 @@ } else { that.showMessage('列表数据为0'); } - // updateTitle("采购收货-" + that.jobContent.number); } }).catch(error => { uni.hideLoading() diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue index 0c720e25..01c9337a 100644 --- a/src/pages/purchaseReceipt/job/receiptJob.vue +++ b/src/pages/purchaseReceipt/job/receiptJob.vue @@ -151,6 +151,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("采购收货(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -158,7 +159,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("采购收货(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/purchaseReturn/job/returnJob.vue b/src/pages/purchaseReturn/job/returnJob.vue index 3e0fec94..64341730 100644 --- a/src/pages/purchaseReturn/job/returnJob.vue +++ b/src/pages/purchaseReturn/job/returnJob.vue @@ -153,6 +153,7 @@ } var list = res.data.list; this.totalCount = res.data.total + updateTitle("采购退货(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -160,7 +161,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("采购退货(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/purchaseReturn/request/returnRequest.vue b/src/pages/purchaseReturn/request/returnRequest.vue index 710dc473..04057066 100644 --- a/src/pages/purchaseReturn/request/returnRequest.vue +++ b/src/pages/purchaseReturn/request/returnRequest.vue @@ -157,6 +157,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("采购退货申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -168,7 +169,7 @@ }) this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.pageNo++; - updateTitle("采购退货申请(" + this.totalCount + ")"); + }).catch(error => { uni.hideLoading(); diff --git a/src/pages/purchaseReturn/request/returnRequestCreate.vue b/src/pages/purchaseReturn/request/returnRequestCreate.vue index cea6503c..09e369f8 100644 --- a/src/pages/purchaseReturn/request/returnRequestCreate.vue +++ b/src/pages/purchaseReturn/request/returnRequestCreate.vue @@ -44,7 +44,6 @@ } from '@/api/request2.js'; import { goHome, - updateTitle, navigateBack, deepCopyData, getCurrDateOneMonthsTimes diff --git a/src/pages/putaway/job/putawayJob.vue b/src/pages/putaway/job/putawayJob.vue index 6a3069ff..14d8f9e2 100644 --- a/src/pages/putaway/job/putawayJob.vue +++ b/src/pages/putaway/job/putawayJob.vue @@ -155,6 +155,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("采购上架(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -162,7 +163,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("采购上架(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue index 015deabf..13bb04fc 100644 --- a/src/pages/putaway/record/putawayRecord.vue +++ b/src/pages/putaway/record/putawayRecord.vue @@ -57,7 +57,6 @@ import { goHome, - updateTitle, getCurrDateTime, getPackingNumberAndBatchByList, deepCopyData @@ -123,7 +122,7 @@ }; }, onLoad(option) { - this.clear(); + this.clearData(); var typeCode = "PurchasePutaway" getBusinessType(typeCode, res => { if (res.success) { @@ -443,7 +442,7 @@ showCommitSuccessMessage(hint) { this.$refs.comMessage.showSuccessMessage(hint, res => { - this.clear(); + this.clearData(); }) }, @@ -457,7 +456,7 @@ } }, - clear() { + clearData() { this.fromLocationInfo = {}; this.fromLocationCode = ''; this.fromWarehouseCode = ''; diff --git a/src/pages/putaway/request/putawayRequest.vue b/src/pages/putaway/request/putawayRequest.vue index af160389..9406c847 100644 --- a/src/pages/putaway/request/putawayRequest.vue +++ b/src/pages/putaway/request/putawayRequest.vue @@ -156,6 +156,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("采购上架申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -168,7 +169,7 @@ this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.pageNo++; - updateTitle("采购上架申请(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/putaway/request/putawayRequestCreate.vue b/src/pages/putaway/request/putawayRequestCreate.vue index 0d3b1789..bf8774a9 100644 --- a/src/pages/putaway/request/putawayRequestCreate.vue +++ b/src/pages/putaway/request/putawayRequestCreate.vue @@ -58,7 +58,6 @@ import { goHome, - updateTitle, getCurrDateTime, deepCopyData, getPackingNumberAndBatchByList diff --git a/src/pages/repleinsh/job/repleinshDetail.vue b/src/pages/repleinsh/job/repleinshDetail.vue index 3a65959b..cf33ab4c 100644 --- a/src/pages/repleinsh/job/repleinshDetail.vue +++ b/src/pages/repleinsh/job/repleinshDetail.vue @@ -51,7 +51,6 @@ import { goHome, - updateTitle, navigateBack, getRemoveOption, getCurrDateTime, diff --git a/src/pages/repleinsh/job/repleinshJob.vue b/src/pages/repleinsh/job/repleinshJob.vue index b5084a2c..90eebc7e 100644 --- a/src/pages/repleinsh/job/repleinshJob.vue +++ b/src/pages/repleinsh/job/repleinshJob.vue @@ -155,6 +155,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("补料(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -162,7 +163,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("补料(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/repleinsh/record/repleinshRecord.vue b/src/pages/repleinsh/record/repleinshRecord.vue index 8d8404de..80c68b2a 100644 --- a/src/pages/repleinsh/record/repleinshRecord.vue +++ b/src/pages/repleinsh/record/repleinshRecord.vue @@ -55,7 +55,6 @@ import { goHome, - updateTitle, getCurrDateTime, getPackingNumberAndBatch } from '@/common/basic.js'; diff --git a/src/pages/repleinsh/request/repleinshRequest.vue b/src/pages/repleinsh/request/repleinshRequest.vue index 37de925d..7294fa45 100644 --- a/src/pages/repleinsh/request/repleinshRequest.vue +++ b/src/pages/repleinsh/request/repleinshRequest.vue @@ -137,6 +137,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("采购上架申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -149,7 +150,7 @@ this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("采购上架申请(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/scrap/job/scrapJob.vue b/src/pages/scrap/job/scrapJob.vue index 76485468..cde67343 100644 --- a/src/pages/scrap/job/scrapJob.vue +++ b/src/pages/scrap/job/scrapJob.vue @@ -150,6 +150,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("报废出库(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -157,7 +158,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("报废出库(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/scrap/record/scrapRecord.vue b/src/pages/scrap/record/scrapRecord.vue index b5879d33..0c35c693 100644 --- a/src/pages/scrap/record/scrapRecord.vue +++ b/src/pages/scrap/record/scrapRecord.vue @@ -1,9 +1,9 @@ \ No newline at end of file + diff --git a/src/pages/stockUp/job/stockUpJobDetail.vue b/src/pages/stockUp/job/stockUpJobDetail.vue new file mode 100644 index 00000000..6c5cd4e2 --- /dev/null +++ b/src/pages/stockUp/job/stockUpJobDetail.vue @@ -0,0 +1,461 @@ + + + + + diff --git a/src/pages/supplierDeliver/record/supplierDeliverRecord.vue b/src/pages/supplierDeliver/record/supplierDeliverRecord.vue index 16313ac0..333ec1e5 100644 --- a/src/pages/supplierDeliver/record/supplierDeliverRecord.vue +++ b/src/pages/supplierDeliver/record/supplierDeliverRecord.vue @@ -142,6 +142,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("供应商发货记录(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -149,7 +150,7 @@ } this.recordList = type === "refresh" ? list : this.recordList.concat(list); this.pageNo++; - updateTitle("供应商发货记录(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/transfer/job/issueJob.vue b/src/pages/transfer/job/issueJob.vue index 674c191b..cb4660b7 100644 --- a/src/pages/transfer/job/issueJob.vue +++ b/src/pages/transfer/job/issueJob.vue @@ -156,6 +156,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("调拨出库任务(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -163,7 +164,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("调拨出库任务(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/transfer/job/receiptJob.vue b/src/pages/transfer/job/receiptJob.vue index 87c65a88..9e4d7d6f 100644 --- a/src/pages/transfer/job/receiptJob.vue +++ b/src/pages/transfer/job/receiptJob.vue @@ -155,6 +155,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("调拨入库任务(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -162,7 +163,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("调拨入库任务(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { uni.stopPullDownRefresh(); diff --git a/src/pages/unPlanned/job/issueJob.vue b/src/pages/unPlanned/job/issueJob.vue index c5ef37ff..8655c4d8 100644 --- a/src/pages/unPlanned/job/issueJob.vue +++ b/src/pages/unPlanned/job/issueJob.vue @@ -158,6 +158,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("计划外出库(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -165,7 +166,6 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("计划外出库(" + this.totalCount + ")"); }).catch(error => { if (type === "refresh") { diff --git a/src/pages/unPlanned/job/receiptJob.vue b/src/pages/unPlanned/job/receiptJob.vue index 9a9b713d..dafe8b88 100644 --- a/src/pages/unPlanned/job/receiptJob.vue +++ b/src/pages/unPlanned/job/receiptJob.vue @@ -145,6 +145,7 @@ } var list = res.data.list; this.totalCount = res.data.total + updateTitle("计划外入库(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -152,7 +153,7 @@ } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; - updateTitle("计划外入库(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/unPlanned/record/issueRecord.vue b/src/pages/unPlanned/record/issueRecord.vue index de9faeb0..5b963c07 100644 --- a/src/pages/unPlanned/record/issueRecord.vue +++ b/src/pages/unPlanned/record/issueRecord.vue @@ -69,7 +69,6 @@ import { goHome, - updateTitle, deepCopyData } from '@/common/basic.js'; diff --git a/src/pages/unPlanned/record/receiptRecord.vue b/src/pages/unPlanned/record/receiptRecord.vue index b306fc69..cc6e8f6e 100644 --- a/src/pages/unPlanned/record/receiptRecord.vue +++ b/src/pages/unPlanned/record/receiptRecord.vue @@ -72,7 +72,6 @@ } from 'decimal.js'; //引入 import { goHome, - updateTitle, deepCopyData, getPackingNumberAndBatchByList } from '@/common/basic.js'; diff --git a/src/pages/unPlanned/request/issueRequest.vue b/src/pages/unPlanned/request/issueRequest.vue index 03357c79..4e04af98 100644 --- a/src/pages/unPlanned/request/issueRequest.vue +++ b/src/pages/unPlanned/request/issueRequest.vue @@ -159,6 +159,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("计划外出库申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -171,7 +172,7 @@ this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.pageNo++; - updateTitle("计划外出库申请(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/unPlanned/request/issueRequestCreate.vue b/src/pages/unPlanned/request/issueRequestCreate.vue index af297c18..b85ed4f2 100644 --- a/src/pages/unPlanned/request/issueRequestCreate.vue +++ b/src/pages/unPlanned/request/issueRequestCreate.vue @@ -75,7 +75,6 @@ import { goHome, - updateTitle, deepCopyData, getCurrDateTimes, getCurrDateOneMonthsTimes, diff --git a/src/pages/unPlanned/request/receiptRequest.vue b/src/pages/unPlanned/request/receiptRequest.vue index 5cdfb5ff..27f73e0e 100644 --- a/src/pages/unPlanned/request/receiptRequest.vue +++ b/src/pages/unPlanned/request/receiptRequest.vue @@ -157,6 +157,7 @@ var list = res.data.list; this.totalCount = res.data.total + updateTitle("计划外入库申请(" + this.totalCount + ")"); this.loadingType = "loadmore"; if (list == null || list.length == 0) { this.loadingType = "nomore"; @@ -168,7 +169,7 @@ }) this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.pageNo++; - updateTitle("计划外入库申请(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") { diff --git a/src/pages/unPlanned/request/receiptRequestCreate.vue b/src/pages/unPlanned/request/receiptRequestCreate.vue index 5fbcc64a..0a3aaba4 100644 --- a/src/pages/unPlanned/request/receiptRequestCreate.vue +++ b/src/pages/unPlanned/request/receiptRequestCreate.vue @@ -56,7 +56,6 @@ import { goHome, - updateTitle, getRemoveOption, getISODateTime, navigateBack, diff --git a/src/static/config.js b/src/static/config.js index e9b53adc..a6ee2092 100644 --- a/src/static/config.js +++ b/src/static/config.js @@ -1,5 +1,5 @@ -// let request_url = "http://dev.ccwin-in.com:25300/api/admin-api" -let request_url = "http://192.168.0.128:12080/admin-api" +let request_url = "http://dev.ccwin-in.com:25300/api/admin-api" +// let request_url = "http://192.168.0.113:12080/admin-api" let isDevelopment = true