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: {