소스 검색

采购详情一键入库

lizhenhao 2 년 전
부모
커밋
e8fdd17951
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      src/views/modules/materialManagement/wareHouse/WareHouseAddForm.vue

+ 6 - 2
src/views/modules/materialManagement/wareHouse/WareHouseAddForm.vue

@@ -113,8 +113,9 @@
               <vxe-column min-width="100" align="center" field="priceSum" title="商品总价" ></vxe-column>
               <vxe-column min-width="100" align="center" field="company" title="单位" ></vxe-column>
               <vxe-column min-width="100" align="center" field="remarks" title="备注" ></vxe-column>
-              <vxe-column align="center" title="操作" fixed="right" width="80">
+              <vxe-column align="center" title="操作" fixed="right" width="150">
                 <template v-slot="scope">
+                  <el-button size="mini" v-if="method === 'purchaseAdd'" type="primary" :disabled="false" @click="wareHouseAdd(scope.$rowIndex)">入库</el-button>
                   <el-button size="mini" type="primary" :disabled="false" @click="seeFileInfo(scope.$rowIndex)">附件</el-button>
                 </template>
               </vxe-column>
@@ -833,7 +834,10 @@
           tradeName: this.inputForm.detailInfos[index].tradeName,
           tradeNumber: this.inputForm.detailInfos[index].tradeNumber,
           company: this.inputForm.detailInfos[index].company,
-          priceSum: this.inputForm.detailInfos[index].priceSum
+          priceSum: this.inputForm.detailInfos[index].priceSum,
+          supplierId: this.inputForm.detailInfos[index].supplierId,
+          supplierName: this.inputForm.detailInfos[index].supplierName,
+          isSupplier: this.inputForm.detailInfos[index].isSupplier
         }
         this.inputForm.wareHouse.push(param)
         let i = this.inputForm.wareHouse.length