llj
2026-02-26 bf93fd8426903d682e45fe98d377be072d76e5f6
components/ZLGL/BadReasonPopup.vue
@@ -94,6 +94,13 @@
            HStockOrgID: {
                type: [String, Number],
            },
         HMaterID:
         {
            type: [String, Number],
         },
         HBillType:{
            type: [String, Number],
         },
        },
        mounted() {},
        methods: {
@@ -134,14 +141,20 @@
            },
            getsWhere() {
                let sWhere =
                    ` and 禁用标记 !='Y' and  ISNULL(审核人,'')!=''  and HUSEORGID = '${ uni.getStorageSync("OrganizationID")}'`
                    ` and a.HStopFlag =0 and  ISNULL(a.HCheckEmp,'')!=''  and a.HUSEORGID = '${ uni.getStorageSync("OrganizationID")}'`
               // ` and 禁用标记 !='Y' and  ISNULL(审核人,'')!=''  and a.HUSEORGID = '${ uni.getStorageSync("OrganizationID")}'`
                if (this.HCode) {
                    swhere += ` and 不良原因代码 like '%${this.HCode}%'`
                    // swhere += ` and 不良原因代码 like '%${this.HCode}%'`
               swhere += ` and a.HNumber like '%${this.HCode}%'`
                }
                if (this.HName) {
                    swhere += ` and 不良原因名称 like '%${this.HName}%'`
                    // swhere += ` and 不良原因名称 like '%${this.HName}%'`
               swhere += ` and a.HName like '%${this.HName}%'`
                }
            console.log("sWhere",sWhere)
                return sWhere
            },
            getBillList() {
@@ -150,9 +163,12 @@
                this.page = 0
                this.curPage = 1
                CommonUtils.doRequest(
                    "/Gy_BadReason/list", {
                    "/Gy_BadReason/list_1", {
                        sWhere: this.getsWhere(),
                        user: getUserInfo()['Czymc']
                        user: getUserInfo()['Czymc'],
                  HMaterID:this.HMaterID,
                  HBillType:this.HBillType,
                  OrgID:uni.getStorageSync("OrganizationID")
                    },
                    (res) => {
                        let {