chenhaozhe
2025-09-09 d2499258556390979b7e8364235fbb8fed9468bc
pages/quyangdan/form.vue
@@ -4,8 +4,7 @@
            <view class="form-item">
                <view class="title">条形码:</view>
                <view class="right">
                    <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode"
                        @confirm="getCode(HBarCode)" />
                    <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode" @confirm="getCode(HBarCode)" />
                </view>
                <view class="right-icon" @click="toScanCode">
                    <uni-icons color="#fff" type="scan" size="24"></uni-icons>
@@ -283,9 +282,9 @@
            this.GetDepartmentList()
        },
        methods: {
            HDeptNameChangeHandler(){
            HDeptNameChangeHandler() {
                let index = this.HDeptNameArray.findIndex(item => item == e)
                if (index != -1) {
                    this.hform.HDeptID = this.HDeptNameArraySource[index]["HItemID"]
                    this.hform.HDeptName = this.HDeptNameArraySource[index]["HName"]
@@ -323,8 +322,8 @@
                    this.hform.HSourceID = this.HSourceNameArraySource[index]["HItemID"]
                    this.hform.HSourceName = this.HSourceNameArraySource[index]["生产资源"]
                }
                console.log('this.hform: ',this.hform);
                console.log('this.hform: ', this.hform);
            },
            // 获取生产资源
            getSourceList() {
@@ -526,7 +525,7 @@
                                HProcExchQty: data[0]['流转卡数量'],
                                HCenterID: data[0]['HCenterID'] || getUserInfo()['HWorkCenterID'],
                            })
                        }
                    }
                })
@@ -592,11 +591,10 @@
                        title: '条形码不能为空'
                    })
                }
                let sWhere = " and 单据号='" + HBarCode + "'";
                CommonUtils.doRequest2({
                    url: '/QC_TakeSampleCheckBill/Get_BackSampleList',
                    url: '/api/newBill/getHbarCodeDetail',
                    data: {
                        "sWhere": sWhere
                        "sBillBarCode": HBarCode
                    },
                    resFunction: (res) => {
                        let {
@@ -627,7 +625,7 @@
                                "HDeptID": data1[0].HWorkShopID, //车间ID
                                "HDeptName": data1[0].生产车间, //车间
                            })
                            uni.showToast({
                                icon: 'none',
                                title: msg
@@ -690,10 +688,10 @@
                        title: '生产资源未选择'
                    })
                }
                console.log('this.hform: ',this.hform);
                console.log('this.hform: ', this.hform);
                let sMainStr = JSON.stringify(this.hform)
                console.log('sMainStr: ',sMainStr);
                console.log('sMainStr: ', sMainStr);
                let sMainSub = sMainStr + ';' + this.refSav + ';' + getUserInfo()['Czymc'];
                CommonUtils.doRequest2({
                    method: 'POST',
@@ -733,7 +731,6 @@
</script>
<style lang="scss" scoped>
    .scroll-content {
        box-sizing: border-box;
        padding: 20rpx;