| | |
| | | size: this.size |
| | | }; |
| | | // 浣跨敤鍒涙櫤瀹屾暣鎺ュ彛 |
| | | this.$u.post(res.data.CZFJiP + '/api/PDA/AGVPage', null).then(res => { |
| | | this.$u.post(res.data.CZFJiP + '/makerwit/selectKHWareType', null).then(res => { |
| | | console.log(res); |
| | | this.$t.message.closeLoading(); |
| | | cb && cb(); |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | |
| | | clickLoadMore(e) { |
| | | this.status = 'loading'; |
| | | this.current += 1; |
| | |
| | | return; |
| | | } |
| | | let formDataParam = { |
| | | dTaskId: this.generateUUID(), |
| | | dTaskId: 2, |
| | | productCode: productCode, |
| | | orderNo: orderNo, |
| | | number: availableQuantity > 4 ? 4 : availableQuantity, |
| | |
| | | if (res.status) { |
| | | const value = uni.getStorageSync('storage_key_ipAddress'); |
| | | // 浣跨敤鍒涙櫤瀹屾暣鎺ュ彛 |
| | | this.$u.post(value.CZZJip + '/api/PDA/insertTask', formDataParam).then(res => { |
| | | this.$u.post(value.CZZJip + '/makerwit/insertTask', formDataParam).then(res => { |
| | | this.$t.message.closeLoading(); |
| | | if (res.code == 200) { |
| | | this.$t.message.toast('鍛煎彨鎴愬姛'); |
| | |
| | | current: this.current, |
| | | size: this.size |
| | | }; |
| | | // 浣跨敤鍒涙櫤瀹屾暣鎺ュ彛 |
| | | this.$u.post('http://192.168.31.240:9090/makerwit/selectKHWareType', null).then(res => { |
| | | console.log(res); |
| | | this.$t.message.closeLoading(); |
| | | cb && cb(); |
| | | if (cb != null) this.listData = []; |
| | | this.listData = [...this.listData, ...res.data]; |
| | | console.log(this.listData); |
| | | }).catch((err) => { |
| | | this.$t.message.toast(err.message); |
| | | }); |
| | | }, |
| | | uni.getStorage({ |
| | | key: 'storage_key_ipAddress', |
| | | success: (res) => { |
| | |
| | | size: this.size |
| | | }; |
| | | // 浣跨敤鍒涙櫤瀹屾暣鎺ュ彛 |
| | | this.$u.post(res.data.CZFJiP + '/api/PDA/AGVPage', null).then(res => { |
| | | // this.$u.post('http://192.168.31.240:9090/makerwit/selectKHWareType', null).then(res => { |
| | | this.$u.post(res.data.CZFJiP + '/makerwit/selectKHWareType', null).then(res => { |
| | | console.log(res); |
| | | this.$t.message.closeLoading(); |
| | | cb && cb(); |
| | |
| | | return; |
| | | } |
| | | let formDataParam = { |
| | | dTaskId: this.generateUUID(), |
| | | dTaskId: 2, |
| | | productCode: productCode, |
| | | orderNo: orderNo, |
| | | number: availableQuantity > 4 ? 4 : availableQuantity, |
| | | inputValue: inputValue, |
| | | DTaskId: this.generateUUID(), |
| | | DTaskId: 2, |
| | | ProductCode: productCode, |
| | | OrderNo: orderNo, |
| | | Number: availableQuantity > 4 ? 4 : availableQuantity, |
| | |
| | | if (res.status) { |
| | | const value = uni.getStorageSync('storage_key_ipAddress'); |
| | | // 浣跨敤鍒涙櫤瀹屾暣鎺ュ彛 |
| | | this.$u.post(value.CZFJiP + '/api/PDA/insertTask', formDataParam).then(res => { |
| | | this.$u.post(value.CZFJiP + '/makerwit/insertTask', formDataParam).then(res => { |
| | | this.$t.message.closeLoading(); |
| | | console.log(formDataParam); |
| | | if (res.code == 200) { |
| | |
| | | var taskModel = new DtCZTask() |
| | | { |
| | | TaskTaskID = dto.DTaskId, |
| | | //TaskType = dto.TaskType, |
| | | TaskType = dto.TaskType, |
| | | TaskEndAddress = dto.InputValue, |
| | | TaskStatus = TaskInStatusEnum.InNew.ToString(), |
| | | CreateDate = DateTime.Now, |
| | | TaskStartDate = DateTime.Now, |
| | | TaskEndDate = DateTime.Now.AddDays(1), |
| | | //TaskName = dto.TaskType.ToString(), |
| | | TaskName = dto.TaskType.ToString(), |
| | | TaskNumber = dto.Number, |
| | | TaskExecutor = "CZ", |
| | | TaskOrderNo = dto.OrderNo, |