diff --git a/api/httpRequest3.js b/api/httpRequest3.js index aeec1a3e..49135adb 100644 --- a/api/httpRequest3.js +++ b/api/httpRequest3.js @@ -27,15 +27,15 @@ function service(options = {}) { if(res.data.code==0){ resolve(res.data); }else { - reject("系统:"+res.data.msg) + reject("系统异常:"+res.data.msg) } }else { - reject("系统:"+ res.data.msg) + reject("系统异常:"+ res.data.msg) } } else { - reject("系统:"+res.data.msg) + reject("系统异常:"+res.data.msg) } }; options.fail = (error) => { @@ -47,7 +47,7 @@ function service(options = {}) { } else if (message.includes('Request failed with status code')) { message = '接口' + message.substr(message.length - 3) + '异常' } - reject("系统:"+message); + reject("系统异常:"+message); }; uni.request(options); }); diff --git a/mycomponents/recommend/recommend.vue b/mycomponents/recommend/recommend.vue index 1999ba99..3923c217 100644 --- a/mycomponents/recommend/recommend.vue +++ b/mycomponents/recommend/recommend.vue @@ -13,7 +13,7 @@ + :isShowStdPack="false" :isShowStatus="isShowStatus"> @@ -69,6 +69,10 @@ type: Boolean, default: false }, + isShowStatus: { + type: Boolean, + default: true + }, locationTitle: { type: String, diff --git a/mycomponents/scan/winScanPackAndPosition.vue b/mycomponents/scan/winScanPackAndPosition.vue index 8ee30ffa..b3dab933 100644 --- a/mycomponents/scan/winScanPackAndPosition.vue +++ b/mycomponents/scan/winScanPackAndPosition.vue @@ -1,6 +1,6 @@ + + diff --git a/pages/productionReturn/job/returnDetail.vue b/pages/productionReturn/job/returnDetail.vue index 42a8aa97..b5d4910b 100644 --- a/pages/productionReturn/job/returnDetail.vue +++ b/pages/productionReturn/job/returnDetail.vue @@ -497,15 +497,17 @@ // }, scanPopupGetFocus() { - this.$refs.scanPopup.getfocus(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.getfocus(); + } }, scanPopupLoseFocus() { - this.$refs.scanPopup.losefocus(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.losefocus(); + } }, - - showQuestionMessage(message, callback) { setTimeout(r => { this.scanPopupLoseFocus(); diff --git a/pages/productionReturn/record/returnToHold.vue b/pages/productionReturn/record/returnToHold.vue index a9c53c1a..44ca7610 100644 --- a/pages/productionReturn/record/returnToHold.vue +++ b/pages/productionReturn/record/returnToHold.vue @@ -1,29 +1,468 @@ - diff --git a/pages/productionReturn/record/returnToStore.vue b/pages/productionReturn/record/returnToStore.vue index b622c772..fb54d4bb 100644 --- a/pages/productionReturn/record/returnToStore.vue +++ b/pages/productionReturn/record/returnToStore.vue @@ -1,27 +1,20 @@ - - + + + + + diff --git a/pages/scrap/record/scrapRecord.vue b/pages/scrap/record/scrapRecord.vue index 9150d69f..6f6a2871 100644 --- a/pages/scrap/record/scrapRecord.vue +++ b/pages/scrap/record/scrapRecord.vue @@ -55,7 +55,6 @@ import { goHome, - updateTitle, } from '@/common/basic.js'; import { @@ -232,17 +231,20 @@ }, closeScanPopup() { - this.$refs.scanPopup.closeScanPopup(); + if(this.$refs.scanPopup!=undefined){ + this.$refs.scanPopup.closeScanPopup(); + } }, scanPopupGetFocus() { - this.$refs.scanPopup.getfocus(); + if(this.$refs.scanPopup!=undefined){ + this.$refs.scanPopup.getfocus(); + } }, - commit() { if(this.reasonText==""){ - this.showMessage("请先选择报废原因") + this.showErrorMessage("请先选择报废原因") return; } //允许部分提交 @@ -302,14 +304,6 @@ }, - - - - showMessage(message) { - this.$refs.comMessage.showMessage(message, res => { - if (res) {} - }); - }, showErrorMessage(message) { this.$refs.comMessage.showErrorMessage(message, res => { if (res) { @@ -339,15 +333,17 @@ showCommitSuccessMessage(hint) { this.$refs.comMessage.showSuccessMessage(hint, res => { - this.reasonCode = "" - this.reasonText = ""; - this.detailSource = []; - this.subList =[]; - this.managementList =[]; - this.dataContent ={} - + this.clearData(); }) }, + clearData(){ + this.reasonCode = "" + this.reasonText = ""; + this.detailSource = []; + this.subList =[]; + this.managementList =[]; + this.dataContent ={} + }, updateData() { this.calcHandleQty(); diff --git a/pages/scrap/request/scrapRequestCreate.vue b/pages/scrap/request/scrapRequestCreate.vue index b4c921f4..dfe29d07 100644 --- a/pages/scrap/request/scrapRequestCreate.vue +++ b/pages/scrap/request/scrapRequestCreate.vue @@ -128,7 +128,7 @@ this.tolocationTypeList = res.tolocationTypeList; this.showFromLocationPopup(); } else { - this.$refs.comMessage.showBreakMessage(res.message); + this.showErrorMessage(res.message) } }); @@ -228,11 +228,15 @@ }, closeScanPopup() { - this.$refs.scanPopup.closeScanPopup(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.closeScanPopup(); + } }, scanPopupGetFocus() { - this.$refs.scanPopup.getfocus(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.getfocus(); + } }, diff --git a/pages/setter/index.vue b/pages/setter/index.vue index 973b000d..c27cc6ac 100644 --- a/pages/setter/index.vue +++ b/pages/setter/index.vue @@ -20,10 +20,10 @@ thumb="/static/icon_personal_password.png"> - - + @@ -55,12 +55,12 @@ import { onLoad } from "@dcloudio/uni-app"; + const userName = ref(store.state.user.name); let test = ref("123"); let userInfo = ref(null); onLoad(() => { - console.log(11) getUserProfile().then(res => { userInfo.value = res.data // nextTick(()=>{ diff --git a/pages/supplierDeliver/coms/comRecordDetailCard.vue b/pages/supplierDeliver/coms/comRecordDetailCard.vue index 4081821f..4ec59cc3 100644 --- a/pages/supplierDeliver/coms/comRecordDetailCard.vue +++ b/pages/supplierDeliver/coms/comRecordDetailCard.vue @@ -10,7 +10,11 @@ - + diff --git a/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue b/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue index b6450fc9..2961d0ac 100644 --- a/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue +++ b/pages/supplierDeliver/record/supplierDeliverRecordDetail.vue @@ -5,20 +5,19 @@ - 发货单号 : + 发货单号 :{{dataContent.asnNumber}} - 供应商 : + 供应商代码 :{{dataContent.supplierCode}} - - @@ -80,9 +79,8 @@ id: '', receiptJob: {}, received: false, - scanCount: 0, - jobContent: {}, //任务内容 + dataContent: {}, //任务内容 subList: [], //接口返回的任务subList detailSource: [], //绑定在页面上的数据源 locationTypeList: [], @@ -121,7 +119,7 @@ that.showMessage('未获取到详情'); } else { if (res.data.subList.length > 0) { - that.jobContent = res.data; + that.dataContent = res.data; that.subList = res.data.subList; that.subList.forEach(res => { res.packingNumber = res.toPackingNumber @@ -181,18 +179,6 @@ calcHandleQty(this.detailSource); }, - scanLocationCode(location, code) { - this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { - this.toLocationCode = code - this.detailSource.forEach(item => { - item.subList.forEach(detail => { - detail.toLocationCode = code - }) - }) - }) - }, - - showMessage(message) { setTimeout(r => { this.$refs.comMessage.showMessage(message, res => { diff --git a/pages/transfer/coms/comTransferRecord.vue b/pages/transfer/coms/comTransferRecord.vue index 667b2558..f547133a 100644 --- a/pages/transfer/coms/comTransferRecord.vue +++ b/pages/transfer/coms/comTransferRecord.vue @@ -107,7 +107,7 @@ businessType: {}, managementList: [], dataContent: {}, - toWarehouseCode:'' + toWarehouseCode: '' }; }, @@ -155,7 +155,7 @@ if (item == undefined) { var itemp = createItemInfo(balance, pack); let newDetail = createDetailInfo(balance, pack); // - newDetail.inventoryStatus ="OK" + newDetail.inventoryStatus = "OK" itemp.subList.push(newDetail); this.detailSource.push(itemp) } else { @@ -221,11 +221,15 @@ }, closeScanPopup() { - this.$refs.scanPopup.closeScanPopup(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.closeScanPopup(); + } }, scanPopupGetFocus() { - this.$refs.scanPopup.getfocus(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.getfocus(); + } }, scanLocationCode(location, code) { @@ -241,7 +245,7 @@ }, commit() { - + if (this.toLocationCode == "") { this.showMessage("请先选择目标库位") return; @@ -254,7 +258,7 @@ }); this.managementList = []; var precisionStrategParams = this.setPrecisionStrategParams() - + getPrecisionStrategyList(precisionStrategParams, res => { if (res.success) { this.managementList = res.list; @@ -340,7 +344,7 @@ detail.itemName = detail.package.itemName; detail.itemDesc1 = detail.package.itemDesc1; detail.itemDesc2 = detail.package.itemDesc2; - + detail.inventoryStatus = detail.inventoryStatus; detail.fromPackingNumber = info.packingNumber; @@ -399,7 +403,7 @@ this.openScanPopup(); }, getToLocationCode(location, code) { - this.toWarehouseCode =location.warehouseCode + this.toWarehouseCode = location.warehouseCode // if (this.fromLocationCode == code) { // uni.showToast({ // title: "来源库位[" + this.fromLocationCode + "]不能与目标库位[" + code + "]一致", @@ -412,15 +416,17 @@ showCommitSuccessMessage(hint) { this.$refs.comMessage.showSuccessMessage(hint, res => { - this.fromLocationCode = ''; - this.subList = []; - this.detailSource = []; - this.toLocationCode = ''; - this.dataContent = {} - this.toWarehouseCode = "" - + this.clearData(); }) }, + clearData(){ + this.fromLocationCode = ''; + this.subList = []; + this.detailSource = []; + this.toLocationCode = ''; + this.dataContent = {} + this.toWarehouseCode = "" + }, updateData() { this.calcHandleQty(); diff --git a/pages/unPlanned/job/receiptJobDetail.vue b/pages/unPlanned/job/receiptJobDetail.vue index a8a18ab0..3342d8b5 100644 --- a/pages/unPlanned/job/receiptJobDetail.vue +++ b/pages/unPlanned/job/receiptJobDetail.vue @@ -73,7 +73,7 @@ import comMessage from '@/mycomponents/common/comMessage.vue' import comReceiptDetailCard from '@/pages/unPlanned/coms/comReceiptDetailCard.vue' import jobTop from '@/mycomponents/job/jobTop.vue' - + export default { name: 'receipt_detail', components: { @@ -243,16 +243,16 @@ } }, - commit() { - this.scanCount = getScanCount(this.subList); - if( this.scanCount==0){ - this.showErrorMessage("扫描数为0,请先扫描") - return; - } - //校验库位、 - if (!this.checkLocation()) { - return - } + commit() { + this.scanCount = getScanCount(this.subList); + if (this.scanCount == 0) { + this.showErrorMessage("扫描数为0,请先扫描") + return; + } + //校验库位、 + if (!this.checkLocation()) { + return + } //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { this.submitJob(); @@ -273,19 +273,19 @@ } } }, - + checkLocation() { var isPass = true; if (this.toLocationCode == "" || this.toLocationCode == null) { this.showMessageHint('请扫描目标库位', callback => { this.$refs.comScanLocation.showLocation(); }) - + return isPass = false; } return isPass; }, - + showMessageHint(hint, callback) { this.$refs.comMessage.showErrorMessage(hint, res => { if (res) { @@ -295,7 +295,7 @@ }, - submitJob() { + submitJob() { uni.showLoading({ title: "提交中....", mask: true @@ -317,7 +317,7 @@ } else { this.showErrorMessage("提交失败[" + res.msg + "]") } - + }).catch(error => { uni.hideLoading() this.showErrorMessage(error) @@ -385,11 +385,15 @@ }, scanPopupGetFocus() { - this.$refs.scanPopup.getfocus(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.getfocus(); + } }, scanPopupLoseFocus() { - this.$refs.scanPopup.losefocus(); + if (this.$refs.scanPopup != undefined) { + this.$refs.scanPopup.losefocus(); + } }, showCommitSuccessMessage(hint) { diff --git a/pages/unPlanned/record/issueRecord.vue b/pages/unPlanned/record/issueRecord.vue index c134f140..e5d9b738 100644 --- a/pages/unPlanned/record/issueRecord.vue +++ b/pages/unPlanned/record/issueRecord.vue @@ -54,10 +54,6 @@ unPlannedIssueRecordSubmit } from '@/api/request2.js'; - import { - getBalanceByUniquecode, - } from '@/api/request.js'; - import { getBusinessType, } from '@/common/record.js'; @@ -278,13 +274,16 @@ }, showCommitSuccessMessage(hint) { this.$refs.comMessage.showSuccessMessage(hint, res => { - this.reasonCode = "" - this.reasonText = ""; - this.detailSource = []; - this.managementList =[]; - this.dataContent ={} + }) }, + clearData(){ + this.reasonCode = "" + this.reasonText = ""; + this.detailSource = []; + this.managementList =[]; + this.dataContent ={} + } } } diff --git a/pages/unPlanned/record/receiptRecord.vue b/pages/unPlanned/record/receiptRecord.vue index f56bf620..fc0f6e59 100644 --- a/pages/unPlanned/record/receiptRecord.vue +++ b/pages/unPlanned/record/receiptRecord.vue @@ -351,14 +351,17 @@ }, showCommitSuccessMessage(hint) { this.$refs.comMessage.showSuccessMessage(hint, res => { - this.reasonCode = "" - this.reasonText = ""; - this.detailSource = []; - this.managementList=[]; - this.dataContent ={} - this.toLocationCode ="" + this.clearData(); }) }, + clearData(){ + this.reasonCode = "" + this.reasonText = ""; + this.detailSource = []; + this.managementList=[]; + this.dataContent ={} + this.toLocationCode ="" + } } diff --git a/pages/unPlanned/request/issueRequest.vue b/pages/unPlanned/request/issueRequest.vue index 4895f0a1..fea2284c 100644 --- a/pages/unPlanned/request/issueRequest.vue +++ b/pages/unPlanned/request/issueRequest.vue @@ -36,9 +36,7 @@ updateTitle, clearTirmAndWrap } from '@/common/basic.js'; - import { - getBusinessType, - } from '@/common/record.js'; + import { getUnPlannedIssueRequestList, unPlannedIssueRequestApprove, diff --git a/pages/unPlanned/request/issueRequestCreate.vue b/pages/unPlanned/request/issueRequestCreate.vue index 4e96ea9f..433a0f8f 100644 --- a/pages/unPlanned/request/issueRequestCreate.vue +++ b/pages/unPlanned/request/issueRequestCreate.vue @@ -60,10 +60,6 @@ unPlannedIssueRequestCreate, } from '@/api/request2.js'; - import { - getBalanceByUniquecode, - } from '@/api/request.js'; - import { getBusinessType, } from '@/common/record.js'; @@ -128,7 +124,7 @@ this.fromLocationTypeArray = res.fromlocationTypeList; this.showFromLocationPopup(); } else { - this.$refs.comMessage.showBreakMessage(res.message); + this.showErrorMessage(res.message) } }); diff --git a/pages/unPlanned/request/receiptRequest.vue b/pages/unPlanned/request/receiptRequest.vue index 77dacb7a..d304ef4c 100644 --- a/pages/unPlanned/request/receiptRequest.vue +++ b/pages/unPlanned/request/receiptRequest.vue @@ -30,9 +30,6 @@ import requestRecInfoPopup from '@/pages/unPlanned/coms/requestRecInfoPopup.vue' import requestButton from '@/mycomponents/button/requestButton.vue' - import { - getBusinessType, - } from '@/common/record.js'; import { goHome, updateTitle, diff --git a/static/config.json b/static/config.json index 27efe8bc..7426682e 100644 --- a/static/config.json +++ b/static/config.json @@ -18,7 +18,7 @@ "request_url": { "name": "request_url", - "value": "http://192.168.0.230:12080/admin-api", + "value": "http://dev.ccwin-in.com:25100/api/admin-api", "dev2": "http://192.168.0.157:12080/admin-api", "chefang": "http://192.168.0.180:12080/admin-api", "chenxinming": "http://192.168.0.230:12080/admin-api", diff --git a/uni_modules/vk-uview-ui/components/u-select/u-select.vue b/uni_modules/vk-uview-ui/components/u-select/u-select.vue index 41ff6735..ac655b94 100644 --- a/uni_modules/vk-uview-ui/components/u-select/u-select.vue +++ b/uni_modules/vk-uview-ui/components/u-select/u-select.vue @@ -17,7 +17,7 @@ :style="{ color: cancelColor }" hover-class="u-hover-class" :hover-stay-time="150" - @tap="getResult('cancel')" + @tap.stop="getResult('cancel')" > {{cancelText}}