| | |
| | | "type" : "uni-app:app-ios" |
| | | }, |
| | | { |
| | | "customPlaygroundType" : "local", |
| | | "customPlaygroundType" : "device", |
| | | "localRepoPath" : "D:/WorkBench/ZY_APP_Dev/STUWMS/unpackage/debug", |
| | | "openVueDevtools" : true, |
| | | "packageName" : "com.shebeiguanli.www", |
| | |
| | | "name" : "智云LMES", |
| | | "appid" : "__UNI__B002F49", |
| | | "description" : "", |
| | | "versionName" : "1.0.53", |
| | | "versionCode" : 153, |
| | | "versionName" : "1.0.56", |
| | | "versionCode" : 156, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | 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%;" |
| | |
| | | HEmpNameList: [], |
| | | arrayHCenterName: [], //工作中心 |
| | | HCenterNameList: [], |
| | | |
| | | arrayHSEQName:[],//序列 |
| | | HSEQNameList:[], |
| | | isEdit: false, |
| | | hform: { |
| | | HInterID: '', |
| | |
| | | HGroupID: 0, |
| | | HEmpName: '', |
| | | HEmpID: 0, |
| | | HSEQName:'', |
| | | HSEQNumber:0, |
| | | HRemark: '', |
| | | HDate: getDateTime.dateTimeStr('y-m-d'), |
| | | |
| | |
| | | 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 |
| | |
| | | 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) |
| | |
| | | }, (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) |
| | | }) |
| | | }, |
| | | //日期 |
| | |
| | | } |
| | | } |
| | | }, |
| | | //序列获取 |
| | | 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 = { |
| | |
| | | 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, |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | |
| | | 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({ |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | HSupNameList:[], |
| | | arrayHEmpName:[],//操作员 |
| | | HEmpNameList:[], |
| | | |
| | | arrayHSEQName:[],//序列 |
| | | HSEQNameList:[], |
| | | isEdit: false, |
| | | hform:{ |
| | | HInterID:'', |
| | |
| | | HProcID:'', |
| | | HPRDOrg:'', |
| | | HOrderProcNO:'', |
| | | |
| | | HSEQName:'', |
| | | HSEQNumber:0, |
| | | // HICMOInterID:'', |
| | | // HICMOQty:'', |
| | | // HProcExchHinteID:'', |
| | |
| | | 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 |
| | |
| | | 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) |
| | |
| | | },(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) |
| | | }) |
| | | }, |
| | | //日期 |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | //序列获取 |
| | | 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(){ |
| | | //是否编辑 |
| | |
| | | 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, |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | 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({ |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | addNew() { |
| | | uni.redirectTo({ |
| | | url: '/pages/weiwaigxIn/form?OperationType=1' |
| | | }) |
| | | }, |
| | | submit() { |
| | | //去除分号以免后端分解报错 |
| | | this.hform.HMaterName= this.hform.HMaterName.replace(/;/g, ''); |
| | |
| | | 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%;" |
| | |
| | | HGroupNameList: [], |
| | | arrayHDept: [], // 部门 |
| | | HDeptList: [], |
| | | |
| | | arrayHSEQName:[],//序列 |
| | | HSEQNameList:[], |
| | | isEdit: false, |
| | | hform: { |
| | | HStockOrgID: uni.getStorageSync('OrganizationID'), |
| | |
| | | HProcID: 0, |
| | | HPRDOrg: '', |
| | | HOrderProcNO: '', |
| | | |
| | | HSEQName:'', |
| | | HSEQNumber:0, |
| | | // HPRDOrg:'', |
| | | // HICMOBillNo:'', |
| | | // HICMOInterID:'', |
| | |
| | | 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 |
| | |
| | | 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) |
| | |
| | | }, (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) |
| | | }) |
| | | }, |
| | | //日期 |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | //序列获取 |
| | | 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() { |
| | | //是否编辑 |
| | |
| | | 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, |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | 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({ |