| | |
| | | <template> |
| | | <view> |
| | | <page-nav title="采购入库4"></page-nav> |
| | | <page-nav title="采购入库"></page-nav> |
| | | |
| | | <view v-if='purchorderArr.length!==0' class="mainContent" style=""> |
| | | <view> |
| | |
| | | i.stockcode = '' //仓库 |
| | | i.countInquantity2 = parseFloat(i.quantity) - parseFloat(i.countInquantity) + |
| | | parseFloat(i.countreturnquantity) |
| | | |
| | | console.log(i.countInquantity) |
| | | }) |
| | | this.purchorderArr = res.data |
| | | this.purchorderObj = this.purchorderArr[0] |
| | |
| | | "deptcode": i.deptcode, |
| | | "deptname": i.deptname, |
| | | children: i.children |
| | | |
| | | // "hbarcode": "", |
| | | // "hbillno": "", |
| | | // "hqty": i.hqty, |
| | | // "hcustomercode": i.customercode, |
| | | // "hdeptcode": i.departmentcode, |
| | | // "partcode": i.partcode, |
| | | // "unitcode": i.unitcode, |
| | | // "hsourceid": i.orderid, |
| | | // "hsourcebillno": i.ordercode, |
| | | |
| | | // "stockcode": this.purchorderObj.stockname2, |
| | | // "lcationcode": this.purchorderObj.lcationname2 |
| | | }) |
| | | }) |
| | | |
| | |
| | | return this.$u.toast('第' + count + '个物料的入库数量错误!') |
| | | } |
| | | |
| | | console.log(JSON.stringify(data2)) |
| | | // console.log(JSON.stringify(data2)) |
| | | |
| | | const res = await MesAppPurchInStorSave(this.global.formatData( |
| | | data1), data2) |
| | | |
| | | if (res.code === '200') { |
| | | this.$u.toast('提交成功!') |
| | | setTimeout(() => { |
| | | let prevPage = getCurrentPages()[getCurrentPages() |
| | | .length - |
| | | 2]; // 上一页面实例 |
| | |
| | | uni.navigateBack({ |
| | | delta: 1, //返回层数,2则上上页 |
| | | }) |
| | | }, 1000) |
| | | } else { |
| | | this.$u.toast(res.message) |
| | | } |