huang_an 2 лет назад
Родитель
Сommit
6fb2b2bf33

+ 1 - 0
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -804,6 +804,7 @@
       // },
       handleSetting(row) {
         row.bizTypes = this.formData.bizType;
+        row.type = this.bizType == 3 ? 1 : 0;
         this.$refs.detailSelectRef
           .open(row, row.warehouseLedgerDetails || [])
           .then((res) => {

+ 5 - 1
src/views/warehouseManagement/outgoingManagement/components/detailSelect.vue

@@ -332,7 +332,7 @@
         this.infoData = infoData;
         this.tableData = [];
         // console.log('wqwq', this.infoData.assetCode);
-        this.formData = { pageNum: 1, size: 10 };
+        this.formData = { pageNum: 1, size: 10, type: infoData.type };
         if (this.infoData.bizTypes == 3) {
           this.formData.code = this.infoData.assetCode;
         }
@@ -430,6 +430,10 @@
         } else {
           this.formData.procurementTime = this.formData.productTime;
         }
+        // if (!this.infoData.id) {
+        //   this.$message.warning('数据异常,当前物品id为空!');
+        //   return;
+        // }
         const res = await outin.getoutDetail({
           ...this.formData,
           categoryId: this.infoData.id