Ver código fonte

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

XMLWAN 3 anos atrás
pai
commit
7d951e0085

+ 8 - 5
src/xt_pages/supply/components/addSupply.vue Ver arquivo

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

+ 7 - 1
src/xt_pages/supply/supplyQuery.vue Ver arquivo

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