Преглед изворни кода

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN пре 3 година
родитељ
комит
7d951e0085
2 измењених фајлова са 15 додато и 6 уклоњено
  1. 8 5
      src/xt_pages/supply/components/addSupply.vue
  2. 7 1
      src/xt_pages/supply/supplyQuery.vue

+ 8 - 5
src/xt_pages/supply/components/addSupply.vue Прегледај датотеку

@@ -32,11 +32,14 @@
32 32
                 @select="handleSelect"
33 33
               ></el-autocomplete> -->
34 34
 
35
-              <el-select v-model="supplier.supplierType" @select="handleSelect">
35
+              <el-select
36
+                v-model="supplier.supplierType"
37
+                @select="handleSelect"
38
+              >
36 39
                 <el-option
37 40
                   v-for="item in supplierType"
38 41
                   :key="item.value"
39
-                  :label="item.label"
42
+                  :label="item.name"
40 43
                   :value="item.value"
41 44
                 >
42 45
                 </el-option>
@@ -287,7 +290,7 @@ export default {
287 290
       supplier: {
288 291
         supplierName: "",
289 292
         supplierCode: "gsy001",
290
-        supplierType: 0,
293
+        supplierType: "请选择类别",
291 294
         vatRate: 0,
292 295
         number: "",
293 296
         bank: "",
@@ -429,7 +432,7 @@ export default {
429 432
                     this.closePop();
430 433
                     this.$emit("init");
431 434
                   } else {
432
-                    this.$message.error("新增失败");
435
+                    this.$message.error("新增失败"+res.data.msg);
433 436
                     setTimeout(() => {
434 437
                       this.closePop();
435 438
                     }, 2000);
@@ -477,7 +480,7 @@ export default {
477 480
                     this.closePop();
478 481
                     this.$emit("init");
479 482
                   } else {
480
-                    this.$message.error("修改失败");
483
+                    this.$message.error("修改失败"+res.data.msg);
481 484
                     setTimeout(() => {
482 485
                       this.closePop();
483 486
                     }, 2000);

+ 7 - 1
src/xt_pages/supply/supplyQuery.vue Прегледај датотеку

@@ -180,7 +180,7 @@ export default {
180 180
       page: 1,
181 181
       limit: 10,
182 182
 
183
-      type_name: "请选择",
183
+      type_name: "请选择供应商类别",
184 184
       crumbs: [
185 185
         { path: false, name: "采购管理" },
186 186
         { path: "/supply/good/order/query", name: "供应商管理" },
@@ -230,6 +230,11 @@ export default {
230 230
     },
231 231
 
232 232
     toDelete(val, index) {
233
+      this.$confirm('确认删除吗?','删除',{
234
+        confirmButtonText: '确 定',
235
+        concelmButtonText: '取 消',
236
+        type: 'warning'
237
+      }).then(() => {
233 238
       delsupplys(val.ID)
234 239
         .then((res) => {
235 240
           if (res.data.code == 0) {
@@ -242,6 +247,7 @@ export default {
242 247
         .catch((err) => {
243 248
           console.log(err);
244 249
         });
250
+      }).catch(() => {})
245 251
     },
246 252
 
247 253
     toAdd(val) {