fenghy 3 lat temu
rodzic
commit
6cd3196279

+ 7 - 1
src/views/exportTrade/customerInquiry/config/customerContact.json

@@ -88,7 +88,13 @@
       "index": 10,
       "minWidth": 80,
       "overHidden":true,
-      "cell": true
+      "cell": true,
+      "type": "select",
+      "dicUrl": "/api/blade-system/dict-biz/dictionary?code=pricing_terms",
+      "props": {
+        "label": "dictValue",
+        "value": "dictKey"
+      }
     },
     {
       "label": "单价",

+ 9 - 7
src/views/exportTrade/customerInquiry/detailsPage.vue

@@ -62,14 +62,14 @@
               >报 表</el-button
             >
           </template>
-          <template slot="menu" slot-scope="{ row, label, dic, $index }">
+          <template slot="menu" slot-scope="scope">
             <el-button
-              v-if="row.$cellEdit"
+              v-if="scope.row.$cellEdit"
               size="small"
               icon="el-icon-edit"
               type="text"
-              @click="save(row, label, dic, $index)"
-              >保 存</el-button
+              @click="rowDel(scope.row,scope.index)"
+              >删 除</el-button
             >
           </template>
         </avue-crud>
@@ -412,9 +412,9 @@ export default {
     }
   },
   methods: {
-    save(row, label, dic, index) {
-      console.log(row, label, dic, index);
-      this.data[index].$cellEdit = false;
+    rowSave(row) {
+      console.log(row);
+      this.$set(row, "$cellEdit", false);
     },
     rowDel(row, index) {
       if (row.id) {
@@ -459,6 +459,8 @@ export default {
         e.$cellEdit = true;
         delete e.$index;
         delete e.id;
+        delete e.isDeleted;
+        delete e.status;
       });
       this.selectionList = list;
     },