diff --git a/src/api/request2.js b/src/api/request2.js index 11749dd6..33f373fb 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -3465,6 +3465,40 @@ export function getProductionreturnJobList(params) { }); } +/** + * 生产隔离退料 任务获取任务列表 + * 任务状态 + * 开始日期 + * 结束日期 + * 获取日期任务列表 + * @param {*} + */ +export function getProductionHoldReturnJobList(params) { + return request({ + url: baseApi + "/wms/productionreturn-job-detail-hold/senior", + method: "post", + data: params, + }); +} + +/** + * 生产合格退料 任务获取任务列表 + * 任务状态 + * 开始日期 + * 结束日期 + * 获取日期任务列表 + * @param {*} + */ +export function getProductionOkReturnJobList(params) { + return request({ + url: baseApi + "/wms/productionreturn-job-detail-store/senior", + method: "post", + data: params, + }); +} + + + /** * 生产退料任务 获取任务明细 * @param {*} id 任务id diff --git a/src/common/array.js b/src/common/array.js index 91363cf2..b4c8c38d 100644 --- a/src/common/array.js +++ b/src/common/array.js @@ -110,6 +110,20 @@ export function getPurchaseReceiptOption(allowModifyQty, allowModifyLocation) { return option; } + +export function getRecordOption(allowModifyQty, allowModifyLocation) { + var option = [] + option.push(...getDetailOption()) + if (allowModifyQty) { + option.push(...getEditOption()) + } + if (allowModifyLocation) { + option.push(...getLocationOption()) + } + option.push(...getRemoveOption()) + return option; +} + //详情 export function getDetailOption() { let option_detail = [{ diff --git a/src/common/detail.js b/src/common/detail.js index b6ed44a3..ac1b3ed2 100644 --- a/src/common/detail.js +++ b/src/common/detail.js @@ -116,21 +116,45 @@ export function calcHandleQty(detailSource) { } } +//计算推荐和扫描的不是用一个的数量 +export function calcHandleNewQty(detailSource) { + for (let item of detailSource) { + item.handleQty = new Decimal(0).toNumber(); + // item.qty = new Decimal(0).toNumber(); + for (let detail of item.subList) { + if (detail ) { + if (!detail.isRecommend && detail.scaned) { + item.handleQty = calc.add(item.handleQty, detail.handleQty); + } + // if (!detail.isRecommend ) { + // item.qty = calc.add(item.qty, detail.qty); + // } + + } + } + } +} + + + + export function calcTreeHandleQty(detailSource) { for (let item of detailSource) { item.handleQty = new Decimal(0).toNumber(); for (let detail of item.subList) { - if (detail != undefined && detail.scaned) { - if (detail.packList.length > 0) { + if (detail) { + if (detail.packList&&detail.packList.length > 0) { detail.handleQty = new Decimal(0).toNumber(); for (let pack of detail.packList) { - if (pack != undefined && pack.scaned) { + if (pack && pack.scaned) { detail.handleQty = calc.add(detail.handleQty, pack.handleQty); } } } - item.handleQty = calc.add(item.handleQty, detail.handleQty); + if(detail.handleQty){ + item.handleQty = calc.add(item.handleQty, detail.handleQty); + } } } } diff --git a/src/manifest.json b/src/manifest.json index 7a74e63a..81575e5c 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -3,8 +3,8 @@ "package" : "uni.UNI43932FE", "appid" : "__UNI__C9CF4BF", "description" : "", - "versionName" : "1.0.67", - "versionCode" : 67, + "versionName" : "1.0.69", + "versionCode" : 69, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/src/mycomponents/detail/comDetailCard.vue b/src/mycomponents/detail/comDetailCard.vue index 9a968002..69717a16 100644 --- a/src/mycomponents/detail/comDetailCard.vue +++ b/src/mycomponents/detail/comDetailCard.vue @@ -15,6 +15,7 @@ style='padding:0px 0px 5px 0px;align-items: center;'> + @@ -83,13 +84,17 @@ dataContent: { handler(newName, oldName) { if (this.dataContent.subList.length > 0) { - if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) { - this.$nextTick(res => { - this.$refs.collapse1.resize() - }) - } + this.$nextTick(res => { + setTimeout(() => { + if (this.$refs.collapse1) { + this.$refs.collapse1.resize(); + } + }, 500) + }) } }, + + immediate: true, deep: true } diff --git a/src/mycomponents/detail/comRecommendDetailCard.vue b/src/mycomponents/detail/comRecommendDetailCard.vue new file mode 100644 index 00000000..49a86e37 --- /dev/null +++ b/src/mycomponents/detail/comRecommendDetailCard.vue @@ -0,0 +1,194 @@ + + + + + \ No newline at end of file diff --git a/src/mycomponents/qty/balanceQtyEdit.vue b/src/mycomponents/qty/balanceQtyEdit.vue index 79109196..29dbf85f 100644 --- a/src/mycomponents/qty/balanceQtyEdit.vue +++ b/src/mycomponents/qty/balanceQtyEdit.vue @@ -182,7 +182,7 @@ }, setValue() { var balanceQty = Number(this.dataContent.balanceQty); - if(this.allQty<0){ + if(this.allQty<=0){ this.$refs.comMessage.showConfirmWarningModal('数量必须大于等于0', res => { this.allQty = balanceQty; diff --git a/src/mycomponents/record/recordComDetailCard.vue b/src/mycomponents/record/recordComDetailCard.vue index ec58ae03..a303f0ed 100644 --- a/src/mycomponents/record/recordComDetailCard.vue +++ b/src/mycomponents/record/recordComDetailCard.vue @@ -8,7 +8,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -52,7 +52,8 @@ getDetailOption, getDetailEditRemoveOption, getClearOption, - getEditLocationRemoveOption + getEditLocationRemoveOption, + getRecordOption } from '@/common/array.js'; export default { components: { @@ -111,6 +112,14 @@ type: Boolean, default: false }, + allowModifyQty: { + type: Boolean, + default: false + }, + allowModifyLocation: { + type: Boolean, + default: false + } }, watch: { @@ -148,7 +157,7 @@ mounted() { this.detailOptions = getDetailOption(); - this.scanOptions = getDetailEditRemoveOption(); + this.scanOptions = getRecordOption(this.allowModifyQty,this.allowModifyLocation); this.removeOptions = this.isShowModifedLocation ?getEditLocationRemoveOption():getClearOption(); }, diff --git a/src/mycomponents/scan/winComScanFg.vue b/src/mycomponents/scan/winComScanFg.vue index 92a94549..e0f91a60 100644 --- a/src/mycomponents/scan/winComScanFg.vue +++ b/src/mycomponents/scan/winComScanFg.vue @@ -6,10 +6,8 @@ + style="margin-left: 5px;width: 90%;" :focus="boxfocus" :placeholder="placeholderValue" + @focus="handleFocus" @input="handelScanMsg" :cursor="cursorIndex"> @@ -125,6 +123,7 @@ this.placeholderValue = '请扫描' + this.placeholder; }, methods: { + handleFocus() {}, setItemCodeSimulate(itemCode, scanMsg) { this.itemCode = itemCode; this.scanMsg = scanMsg; @@ -140,8 +139,8 @@ this.scanMsg = val }, clearScanValue() { - this.cursorIndex=0, - this.scanMsg = '' + this.cursorIndex = 0, + this.scanMsg = '' this.getfocus(); }, clickScanMsg() { @@ -181,18 +180,18 @@ var partNumber = result.partNumber; //客户物料号 var lengthMat = result.lengthMat; var lengthBc = result.lengthBc; - + //因为Q5的客户物料进行了加密,没有解析规格,在生产条码配置中的Type配置成Q5 if (result.type == 'P') { let scanPartNumber = content.substr(0, lengthMat); //扫描的客户物料号 // let productDate = content.substr(lengthMat, 8); // let batch = content.substr(lengthMat + 8, 3); let order = content.substr(-8); - if(content.length!=lengthBc){ + if (content.length != lengthBc) { that.clear(); throw new Error("解析错误:扫描标签长度与配置条码的长度不一致") } - + if (scanPartNumber != partNumber) { that.clear(); throw new Error("解析错误:扫描的客户物料号【" + scanPartNumber + diff --git a/src/mycomponents/scan/winScanButton.vue b/src/mycomponents/scan/winScanButton.vue index fd228659..2da37a22 100644 --- a/src/mycomponents/scan/winScanButton.vue +++ b/src/mycomponents/scan/winScanButton.vue @@ -1,6 +1,6 @@ @@ -54,11 +52,6 @@ }, methods: { - //模拟扫描功能 - simulateScan(item){ - this.$refs.comscansimulate.setItemCodeSimulate(item.itemCode,item.copyContent) - this.$refs.comscansimulate.clickScanMsg(); - }, openScanPopup(itemCode) { this.$refs.popup.open('bottom') setTimeout(res => { diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index ab3a3ccf..de4e58ba 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -140,7 +140,6 @@ managementPrecision: '', fromInventoryStatuses: "", isCheck: false, - chooseWhich:'1' } }, created() { @@ -318,14 +317,7 @@ uni.hideLoading(); if (res.success) { this.managementPrecision = res.managementPrecision - - this.chooseWhich = '2' - if(res.data&&res.data.list&&res.data.list.length>1){ - this.showBalanceSelect(res.data.list); - }else{ - this.afterQueryBalance(res.data.list); - } - // + this.afterQueryBalance(res.data.list); } else { this.showErrorMessage(res.message, res => { this.packGetFocus(); @@ -394,7 +386,6 @@ // } } else { this.showBalanceSelect(datas); - this.chooseWhich='1' } }, @@ -403,12 +394,7 @@ }, selectBalanceItem(balance) { - if(this.chooseWhich == 1){ - this.packCallBack(balance); - }else{ - this.countCallBack(balance); - } - // this.packCallBack(balance); + this.packCallBack(balance); //因为盘点时有负库存,暂时去掉判断 2023年12月28日 // if (balance.qty > 0) { // this.packCallBack(balance); @@ -472,7 +458,11 @@ getQueryCondition() { let condition = '按照以下条件:\n'; let label = this.scanResult.label; - let status = getInventoryStatusDesc(this.inventoryStatus); + var isShowStatus = this.balanceFromInventoryStatuses ? this.fromInventoryStatuses : undefined + if(isShowStatus){ + let status = getInventoryStatusDesc(isShowStatus); + } + switch (this.managementPrecision) { case 'BY_PACKAGING': condition = condition + '物料号=[' + label.itemCode + ']\n箱码=[' + label.packingNumber + @@ -493,7 +483,7 @@ condition = condition + '物料号=[' + label.itemCode + ']' break; } - if (this.inventoryStatus.length > 0) { + if (status) { condition = condition + '\n库存状态=[' + status + ']' } return condition; diff --git a/src/pages.json b/src/pages.json index 0e300d43..8b2ceaba 100644 --- a/src/pages.json +++ b/src/pages.json @@ -937,6 +937,79 @@ "enablePullDownRefresh": false } }, + + { + "path": "pages/productionReturn/job/okToReturnJob", + "style": { + "navigationBarTitleText": "生产合格退料", + "enablePullDownRefresh": true, + "titleNView": { + // "autoBackButton": "true", + "buttons": [ + // 右边按钮 + { + + "float": "right", + "fontSize": "58rpx", //按钮上文字的大小 + "text": "\ue696", + "fontSrc": "/static/ali_icon/iconfont.ttf" + + }, + { + + "float": "right", + "fontSize": "52rpx", //按钮上文字的大小 + "text": "\ue6e2", + "fontSrc": "/static/ali_icon/iconfont.ttf" + } + ] + } + } + }, + { + "path": "pages/productionReturn/job/okToReturnDetail", + "style": { + "navigationBarTitleText": "生产合格退料详细", + "enablePullDownRefresh": false + } + }, + + { + "path": "pages/productionReturn/job/holdToReturnJob", + "style": { + "navigationBarTitleText": "生产隔离退料", + "enablePullDownRefresh": true, + "titleNView": { + // "autoBackButton": "true", + "buttons": [ + // 右边按钮 + { + + "float": "right", + "fontSize": "58rpx", //按钮上文字的大小 + "text": "\ue696", + "fontSrc": "/static/ali_icon/iconfont.ttf" + + }, + { + + "float": "right", + "fontSize": "52rpx", //按钮上文字的大小 + "text": "\ue6e2", + "fontSrc": "/static/ali_icon/iconfont.ttf" + } + ] + } + } + }, + { + "path": "pages/productionReturn/job/holdToReturnDetail", + "style": { + "navigationBarTitleText": "生产隔离退料详细", + "enablePullDownRefresh": false + } + }, + { "path": "pages/productionReturn/request/returnToStoreRequest", "style": { @@ -981,7 +1054,7 @@ { "path": "pages/deliver/job/deliverJob", "style": { - "navigationBarTitleText": "制品发货任务", + "navigationBarTitleText": "成品发货任务", "enablePullDownRefresh": false, "titleNView": { // "autoBackButton": "true", @@ -1007,14 +1080,14 @@ { "path": "pages/deliver/job/deliverDetail", "style": { - "navigationBarTitleText": "制品发货详情", + "navigationBarTitleText": "成品发货详情", "enablePullDownRefresh": false } }, { "path": "pages/deliver/record/deliverRecord", "style": { - "navigationBarTitleText": "制品发货记录", + "navigationBarTitleText": "成品发货记录", "enablePullDownRefresh": false } }, diff --git a/src/pages/check/checkFgLabel.vue b/src/pages/check/checkFgLabel.vue index a0a1918b..769733d6 100644 --- a/src/pages/check/checkFgLabel.vue +++ b/src/pages/check/checkFgLabel.vue @@ -69,7 +69,6 @@ getBusinessType, createItemInfo, createDetailInfo, - calcTreeHandleQty } from '@/common/record.js'; import { diff --git a/src/pages/deliver/coms/comDeliverDetailCard.vue b/src/pages/deliver/coms/comDeliverDetailCard.vue index 31da1f5c..301bf83e 100644 --- a/src/pages/deliver/coms/comDeliverDetailCard.vue +++ b/src/pages/deliver/coms/comDeliverDetailCard.vue @@ -22,10 +22,10 @@ :isShowLocation="false" :isShowPack="batch.packingNumber!=null && batch.packingNumber!=''"> - - 实际 + + 扫描 - + - + - + - -
- + + + - + + + -
+
+ @@ -175,20 +182,15 @@ }); getDeliverDetail(that.id).then(res => { uni.hideLoading(); - if (res.data == null) { - that.showMessage('未获取到详情'); + if (res.data &&res.data.subList.length > 0) { + that.jobContent = res.data; + that.jobStatus = res.data.status; + that.subList = res.data.subList; + that.detailSource = getDataSource(that.detailSource, that.subList) + that.toLocationCode = that.subList[0].toLocationCode + that.resizeCollapse(); } else { - if (res.data.subList.length > 0) { - that.jobContent = res.data; - that.jobStatus = res.data.status; - - that.subList = res.data.subList; - that.detailSource = getDataSource(that.detailSource, that.subList) - that.toLocationCode = that.subList[0].toLocationCode - that.resizeCollapse(); - } else { - that.showMessage('列表数据为0'); - } + that.showMessage('未获取到详情'); } }).catch(error => { uni.hideLoading() @@ -241,6 +243,61 @@ }); } }, + + checkCount(){ + let str="" + this.detailSource.forEach(detail => { + detail.Items.forEach(item => { + var taskQty =0; + item.taskQty =calc.add(taskQty,item.qty) + var totalQty =0; + item.Locations.forEach(lco => { + lco.Batchs.forEach(batch => { + batch.Records.forEach(record => { + // if (batch.qty != record.qty) { + // var tempHandleQty = 0 + // if (record.qty) { + // tempHandleQty = record.qty + // } else { + // tempHandleQty = 0 + // } + // if (batch.qty != 0) { + // str += + // `包装号【${record.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${batch.qty}】不一致\n` + // } + // } + if(record){ + var hanleQty =record.qty?record.qty:0 + totalQty = calc.add(totalQty,hanleQty) + } + + }) + }) + }) + //实际扫描的数量 + item.totalQty =totalQty + + }) + }) + //如果允许部分提交任务有扫描记录就可以直接提交;如果不允许部分执行,任务数量和提交数量不一致给出提示 + this.detailSource.forEach(detail=>{ + detail.Items.forEach(item=>{ + if(this.jobContent.allowPartialComplete=="FALSE"){ + if(item.taskQty!=item.totalQty){ + str += `物料号【${item.itemCode}】任务数量【${item.taskQty}】与实际提交数量【${item.totalQty}】不一致\n` + } + } + }) + }) + + if(str){ + str = '不允许提交\n' + str + this.showErrorMessage(str) + } + + return str?false:true + + }, submitJob() { var params = this.setParams() @@ -251,6 +308,12 @@ this.$refs.comMessage.showConfirmMessageModal('请扫描箱码') return } + + if(!this.checkCount()){ + uni.hideLoading() + return ; + } + deliverJobSubmit(params).then(res => { uni.hideLoading() if (res.data) { @@ -414,9 +477,6 @@ this.scanPopupGetFocus(); }, - showScanMessage(message) { - this.$refs.comMessage.showScanMessage(message); - }, closeScanMessage() { this.scanPopupGetFocus(); diff --git a/src/pages/fg/coms/comNoReceiptPopup.vue b/src/pages/fg/coms/comNoReceiptPopup.vue index dc7942dc..fbc31272 100644 --- a/src/pages/fg/coms/comNoReceiptPopup.vue +++ b/src/pages/fg/coms/comNoReceiptPopup.vue @@ -225,6 +225,7 @@ this.fgLocationCode = "" this.rawLocationCode = "" this.workshop = "" + this.bomVersion ="" }, @@ -287,7 +288,8 @@ workStationCode: this.workStationCode, fgLocationCode: this.fgLocationCode, rawLocationCode: this.rawLocationCode, - workshop: this.workshop + workshop: this.workshop, + bomVersion :this.bomVersion }; this.closeRequestPopup(); this.$emit("confirm", item); diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index 7d509303..9e2bf839 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -275,43 +275,30 @@ console.log(JSON.stringify(params)) let list = [] - try { - var planData = await planReceiptSubmit(params) - console.log('planData', planData) - if (planData.data) { - - planData.data.forEach(item => { - list.push({ - itemCode: item.itemCode, // 物品代码 - itemName: item.itemName, // 物品名称 - packName: item.packName, // 包装名称 - packageCode: item.toPackingNumber, // 包装号 - batch: item.toBatch, //批次 - parentNumber: item.parentNumber, //父包装号 - itemType: item.itemType, //物料类型 - asnNumber: item.asnNumber, //ASN - supplierCode: item.supplierCode, // 供应商 - qty: item.qty, // 数量 - printTimes: getCurrDateTime(), // 打印时间 - productionLineCode: item.productionLineCode, //生产线 - barcodeString: item.barcodeString, // 标签信息 - barcodeBase64: '', - requestNumber: item.requestNumber - }) + var planData = await planReceiptSubmit(params) + console.log('planData', planData) + if (planData.data && planData.data.length > 0) { + planData.data.forEach(item => { + list.push({ + itemCode: item.itemCode, // 物品代码 + itemName: item.itemName, // 物品名称 + packName: item.packName, // 包装名称 + packageCode: item.toPackingNumber, // 包装号 + batch: item.toBatch, //批次 + parentNumber: item.parentNumber, //父包装号 + itemType: item.itemType, //物料类型 + asnNumber: item.asnNumber, //ASN + supplierCode: item.supplierCode, // 供应商 + qty: item.qty, // 数量 + printTimes: getCurrDateTime(), // 打印时间 + productionLineCode: item.productionLineCode, //生产线 + barcodeString: item.barcodeString, // 标签信息 + barcodeBase64: '', + requestNumber: item.requestNumber }) - } else { - throw new Error("提交失败") - } - } catch (error) { - console.log('异常', error) - if (error.indexOf('请返回开工阶段') > -1) { - uni.hideLoading() - this.showErrorMessage('计划已完成') - this.clearData() - this.openFg(); - return - } - + }) + } else { + throw new Error("提交失败") } //装配收货记录 生成后 创建 制品上架申请 @@ -324,15 +311,17 @@ // } //创建上架申请和检验申请 if (createProductputawaySwitch) { - createPutawayRequestByPlan(list[0].requestNumber).then(res => { - createInspectRequestByPlan(list[0].requestNumber) - }) + if (list.length > 0 && list[0].requestNumber) { + createPutawayRequestByPlan(list[0].requestNumber).then(res => { + createInspectRequestByPlan(list[0].requestNumber) + }) + } } else { //创建检验申请 - createInspectRequestByPlan(list[0].requestNumber) + if (list.length > 0 && list[0].requestNumber) { + createInspectRequestByPlan(list[0].requestNumber) + } } - - var queryParams = { filters: [{ column: "number", @@ -375,15 +364,24 @@ this.index = 1; this.dataContent.handleQty = 0; } - + var hintMsg ="提交成功\n生成装配收货记录\n"; + if(list.length>0&&list[0].requestNumber){ + hintMsg += list[0].requestNumber + } nextTick(() => { - this.showCommitSuccessMessage("提交成功\n生成装配收货记录\n" + list[0].requestNumber, list) + this.showCommitSuccessMessage(hintMsg, list) }) } catch (error) { uni.hideLoading() var hint = error.message ? error.message : error - this.showErrorMessage(hint) + if (hint.indexOf('请返回开工阶段') > -1) { + this.showErrorMessage('计划已完成') + this.clearData() + this.openFg(); + } else { + this.showErrorMessage(hint) + } } }, @@ -489,15 +487,21 @@ let _this = this batchPrintingLable(number).then(resLable => { console.log('batchPrintingLable', resLable) - const webUrl = `${import.meta.env.VITE_JMREPORT_BASE_URL}/jmreport/view/922734157577715712` - const webData = { - token: storage.getStorage(storage.constant.token), - asn_number: resLable.data + uni.hideLoading() + if (resLable.data) { + const webUrl = `${import.meta.env.VITE_JMREPORT_BASE_URL}/jmreport/view/922734157577715712` + const webData = { + token: storage.getStorage(storage.constant.token), + asn_number: resLable.data + } + uni.navigateTo({ + url: `/pages/pointProductReceipt/webview?url=${webUrl}&webData=${JSON.stringify(webData)}` + }); + } else { + _this.showErrorMessage(number + "批量打印标签 H5失败") } - uni.navigateTo({ - url: `/pages/pointProductReceipt/webview?url=${webUrl}&webData=${JSON.stringify(webData)}` - }); }).catch(error => { + uni.hideLoading() _this.showErrorMessage(error) }) }, @@ -520,13 +524,28 @@ _this.showErrorMessage('包装号不能为空!') return } + uni.showLoading({ + title: "正在获取打印信息", + mask: true + }) getBalanceToPackage({ packingNumber: packingNumber.join(',') }).then(res => { console.log('PC打印', res) - _this.getH5BatchPrintingLable(res.data.number) + if (res.data && res.data.number) { + _this.getH5BatchPrintingLable(res.data.number) + } else { + uni.hideLoading() + var hint = "" + packingNumber.forEach(item => { + hint += item + }) + hint + "根据库存余额获取包装信息" + _this.showErrorMessage(hint) + } }).catch(error => { + uni.hideLoading() _this.showErrorMessage(error) }) // #endif diff --git a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue index d06d84d0..fce0dcf3 100644 --- a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue +++ b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue @@ -10,16 +10,16 @@ - +
- - + +
@@ -31,7 +31,7 @@ import balanceQtyEdit from '@/mycomponents/qty/balanceQtyEdit.vue' import detailInfoPopup from '@/pages/inventoryMove/coms/detailInfoPopup.vue' import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" - + import { getDetailOption, getPurchaseReceiptOption @@ -52,7 +52,7 @@ title: "推荐详情", showItem: {}, editItem: { - + }, detailOptions: [], scanOptions: [] @@ -69,8 +69,8 @@ }, allowEditQty: { type: Boolean, - default: true - } + default: false + }, }, watch: { // dataContent: { @@ -84,7 +84,7 @@ this.detailOptions = getDetailOption(); } if (this.scanOptions.length == 0) { - this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam + this.scanOptions = getPurchaseReceiptOption("TRUE", this.settingParam .allowModifyLocation) } }, @@ -135,7 +135,7 @@ }, //扫描源库位 getLocation(location, code) { - this.locatonItem.toLocationCode =code; + this.locatonItem.toLocationCode = code; this.$emit('updateData') }, } @@ -143,4 +143,4 @@ + \ No newline at end of file diff --git a/src/pages/inventoryMove/coms/comMoveRecordCard.vue b/src/pages/inventoryMove/coms/comMoveRecordCard.vue index 7e9c2113..8c0449b2 100644 --- a/src/pages/inventoryMove/coms/comMoveRecordCard.vue +++ b/src/pages/inventoryMove/coms/comMoveRecordCard.vue @@ -26,7 +26,9 @@ + :allowEditStatus="allowEditStatus" + :allowEditQty="allowEditQty" + > @@ -82,6 +84,10 @@ type: Boolean, default: false }, + allowEditQty: { + type: Boolean, + default: false + }, }, watch: { diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue index cdc32371..207ed519 100644 --- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -12,7 +12,7 @@ - diff --git a/src/pages/issue/coms/comIssueDetailCard.vue b/src/pages/issue/coms/comIssueDetailCard.vue index 1826af97..6f7443b6 100644 --- a/src/pages/issue/coms/comIssueDetailCard.vue +++ b/src/pages/issue/coms/comIssueDetailCard.vue @@ -1,5 +1,6 @@