解决 其他出库单 多次扫描物料码时 第二次保存失败的问题
原因: 第一次扫描物料条码后,没有将单据设置为有源单模式
2个文件已修改
25 ■■■■■ 已修改文件
pages/qitachuku_v2/form.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanlingliao/form.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/qitachuku_v2/form.vue
@@ -320,6 +320,8 @@
                OperationType: 1,
                HInterID_Temp: '',
                HSourceFlag: false,
                showHStockPlaceName: false,
                showHMainSourceBillType: true,
                showHSourceBillNo: true,
@@ -991,6 +993,7 @@
                    success: (res) => {
                        if (res.data.count == 1) {
                            var data = res.data.data
                            this.HSourceFlag = true
                            console.log(2, data);
                            this.hform.HSupName = data.hSupNameField
                            this.hform.HSupID = data.hSupIDField
@@ -1046,8 +1049,6 @@
                var sHQty = this.hform.HQty
                var sSourceBillNo = this.hform.HSourceBillNo
                var sSourceBillType = this.hform.HMainSourceBillType
                var HSourceFlag = this.hform.HSourceBillNo == '' ? false : true
                console.log(this.hform.HSourceBillNo, HSourceFlag)
                if (HDeleteFlag == "*") {
                    if (sBarCode == "") {
                        this.playSound(0)
@@ -1108,7 +1109,7 @@
                            HSPID: sHSPID,
                            HQty: sHQty,
                            HRedBlueFlag: this.hform.HRedBlueFlag,
                            SourceFlag: HSourceFlag,
                            SourceFlag: this.HSourceFlag,
                            HSourceBillNo: sSourceBillNo,
                            HSourceBillType: sSourceBillType,
                            HStockOrgID: this.hform.HStockOrgID,
@@ -1142,6 +1143,7 @@
                                    this.hform.HDeptID = data.hDeptIDField
                                    this.tabs = 1
                                } else if (data.hBarTypeField == '源单条码') {
                                    this.HSourceFlag = true
                                    this.hform.HSupName = data.hSupNameField
                                    this.hform.HSupID = data.hSupIDField
                                    if (data.hDeptIDField != 0) {
@@ -1176,6 +1178,7 @@
                                    this.tabs = 2
                                } else { //物料条码
                                    this.tabs = 2
                                    this.HSourceFlag = true
                                    if (!this.hform.HSourceBillNo) {
                                        this.HMainSourceBillType = '手工录入'
                                        this.hform.HMainSourceBillType = -1
@@ -1187,7 +1190,7 @@
                                this.DisBillEntryList()
                                //清空数量
                                this.hform.HQty = ''
                                this.refreshBarCodeState()
                                this.refreshBarCodeState()
                            } else {
                                this.playSound(0)
                                this.refreshBarCodeState()
@@ -1308,6 +1311,7 @@
            },
            //新增
            getNewData() {
                this.HSourceFlag = false
                uni.request({
                    url: this.serverUrl + '/WEBSController/GetMaxBillNoAndID_Json',
                    data: {
@@ -1336,6 +1340,7 @@
            },
            //修改回填数据
            RoadBillMain(HInterID) {
                this.HSourceFlag = true
                uni.request({
                    url: this.serverUrl + '/WEBSController/GetSourceBill_Temp_Json',
                    data: {
pages/shengchanlingliao/form.vue
@@ -394,9 +394,9 @@
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
                if(this.hform.HBillNo==""||this.hform.HBillNo==undefined){
                    return
                }
                if (this.hform.HBillNo == "" || this.hform.HBillNo == undefined) {
                    return
                }
                uni.request({
                    url: this.serverUrl + '/WEBSController/get_BillBarCode_BillCheck_Json',
                    data: {
@@ -529,9 +529,9 @@
            },
            //扫条码处理
            getCode(HBarCode) {
                if(HBarCode==undefined||HBarCode==""){
                    return
                }
                if (HBarCode == undefined || HBarCode == "") {
                    return
                }
                //仓库、仓位文本框为空时,清空对应ID
                if (!this.hform.HWHName) {
                    this.hform.HWHID = 0