| | |
| | | rowNum:'', |
| | | value:'', |
| | | couChange:true, |
| | | baseIP:'', |
| | | |
| | | |
| | | } |
| | | }, |
| | | |
| | | mounted(){ |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP |
| | | }, |
| | | methods: { |
| | | reset:function() { |
| | | this.billNo = ''; |
| | |
| | | if(res.data.data != null){ |
| | | that.addTableData(res.data.data) |
| | | }else if(res.data.code === 403){ |
| | | |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | }else { |
| | | |
| | | this.messageToggle('error') |
| | | this.messageText = res.data.msg |
| | | } |
| | | } |
| | | } |
| | |
| | | }, |
| | | method:'POST', |
| | | success(res) { |
| | | |
| | | if(res.data.code === 200){ |
| | | that.reset() |
| | | that.matData = [] |
| | | that.messageToggle('success') |
| | | that.messageText = '组托成功' |
| | | } else if (res.data.code === 403) { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | } else { |
| | | this.messageToggle('error') |
| | | this.messageText = res.data.msg |
| | | } |
| | | } |
| | | }) |