| | |
| | | _this.deadTimeType = "error" |
| | | } |
| | | _this.dataList.push(res.data) |
| | | console.log(_this.dataList); |
| | | } else if (res.code == 403) { |
| | | _this.messageText = res.msg |
| | | _this.messageToggle('error') |
| | |
| | | }, |
| | | comb() { |
| | | let that = this; |
| | | console.log(that.dataList[0]); |
| | | var matObj= { |
| | | rollNo: that.dataList[0].model, // 卷号 |
| | | boxNo: that.dataList[0].batch, // 箱号 |
| | | specs: that.dataList[0].matnr, // 规格 |
| | | length: that.dataList[0].price, // 长度 |
| | | netWeight: that.dataList[0].weight, // 净重 |
| | | grossWeight: that.dataList[0].volume, // 毛重 |
| | | splices: that.dataList[0].specs, // 接头 个 |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/order/search/batch/auth', |
| | | data: that.targetBatch, |
| | | data: matObj, |
| | | method: 'POST', |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | method:'POST', |
| | | success(result) { |
| | | let res = result.data |
| | | if (res.code === 200) { |