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 @@
-
+
扫描
@@ -19,7 +19,9 @@
old: {
x: 0,
y: 0
- }
+ },
+ btnX:20,
+ btnY:20,
}
},
props: {
@@ -30,6 +32,16 @@
},
methods: {
+ handleTouchStart(e) {
+ this.btnX = e.changedTouches[0].clientX-e.currentTarget.offsetLeft
+ this.btnY = e.changedTouches[0].clientY-e.currentTarget.offsetTop
+ },
+ handleTouchMove(e) {
+ console.log("handleTouchMove",e);
+ this.$refs.scanRef.$el.style.left = e.changedTouches[0].clientX-this.btnX+'px'
+ this.$refs.scanRef.$el.style.top = e.changedTouches[0].clientY-this.btnY+'px'
+ },
+
goScan(content) {
this.$emit("goScan", '');
},
diff --git a/src/mycomponents/scan/winScanFgLabel.vue b/src/mycomponents/scan/winScanFgLabel.vue
index 8d953201..8e3d1893 100644
--- a/src/mycomponents/scan/winScanFgLabel.vue
+++ b/src/mycomponents/scan/winScanFgLabel.vue
@@ -21,8 +21,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 @@
+
@@ -39,7 +40,7 @@
+ :right-options="settingParam.allowModifyQty=='TRUE'?scanOptions:removeOptions">
diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue
index baabd9a2..12dc5bed 100644
--- a/src/pages/issue/job/issueDetail.vue
+++ b/src/pages/issue/job/issueDetail.vue
@@ -19,7 +19,11 @@
:productionLineCode="toLocation.productionLineCode"
:workStationCode="toLocation.workStationCode" :rawLocationCode="toLocation.toLocationCode">
-->
-
+
diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue
index f1ba1da2..de6a8e70 100644
--- a/src/pages/issue/record/directIssue.vue
+++ b/src/pages/issue/record/directIssue.vue
@@ -4,19 +4,13 @@
-
+
@@ -79,7 +73,6 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcTreeHandleQty,
calcHandleQty
} from '@/common/record.js';
@@ -200,11 +193,11 @@
let pack = result.package;
- if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) {
- this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位[" + this
- .fromLocationCode + "]没有库存余额")
- return;
- }
+ // if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) {
+ // this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位[" + this
+ // .fromLocationCode + "]没有库存余额")
+ // return;
+ // }
var item = this.detailSource.find(res => {
if (res.itemCode == balance.itemCode) {
@@ -212,15 +205,14 @@
}
})
if (item == undefined) {
- if (this.itemCode != "" && this.itemCode != balance.itemCode) {
- this.showErrorMessage("请扫描物料为【" + this.itemCode + "】的箱码")
- return;
- }
if (this.fromWarehouseCode == '') {
this.fromWarehouseCode = balance.warehouseCode;
}
var itemp = createItemInfo(balance, pack);
+ itemp.containerNumber=""
let newDetail = createDetailInfo(balance, pack); //
+ newDetail.fromLocationCode=balance.locationCode
+
newDetail.parentNumber = pack.parentNumber;
newDetail.packingNumber = pack.number
newDetail.packUnit = pack.packUnit;
@@ -237,7 +229,7 @@
var detail = item.subList.find(r => {
if (r.packingNumber == pack.number &&
r.batch == balance.batch &&
- r.locationCode == balance.locationCode &&
+ r.fromLocationCode == balance.locationCode &&
r.inventoryStatus == balance.inventoryStatus) {
return r;
}
@@ -249,7 +241,8 @@
if (pack.parentNumber) {
var checkData = item.subList.find(r => {
if (r.packingNumber == pack.parentNumber &&
- r.batch == balance.batch) {
+ r.batch == balance.batch&&
+ r.fromLocationCode == balance.locationCode) {
return r;
}
})
@@ -264,6 +257,7 @@
newDetail.packingNumber = pack.number
newDetail.packUnit = pack.packUnit;
newDetail.packQty = pack.packQty;
+ newDetail.fromLocationCode=balance.locationCode
if (balance.lableQty) {
newDetail.handleQty = balance.lableQty
}
@@ -273,7 +267,8 @@
//扫描的是父包装
var checkData = item.subList.find(r => {
if (r.parentNumber == pack.number &&
- r.batch == balance.batch) {
+ r.batch == balance.batch&&
+ r.fromLocationCode == balance.locationCode) {
return r;
}
})
@@ -288,6 +283,7 @@
newDetail.packingNumber = pack.number
newDetail.packUnit = pack.packUnit;
newDetail.packQty = pack.packQty;
+ newDetail.fromLocationCode=balance.locationCode
if (balance.lableQty) {
newDetail.handleQty = balance.lableQty
}
@@ -297,6 +293,7 @@
console.log("扫描的是父包装,是否移除子包装")
} else {
let newDetail = createDetailInfo(balance, pack);
+ newDetail.fromLocationCode=balance.locationCode
newDetail.parentNumber = pack.parentNumber;
newDetail.packingNumber = pack.number
newDetail.packUnit = pack.packUnit;
@@ -326,18 +323,6 @@
});
},
- calcTreeHandleQty() {
- for (let item of this.detailSource) {
- item.qty = 0;
- for (let detail of item.subList) {
- if (detail != undefined) {
- item.qty = calc.add(item.qty, detail.qty)
- }
- }
- }
- this.$forceUpdate();
- },
-
showSelect() {
// if (this.editPosition) {
this.show = true
diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue
index d0b0d057..da4b36e1 100644
--- a/src/pages/issue/request/issueScanRequest.vue
+++ b/src/pages/issue/request/issueScanRequest.vue
@@ -35,7 +35,6 @@
import comBlankView from '@/mycomponents/common/comBlankView.vue'
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue'
- import comScanIssuePack from '@/pages/issue/coms/comScanIssuePack.vue'
import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue'
import winScanPackLevel from '@/mycomponents/scan/winScanPackLevel.vue'
@@ -44,7 +43,6 @@
components: {
comBlankView,
jobDetailPopup,
- comScanIssuePack,
comIssueRequestCreator,
winScanPackLevel
},
@@ -86,12 +84,6 @@
methods: {
goScan() {
this.$refs.scanPopup.openScanPopup();
- setTimeout(res => {
- if (this.$refs.scanPopup != undefined) {
- this.$refs.scanPopup.getfocus();
- }
- }, 400)
-
},
getScanResult(result){
this.detailSource = {
@@ -143,7 +135,9 @@
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
this.closeScanPopup();
- this.goScan();
+ setTimeout(end=>{
+ this.goScan();
+ },500)
})
},
diff --git a/src/pages/package/coms/comOverPackJobDetailCard.vue b/src/pages/package/coms/comOverPackJobDetailCard.vue
index 024daed0..a1351c1d 100644
--- a/src/pages/package/coms/comOverPackJobDetailCard.vue
+++ b/src/pages/package/coms/comOverPackJobDetailCard.vue
@@ -37,7 +37,7 @@
+ :right-options="settingParam.allowModifyQty=='TRUE'?scanOptions:removeOptions">
diff --git a/src/pages/package/job/overPackageJobDetail.vue b/src/pages/package/job/overPackageJobDetail.vue
index 9c2d2319..23121322 100644
--- a/src/pages/package/job/overPackageJobDetail.vue
+++ b/src/pages/package/job/overPackageJobDetail.vue
@@ -29,7 +29,9 @@
+ @updateData='updateData'
+ :settingParam="jobContent"
+ >
diff --git a/src/pages/productReceipt/coms/comProductDetailCard.vue b/src/pages/productReceipt/coms/comProductDetailCard.vue
index 7b251c84..2617a1f9 100644
--- a/src/pages/productReceipt/coms/comProductDetailCard.vue
+++ b/src/pages/productReceipt/coms/comProductDetailCard.vue
@@ -14,9 +14,9 @@
-
-
+
@@ -147,6 +147,7 @@
if (res) {
item.scaned = false
item.handleQty = null
+ item.fgList=[]
this.$forceUpdate()
this.$emit('remove', item)
}
diff --git a/src/pages/productReceipt/job/ccProductReceiptDetail.vue b/src/pages/productReceipt/job/ccProductReceiptDetail.vue
index 36cb5c65..4508d57a 100644
--- a/src/pages/productReceipt/job/ccProductReceiptDetail.vue
+++ b/src/pages/productReceipt/job/ccProductReceiptDetail.vue
@@ -56,7 +56,7 @@
style="background-color:ghostwhite; width: 100%; ">
@@ -228,9 +228,6 @@
that.subList = res.data.subList;
that.jobStatus = res.data.status
that.jobToLocationCode = that.subList[0].toLocationCode
- if (that.jobContent.allowModifyLocation == 'FALSE') {
- that.toLocationCode = that.subList[0].toLocationCode
- }
that.toLocationAreaTypeList = getDirectoryItemArray(that.jobContent.toAreaTypes)
that.detailSource = getDataSource(that.subList)
if (that.scanMessage) {
@@ -269,7 +266,7 @@
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
- itemDetail.toLocationCode = this.toLocationCode;
+ itemDetail.toLocationCode = this.toLocationCode?this.toLocationCode:this.jobToLocationCode;
itemDetail.labelQty = Number(result.label.qty);
calcHandleQty(this.detailSource);
this.continueScan()
@@ -306,12 +303,27 @@
scanLocationCode(location, code) {
- this.toLocationCode = code
- this.detailSource.forEach(item => {
- item.subList.forEach(detail => {
- detail.toLocationCode = code
+ if(this.jobContent.allowModifyLocation=="TRUE"){
+ this.toLocationCode = code
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ detail.toLocationCode = code
+ })
})
- })
+ }else {
+ //不允许修改库位
+ if(code!=this.jobToLocationCode){
+ this.showMessageHint("任务中不允许修改库位\n扫描库位["+code+"]推荐库位是["+this.jobToLocationCode+"]",callBack=>{
+ })
+ }else {
+ this.toLocationCode = code
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ detail.toLocationCode = code
+ })
+ })
+ }
+ }
},
checkLocation() {
@@ -347,9 +359,11 @@
return
}
}else{
- this.toLocationCode = this.jobToLocationCode
+ this.toLocationCode = this.toLocationCode?this.toLocationCode:this.jobToLocationCode
+ }
+ if(!this.toLocationCode){
+ return;
}
-
//扫描数量和任务数量相等,直接提交
if (this.scanCount == this.subList.length) {
diff --git a/src/pages/productReceipt/job/fgProductReceiptDetail.vue b/src/pages/productReceipt/job/fgProductReceiptDetail.vue
index c702a838..1961e8e7 100644
--- a/src/pages/productReceipt/job/fgProductReceiptDetail.vue
+++ b/src/pages/productReceipt/job/fgProductReceiptDetail.vue
@@ -52,9 +52,9 @@
-
+
@@ -231,16 +231,9 @@
that.subList = res.data.subList;
that.jobStatus = res.data.status
that.jobToLocationCode = that.subList[0].toLocationCode
- that.productionLineCode = that.subList[0].productionLineCode;
- var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate")
- if(valiDate){
- that.jobContent.allowModifyLocation = 'TRUE'
-
- }else{
- that.jobContent.allowModifyLocation = 'FALSE'
- }
- // if (that.jobContent.allowModifyLocation == 'FALSE') {
- // that.toLocationCode = that.subList[0].toLocationCode
+ that.productionLineCode = that.subList[0].productionLineCode;
+ // if (that.jobContent.allowModifyLocation == 'FALSE') {
+ // that.toLocationCode = that.subList[0].toLocationCode
// }
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.detailSource = getDataSource(that.subList)
@@ -317,6 +310,7 @@
})
// 扫满箱后应该自动提交
if (pack.scaned && pack.qty == pack.fgList.length) {
+ this.closeScanPopup();
this.commit()
}
})
@@ -340,20 +334,41 @@
},
scanLocationCode(location, code) {
- this.toLocationCode = code
- this.detailSource.forEach(item => {
- item.subList.forEach(detail => {
- detail.toLocationCode = code
+ //允许修改库位
+ if (this.jobContent.allowModifyLocation == "TRUE") {
+ this.toLocationCode = code
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ detail.toLocationCode = code
+ })
})
- })
+ } else {
+ //不允许修改库位
+ if (code != this.jobToLocationCode) {
+ this.showMessageHint("任务中不允许修改库位\n扫描库位[" + code + "]推荐库位是[" + this.jobToLocationCode + "]",
+ callBack => {})
+ } else {
+ this.toLocationCode = code
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ detail.toLocationCode = code
+ })
+ })
+ }
+ }
+
+
+
+
},
checkLocation() {
var isPass = true;
if (this.toLocationCode == "" || this.toLocationCode == null) {
- this.showMessageHint('请扫描收货库位', callback => {
- this.$refs.comScanLocation.showLocation();
- })
+ this.$refs.comScanLocation.showLocation();
+ // this.showMessageHint('请扫描收货库位', callback => {
+ // this.$refs.comScanLocation.showLocation();
+ // })
return isPass = false;
}
return isPass;
@@ -442,21 +457,27 @@
});
})
},
+
+
commit() {
// this.scanCount = getScanCount(this.subList);
// if (this.scanCount == 0) {
// this.showErrorMessage("扫描数为0,请先扫描")
// return;
// }
- var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate")
- //校验库位
- if(valiDate){
- if (!this.checkLocation()) {
- return
- }
- }else{
- this.toLocationCode = this.jobToLocationCode
+ var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate")
+ //校验库位
+ if (valiDate) {
+ if (!this.checkLocation()) {
+ return
+ }
+ } else {
+ this.toLocationCode = this.toLocationCode ? this.toLocationCode : this.jobToLocationCode
+ }
+ if(!this.toLocationCode){
+ return;
}
+
this.detailSource.forEach(item => {
item.subList.forEach(subitem => {
if (valiDate) {
diff --git a/src/pages/productionReceipt/coms/comProductionJobCard.vue b/src/pages/productionReceipt/coms/comProductionJobCard.vue
index 3df2b1c2..b3017598 100644
--- a/src/pages/productionReceipt/coms/comProductionJobCard.vue
+++ b/src/pages/productionReceipt/coms/comProductionJobCard.vue
@@ -1,7 +1,7 @@
-
+
生产线
diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue
index 56c41363..99183b38 100644
--- a/src/pages/productionReceipt/job/productionReceiptDetail.vue
+++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue
@@ -216,6 +216,7 @@
},
autoCommit(){
+ var that =this
//判断数量是否相等
let str=""
this.detailSource.forEach((item) => {
@@ -236,11 +237,16 @@
str = '任务明细未全部完成,是否提交?\n'+str
this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {
if (res) {
- this.$throttle(this.commit,2000,this)()
+ setTimeout(res=>{
+ that.$throttle(that.commit,2000,that)()
+ },100)
+
}
});
} else {
- this.$throttle(this.commit,2000,this)()
+ setTimeout(res=>{
+ that.$throttle(that.commit,2000,that)()
+ },100)
}
},
diff --git a/src/pages/productionReceipt/job/productionReceiptJob.vue b/src/pages/productionReceipt/job/productionReceiptJob.vue
index fe7c5c00..4d1f72a0 100644
--- a/src/pages/productionReceipt/job/productionReceiptJob.vue
+++ b/src/pages/productionReceipt/job/productionReceiptJob.vue
@@ -1,15 +1,28 @@
-
-
-
-
-
+
+
+
+
+
+
+
+ 收料生产线 :
+
+
+
+
+
+ 物料代码 :
+
+
+
+
+
@@ -44,7 +57,7 @@
goHome,
updateTitle
} from '@/common/basic.js';
-
+
import {
planRefreshTime,
productionReceiptJobFilter
@@ -94,17 +107,22 @@
scanMessage: "",
productionLineList: [],
productionLine: "",
- filterItemCode:"",
- productionLineCode:""
+ filterItemCode: "",
+ productionLineCode: "",
};
},
onLoad(option) {
this.title = option.title
- this.getProductionReceiptJobByProductionline()
+
},
onShow() {
- this.getList('refresh')
+ if(this.productionLineList==0){
+ this.getProductionReceiptJobByProductionline()
+ }else {
+ this.getList('refresh')
+ }
+
},
onReady() {
@@ -145,27 +163,36 @@
methods: {
getProductionReceiptJobByProductionline() {
+ uni.showLoading({
+ title: "获取生产线",
+ mask: true
+ })
getProductionReceiptJobByProductionline().then(res => {
- if (res.code == 0) {
- this.productionLineList = res.data.map(item => ({
- value: item.value,
- text: item.name
- }))
- this.productionLineList.unshift({
- value: "",
- text: "全部"
+ uni.hideLoading()
+ if (res.data && res.data.length > 0) {
+ this.productionLineList = res.data;
+ res.data.forEach(item => {
+ item.value = item.value,
+ item.text = item.value+"("+item.name+")"
})
+ this.productionLineList = res.data
+ this.productionLineCode = this.productionLineList[0].value
} else {
this.productionLineList = []
}
+ this.getList('refresh')
+ }).catch(error => {
+ uni.hideLoading()
+ this.showMessage(error)
+ this.getList('refresh')
})
},
- setQueryParam(){
+ setQueryParam() {
var filterParams = []
- var queryParams=uni.getStorageSync(productionReceiptJobFilter)
-
+ var queryParams = uni.getStorageSync(productionReceiptJobFilter)
+
//只看当天
- if (queryParams.creationTime ) {
+ if (queryParams.creationTime) {
filterParams.push({
column: "create_time",
action: "betweeen",
@@ -179,14 +206,14 @@
action: "in",
value: queryParams.status
})
- }else {
+ } else {
filterParams.push({
column: "status",
action: "in",
value: "1,2"
})
}
-
+
//生产线
if (queryParams.productionLineCode) {
filterParams.push({
@@ -194,6 +221,17 @@
action: "==",
value: queryParams.productionLineCode
})
+ this.productionLineCode=queryParams.productionLineCode
+ }else{
+ if(this.productionLineCode){
+ filterParams.push({
+ column: "productionLineCode",
+ action: "==",
+ value: this.productionLineCode
+ })
+
+ }
+
}
//物料代码
if (queryParams.itemCode) {
@@ -202,10 +240,20 @@
action: "like",
value: queryParams.itemCode
})
+ this.filterItemCode = queryParams.itemCode
+ }else {
+ if(this.filterItemCode){
+ filterParams.push({
+ column: "itemCode",
+ action: "like",
+ value: this.filterItemCode
+ })
+ }
+
}
-
+
return filterParams;
-
+
},
getList(type) {
let that = this;
@@ -219,12 +267,14 @@
this.pageNo = 1;
this.jobList = [];
}
- var queryFiltersParams =this.setQueryParam()
+ var queryFiltersParams = this.setQueryParam()
var params = {
filters: queryFiltersParams,
pageNo: this.pageNo,
pageSize: this.pageSize,
}
+
+ console.log("查询条件",JSON.stringify(params))
getProductionReceiptJobList(params).then(res => {
uni.hideLoading();
@@ -243,7 +293,6 @@
this.jobList = type === "refresh" ? list : this.jobList.concat(list);
this.pageNo++;
-
}).catch(error => {
if (type === "refresh") {
uni.stopPullDownRefresh();
@@ -304,12 +353,12 @@
},
showMessage(message) {
- if(this.$refs.scanPopup){
+ if (this.$refs.scanPopup) {
this.$refs.scanPopup.packLoseFocus()
}
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
- if(this.$refs.scanPopup){
+ if (this.$refs.scanPopup) {
this.$refs.scanPopup.packGetFocus()
}
}
@@ -350,9 +399,9 @@
action: "==",
value: this.$store.state.user.id
},
-
+
]
-
+
if(this.productionLineCode){
filters.push({
column: "productionLineCode",
@@ -394,12 +443,40 @@
this.showMessage(e.message)
}
},
-
+
getListByFilter(params) {
- this.productionLineCode =params.productionLineCode
- uni.setStorageSync(productionReceiptJobFilter,params)
+ params.productionLineCode=this.productionLineCode
+ params.itemCode=this.filterItemCode
+ uni.setStorageSync(productionReceiptJobFilter, params)
+ var test =uni.getStorageSync(productionReceiptJobFilter)
this.getList('refresh')
},
+
+ productionLineCodeConfirm(e) {
+ var params = uni.getStorageSync(productionReceiptJobFilter)
+ this.productionLineCode = e;
+ //第一次没有值,需要赋值
+ if(!params){
+ params={
+ productionLineCode:"",
+ itemCode:""
+ }
+ }
+ this.getListByFilter(params)
+ },
+ itemCodeConfirm(itemCode) {
+ var params = uni.getStorageSync(productionReceiptJobFilter)
+ this.filterItemCode = itemCode;
+ //第一次没有值,需要赋值
+ if(!params){
+ params = {
+ productionLineCode:"",
+ itemCode:""
+ }
+ }
+
+ this.getListByFilter(params)
+ }
}
}
diff --git a/src/pages/productionReturn/job/holdToReturnDetail.vue b/src/pages/productionReturn/job/holdToReturnDetail.vue
new file mode 100644
index 00000000..e0b9d7e4
--- /dev/null
+++ b/src/pages/productionReturn/job/holdToReturnDetail.vue
@@ -0,0 +1,522 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/productionReturn/job/holdToReturnJob.vue b/src/pages/productionReturn/job/holdToReturnJob.vue
new file mode 100644
index 00000000..1c10671f
--- /dev/null
+++ b/src/pages/productionReturn/job/holdToReturnJob.vue
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/productionReturn/job/okToReturnDetail.vue b/src/pages/productionReturn/job/okToReturnDetail.vue
new file mode 100644
index 00000000..13bf02c5
--- /dev/null
+++ b/src/pages/productionReturn/job/okToReturnDetail.vue
@@ -0,0 +1,522 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/productionReturn/job/okToReturnJob.vue b/src/pages/productionReturn/job/okToReturnJob.vue
new file mode 100644
index 00000000..f6aaada1
--- /dev/null
+++ b/src/pages/productionReturn/job/okToReturnJob.vue
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 7e7e6899..dbc696f3 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -598,7 +598,11 @@
}
}).catch(error => {
uni.hideLoading()
- this.showErrorMessage(error)
+ this.$refs.comMessage.showErrorMessage(error, res => {
+ if (res) {
+ navigateBack(1)
+ }
+ });
})
} else {
uni.hideLoading();
@@ -615,9 +619,9 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
- if (!detail.scaned) {
- detail.handleQty = 0
- }
+ // if (!detail.scaned) {
+ // detail.handleQty = 0
+ // }
detail.packList.forEach(pack => {
if (!pack.scaned) {
pack.handleQty = 0
diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue
index 80540675..2c3eb71f 100644
--- a/src/pages/putaway/job/putawayDetail.vue
+++ b/src/pages/putaway/job/putawayDetail.vue
@@ -43,7 +43,8 @@
-->
+
+ :noShowBalanceMessage="false">
diff --git a/src/pages/repleinsh/coms/comRepleishDetailCard.vue b/src/pages/repleinsh/coms/comRepleishDetailCard.vue
index 8903e9c0..98a4efa0 100644
--- a/src/pages/repleinsh/coms/comRepleishDetailCard.vue
+++ b/src/pages/repleinsh/coms/comRepleishDetailCard.vue
@@ -29,7 +29,7 @@
+ :right-options="settingParam.allowModifyQty=='TRUE'?scanOptions:removeOptions">