loulijun2021
2023-06-01 347bfd41a380983e0866009cfc83475c1cd4e322
1.递交
已修改1个文件
15 ■■■■■ 文件已修改
src/views/produceManager/productWarehouse.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produceManager/productWarehouse.vue
@@ -924,13 +924,13 @@
              stinhouseqty,
              unitid: t.unitid,
              unitname: t.unitname,
              sourceVoucherDetailId: t.sourceVoucherDetailId,
              sourceVoucherDetailId: t.sbid,
              saleOrderDetailId: t.saleOrderDetailId,
              ManufactureOrderDetailId: t.ManufactureOrderDetailId,
              ManufactureOrderDetailId: t.sbid,
              stck_id: this.stockcodeArr.find(i => i.code === t.stockcode).id,
              SourceVoucherDetailIdByMergedFlow: t.sbid,
              materiel_code: t.partcode,
              warehouse: t.warehouse,
              warehouse: t.stockcode,
              materiel_id: t.materiel_id
            }
          )
@@ -980,14 +980,16 @@
      })
      const head = {
        rightcode: '2064',
        hbillno: this.form.hbillno,
        incbit: this.form.incbit,
        wkshpcode: this.form.wkshopcode,
        sourceVoucherId: this.form.documentType === 'Y' ? this.tableDataDetail[0].mpoid : '',
        sourceVoucherCode: this.form.documentType === 'Y' ? this.tableDataDetail[0].m_po : this.tableDataDetail[0].wo_code,
        saleOrderId: this.tableDataDetail[0].saleOrderid,
        saleOrderCode: this.tableDataDetail[0].saleOrderCode,
        rdDirectionFlag: 1,
        makerid: this.userArr.find(i => i.name === getCookie('username').id),
        makerid: this.userArr.find(i => i.name === getCookie('username')).id,
        maker: getCookie('username'),
        accountingyear: new Date().getFullYear(),
        VoucherYear: new Date().getFullYear(),
@@ -997,7 +999,7 @@
        iddepartment: this.WorkShopArr.find(i => i.code === this.form.wkshopcode).id,
        idrdstyle: 21,
        idwarehouse: '',
        voucherState: handleDatetime(new Date().getTime()),
        voucherState: 181,
        idvouchertype: 15,
        voucherdate: handleDatetime(new Date().getTime()),
        madedate: handleDatetime(new Date().getTime()),
@@ -1027,6 +1029,7 @@
          idbusiTypeByMergedFlow: 3,
          idinventory: i.materiel_id,
          idbaseunit: i.unitid,
          idunit: i.unitid,
          idwarehouse: i.stck_id,
          SourceVoucherIdByMergedFlow: this.tableDataDetail[0].mpoid,
          SourceVoucherCodeByMergedFlow: this.tableDataDetail[0].m_po,
@@ -1043,7 +1046,7 @@
        head, sub: this.multipleSelection, subsum
      }
      console.log(JSON.stringify(data))
      // console.log(JSON.stringify(data))
      const res = await ProductInHouseOrderSeave(data)
      if (res.code === '200') {