小小儁爺
2025-05-14 3afe42dec5534422f2a99292542fbba86883b527
pages/wlgl/cgrk4.vue
@@ -1,6 +1,6 @@
<template>
   <view>
      <page-nav title="采购入库4"></page-nav>
      <page-nav title="采购入库"></page-nav>
      <view v-if='purchorderArr.length!==0' class="mainContent" style="">
         <view>
@@ -393,8 +393,6 @@
                  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]
@@ -504,19 +502,6 @@
                  "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
               })
            })
@@ -524,12 +509,14 @@
               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]; // 上一页面实例
@@ -538,6 +525,7 @@
               uni.navigateBack({
                  delta: 1, //返回层数,2则上上页
               })
               }, 1000)
            } else {
               this.$u.toast(res.message)
            }