chenhaozhe
2025-09-09 d2499258556390979b7e8364235fbb8fed9468bc
pages/huanyangdan/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>
@@ -24,7 +23,7 @@
                </view>
            </view>
            <view class="form-item">
                <view class="title">还样员:</view>
                <view class="right">
@@ -47,7 +46,7 @@
                        v-model="hform.HShiftsName" @input="HShiftsNameChangeHandler"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">单据日期:</view>
                <view class="right disabled">
@@ -247,9 +246,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"]
@@ -287,8 +286,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() {
@@ -490,7 +489,7 @@
                                HProcExchQty: data[0]['流转卡数量'],
                                HCenterID: data[0]['HCenterID'] || getUserInfo()['HWorkCenterID'],
                            })
                        }
                    }
                })
@@ -557,10 +556,11 @@
                        title: '条形码不能为空'
                    })
                }
                let sWhere = " and 单据号='" + HBarCode + "'";
                CommonUtils.doRequest2({
                    url: '/api/newBill/getHbarCodeDetail',
                    url: '/QC_TakeSampleCheckBill/Get_BackSampleList',
                    data: {
                        "sBillBarCode": HBarCode
                        "sWhere": sWhere
                    },
                    resFunction: (res) => {
                        let {
@@ -591,7 +591,7 @@
                                "HDeptID": data1[0].HWorkShopID, //车间ID
                                "HDeptName": data1[0].生产车间, //车间
                            })
                            uni.showToast({
                                icon: 'none',
                                title: msg
@@ -654,10 +654,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',
@@ -697,7 +697,6 @@
</script>
<style lang="scss" scoped>
    .scroll-content {
        box-sizing: border-box;
        padding: 20rpx;