소스 검색

订单管理添加产品名称字段

lph 1 년 전
부모
커밋
6e3e08d200
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      zkqy-ui/src/views/orderMange/index.vue

+ 10 - 0
zkqy-ui/src/views/orderMange/index.vue

@@ -391,6 +391,7 @@
                   placeholder=""
                   clearable
                   filterable
+                  @change="handleProductChange(scope.row.productNo, scope.row)"
                 >
                   <el-option
                     v-for="item in productionOptions"
@@ -860,6 +861,15 @@ export default {
     }),
   },
   methods: {
+    // 产品名称改变
+    handleProductChange(productNo, row) {
+      if (!productNo) {
+        return;
+      }
+      row.productName = this.productionOptions.find(
+        (item) => item.productNo == productNo
+      )?.productName;
+    },
     // 订单类型改变回调
     orderTypeChange(type) {
       this.getList(false, type);