wtt
2025-08-19 edd7f4270d1c1ae41228bb35973b6a9a47057c74
工序出战汇报,委外接收发出单添加序列号选择
5个文件已修改
463 ■■■■■ 已修改文件
.hbuilderx/launch.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/gongxuOut/form.vue 156 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwaigxIn/form.vue 153 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwaigxOut/form.vue 148 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.hbuilderx/launch.json
@@ -21,7 +21,7 @@
            "type" : "uni-app:app-ios"
        },
        {
            "customPlaygroundType" : "local",
            "customPlaygroundType" : "device",
            "localRepoPath" : "D:/WorkBench/ZY_APP_Dev/STUWMS/unpackage/debug",
            "openVueDevtools" : true,
            "packageName" : "com.shebeiguanli.www",
manifest.json
@@ -2,8 +2,8 @@
    "name" : "智云LMES",
    "appid" : "__UNI__B002F49",
    "description" : "",
    "versionName" : "1.0.53",
    "versionCode" : 153,
    "versionName" : "1.0.56",
    "versionCode" : 156,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
pages/gongxuOut/form.vue
@@ -10,11 +10,18 @@
                    style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
                    size="20" @click="toScanCode"></uni-icons>
            </view>
            <view class="form-item">
                <view class="title">序列号:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHSEQName" placeholder="请选择序列" v-model="hform.HSEQName"
                        @input="HSEQNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>流水号:</view>
                <view class="right" style="width: 380rpx;">
                    <input v-model="hform.HProcNo" placeholder="请输入(或扫描)流水号"
                        @blur="getHProcNoData(hform.HBarCode,hform.HProcNo)" />
                        @blur="getHProcNoData2(hform.HBarCode,hform.HProcNo,hform.HSEQNumber)" />
                </view>
                <uni-icons type="scan"
                    style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
@@ -519,7 +526,8 @@
                HEmpNameList: [],
                arrayHCenterName: [], //工作中心
                HCenterNameList: [],
                arrayHSEQName:[],//序列
                HSEQNameList:[],
                isEdit: false,
                hform: {
                    HInterID: '',
@@ -543,6 +551,8 @@
                    HGroupID: 0,
                    HEmpName: '',
                    HEmpID: 0,
                    HSEQName:'',
                    HSEQNumber:0,
                    HRemark: '',
                    HDate: getDateTime.dateTimeStr('y-m-d'),
@@ -717,9 +727,18 @@
                    var str = ret.resp_result
                    if (str.includes('@')) {
                        const parts = str.split('@');
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.getHBarCodeData(parts[0], 1)
                        //如果代码包含子序列
                        if(parts.length==3){
                            this.hform.HBarCode = parts[0]
                            this.hform.HProcNo = parts[1]
                            this.hform.HSEQNumber = parts[2]
                            this.getHBarCodeData(parts[0], 2)
                        }else{
                            this.hform.HBarCode = parts[0]
                            this.hform.HProcNo = parts[1]
                            this.getHBarCodeData(parts[0], 1)
                        }
                        // this.getHProcNoData(parts[0],parts[1])
                    } else {
                        this.hform.HBarCode = ret.resp_result
@@ -750,9 +769,17 @@
                var str = this.hform.HBarCode
                if (str.includes('@')) {
                    const parts = str.split('@');
                    this.hform.HBarCode = parts[0]
                    this.hform.HProcNo = parts[1]
                    this.getHBarCodeData(parts[0], 1)
                    //如果代码包含子序列
                    if(parts.length==3){
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.hform.HSEQNumber = parts[2]
                        this.getHBarCodeData(parts[0], 2)
                    }else{
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.getHBarCodeData(parts[0], 1)
                    }
                    // this.getHProcNoData(parts[0],parts[1])
                } else {
                    this.getHBarCodeData(this.hform.HBarCode)
@@ -768,7 +795,7 @@
                }, (ret) => {
                    console.log(ret.resp_result)
                    this.hform.HProcNo = ret.resp_result
                    this.getHProcNoData(this.hform.HBarCode, ret.resp_result)
                    this.getHProcNoData2(this.hform.HBarCode, ret.resp_result,this.hform.HSEQNumber)
                })
            },
            //日期
@@ -1130,6 +1157,65 @@
                    }
                }
            },
            //序列获取
            getHSEQList(e){
                uni.request({
                    url: this.serverUrl + 'Cj_StationOutBill/getAllHSEQ',
                    data: {
                        HInterID:this.hform.HProcExchHinteID
                    },
                    success: (res) => {
                        if (res.data.code == 1) {
                            this.HSEQNameList = res.data.data
                            for (var i = 0; i < res.data.data.length; i++) {
                                this.arrayHSEQName[i] = res.data.data[i].HSEQName
                            }
                            this.$forceUpdate();
                            //没有序列号默认主序列
                            if(e==1){
                                //设置主序列
                                this.setMainHSEQ();
                                this.getHProcNoData2(this.hform.HBarCode,this.hform.HProcNo,this.hform.HSEQNumber)
                            }else if(e==2){
                                this.getHProcNoData2(this.hform.HBarCode,this.hform.HProcNo,this.hform.HSEQNumber)
                            }else{
                                //设置主序列
                                this.setMainHSEQ();
                            }
                        } else {
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        })
                    },
                });
            },
            //选择序列
            HSEQNameChange(e) {
                for (var i = 0; i < this.HSEQNameList.length; i++) {
                    if (this.HSEQNameList[i].HSEQName == e) {
                        this.hform.HSEQNumber = this.HSEQNameList[i].HSEQNumber
                    }
                }
            },
            //设置主序列
            setMainHSEQ(){
                for (var i = 0; i < this.HSEQNameList.length; i++) {
                    if (this.HSEQNameList[i].HSEQType == 'M') {
                        this.hform.HSEQNumber = this.HSEQNameList[i].HSEQNumber
                        this.hform.HSEQName = this.HSEQNameList[i].HSEQName
                        break;
                    }
                }
            },
            //汇报
            huibao() {
                var datas = {
@@ -1363,10 +1449,9 @@
                            this.hform.HCenterID = data.HCenterID
                            this.hform.NoOutboundHqty = (data.流转卡数量 - data.出站报废关联数量 - data.出站关联数量)
                            this.hform.HStyleNumber = data['款号']
                            //设置序列
                            this.getHSEQList(e);
                            
                            if (e) {
                                this.getHProcNoData(this.hform.HBarCode, this.hform.HProcNo)
                            }
                        } else {
                            uni.showToast({
                                title: res.data.Message,
@@ -1427,7 +1512,52 @@
                    },
                });
            },
            getHProcNoData2(HBarCode, HProcNo,HSEQNumber) {
                uni.request({
                    url: this.serverUrl + '/Cj_StationOutBill/txtHProcNo_KeyDown',
                    data: {
                        sBillNo: HBarCode,
                        sProcNo: HProcNo,
                        HSEQNumber:HSEQNumber
                    },
                    success: (res) => {
                        console.log(3, res);
                        if (res.data.code == 1) {
                            var data = res.data.data[0]
                            this.hform.lngBillSubKey = data.hsubid
                            this.hform.HProcName = data.工序
                            this.hform.HProcID = data.HProcID
                            this.hform.HCenterName = data.工作中心
                            this.hform.HCenterID = data.HCenterID
                            this.hform.NoOutboundHqty = (data.流转卡数量 - data.出站报废关联数量 - data.出站关联数量)
                            this.hform.HNotReportQty = data['未报工数量']
                            this.hform.HProcNumber = data['工序代码']
                            this.hform.HIsTimeFlag = data['是否计时'] ? 1 : 0
                            this.hform.HSEQName = data.序列名称
                           // this.hform.HStyleNumber = data['款号']
                            // this.hform.HQty = data.合格数量
                            if (data.首道工序 == "是") {
                                this.FirstEndHProcNo = 1
                            }
                            if (data.末道工序 == "是") {
                                this.FirstEndHProcNo = 2
                            }
                        } else {
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        })
                    },
                });
            },
            //获取最新的报工日期
            getNewHRelBeginDate(){
                uni.request({
pages/weiwaigxIn/form.vue
@@ -9,9 +9,16 @@
                <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanCode"></uni-icons>
            </view>
            <view class="form-item">
                <view class="title">序列号:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHSEQName" placeholder="请选择序列" v-model="hform.HSEQName"
                        @input="HSEQNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>流水号:</view>
                <view class="right" style="width: 380rpx;">
                    <input v-model="hform.HProcNo" placeholder="请输入(或扫描)流水号" @blur="getHProcNoData(hform.HBarCode,hform.HProcNo)"/>
                    <input v-model="hform.HProcNo" placeholder="请输入(或扫描)流水号" @blur="getHProcNoData2(hform.HBarCode,hform.HProcNo,hform.HSEQNumber)"/>
                </view>
                <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanProcNo"></uni-icons>
            </view>
@@ -303,6 +310,7 @@
                <button v-if="btnType != 0 && btnType == 2" class="btn-b" style="margin-left: 20rpx;" size="mini" @tap="check">审核</button>
                <button v-if="btnType != 0 && btnType == 3" class="btn-d" style="margin-left: 20rpx;" size="mini" @tap="abandonCheck">反审核</button>
                <!-- <button class="btn-b" size="mini" @tap="showMask = true">新增</button> -->
                <button class="btn-b" size="mini" @tap="addNew">新增</button>
                <button class="btn-c" size="mini" @tap="goBack">退出</button>
            </view>
        </view>
@@ -329,7 +337,8 @@
                HSupNameList:[],
                arrayHEmpName:[],//操作员
                HEmpNameList:[],
                arrayHSEQName:[],//序列
                HSEQNameList:[],
                isEdit: false,
                hform:{
                    HInterID:'',
@@ -359,7 +368,8 @@
                    HProcID:'',
                    HPRDOrg:'',
                    HOrderProcNO:'',
                    HSEQName:'',
                    HSEQNumber:0,
                    // HICMOInterID:'',
                    // HICMOQty:'',
                    // HProcExchHinteID:'',
@@ -465,9 +475,16 @@
                    var str = ret.resp_result
                    if(str.includes('@')) {
                      const parts = str.split('@');
                      this.hform.HBarCode = parts[0]
                      this.hform.HProcNo = parts[1]
                      this.getHBarCodeData(parts[0],1)
                      if(parts.length==3){
                          this.hform.HBarCode = parts[0]
                          this.hform.HProcNo = parts[1]
                          this.hform.HSEQNumber = parts[2]
                          this.getHBarCodeData(parts[0], 2)
                      }else{
                          this.hform.HBarCode = parts[0]
                          this.hform.HProcNo = parts[1]
                          this.getHBarCodeData(parts[0], 1)
                      }
                      // this.getHProcNoData(parts[0],parts[1])
                    }else{
                        this.hform.HBarCode = ret.resp_result
@@ -479,9 +496,16 @@
                var str = this.hform.HBarCode
                if (str.includes('@')) {
                    const parts = str.split('@');
                    this.hform.HBarCode = parts[0]
                    this.hform.HProcNo = parts[1]
                    this.getHBarCodeData(parts[0], 1)
                    if(parts.length==3){
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.hform.HSEQNumber = parts[2]
                        this.getHBarCodeData(parts[0], 2)
                    }else{
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.getHBarCodeData(parts[0], 1)
                    }
                    // this.getHProcNoData(parts[0],parts[1])
                } else {
                    this.getHBarCodeData(this.hform.HBarCode)
@@ -497,7 +521,7 @@
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HProcNo = ret.resp_result
                    this.getHProcNoData(this.hform.HBarCode,ret.resp_result)
                    this.getHProcNoData2(this.hform.HBarCode,ret.resp_result,this.hform.HSEQNumber)
                })
            },
            //日期
@@ -657,7 +681,65 @@
                    }
                }
            },
            //序列获取
            getHSEQList(e){
                uni.request({
                    url: this.serverUrl + 'Cj_StationOutBill/getAllHSEQ',
                    data: {
                        HInterID:this.hform.HProcExchHinteID
                    },
                    success: (res) => {
                        if (res.data.code == 1) {
                            this.HSEQNameList = res.data.data
                            for (var i = 0; i < res.data.data.length; i++) {
                                this.arrayHSEQName[i] = res.data.data[i].HSEQName
                            }
                            this.$forceUpdate();
                            //没有序列号默认主序列
                            if(e==1){
                                //设置主序列
                                this.setMainHSEQ();
                                this.getHProcNoData2(this.hform.HBarCode,this.hform.HProcNo,this.hform.HSEQNumber)
                            }else if(e==2){
                                this.getHProcNoData2(this.hform.HBarCode,this.hform.HProcNo,this.hform.HSEQNumber)
                            }else{
                                //设置主序列
                                this.setMainHSEQ();
                            }
                        } else {
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        })
                    },
                });
            },
            //选择序列
            HSEQNameChange(e) {
                for (var i = 0; i < this.HSEQNameList.length; i++) {
                    if (this.HSEQNameList[i].HSEQName == e) {
                        this.hform.HSEQNumber = this.HSEQNameList[i].HSEQNumber
                    }
                }
            },
            //设置主序列
            setMainHSEQ(){
                for (var i = 0; i < this.HSEQNameList.length; i++) {
                    if (this.HSEQNameList[i].HSEQType == 'M') {
                        this.hform.HSEQNumber = this.HSEQNameList[i].HSEQNumber
                        this.hform.HSEQName = this.HSEQNameList[i].HSEQName
                        break;
                    }
                }
            },
            //编辑
            ifEdit(){
                //是否编辑
@@ -796,10 +878,8 @@
                            this.hform.HDept= this.userInfo.HDept
                            this.hform.HProcExchHinteID= data.hmainid
                            this.hform.HPRDOrg= data.组织
                            this.getHSEQList(e);
                            
                            if(e){
                                this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo)
                            }
                        }else{
                            uni.showToast({
                                title:res.data.Message,
@@ -852,6 +932,46 @@
                    },
                });
            },
            getHProcNoData2(HBarCode,HProcNo,HSEQNumber){
                uni.request({
                    url: this.serverUrl + '/Cj_StationEntrustInBill/txtHProcNo_KeyDown_Sec',
                    data: {
                        sBillNo: HBarCode,
                        sProcNo: HProcNo,
                        HSEQNumber:HSEQNumber},
                    success: (res) => {
                        console.log(3,res);
                        if(res.data.code == 1){
                            var data = res.data.data[0]
                            this.showHProcNoData = true
                            this.hform.lngBillSubKey= data.hsubid
                            this.hform.HProcName= data.工序
                            this.hform.HProcID= data.HProcID
                            this.hform.HCenterName= data.工作中心
                            this.hform.HCenterID= data.HCenterID
                            this.hform.HNotReportQty = data['未发出数量']
                            this.hform.HProcNumber = data['工序代码']
                            this.hform.HSEQName = data.序列名称
                            if(!this.hform.HSupName){
                                this.hform.HSupName= data.供应商
                                this.hform.HSupID= data.HSupID
                            }
                        }else{
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            icon:'none'
                        })
                    },
                });
            },
            //新增
            getNewData(){
                uni.request({
@@ -878,6 +998,11 @@
                    },
                });
            },
            addNew() {
                uni.redirectTo({
                    url: '/pages/weiwaigxIn/form?OperationType=1'
                })
            },
            submit() {
                //去除分号以免后端分解报错
                this.hform.HMaterName= this.hform.HMaterName.replace(/;/g, '');
pages/weiwaigxOut/form.vue
@@ -11,10 +11,17 @@
                    size="20" @click="toScanCode"></uni-icons>
            </view>
            <view class="form-item">
                <view class="title">序列号:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHSEQName" placeholder="请选择序列" v-model="hform.HSEQName"
                        @input="HSEQNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>流水号:</view>
                <view class="right" style="width: 380rpx;">
                    <input v-model="hform.HProcNo" placeholder="请输入(或扫描)流水号"
                        @blur="getHProcNoData(hform.HBarCode,hform.HProcNo)" />
                        @blur="getHProcNoData2(hform.HBarCode,hform.HProcNo,hform.HSEQNumber)" />
                </view>
                <uni-icons type="scan"
                    style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
@@ -402,7 +409,8 @@
                HGroupNameList: [],
                arrayHDept: [], // 部门
                HDeptList: [],
                arrayHSEQName:[],//序列
                HSEQNameList:[],
                isEdit: false,
                hform: {
                    HStockOrgID: uni.getStorageSync('OrganizationID'),
@@ -435,7 +443,8 @@
                    HProcID: 0,
                    HPRDOrg: '',
                    HOrderProcNO: '',
                    HSEQName:'',
                    HSEQNumber:0,
                    // HPRDOrg:'',
                    // HICMOBillNo:'',
                    // HICMOInterID:'',
@@ -567,9 +576,16 @@
                    var str = ret.resp_result
                    if (str.includes('@')) {
                        const parts = str.split('@');
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.getHBarCodeData(parts[0], 1)
                        if(parts.length==3){
                            this.hform.HBarCode = parts[0]
                            this.hform.HProcNo = parts[1]
                            this.hform.HSEQNumber = parts[2]
                            this.getHBarCodeData(parts[0], 2)
                        }else{
                            this.hform.HBarCode = parts[0]
                            this.hform.HProcNo = parts[1]
                            this.getHBarCodeData(parts[0], 1)
                        }
                        // this.getHProcNoData(parts[0],parts[1])
                    } else {
                        this.hform.HBarCode = ret.resp_result
@@ -581,9 +597,16 @@
                var str = this.hform.HBarCode
                if (str.includes('@')) {
                    const parts = str.split('@');
                    this.hform.HBarCode = parts[0]
                    this.hform.HProcNo = parts[1]
                    this.getHBarCodeData(parts[0], 1)
                    if(parts.length==3){
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.hform.HSEQNumber = parts[2]
                        this.getHBarCodeData(parts[0], 2)
                    }else{
                        this.hform.HBarCode = parts[0]
                        this.hform.HProcNo = parts[1]
                        this.getHBarCodeData(parts[0], 1)
                    }
                    // this.getHProcNoData(parts[0],parts[1])
                } else {
                    this.getHBarCodeData(this.hform.HBarCode)
@@ -599,7 +622,7 @@
                }, (ret) => {
                    console.log(ret.resp_result)
                    this.hform.HProcNo = ret.resp_result
                    this.getHProcNoData(this.hform.HBarCode, ret.resp_result)
                    this.getHProcNoData2(this.hform.HBarCode, ret.resp_result,this.hform.HProcNumber)
                })
            },
            //日期
@@ -840,7 +863,65 @@
                    }
                }
            },
            //序列获取
            getHSEQList(e){
                uni.request({
                    url: this.serverUrl + 'Cj_StationOutBill/getAllHSEQ',
                    data: {
                        HInterID:this.hform.HProcExchHinteID
                    },
                    success: (res) => {
                        if (res.data.code == 1) {
                            this.HSEQNameList = res.data.data
                            for (var i = 0; i < res.data.data.length; i++) {
                                this.arrayHSEQName[i] = res.data.data[i].HSEQName
                            }
                            this.$forceUpdate();
                            //没有序列号默认主序列
                            if(e==1){
                                //设置主序列
                                this.setMainHSEQ();
                                this.getHProcNoData2(this.hform.HBarCode,this.hform.HProcNo,this.hform.HSEQNumber)
                            }else if(e==2){
                                this.getHProcNoData2(this.hform.HBarCode,this.hform.HProcNo,this.hform.HSEQNumber)
                            }else{
                                //设置主序列
                                this.setMainHSEQ();
                            }
                        } else {
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        })
                    },
                });
            },
            //选择序列
            HSEQNameChange(e) {
                for (var i = 0; i < this.HSEQNameList.length; i++) {
                    if (this.HSEQNameList[i].HSEQName == e) {
                        this.hform.HSEQNumber = this.HSEQNameList[i].HSEQNumber
                    }
                }
            },
            //设置主序列
            setMainHSEQ(){
                for (var i = 0; i < this.HSEQNameList.length; i++) {
                    if (this.HSEQNameList[i].HSEQType == 'M') {
                        this.hform.HSEQNumber = this.HSEQNameList[i].HSEQNumber
                        this.hform.HSEQName = this.HSEQNameList[i].HSEQName
                        break;
                    }
                }
            },
            //编辑
            ifEdit() {
                //是否编辑
@@ -986,10 +1067,9 @@
                            this.hform.HProcExchHinteID = data.hmainid
                            this.hform.HPRDOrg = data.组织名称
                            this.hform.HPRDOrgID = data.HPRDORGID
                            //设置序列
                            this.getHSEQList(e);
                            
                            if (e) {
                                this.getHProcNoData(this.hform.HBarCode, this.hform.HProcNo)
                            }
                        } else {
                            uni.showToast({
                                title: res.data.Message,
@@ -1044,6 +1124,46 @@
                    },
                });
            },
            getHProcNoData2(HBarCode, HProcNo,HSEQNumber) {
                uni.request({
                    url: this.serverUrl + '/Cj_StationEntrustInBill/txtHProcNo_KeyDown_Sec',
                    data: {
                        sBillNo: HBarCode,
                        sProcNo: HProcNo,
                        HSEQNumber:HSEQNumber
                    },
                    success: (res) => {
                        console.log(3, res);
                        if (res.data.code == 1) {
                            var data = res.data.data[0]
                            this.hform.lngBillSubKey = data.hsubid
                            this.hform.HProcName = data.工序
                            this.hform.HProcID = data.HProcID
                            this.hform.HCenterName = data.工作中心
                            this.hform.HCenterID = data.HCenterID
                            this.hform.HNotReportQty = data['未报工数量']
                            this.hform.HProcNumber = data['工序代码']
                            this.hform.HSEQName = data.序列名称
                            if (!this.hform.HSupName) {
                                this.hform.HSupName = data.供应商
                                this.hform.HSupID = data.HSupID
                            }
                        } else {
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        })
                    },
                });
            },
            //新增
            getNewData() {
                uni.request({