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/mycomponents/record/recordComDetailCard.vue b/src/mycomponents/record/recordComDetailCard.vue
index ec58ae03..4c04244e 100644
--- a/src/mycomponents/record/recordComDetailCard.vue
+++ b/src/mycomponents/record/recordComDetailCard.vue
@@ -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/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/pages/deliver/coms/comScanDeliverPack.vue b/src/pages/deliver/coms/comScanDeliverPack.vue
index 27c5ce1c..c635ba8b 100644
--- a/src/pages/deliver/coms/comScanDeliverPack.vue
+++ b/src/pages/deliver/coms/comScanDeliverPack.vue
@@ -296,7 +296,7 @@
},
selectBalanceItem(balance) {
- this.afterGetBalance(this.label, balance, this.packageInfo);
+ this.afterGetBalance(balance, balance, this.packageInfo);
},
diff --git a/src/pages/deliver/job/deliverDetail.vue b/src/pages/deliver/job/deliverDetail.vue
index 836f8529..85ce1e01 100644
--- a/src/pages/deliver/job/deliverDetail.vue
+++ b/src/pages/deliver/job/deliverDetail.vue
@@ -29,7 +29,10 @@
-
+
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 dad77e16..0aa3edde 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/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/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue
index 56c41363..86809136 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)()
+ })
+
}
});
} else {
- this.$throttle(this.commit,2000,this)()
+ setTimeout(res=>{
+ that.$throttle(that.commit,2000,that)()
+ })
}
},
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">