| | |
| | | } |
| | | |
| | | } |
| | | this.getHMaterList() |
| | | this.getHProcList() |
| | | this.getHSupList() |
| | | //this.getHMaterList() |
| | | //this.getHProcList() |
| | | //this.getHSupList() |
| | | this.getHSourceList() |
| | | this.getHGroupList() |
| | | this.getHEmpList() |
| | |
| | | this.$forceUpdate(); |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | title: "班组获取失败"+res.data.Message, |
| | | icon: 'none' |
| | | }) |
| | | } |
| | |
| | | uni.request({ |
| | | url: this.serverUrl + '/api/newBill/getWorkCenterList', |
| | | data: { |
| | | sWhere: '' |
| | | sWhere: ' and HUSEORGID = '+uni.getStorageSync('OrganizationID') |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.code == 1) { |
| | | this.HCenterNameList = res.data.data.Gy_Source |
| | | for (var i = 0; i < res.data.data.Gy_Source.length; i++) { |
| | | this.arrayHCenterName[i] = res.data.data.Gy_Source[i].工作中心 |
| | | this.HCenterNameList = res.data.data.Gy_WorkCenter |
| | | for (var i = 0; i < res.data.data.Gy_WorkCenter.length; i++) { |
| | | this.arrayHCenterName[i] = res.data.data.Gy_WorkCenter[i].工作中心 |
| | | } |
| | | this.$forceUpdate(); |
| | | } else { |
| | |
| | | }, |
| | | addNew() { |
| | | uni.redirectTo({ |
| | | url: '/pages/gongxuOut/Cj_StationOutBill?OperationType=1' |
| | | url: '/pages/gongxuOut/Cj_StationOutBill_Standard?OperationType=1' |
| | | }) |
| | | }, |
| | | submit() { |
| | |
| | | }) |
| | | setTimeout(() => { |
| | | uni.redirectTo({ |
| | | url: '/pages/gongxuOut/Cj_StationOutBillList' |
| | | url: '/pages/gongxuOut/Cj_StationOutBill_StandardList' |
| | | }) |
| | | }, 1000) |
| | | } else { |
| | |
| | | console.log('用户点击确定'); |
| | | this.getNextProc() |
| | | // uni.redirectTo({ |
| | | // url: '/pages/gongxuOut/Cj_StationOutBill?OperationType=1' |
| | | // url: '/pages/gongxuOut/Cj_StationOutBill_Standard?OperationType=1' |
| | | // }) |
| | | } else if (res.cancel) { |
| | | console.log('用户点击取消'); |
| | |
| | | // uni.navigateBack(); |
| | | // }, 50) |
| | | uni.redirectTo({ |
| | | url: '/pages/gongxuOut/Cj_StationOutBill?OperationType=1' |
| | | url: '/pages/gongxuOut/Cj_StationOutBill_Standard?OperationType=1' |
| | | }) |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | }) |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: res.data.Message |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | |
| | | icon: 'none' |
| | | }) |
| | | uni.redirectTo({ |
| | | url: '/pages/gongxuOut/Cj_StationOutBill?OperationType=1' |
| | | url: '/pages/gongxuOut/Cj_StationOutBill_Standard?OperationType=1' |
| | | }) |
| | | }else{ |
| | | this.hform.HProcNo=nextProcess["工序号"]; |
| | | const HNextBarCode = this.hform.HBarCode+"@"+this.hform.HProcNo+"@"+this.hform.HSEQNumber |
| | | uni.redirectTo({ |
| | | url: '/pages/gongxuOut/Cj_StationOutBill?OperationType=1&HBarCode='+HNextBarCode |
| | | url: '/pages/gongxuOut/Cj_StationOutBill_Standard?OperationType=1&HBarCode='+HNextBarCode |
| | | }) |
| | | } |
| | | }else{ |