zrg
2026-01-19 148de2827a4e427f4ff9a5908e3f8be54870c316
取样单列表增加下推首件功能
8个文件已修改
426 ■■■■■ 已修改文件
pages.json 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/EmployeeRecords/EmployeeRecordsBill.vue 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/EmployeeRecords/EmployeeRecordsBillList.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBillList.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/ZLGL/shoujianjianyan/firstCheckBill.vue 220 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/baogong/AddLineBind.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/tab1.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/tab2.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -1043,6 +1043,12 @@
            }
        },
        {
            "path": "pages/baogong/AddLineBind",
            "style": {
                "navigationBarTitleText": "添加生产资源"
            }
        },
        {
            "path": "pages/zutuosaoma/PackUnionBill",
            "style": {
                "navigationBarTitleText": "组托扫码"
@@ -1509,98 +1515,84 @@
        },
        {
            "path" : "pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "设备维修派工单"
            }
        },
        {
            "path" : "pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBillList",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "设备维修派工单缓存"
            }
        },
        {
            "path" : "pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "器具维修派工单"
            }
        },
        {
            "path" : "pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBillList",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "器具维修派工单缓存"
            }
        },
        {
            "path" : "pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBill",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "器具维修验收单"
            }
        },
        {
            "path" : "pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBillList",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "器具维修验收单缓存"
            }
        },
        {
            "path" : "pages/ZLGL/OA_WorkLink/OA_WorkLinkBill",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "工作联系单"
            }
        },
        {
            "path" : "pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "工作联系单列表"
            }
        },
        {
            "path" : "pages/MJGL/Sb_EquipRepairTaskReport/Sb_EquipRepairTaskReport",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "设备维修任务"
            }
        },
        {
            "path" : "pages/MJGL/Sc_MouldRepairTaskReport/Sc_MouldRepairTaskReport",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "器具维修任务"
            }
        },
        {
            "path" : "pages/EmployeeRecords/EmployeeRecordsBill",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "员工签到记录表"
            }
        },
        {
            "path" : "pages/EmployeeRecords/EmployeeRecordsBillList",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "员工签到记录表列表"
            }
        },
        {
            "path" : "pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "设备故障登记单"
            }
        },{
            "path" : "pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBillList",
            "style" :
            {
            "style": {
                "navigationBarTitleText" : "设备故障登记单列表"
            }
        }
pages/EmployeeRecords/EmployeeRecordsBill.vue
@@ -40,28 +40,28 @@
            <view class="form-item">
                <view class="title">班组:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHGroupName" placeholder="请选择车间" v-model="hform.HGroupName"
                    <uni-combox :candidates="arrayHGroupName" placeholder="请选择班组" v-model="hform.HGroupName"
                        @input="HGroupNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">班次:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHShiftsName" placeholder="请选择车间" v-model="hform.HShiftsName"
                    <uni-combox :candidates="arrayHShiftsName" placeholder="请选择班次" v-model="hform.HShiftsName"
                        @input="HShiftsNameChange"></uni-combox>
                </view>
            </view>    
            <view class="form-item">
                <view class="title">生产资源:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHSourceName" placeholder="请选择车间" v-model="hform.HSourceName"
                    <uni-combox :candidates="arrayHSourceName" placeholder="请选择生产资源" v-model="hform.HSourceName"
                        @input="HSourceNameChange"></uni-combox>
                </view>
            </view>    
            <view class="form-item">
                <view class="title">工序:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHProcName" placeholder="请选择车间" v-model="hform.HProcName"
                    <uni-combox :candidates="arrayHProcName" placeholder="请选择工序" v-model="hform.HProcName"
                        @input="HProcNameChange"></uni-combox>
                </view>
            </view>    
@@ -344,14 +344,8 @@
                    }
                ],
                selectedRows: [], // 存储选中的数据
                HModName: "Sc_PackUnionBill_Packing_PDA",
                ModRightName: "CE_PackUnionBill_Packing", //模块权限参数
                titleData: [], //不需要显示的字段
                OperationType: 1, //从缓存列表中返回数据类型(1新增、2从缓存列表中返回)
                //蓝牙相关信息
                printInfo: "", //打印内容
                maskShow: false, //蓝牙打印机显示绑定
                printListData: [], //
                OperationType: 1, //从缓存列表中返回数据类型(1新增、2从缓存列表中返
                //展示表单
                showResultTable: false, // 控制结果表格显示
                resultTableData: [], // 结果表格数据
@@ -433,23 +427,6 @@
                    HRoles: [],
                },
                roleOptions: [],
                // [{
                //         value: '班组长',
                //         text: '班组长'
                //     },
                //     {
                //         value: '班员',
                //         text: '班员'
                //     },
                //     {
                //         value: '机修工',
                //         text: '机修工'
                //     },
                //     {
                //         value: '操作工',
                //         text: '操作工'
                //     }
                // ],
                // 分页模块元数据
                paginationMeta: {
@@ -784,45 +761,6 @@
            },
            GetMeesageByBarCode(HBarCode) {
                // 获取待组托条码对应的数据
                let sOldBarCode = this.HBarCode
                let HDeleteFlag = sOldBarCode.substring(0, 1)
                let sBarCode = sOldBarCode.slice(1)
                if (HDeleteFlag == '*') {
                    if (!sBarCode) {
                        return uni.showToast({
                            icon: 'none',
                            title: '请扫描要删除的条码',
                        })
                    } else {
                        this.HBarCodeFocusRefresh()
                    }
                    CommonUtils.doRequest2({
                        url: '/WEBSController/set_DelPackUnionBill_Temp_Pack_Json',
                        data: {
                            "HInterID": this.hform.HInterID,
                            "HBarCode": sBarCode,
                            "HBillType": this.HBillType
                        },
                        resFunction: (res) => {
                            let {
                                data,
                                count,
                                Message
                            } = res.data
                            if (count == 1) {
                                CommonUtils.playSound(1)
                                //this.DisBillEntryList()
                            } else {
                                CommonUtils.playSound(0)
                                uni.showToast({
                                    icon: 'none',
                                    title: Message
                                })
                            }
                        }
                    })
                } else {
                    let sBarCode = this.HBarCode
                    if (!sBarCode) {
                        return uni.showToast({
@@ -844,14 +782,11 @@
                                Message
                            } = res.data
                            if (count == 1) {
                                CommonUtils.playSound(1)
                                //let data=res.data
                                console.log(sBarCode)
                                console.log(res.data.data[0])
                                console.log(res.data[1])
                                debugger
                                this.hform.HMouldID = data[0][0].模具id
                                console.log("idwei", data[0][0].模具id)
                                this.hform.HMouldNo = data[0][0].模具编码
                                this.hform.HMouldName = data[0][0].模具名称
                                this.hform.HMouldState = data[0][0].模具状态
@@ -860,10 +795,7 @@
                                if (data[1].length > 0) {
                                    this.hform.HEquipID = tabledata.设备内码
                                    this.hform.HEquipName = tabledata.设备名称
                                    //
                                    //this.hform.HSourceID = tabledata.HSourceID
                                    this.hform.HMaterID = tabledata.HMaterID
                                    //this.hform.HProcID = tabledata.HSourceInterID
                                    for (let i = 0; i < data[1].length; i++) {
                                        this.listData.push(Object.assign(data[1][i], {
                                            index: i
@@ -883,7 +815,6 @@
                            }
                        }
                    })
                }
            },
            onRoleChange(e) {
                console.log('选中的角色:', this.hform.HRoles);
@@ -903,7 +834,6 @@
                        "HBillType": this.HBillType
                    },
                    resFunction: (d) => {
                        console.log('d: ', d);
                        let {
                            count,
                            data,
pages/EmployeeRecords/EmployeeRecordsBillList.vue
@@ -327,15 +327,9 @@
                    url: "/pages/EmployeeRecords/EmployeeRecordsBill?operationType=1"
                })
            },
            //编辑点检记录单
            edit(item) {
                console.log(item)
                uni.navigateTo({
                    url: '/pages/MJGL/mujudianjianjiludan/Sc_MouldDotCheckBill?operationType=3&hmainid=' + item.hmainid
                })
            },
            //删除点检记录单
            del(item) {
                console.log(item);
                uni.showModal({
                    title: '删除确认',
                    content: '确认要删除吗,删除后不能恢复',
@@ -345,7 +339,7 @@
                            CommonUtils.doRequest2({
                                url: '/Sc_EmployeeSignInNoteBillController/deleteBill',
                                data: {
                                    HItemID: item['InterID'],
                                    HItemID: item['HInterID'],
                                    user: getUserInfo()['Czymc']
                                },
                                resFunction: (res) => {
pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBillList.vue
@@ -173,9 +173,7 @@
                    </view>
                    <view class="op" v-if="operations == index">
                        <!-- <button class="op1" size="mini" plain @tap.stop="">子表信息</button> -->
                        <!-- <button class="op2" size="mini" plain @tap.stop="">反审核</button> -->
                        <!-- <button class="op3" size="mini" plain @tap.stop="edit(item)">编辑</button> -->
                        <button class="op3" size="mini" plain @tap.stop="Xt_FistCheck(item)">下推首件单</button>
                        <button class="op4" size="mini" plain @tap.stop="del(item)">删除</button>
                        <button class="op5" size="mini" plain @tap.stop="operations = -1">取消操作</button>
                    </view>
@@ -275,6 +273,16 @@
                    url: "/pages/quyangdan/TakeSampleCheckBill?operationType=0"
                })
            },
            Xt_FistCheck(item){
                uni.navigateTo({
                    url: '/pages/ZLGL/shoujianjianyan/firstCheckBill?operationType=2&linterid=' +
                        item.hmainid + '&HBillNo=' + item.单据号 + '&HSouceBillType=7521',
                    success: () => {
                        // 跳转成功后触发查询
                        this.onSearchClickHandler()
                    }
                })
            },
            del(item) {
                uni.showModal({
                    title: '删除确认',
pages/ZLGL/shoujianjianyan/firstCheckBill.vue
@@ -52,8 +52,7 @@
                        </view>
                        <view class="icon-wrapper-big"><uni-icons type="search" size="20"
                            :class="!hasSourceBill?'enable-icon-button':'disable-icon-button'"
                            :disabled="hasSourceBill"
                                @click="showSelectorModule(hform, 5)"></uni-icons></view>
                                :disabled="hasSourceBill" @click="showSelectorModule(hform, 5)"></uni-icons></view>
                    </view>
                    <view class="form-item">
                        <view class="left">流转卡号</view>
@@ -65,12 +64,20 @@
                                :disabled="hasSourceBill"@click="showSelectorModule(hform, 6)"></uni-icons></view>
                    </view>
                    <view class="form-item">
                        <view class="left">取样单号</view>
                        <view class="right disabled">
                            <input type="text" disabled :value="hform.HTakeSampleCheckBillNo" />
                            <input type="text" style="display: none;" disabled :value="hform.HTakeSampleCheckBillID" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">产品代码</view>
                        <view class="right disabled">
                            <input type="text" disabled :value="hform.HMaterNumber" />
                        </view>
                        <view class="icon-wrapper-big">
                            <uni-icons type="search" size="20":class="!hasSourceBill?'enable-icon-button':'disable-icon-button'"
                            <uni-icons type="search" size="20"
                                :class="!hasSourceBill?'enable-icon-button':'disable-icon-button'"
                                :disabled="hasSourceBill" @click="showSelectorModule(hform, 4)"></uni-icons>
                        </view>
                    </view>
@@ -156,13 +163,6 @@
                                v-model="hform.HShiftsName" @update:modelValue="HWorkShiftChange"></uni-combox>
                        </view>
                    </view>
                    <!-- <view class="form-item">
                        <view class="left">生产班次</view>
                        <view class="right">
                            <uni-combox :candidates="GyWorkShiftNameList" placeholder="请选择生产班次"
                                v-model="hform.HShiftsName" @update:modelValue="HWorkShiftChange"></uni-combox>
                        </view>
                    </view> -->
                    <view class="form-item">
                        <view class="left">异常临时处理方案</view>
                        <view class="right">
@@ -329,7 +329,8 @@
                                <!-- 只有定量分析才启用检验值 -->
                                <view class="detail editable" v-show="checkItem.HAnalysisMethod == 2"> 
                                    <text>检验值:</text>
                                    <input type="text" class="editable-input" @blur="calcHResult(checkItem)" v-model="checkItem.HInspectValQ" />
                                    <input type="text" class="editable-input" @blur="calcHResult(checkItem)"
                                        v-model="checkItem.HInspectValQ" />
                                    
                                </view>
                                <view class="detail" v-if="checkItem.HQCNote">
@@ -581,12 +582,13 @@
                // 源单类型
                HSourceBillType: "工序进站接收单",
                HSourceBillTypeValueList: ["3790", "3793", "3710", "3772"],
                HSourceBillTypeValueList: ["3790", "3793", "3710", "3772", "7521"],
                HSourceBillTypeNameList: [
                    "工序进站接收单",
                    "工序委外接收单",
                    "生产订单",
                    "工序流转卡",
                    "取样单",
                ],
                // 主表属性
                hform: {
@@ -731,6 +733,7 @@
                    count
                } = res.data
                if (count == 1) {
                    if(HSourceBillType=3772){
                    this.hform.HMaterID = data[0]['HMaterID']
                    this.hform.HMaterName = data[0]['产品名称']
                    this.hform.HMaterNumber = data[0]['产品代码']
@@ -754,7 +757,55 @@
                    this.hform.HSourceID= data[0].HSourceID
                    this.hform.HProcID= data[0].HProcID
                    this.hform.HProcName= data[0].当前工序
                    }else if(HSourceBillType=7521){
                        this.hform.HMaterID = data[0]['HMaterID']
                        this.hform.HMaterName = data[0]['产品名称']
                        this.hform.HMaterNumber = data[0]['产品代码']
                        this.hform.HMainSourceBillNo = data[0]['HBillNo']
                        this.hform.HSourceBillNo = data[0]['HBillNo']
                        this.hform.HMainSourceInterID = data[0].HInterID
                        this.hform.HMainSourceEntryID = data[0].HEntryID
                        this.hform.HQCSchemeName = data[0].检验方案名称
                        this.hform.HQCSchemeID = data[0].检验方案ID
                        this.hform.HSourceBillQty = data[0].检验数量
                        this.hasSourceBill = true
                        this.hform.HICMOBillNo = data[0].任务单号
                        this.hform.HICMOInterID = data[0].HICMOInterID
                        this.hform.HICMOEntryID = data[0].HICMOEntryID
                        this.hform.HICMOQty = data[0].生产数量
                        this.hform.HProcExchBillNo = data[0].HProcExchBillNo
                        this.hform.HProcExchInterID = data[0].HProcExchInterID
                        this.hform.HProcExchEntryID = data[0].HProcExchEntryID
                        this.hform.HProcExchQty = data[0].流转卡数量
                        this.hform.HSourceName = data[0].生产资源
                        this.hform.HSourceID = data[0].HSourceID
                        this.hform.HProcID = data[0].HProcID
                        this.hform.HProcName = data[0].当前工序
                    }else{
                        this.hform.HMaterID = data[0]['HMaterID']
                        this.hform.HMaterName = data[0]['产品名称']
                        this.hform.HMaterNumber = data[0]['产品代码']
                        this.hform.HMainSourceBillNo = data[0]['HBillNo']
                        this.hform.HSourceBillNo = data[0]['HBillNo']
                        this.hform.HMainSourceInterID = data[0].HInterID
                        this.hform.HMainSourceEntryID = data[0].HEntryID
                        this.hform.HQCSchemeName = data[0].检验方案名称
                        this.hform.HQCSchemeID = data[0].检验方案ID
                        this.hform.HSourceBillQty = data[0].HSourceBillQty
                        this.hasSourceBill = true
                        this.hform.HICMOBillNo = data[0].任务单号
                        this.hform.HICMOInterID = data[0].HICMOInterID
                        this.hform.HICMOEntryID = data[0].HICMOEntryID
                        this.hform.HICMOQty = data[0].生产数量
                        this.hform.HProcExchBillNo = data[0].单据号
                        this.hform.HProcExchInterID = data[0].HInterID
                        this.hform.HProcExchEntryID = data[0].HEntryID
                        this.hform.HProcExchQty = data[0].流转卡数量
                        this.hform.HSourceName = data[0].生产资源
                        this.hform.HSourceID = data[0].HSourceID
                        this.hform.HProcID = data[0].HProcID
                        this.hform.HProcName = data[0].当前工序
                    }
                    this.get_CheckItem();
                } else {
                    CommonUtils.showTips({
@@ -763,17 +814,9 @@
                    })
                }
            
                // if (
                //     (uni.getStorageSync("OrganizationID") == "7667152" &&
                //         uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
                //     (uni.getStorageSync("OrganizationID") == "100199" &&
                //         uni.getStorageSync("Organization") == "杭州斯莫尔磁性材料有限公司")
                // ) {
                //     await this.GetCheckItemID(); // 客户为斯莫尔,进入按照质检方案表头上的物料绑定带出默认方案
                // }
            },
            async HandleBillSelectComplete(e) {
                console.log('e: ', e);
                try {
                    let res = await CommonUtils.doRequest2Async({
                        url: "/WEBSController/get_CheckBillBarCode_Json_CheckItem",
@@ -794,7 +837,7 @@
                        count
                    } = res.data
                    if (count == 1) {
                        console.log('获取源单:', data)
                        if(this.hform.HSourceBillType=="3772"){
                        this.hform.HMaterID = data[0]['HMaterID']
                        this.hform.HMaterName = data[0]['产品名称']
                        this.hform.HMaterNumber = data[0]['产品代码']
@@ -817,6 +860,56 @@
                        this.hform.HSourceID= data[0].HSourceID
                        this.hform.HProcID= data[0].HProcID
                        this.hform.HProcName= data[0].当前工序
                        }else if(this.hform.HSourceBillType=="7521"){
                            this.hform.HMaterID = data[0]['HMaterID']
                            this.hform.HMaterName = data[0]['产品名称']
                            this.hform.HMaterNumber = data[0]['产品代码']
                            this.hform.HMainSourceBillNo = data[0]['HBillNo']
                            this.hform.HSourceBillNo = data[0]['HBillNo']
                            this.hform.HMainSourceInterID = data[0].HInterID
                            this.hform.HMainSourceEntryID = data[0].HEntryID
                            this.hform.HQCSchemeName = data[0].检验方案名称
                            this.hform.HQCSchemeID = data[0].检验方案ID
                            this.hform.HSourceBillQty = data[0].检验数量
                            this.hform.HICMOBillNo = data[0].任务单号
                            this.hform.HICMOInterID = data[0].HICMOInterID
                            this.hform.HICMOEntryID = data[0].HICMOEntryID
                            this.hform.HICMOQty = data[0].生产数量
                            this.hform.HProcExchBillNo = data[0].HProcExchBillNo
                            this.hform.HProcExchInterID = data[0].HProcExchInterID
                            this.hform.HProcExchEntryID = data[0].HProcExchEntryID
                            this.hform.HProcExchQty = data[0].流转卡数量
                            this.hform.HSourceName = data[0].生产资源
                            this.hform.HSourceID = data[0].HSourceID
                            this.hform.HProcID = data[0].HProcID
                            this.hform.HProcName = data[0].当前工序
                        }else{
                            this.hform.HMaterID = data[0]['HMaterID']
                            this.hform.HMaterName = data[0]['产品名称']
                            this.hform.HMaterNumber = data[0]['产品代码']
                            this.hform.HMainSourceBillNo = data[0]['HBillNo']
                            this.hform.HSourceBillNo = data[0]['HBillNo']
                            this.hform.HMainSourceInterID = data[0].HInterID
                            this.hform.HMainSourceEntryID = data[0].HEntryID
                            this.hform.HQCSchemeName = data[0].检验方案名称
                            this.hform.HQCSchemeID = data[0].检验方案ID
                            this.hform.HSourceBillQty = data[0].HSourceBillQty
                            this.hform.HICMOBillNo = data[0].任务单号
                            this.hform.HICMOInterID = data[0].HICMOInterID
                            this.hform.HICMOEntryID = data[0].HICMOEntryID
                            this.hform.HICMOQty = data[0].生产数量
                            this.hform.HProcExchBillNo = data[0].单据号
                            this.hform.HProcExchInterID = data[0].HInterID
                            this.hform.HProcExchEntryID = data[0].HEntryID
                            this.hform.HProcExchQty = data[0].流转卡数量
                            this.hform.HSourceName = data[0].生产资源
                            this.hform.HSourceID = data[0].HSourceID
                            this.hform.HProcID = data[0].HProcID
                            this.hform.HProcName = data[0].当前工序
                        }
                        console.log('获取源单:', data)
            
                        this.get_CheckItem();
                        this.hasSourceBill = true
@@ -1082,15 +1175,64 @@
                    });
                }
            },
            async LoadingInformation_TakeSampleCheckBill(linterid) {
                // 取样单
                try {
                    let res = await CommonUtils.doRequest2Async({
                        url: "/QC_FirstPieceCheckBill/get_TakeSampleCheckBill",
                        data: {
                            HInterID: linterid,
                            user: getUserInfo()["Czymc"],
                        },
                    });
                    let {
                        count,
                        Message,
                        data
                    } = res.data;
                    if (count != 1) {
                        CommonUtils.showTips({
                            title: "温馨提示",
                            message: `获取取样单 错误: ${Message}`,
                        });
                        return;
                    }
                    this.hform.HProcExchBillNo = data[0].流转卡号;
                    this.hform.HProcExchInterID = data[0].HProcExchInterID;
                    this.hform.HProcExchEntryID = data[0].HProcExchEntryID;
                    this.hform.HProcExchQty = data[0].流转卡数量 || 0;
                    this.hform.HICMOBillNo = data[0].任务单;
                    this.hform.HICMOInterID = data[0].HICMOInterID;
                    this.hform.HICMOQty = data[0].HICMOQty;
                    this.hform.HSourceName = data[0].生产资源;
                    this.hform.HSourceID = data[0].HSourceID;
                    this.hform.HMaterID = data[0].HMaterID;
                    this.hform.HMaterName = data[0].产品名称;
                    this.hform.HMainSourceBillNo = data[0].单据号;
                    this.hform.HMainSourceBillType = data[0].HBillType;
                    this.hform.HMainSourceInterID = data[0].HInterID;
                    this.hform.HICMOEntryID = data[0].HICMOEntryID || 1;
                    this.hform.HQCSchemeName = data[0].检验方案名称;
                    this.hform.HQCSchemeID = data[0].检验方案ID;
                    this.hform.HProcName = data[0].当前工序;
                    this.hasSourceBill = true
                    this.get_CheckItem();
                } catch (err) {
                    CommonUtils.showTips({
                        title: "温馨提示",
                        message: `获取取样单 错误: ${err}`,
                    });
                }
            },
            // 检验员初始化
            async InitHEmp() {
                try {
                    let res = await CommonUtils.doRequest2Async({
                        url: "/Gy_Employee/list",
                        data: {
                            sWhere: `  and 组织名称 = '${uni.getStorageSync(
              "Organization"
            )}' and 禁用标记 = ''and 审核人 !='' order by 部门代码`,
                            sWhere: `  and 组织名称 = '${uni.getStorageSync("Organization")}' and 禁用标记 = ''and 审核人 !='' order by 部门代码`,
                            user: getUserInfo()["Czymc"],
                            Organization: uni.getStorageSync("Organization"),
                        },
@@ -1137,9 +1279,7 @@
                    let res = await CommonUtils.doRequest2Async({
                        url: "/Gy_ShiftsController/Get_Gy_WorkShiftList",
                        data: {
                            sWhere: ` and 禁用标记 = '' and ISNULL(审核人,'')  != '' and 使用组织名称 = '${uni.getStorageSync(
              "Organization"
            )}'`,
                            sWhere: ` and 禁用标记 = '' and ISNULL(审核人,'')  != '' and 使用组织名称 = '${uni.getStorageSync("Organization")}'`,
                            HMaker: getUserInfo()["Czymc"],
                        },
                    });
@@ -1168,7 +1308,6 @@
                }
            },
            async HWorkShiftChange(e) {
                console.log("选中班次: ", e);
                let index = this.GyWorkShiftList.findIndex((elem) => elem["班次名称"] == e);
                if (index == -1) {
                    this.hform.HWorkShiftID = 0;
@@ -1179,7 +1318,6 @@
                this.hform.HWorkShiftID = this.GySourceList[index]["HInterID"];
                this.hform.HWorkShiftName = this.GySourceList[index]["班次名称"];
            },
            // 生产资源更新
            // 生产资源初始化
            async InitHSource() {
                try {
@@ -1874,9 +2012,7 @@
                        checkItemsArray.push(checkItem);
                    }
                    console.log('checkItemsArray: ', checkItemsArray);
                    let sMainSub = `${JSON.stringify(this.hform)};${JSON.stringify(
          checkItemsArray
        )};${this.operationType};${getUserInfo()["Czymc"]};${InspectValuesTrans[0]}`;
                    let sMainSub = `${JSON.stringify(this.hform)};${JSON.stringify(checkItemsArray)};${this.operationType};${getUserInfo()["Czymc"]};${InspectValuesTrans[0]}`;
                    console.log("this.checkItems: ", this.checkItems);
                    let res = await CommonUtils.doRequest2Sync({
@@ -2091,10 +2227,21 @@
        },
        async onLoad(e) {
            this.operationType = e.operationType || 1;
            this.hform.HInterID = e.linterid || 0;
            if (this.operationType == 1) {
                await this.getMaxBillNo();
            } else if (this.operationType == 2) {} else if (this.operationType == 3) {
            } else if (this.operationType == 2) {
                //有源单下推
                await this.getMaxBillNo();
                if(e.HSouceBillType=="7521"){
                    this.hform.HSourceBillType="7521";
                    this.hform.HTakeSampleCheckBillNo=e.HBillNo;
                    this.hform.HTakeSampleCheckBillID=e.linterid;
                    //取样单查询数据
                    await this.LoadingInformation_TakeSampleCheckBill(e.linterid);
                }
            } else if (this.operationType == 3) {
                this.hform.HInterID = e.linterid || 0;
                await this.RoadBillMain();
            }
@@ -2380,6 +2527,7 @@
        background-color: #f0d6e3;
        border: none;
    }
    .enable-icon-button {
        background-color: #3a78ff;
        padding: 6rpx;
pages/baogong/AddLineBind.vue
@@ -1,13 +1,9 @@
<template>
    <view>
        <view class="form" :style="{height: containerHeight + 'px',overflow: 'auto'}">
            <view class="form-item">
                <view class="title">生产资源:</view>
                <view class="right">
                    <uni-combox
                        :candidates="arrayHSourceName"
                        placeholder="请选择生产资源"
                        v-model="hform.HSourceName"
                <uni-combox :candidates="arrayHSourceName" placeholder="请选择生产资源" v-model="hform.HSourceName"
                        @input="HSourceNameChange">
                    </uni-combox>
                </view>
@@ -16,10 +12,7 @@
            <view class="form-item">
                <view class="title">负责人:</view>
                <view class="right">
                    <uni-combox
                        :candidates="arrayHManagerName"
                        placeholder="请选择负责人"
                        v-model="hform.HManagerName"
                <uni-combox :candidates="arrayHManagerName" placeholder="请选择负责人" v-model="hform.HManagerName"
                        @input="HManagerNameChange">
                    </uni-combox>
                </view>
@@ -28,10 +21,7 @@
            <view class="form-item">
                <view class="title">班组:</view>
                <view class="right">
                    <uni-combox
                        :candidates="arrayHGroupName"
                        placeholder="请选择班组"
                        v-model="hform.HGroupName"
                <uni-combox :candidates="arrayHGroupName" placeholder="请选择班组" v-model="hform.HGroupName"
                        @input="HGroupNameChange">
                    </uni-combox>
                </view>
@@ -50,7 +40,6 @@
                    <textarea v-model="hform.HRemark" placeholder="请输入备注" auto-height />
                </view>
            </view>
        </view>
        
        <!-- 操作按钮 -->
        <view class="buttons" id="buttons">
@@ -64,8 +53,12 @@
<script>
    import dayjs from "dayjs";
    import { CommonUtils } from "@/utils/common";
    import { getUserInfo } from "@/utils/auth";
    import {
        CommonUtils
    } from "@/utils/common";
    import {
        getUserInfo
    } from "@/utils/auth";
    export default {
        name: 'AddLineBind',
@@ -347,8 +340,12 @@
<style lang="scss" scoped>
    .form {
        padding: 20rpx;
        // 添加底部内边距,为底部按钮留出空间
        padding-bottom: 160rpx; // 按钮高度 + 额外间距
        // 使用 calc 计算高度
        height: calc(100vh - 160rpx);
        /* 减去底部按钮区域的高度 */
        overflow: auto;
        box-sizing: border-box;
        /* 确保内边距不影响高度计算 */
    }
    
    .form-item {
@@ -357,6 +354,7 @@
        font-size: 28rpx;
        padding: 6rpx 0;
        margin-bottom: 20rpx;
        margin-left: 10px;
        
        .title {
            width: 180rpx;
@@ -372,7 +370,8 @@
            display: flex;
            align-items: center;
            
            input, textarea {
            input,
            textarea {
                width: 100%;
                font-size: 30rpx;
            }
pages/index/tab1.vue
@@ -95,14 +95,7 @@
                        id: 7,
                        hidden: false,
                    },
                    {
                        img: '../../static/icon/icon12.png',
                        text: '员工签到记录单列表',
                        tip: '点击进入',
                        url: '/pages/EmployeeRecords/EmployeeRecordsBillList',
                        id: 8,
                        hidden: false,
                    }
                ]
            }
        },
pages/index/tab2.vue
@@ -510,6 +510,14 @@
                        "id": 63,
                        "hidden": false
                    },
                    {
                        img: '../../static/icon/icon12.png',
                        text: '员工签到记录单列表',
                        tip: '点击进入',
                        url: '/pages/EmployeeRecords/EmployeeRecordsBillList',
                        id: 64,
                        hidden: false,
                    }
                ]
            }
        },