| | |
| | | } |
| | | }, |
| | | submit(cb) { |
| | | this.$t.message.loading(); |
| | | let formDataParam = { |
| | | current: this.current, |
| | | size: this.size |
| | | }; |
| | | // 使ç¨åæºå®æ´æ¥å£ |
| | | this.$u.post(' http://192.168.30.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) => { |
| | | this.$t.message.loading(); |
| | | let formDataParam = { |
| | | current: this.current, |
| | | size: this.size |
| | | }; |
| | | // 使ç¨åæºå®æ´æ¥å£ |
| | | this.$u.post(res.data.CZFJiP + '/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); |
| | | }); |
| | | }, |
| | | fail: (err) => { |
| | | this.$t.message.toast('请å
设置IPå°å'); |
| | | uni.navigateTo({ |
| | | url: '/pages/SetAddress/SetAddress', |
| | | }); |
| | | }, |
| | | }); |
| | | }, |
| | | |
| | | clickLoadMore(e) { |
| | | this.status = 'loading'; |
| | | this.current += 1; |
| | |
| | | this.$t.message.toast('å¯å«æ°é为0ï¼æ æ³å«ä»»å¡'); |
| | | return; |
| | | } |
| | | let guid = this.generateUUID() |
| | | let formDataParam = { |
| | | dTaskId: this.generateUUID(), |
| | | dTaskId: guid, |
| | | productCode: productCode, |
| | | orderNo: orderNo, |
| | | taskNo: 2, |
| | | number: availableQuantity > 4 ? 4 : availableQuantity, |
| | | inputValue: inputValue, |
| | | DTaskId: guid, |
| | | ProductCode: productCode, |
| | | OrderNo: orderNo, |
| | | Number: availableQuantity > 4 ? 4 : availableQuantity, |
| | | InputValue: inputValue, |
| | | TaskType: "æ£æ" |
| | | // ...å
¶ä»éè¦ä¼ éçåæ° |
| | | }; |
| | | this.$u.post('/api/PDA/AddCZTask', formDataParam).then(res => { |
| | | if (res.status) { |
| | | const value = uni.getStorageSync('storage_key_ipAddress'); |
| | | // 使ç¨åæºå®æ´æ¥å£ |
| | | this.$u.post('http://192.168.30.240:9090/makerwit/insertTask', formDataParam).then(res => { |
| | | this.$u.post(value.CZZJip + '/makerwit/insertTask', formDataParam).then(res => { |
| | | this.$t.message.closeLoading(); |
| | | if (res.code == 200) { |
| | | if (res.code == 200) { |
| | | this.$t.message.toast('å¼å«æå'); |
| | | this.inputValue="", |
| | | this.numberValue="", |
| | | this.$refs.popup.close(); |
| | | // this.submit(); |
| | | } else { |
| | | this.$t.message.toast(res.msg); |
| | | this.$t.message.toast(res.message); |
| | | } |
| | | }); |
| | | // this.submit(); |
| | | } else { |
| | | this.$t.message.toast(res.msg); |
| | | this.$t.message.toast(res.message); |
| | | } |
| | | }).catch((err) => { |
| | | this.$t.message.toast(err.message); |