| | |
| | | "localRepoPath" : "C:/Users/19858/Desktop/智云迈思/APP/STUWMS/unpackage/debug", |
| | | "openVueDevtools" : true, |
| | | "packageName" : "com.iflytek.inputmethod", |
| | | "playground" : "standard", |
| | | "playground" : "custom", |
| | | "type" : "uni-app:app-android" |
| | | } |
| | | ] |
| | |
| | | "name" : "智云LMES", |
| | | "appid" : "__UNI__B002F49", |
| | | "description" : "", |
| | | "versionName" : "2.095", |
| | | "versionCode" : 295, |
| | | "versionName" : "2.096", |
| | | "versionCode" : 296, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | }, |
| | | cmdAdd() { |
| | | uni.redirectTo({ |
| | | url: "/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast" |
| | | url: "./Kf_QCStockInCheckBill_Fast2" |
| | | }) |
| | | }, |
| | | async cmdSubmit() { // 后端在单次上传文件提交后会删除本地文件,一次只能提交一个数据 |
| | |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | | uni.redirectTo({ |
| | | url: './kf_QCStockInCheckBill_Fast2' |
| | | url: '/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast2' |
| | | }) |
| | | } else if (res.cancel) { |
| | | console.log('用户点击取消'); |
| | |
| | | '&HSourceName=' + this.hform.HSourceName + |
| | | '&HSourceBillNo=' + this.hform.HSourceBillNo + |
| | | '&HType=' + item + |
| | | '&OperationType=4&linterid=&HSouceBillType=7507' |
| | | '&OperationType=5&linterid='+ this.hform.HInterID +'&HSouceBillType=7507' |
| | | }) |
| | | }, |
| | | // 源单类型选择 |
| | |
| | | '&HSourceName=' + this.hform.HSourceName + |
| | | '&HSourceBillNo=' + this.hform.HSourceBillNo + |
| | | '&HType=' + item + |
| | | '&OperationType=4&linterid=&HSouceBillType=7505' |
| | | '&OperationType=5&linterid='+ this.hform.HInterID +'&HSouceBillType=7505' |
| | | }) |
| | | }, |
| | | async auditBill() { |
| | |
| | | '&HSourceName=' + this.hform.HSourceName + |
| | | '&HSourceBillNo=' + this.hform.HSourceBillNo + |
| | | '&HType=' + item + |
| | | '&OperationType=4&linterid=&HSouceBillType=7520' |
| | | '&OperationType=5&linterid='+ this.hform.HInterID +'&HSouceBillType=7520' |
| | | }) |
| | | }, |
| | | // 源单类型选择 |
| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="list"> |
| | | <view class="list" v-if="currentOrder.length > 0"> |
| | | <uni-card :title="'当期订单:'+currentOrder[0].HSourceBillNo" |
| | | style="margin: 10px;"> |
| | | <view class="card-detail"> |
| | |
| | | HUpDateDate: '', |
| | | HChecker: '', |
| | | HCheckDate: '', |
| | | |
| | | HICMOInterID: 0, |
| | | HICMOEntryID: 0, |
| | | HICMOBillNo: '', |
| | | |
| | | HProcExchInterID: 0, |
| | | HProcExchEntryID: 0, |
| | | HProcExchBillNo: '', |
| | | |
| | | HBarCode: '', |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.hform.HContext = e.HType |
| | | this.hform.HBillTypeName = e.HSouceBillType |
| | | this.eData = e |
| | | } else if (this.OperationType == 5) { |
| | | // 检验单跳转 |
| | | console.log('e: ', e); |
| | | this.getMaxNum() |
| | | this.set_CheckBillStatus(e.linterid, e.HType, e.HSourceName, e.HSouceBillType, e.HBarCode || ''); //回填信息 |
| | | this.hform.HContext = e.HType |
| | | this.hform.HBillTypeName = e.HSouceBillType |
| | | this.eData = e |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | dynamicDesc: { |
| | | get() { |
| | | if (this.OperationType == 4) { |
| | | return '异常反馈单号:' + this.hform.HBillNo + ',异常类型:' + this.eData.HType + ',订单号:' + this |
| | | .eData.HICMOBillNo + ',流转卡号:' + this.eData.HICMOBillNo + |
| | | ', 产品编码:' + this.hform.HMaterNumber + ',产品名称:' + this.hform.HMaterName + ',规格型号:' + this |
| | | .hform.HMaterModel + |
| | | ',发送人:' + this.hform.HMaker + ',发生时间:' + this.hform.HDate + ',生产资源:' + this.hform |
| | | .HSourceName + ',设备编码:' + this.hform.EquipNumber + ',对应处理人:' + this.hform.HHandleEmpName |
| | | } |
| | | if (this.OperationType == 5) { |
| | | return '异常反馈单号:' + this.hform.HBillNo + ',异常类型:' + this.eData.HType + ',订单号:' + this |
| | | .eData.HICMOBillNo + ',流转卡号:' + this.eData.HICMOBillNo + |
| | | ', 产品编码:' + this.hform.HMaterNumber + ',产品名称:' + this.hform.HMaterName + ',规格型号:' + this |
| | | .hform.HMaterModel + |
| | | ',发送人:' + this.hform.HMaker + ',发生时间:' + this.hform.HDate + ',生产资源:' + this.hform |
| | | .HSourceName + ',设备编码:' + this.hform.EquipNumber + ',对应处理人:' + this.hform.HHandleEmpName |
| | | + `,检验单号: ${this.hform.HMainSourceBillNo}` |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | // 检验单跳转 |
| | | async set_CheckBillStatus(HSourceInterID, HType, HSourceName, HSourceBillType, HBarCode) { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/Web/getCheckBillStatus', |
| | | data: { |
| | | HInterID: HSourceInterID, |
| | | HBillType: HSourceBillType |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | data, |
| | | count, |
| | | message |
| | | } = res.data |
| | | if (count == 1) { |
| | | this.hform.HMaterNumber = data[0].产品内码 //产品名称 |
| | | this.hform.HMaterName = data[0].产品名称 //产品名称 |
| | | this.hform.HMaterModel = data[0].产品型号 //产品规格 |
| | | this.hform.HMainSourceBillNo = data[0].单据号 //源单单号 |
| | | this.hform.HMainSourceInterID = data[0].hmainid //源单主内码 |
| | | this.hform.HMainSourceEntryID = data[0].hsubid //源单子内码 |
| | | this.hform.HMainSourceBillType = HSourceBillType //源单类型 |
| | | this.hform.HQty = data[0].检验数量 //计划数量 |
| | | this.hform.HSourceID = data[0].HSourceID //生产资源id |
| | | this.hform.HSourceName = data[0].生产资源名称 //生产资源 |
| | | this.hform.HProcExchBillNo = data[0].工序流转卡号 //源单单号 |
| | | this.hform.HProcExchEntryID = data[0].HProcExchInterID //源单主内码 |
| | | this.hform.HProcExchInterID = data[0].HProcExchEntryID //源单子内码 |
| | | this.hform.HICMOBillNo = data[0].生产订单号 |
| | | this.hform.HICMOInterID = data[0].HICMOInterID |
| | | this.hform.HICMOEntryID = data[0].HICMOEntryID |
| | | |
| | | this.hform.HBarCode = data[0]["条码"] || '' |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `下推异常反馈单失败: ${message}` |
| | | }) |
| | | } |
| | | |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/Get_ErrMsgBackType', |
| | | type: "GET", |
| | | data: { |
| | | "TypeName": HType |
| | | }, |
| | | success: (res) => { |
| | | var data = res.data.data[0] |
| | | if (res.data.count == 1) { |
| | | this.hform.HErrMsgBackTypeID = data.HItemID |
| | | this.hform.HErrMsgBackTypeName = data.HName |
| | | } else { |
| | | uni.showToast({ |
| | | title: '获取异常类型数据失败', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '获取异常类型失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/set_EquipFile', |
| | | type: "GET", |
| | | data: { |
| | | "HSourceName": HSourceName |
| | | }, |
| | | success: (res) => { |
| | | var data = res.data.data[0] |
| | | console.log(res.data) |
| | | if (res.data.count == 1) { |
| | | this.hform.EquipNumber = data.设备编码 |
| | | |
| | | this.getEquipBindingEmpInfo() |
| | | } else { |
| | | uni.showToast({ |
| | | title: '获取设备编码失败', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '获取设备编码失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | |
| | | setTimeout(() => { |
| | | uni.hideLoading() |
| | | }, 1000) |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `下推异常反馈单失败: ${err}` |
| | | }) |
| | | } |
| | | }, |
| | | //报工台跳转 |
| | | set_Sc_ICMOBillStatus(HSourceBill, HType, HSourceName) { |
| | | uni.request({ |
| | |
| | | uni.showLoading({ |
| | | title: '请稍候' |
| | | }) |
| | | if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) { |
| | | if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4 || this.OperationType == 5) { |
| | | this.refSav = "Add"; |
| | | } |
| | | //若为编辑-保存,则更新修改人和修改时间 |