소스 검색

fix: 在关系类型选项中添加销售退货单类型,并优化发票对话框产品列表选择功能,增加过滤和创建选项

yusheng 9 달 전
부모
커밋
d2ae4940ba
2개의 변경된 파일13개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 1
      src/enum/dict.js
  2. 11 5
      src/views/saleManage/saleOrder/invoice/components/addInvoiceDialog.vue

+ 2 - 1
src/enum/dict.js

@@ -233,7 +233,8 @@ export const pricingWayList = [
 //来源类型
 export const relationTypeOption = {
   1: '发货确认单',
-  2: '收货确认单'
+  2: '收货确认单',
+  3: '销售退货单',
 };
 
 //委外订单来源类型

+ 11 - 5
src/views/saleManage/saleOrder/invoice/components/addInvoiceDialog.vue

@@ -84,6 +84,9 @@
               style="width: 100%"
               clearable
               multiple
+              filterable
+              allow-create
+              default-first-option
             >
               <el-option
                 :label="item.trakNumber"
@@ -441,7 +444,7 @@
           this.oldProductList = JSON.parse(JSON.stringify(productList));
           if (eom_saleOrder_addInvoice?.value == 1) {
             this.$refs.inventoryTableref &&
-              this.$refs.inventoryTableref.putTableValue(productList,true);
+              this.$refs.inventoryTableref.putTableValue(productList, true);
           } else {
             this.$refs.inventoryTableref &&
               this.$refs.inventoryTableref.$refs.productListRef.open(
@@ -519,7 +522,10 @@
             data.carNo = data.carNo ? data.carNo.split(',') : [];
             this.form = data;
             this.$refs.inventoryTableref &&
-              this.$refs.inventoryTableref.putTableValue(data.productList,true);
+              this.$refs.inventoryTableref.putTableValue(
+                data.productList,
+                true
+              );
             this.$refs.stowageTableRef &&
               this.$refs.stowageTableRef.putTableValue(data.carList);
             this.$refs.taskInfoTableRef &&
@@ -543,7 +549,7 @@
             linkName: '',
             linkPhone: '',
             orderNo: '',
-            productList:[],
+            productList: [],
             orderId: '',
             contactId: '',
             contactName: '',
@@ -553,7 +559,7 @@
             pricingWay: ''
           });
           this.$refs.inventoryTableref &&
-            this.$refs.inventoryTableref.putTableValue([],true);
+            this.$refs.inventoryTableref.putTableValue([], true);
           return;
         }
         this.searchParams = {
@@ -600,7 +606,7 @@
             entrustedCode: code,
             entrustedId: id
           });
-            this.getSaleOrderDetails([orderId]);
+          this.getSaleOrderDetails([orderId]);
           // productList.forEach((item, index) => {
           //   item.id = '';
           //   item['tempId'] = index;