Pārlūkot izejas kodu

修改提示框

csx 6 gadus atpakaļ
vecāks
revīzija
6603c5698b

+ 11 - 20
src/xt_pages/data/components/table.vue Parādīt failu

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="" style="margin-right:20px;">  
2
+  <div class="" style="margin-right:20px;">
3 3
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row @current-change="handleRowChange"
4 4
       >
5 5
       <el-table-column  align="center" label="名称">
@@ -211,16 +211,13 @@ export default {
211 211
             const result = response.data.data.dataconfig
212 212
             // 更新store
213 213
             store.dispatch('updateConfigList',result).then(() => {
214
-           
214
+
215 215
             })
216 216
 
217 217
             this.dialogFormVisible = false
218
-            this.$notify({
219
-              title: '成功',
220
-              message: '创建成功',
221
-              type: 'success',
222
-              duration: 2000
223
-            })
218
+
219
+            this.$message.success("创建成功")
220
+
224 221
           })
225 222
         }
226 223
       })
@@ -248,23 +245,17 @@ export default {
248 245
               }
249 246
             }
250 247
             this.dialogFormVisible = false
251
-            this.$notify({
252
-              title: '成功',
253
-              message: '更新成功',
254
-              type: 'success',
255
-              duration: 2000
256
-            })
248
+
249
+            this.$message.success("更新成功")
250
+
257 251
           })
258 252
         }
259 253
       })
260 254
     },
261 255
     handleDelete(row) {
262
-      this.$notify({
263
-        title: '成功',
264
-        message: '删除成功',
265
-        type: 'success',
266
-        duration: 2000
267
-      })
256
+
257
+      this.$message.success("删除成功")
258
+
268 259
       const index = this.list.indexOf(row)
269 260
       this.list.splice(index, 1)
270 261
     },

+ 9 - 22
src/xt_pages/data/components/tableson.vue Parādīt failu

@@ -4,7 +4,7 @@
4 4
       <el-button class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
5 5
     </div>
6 6
 
7
-    <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row 
7
+    <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row
8 8
       style="width: 100%;min-height:500px;">
9 9
       <el-table-column  align="center" label="名称">
10 10
         <template slot-scope="scope">
@@ -22,7 +22,7 @@
22 22
           <el-button icon="el-icon-delete" v-if="scope.row.status!='deleted'" size="small" type="danger" @click="handleModifyStatus(scope.row,'deleted')">
23 23
           </el-button>
24 24
          </el-tooltip>
25
-         
25
+
26 26
         </template>
27 27
       </el-table-column>
28 28
     </el-table>
@@ -291,16 +291,11 @@ export default {
291 291
             // this.list.unshift(tempval)
292 292
             // 更新store
293 293
             store.dispatch("updateChildConfigList", [result, "create"]).then(() => {
294
-               
294
+
295 295
             });
296 296
 
297 297
             this.dialogFormVisible = false;
298
-            this.$notify({
299
-              title: "成功",
300
-              message: "创建成功",
301
-              type: "success",
302
-              duration: 2000
303
-            });
298
+           this.$message.success("创建成功")
304 299
           });
305 300
         }
306 301
       });
@@ -328,27 +323,19 @@ export default {
328 323
 
329 324
             const result = response.data.data.dataconfig;
330 325
             store.dispatch("updateChildConfigList", [result, "update"]).then(() => {
331
-             
326
+
332 327
             });
333 328
 
334 329
             this.dialogFormVisible = false;
335
-            this.$notify({
336
-              title: "成功",
337
-              message: "更新成功",
338
-              type: "success",
339
-              duration: 2000
340
-            });
330
+
331
+            this.$message.success("更新成功")
332
+
341 333
           });
342 334
         }
343 335
       });
344 336
     },
345 337
     handleDelete(row) {
346
-      this.$notify({
347
-        title: "成功",
348
-        message: "删除成功",
349
-        type: "success",
350
-        duration: 2000
351
-      });
338
+      this.$message.success("删除成功")
352 339
       const index = this.list.indexOf(row);
353 340
       this.list.splice(index, 1);
354 341
     },

+ 9 - 20
src/xt_pages/data/components/templateTable.vue Parādīt failu

@@ -29,7 +29,7 @@
29 29
             <el-button icon="el-icon-delete" v-if="scope.row.status!='deleted'" size="small" type="danger" @click="handleModifyStatus(scope.row,'deleted')">
30 30
             </el-button>
31 31
           </el-tooltip>
32
-          
32
+
33 33
 
34 34
         </template>
35 35
       </el-table-column>
@@ -258,16 +258,12 @@ export default {
258 258
             const result = response.data.data.dataconfig
259 259
             // 更新store
260 260
             store.dispatch('updateConfigList',result).then(() => {
261
-           
261
+
262 262
             })
263 263
 
264 264
             this.dialogFormVisible = false
265
-            this.$notify({
266
-              title: '成功',
267
-              message: '创建成功',
268
-              type: 'success',
269
-              duration: 2000
270
-            })
265
+
266
+            this.$message.success("创建成功")
271 267
           })
272 268
         }
273 269
       })
@@ -299,23 +295,16 @@ export default {
299 295
               });
300 296
 
301 297
             this.dialogFormVisible = false;
302
-            this.$notify({
303
-              title: "成功",
304
-              message: "更新成功",
305
-              type: "success",
306
-              duration: 2000
307
-            });
298
+
299
+            this.$message.success("更新成功")
308 300
           });
309 301
         }
310 302
       });
311 303
     },
312 304
     handleDelete(row) {
313
-      this.$notify({
314
-        title: '成功',
315
-        message: '删除成功',
316
-        type: 'success',
317
-        duration: 2000
318
-      })
305
+
306
+      this.$message.success("删除成功")
307
+
319 308
       const index = this.list.indexOf(row)
320 309
       this.list.splice(index, 1)
321 310
     },

+ 53 - 114
src/xt_pages/data/druguseTemplate.vue Parādīt failu

@@ -1272,12 +1272,9 @@
1272 1272
             return false;
1273 1273
           } else {
1274 1274
 
1275
-            this.$notify({
1276
-              title: "成功",
1277
-              message: "添加模版成功",
1278
-              type: "success",
1279
-              duration: 2000
1280
-            });
1275
+
1276
+            this.$message.success("添加模版成功")
1277
+
1281 1278
 
1282 1279
             var template = response.data.data.template
1283 1280
             if (template.DoctorAdviceTemplate.length > 0) {
@@ -1319,12 +1316,7 @@
1319 1316
                 this.$message.error(response.data.msg);
1320 1317
                 return false;
1321 1318
               } else {
1322
-                this.$notify({
1323
-                  title: "成功",
1324
-                  message: "医嘱模板已经删除",
1325
-                  type: "success",
1326
-                  duration: 2000
1327
-                });
1319
+                this.$message.success("删除成功")
1328 1320
                 this.drugdics.splice(index, 1);
1329 1321
               }
1330 1322
             });
@@ -1344,12 +1336,8 @@
1344 1336
                 this.$message.error(response.data.msg);
1345 1337
                 return false;
1346 1338
               } else {
1347
-                this.$notify({
1348
-                  title: "成功",
1349
-                  message: "医嘱模板已经删除",
1350
-                  type: "success",
1351
-                  duration: 2000
1352
-                });
1339
+                
1340
+                this.$message.success("删除成功")
1353 1341
 
1354 1342
                 // console.log(this.adviceTemplates.length)
1355 1343
                 // for(let i = 0;i < this.adviceTemplates.length; i++){
@@ -1374,12 +1362,9 @@
1374 1362
                     this.$message.error(response.data.msg);
1375 1363
                     return false;
1376 1364
                   } else {
1377
-                    this.$notify({
1378
-                      title: "成功",
1379
-                      message: "修改成功",
1380
-                      type: "success",
1381
-                      duration: 2000
1382
-                    });
1365
+
1366
+                    this.$message.success("修改成功")
1367
+
1383 1368
                     this.drugdicFormVisible = false;
1384 1369
                     this.resetForm(formName);
1385 1370
                     var drugdic = response.data.data.drugdic;
@@ -1403,12 +1388,9 @@
1403 1388
                   this.$message.error(response.data.msg);
1404 1389
                   return false;
1405 1390
                 } else {
1406
-                  this.$notify({
1407
-                    title: "成功",
1408
-                    message: "添加成功",
1409
-                    type: "success",
1410
-                    duration: 2000
1411
-                  });
1391
+
1392
+                  this.$message.success("添加成功")
1393
+
1412 1394
                   this.drugdicFormVisible = false;
1413 1395
                   this.resetForm(formName);
1414 1396
                   this.drugdics.unshift(response.data.data.drugdic);
@@ -1452,12 +1434,8 @@
1452 1434
                   this.$message.error(response.data.msg);
1453 1435
                   return false;
1454 1436
                 } else {
1455
-                  this.$notify({
1456
-                    title: "成功",
1457
-                    message: "添加成功",
1458
-                    type: "success",
1459
-                    duration: 2000
1460
-                  });
1437
+
1438
+                  this.$message.success("添加成功")
1461 1439
 
1462 1440
                   var spliceIndex = -1;
1463 1441
                   for (let index = this.adviceTemplates.length - 1; ; index--) {
@@ -1565,12 +1543,9 @@
1565 1543
                     this.$message.error(response.data.msg);
1566 1544
                     return false;
1567 1545
                   } else {
1568
-                    this.$notify({
1569
-                      title: "成功",
1570
-                      message: "修改成功",
1571
-                      type: "success",
1572
-                      duration: 2000
1573
-                    });
1546
+
1547
+                    this.$message.success("修改成功")
1548
+
1574 1549
                     this.drugwayFormVisible = false;
1575 1550
                     this.resetForm(formName);
1576 1551
                     var drugway = response.data.data.drugway;
@@ -1588,12 +1563,8 @@
1588 1563
                   this.$message.error(response.data.msg);
1589 1564
                   return false;
1590 1565
                 } else {
1591
-                  this.$notify({
1592
-                    title: "成功",
1593
-                    message: "添加成功",
1594
-                    type: "success",
1595
-                    duration: 2000
1596
-                  });
1566
+
1567
+                  this.$message.success("添加成功")
1597 1568
                   this.drugwayFormVisible = false;
1598 1569
                   this.resetForm(formName);
1599 1570
                   this.drugways.unshift(response.data.data.drugway);
@@ -1616,12 +1587,9 @@
1616 1587
                 this.$message.error(response.data.msg);
1617 1588
                 return false;
1618 1589
               } else {
1619
-                this.$notify({
1620
-                  title: "成功",
1621
-                  message: "给药途径已经删除",
1622
-                  type: "success",
1623
-                  duration: 2000
1624
-                });
1590
+
1591
+                this.$message.success("删除成功")
1592
+
1625 1593
                 this.drugways.splice(index, 1);
1626 1594
               }
1627 1595
             });
@@ -1659,12 +1627,9 @@
1659 1627
                     this.$message.error(response.data.msg);
1660 1628
                     return false;
1661 1629
                   } else {
1662
-                    this.$notify({
1663
-                      title: "成功",
1664
-                      message: "修改成功",
1665
-                      type: "success",
1666
-                      duration: 2000
1667
-                    });
1630
+
1631
+                    this.$message.success("修改成功")
1632
+
1668 1633
                     this.efFormVisible = false;
1669 1634
                     this.resetForm(formName);
1670 1635
                     var ef = response.data.data.ef;
@@ -1684,12 +1649,9 @@
1684 1649
                   this.$message.error(response.data.msg);
1685 1650
                   return false;
1686 1651
                 } else {
1687
-                  this.$notify({
1688
-                    title: "成功",
1689
-                    message: "添加成功",
1690
-                    type: "success",
1691
-                    duration: 2000
1692
-                  });
1652
+
1653
+                  this.$message.error("添加成功");
1654
+
1693 1655
                   this.efFormVisible = false;
1694 1656
                   this.resetForm(formName);
1695 1657
                   this.executionFrequencyOptions.unshift(response.data.data.ef);
@@ -1712,12 +1674,9 @@
1712 1674
                 this.$message.error(response.data.msg);
1713 1675
                 return false;
1714 1676
               } else {
1715
-                this.$notify({
1716
-                  title: "成功",
1717
-                  message: "执行频率已经删除",
1718
-                  type: "success",
1719
-                  duration: 2000
1720
-                });
1677
+
1678
+                this.$message.error("删除成功");
1679
+
1721 1680
                 this.executionFrequencyOptions.splice(index, 1);
1722 1681
               }
1723 1682
             });
@@ -1792,12 +1751,8 @@
1792 1751
                   this.$message.error(response.data.msg);
1793 1752
                   return false;
1794 1753
                 } else {
1795
-                  this.$notify({
1796
-                    title: "成功",
1797
-                    message: "修改成功",
1798
-                    type: "success",
1799
-                    duration: 2000
1800
-                  });
1754
+
1755
+                  this.$message.success("修改成功")
1801 1756
                   this.templateEditFormVisible = false;
1802 1757
                   this.resetForm(formName);
1803 1758
                   var template = response.data.data.template;
@@ -1862,12 +1817,10 @@
1862 1817
               this.$message.error(response.data.msg);
1863 1818
               return false;
1864 1819
             } else {
1865
-              this.$notify({
1866
-                title: "成功",
1867
-                message: "医嘱模板已经删除",
1868
-                type: "success",
1869
-                duration: 2000
1870
-              });
1820
+
1821
+
1822
+              this.$message.success("删除成功")
1823
+
1871 1824
 
1872 1825
               for (let i = 0; i < this.adviceTemplates.length; i++) {
1873 1826
                 console.log(this.adviceTemplates[i].id)
@@ -1941,12 +1894,9 @@
1941 1894
             this.resetForm(formName);
1942 1895
             this.templateFormTwoVisible = false
1943 1896
 
1944
-            this.$notify({
1945
-              title: "成功",
1946
-              message: "添加成功",
1947
-              type: "success",
1948
-              duration: 2000
1949
-            });
1897
+
1898
+            this.$message.success("添加成功")
1899
+
1950 1900
 
1951 1901
             return false;
1952 1902
           }
@@ -1975,12 +1925,10 @@
1975 1925
                   this.$message.error(response.data.msg);
1976 1926
                   return false;
1977 1927
                 } else {
1978
-                  this.$notify({
1979
-                    title: "成功",
1980
-                    message: "修改成功",
1981
-                    type: "success",
1982
-                    duration: 2000
1983
-                  });
1928
+
1929
+                  this.$message.success("修改成功")
1930
+
1931
+
1984 1932
                   this.templateEditFormTwoVisible = false;
1985 1933
                   this.resetForm(formName);
1986 1934
                   var template = response.data.data.template;
@@ -2104,12 +2052,9 @@
2104 2052
               this.$message.error(response.data.msg);
2105 2053
               return false;
2106 2054
             } else {
2107
-              this.$notify({
2108
-                title: "成功",
2109
-                message: "医嘱已经删除",
2110
-                type: "success",
2111
-                duration: 2000
2112
-              });
2055
+
2056
+              this.$message.success("删除成功")
2057
+
2113 2058
 
2114 2059
               if (row.parent_id > 0) { //删除子医嘱
2115 2060
                 this.adviceTemplates.splice(index, 1)
@@ -2164,12 +2109,9 @@
2164 2109
               this.$message.error(response.data.msg);
2165 2110
               return false;
2166 2111
             } else {
2167
-              this.$notify({
2168
-                title: "成功",
2169
-                message: "医嘱已经删除",
2170
-                type: "success",
2171
-                duration: 2000
2172
-              });
2112
+
2113
+              this.$message.success("删除成功")
2114
+
2173 2115
 
2174 2116
               if (row.parent_id > 0) { //删除子医嘱
2175 2117
                 this.adviceTemplates.splice(index, 1)
@@ -2296,12 +2238,9 @@
2296 2238
             this.$message.error(response.data.msg);
2297 2239
             return false;
2298 2240
           } else {
2299
-            this.$notify({
2300
-              title: "成功",
2301
-              message: "修改成功",
2302
-              type: "success",
2303
-              duration: 2000
2304
-            });
2241
+
2242
+            this.$message.success("修改成功")
2243
+
2305 2244
             this.templateTableTwoVisible = false;
2306 2245
 
2307 2246
             for (let i = 0; i < this.adviceTemplates.length; i++) {

+ 5 - 12
src/xt_pages/stock/cancelStockOrderEdit.vue Parādīt failu

@@ -255,12 +255,8 @@
255 255
                 this.$message.error(response.data.msg)
256 256
                 return false
257 257
               } else {
258
-                this.$notify({
259
-                  title: '成功',
260
-                  message: '删除成功',
261
-                  type: 'success',
262
-                  duration: 2000
263
-                })
258
+
259
+                this.$message.success("删除成功")
264 260
                 this.recordInfo.recordData.splice(index, 1)
265 261
               }
266 262
             })
@@ -311,12 +307,9 @@
311 307
                 this.$message.error(response.data.msg)
312 308
                 return false
313 309
               } else {
314
-                this.$notify({
315
-                  title: '成功',
316
-                  message: '退库成功',
317
-                  type: 'success',
318
-                  duration: 2000
319
-                })
310
+
311
+                this.$message.success('退库成功')
312
+
320 313
                 this.$router.back(-1)
321 314
               }
322 315
             })

+ 8 - 18
src/xt_pages/stock/config/dealer.vue Parādīt failu

@@ -206,12 +206,8 @@
206 206
               return false;
207 207
             } else {
208 208
               this.dealerData.splice(index, 1);
209
-              this.$notify({
210
-                title: "成功",
211
-                message: "经销商信息已经删除",
212
-                type: "success",
213
-                duration: 2000
214
-              });
209
+
210
+              this.$message.success("删除成功")
215 211
             }
216 212
           });
217 213
         }).catch(() => {
@@ -269,12 +265,9 @@
269 265
               this.dealerData[this.editIndex].contact_address = response.data.data.dealer.contact_address
270 266
               this.dealerData[this.editIndex].remark = response.data.data.dealer.remark
271 267
               this.dealerData[this.editIndex].dealer_code = response.data.data.dealer.dealer_code
272
-              this.$notify({
273
-                title: "成功",
274
-                message: "修改成功",
275
-                type: "success",
276
-                duration: 2000
277
-              });
268
+
269
+              this.$message.success("修改成功")
270
+
278 271
 
279 272
             }
280 273
           });
@@ -286,12 +279,9 @@
286 279
               return false;
287 280
             } else {
288 281
               this.dealerData.unshift(response.data.data.dealer)
289
-              this.$notify({
290
-                title: "成功",
291
-                message: "新增成功",
292
-                type: "success",
293
-                duration: 2000
294
-              });
282
+
283
+              this.$message.success("新增成功")
284
+
295 285
 
296 286
             }
297 287
           });

+ 7 - 18
src/xt_pages/stock/config/goodInfo.vue Parādīt failu

@@ -238,12 +238,7 @@
238 238
               return false;
239 239
             } else {
240 240
               this.goodInfo.goodInfoData.splice(index, 1);
241
-              this.$notify({
242
-                title: "成功",
243
-                message: "商品信息已经删除",
244
-                type: "success",
245
-                duration: 2000
246
-              });
241
+              this.$message.success("删除成功")
247 242
             }
248 243
           });
249 244
         }).catch(() => {
@@ -340,12 +335,9 @@
340 335
               this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].sell_price = response.data.data.goodInfo.sell_price.toString()
341 336
               this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].expiry_date_warn_day_count = response.data.data.goodInfo.expiry_date_warn_day_count.toString()
342 337
               this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].stock_warn_count = response.data.data.goodInfo.stock_warn_count.toString()
343
-              this.$notify({
344
-                title: "成功",
345
-                message: "修改成功",
346
-                type: "success",
347
-                duration: 2000
348
-              });
338
+
339
+              this.$message.success("修改成功")
340
+
349 341
 
350 342
             }
351 343
           });
@@ -357,12 +349,9 @@
357 349
               return false;
358 350
             } else {
359 351
               this.goodInfo.goodInfoData.unshift(response.data.data.goodInfo)
360
-              this.$notify({
361
-                title: "成功",
362
-                message: "新增成功",
363
-                type: "success",
364
-                duration: 2000
365
-              });
352
+
353
+              this.$message.success("新增成功")
354
+
366 355
 
367 356
             }
368 357
           });

+ 8 - 18
src/xt_pages/stock/config/goodType.vue Parādīt failu

@@ -233,12 +233,8 @@
233 233
             } else {
234 234
               this.goodType.goodTypeData.splice(index, 1);
235 235
               this.goodType.tableCurrentIndex = -1
236
-              this.$notify({
237
-                title: "成功",
238
-                message: "商品类型已经删除",
239
-                type: "success",
240
-                duration: 2000
241
-              });
236
+
237
+              this.$message.success("删除成功")
242 238
             }
243 239
           });
244 240
         }).catch(() => {
@@ -283,12 +279,9 @@
283 279
             } else {
284 280
               this.goodType.goodTypeData[this.goodType.editTypeIndex].type_name = response.data.data.goodTypes.type_name
285 281
               this.goodType.goodTypeData[this.goodType.editTypeIndex].remark = response.data.data.goodTypes.remark
286
-              this.$notify({
287
-                title: "成功",
288
-                message: "修改成功",
289
-                type: "success",
290
-                duration: 2000
291
-              });
282
+
283
+              this.$message.success("修改成功")
284
+
292 285
 
293 286
             }
294 287
           });
@@ -300,12 +293,9 @@
300 293
               return false;
301 294
             } else {
302 295
               this.goodType.goodTypeData.unshift(response.data.data.goodTypes)
303
-              this.$notify({
304
-                title: "成功",
305
-                message: "新增成功",
306
-                type: "success",
307
-                duration: 2000
308
-              });
296
+
297
+              this.$message.success("新增成功")
298
+
309 299
 
310 300
             }
311 301
           });

+ 8 - 18
src/xt_pages/stock/config/manufacturer.vue Parādīt failu

@@ -198,12 +198,7 @@
198 198
               return false
199 199
             } else {
200 200
               this.manufacturerData.splice(index, 1)
201
-              this.$notify({
202
-                title: '成功',
203
-                message: '厂家已经删除',
204
-                type: 'success',
205
-                duration: 2000
206
-              })
201
+              this.$message.success("厂家已经删除")
207 202
             }
208 203
           })
209 204
         }).catch(() => {
@@ -259,12 +254,10 @@
259 254
               this.manufacturerData[this.editIndex].contact_address = response.data.data.manufacturer.contact_address
260 255
               this.manufacturerData[this.editIndex].remark = response.data.data.manufacturer.remark
261 256
               this.manufacturerData[this.editIndex].manufacturer_code = response.data.data.manufacturer.manufacturer_code
262
-              this.$notify({
263
-                title: '成功',
264
-                message: '修改成功',
265
-                type: 'success',
266
-                duration: 2000
267
-              })
257
+
258
+
259
+              this.$message.success("修改成功")
260
+
268 261
 
269 262
             }
270 263
           })
@@ -276,12 +269,9 @@
276 269
               return false
277 270
             } else {
278 271
               this.manufacturerData.unshift(response.data.data.manufacturer)
279
-              this.$notify({
280
-                title: '成功',
281
-                message: '新增成功',
282
-                type: 'success',
283
-                duration: 2000
284
-              })
272
+
273
+              this.$message.success("新增成功")
274
+
285 275
 
286 276
             }
287 277
           })

+ 5 - 12
src/xt_pages/stock/salesReturnEdit.vue Parādīt failu

@@ -268,12 +268,8 @@
268 268
                 this.$message.error(response.data.msg)
269 269
                 return false
270 270
               } else {
271
-                this.$notify({
272
-                  title: '成功',
273
-                  message: '删除成功',
274
-                  type: 'success',
275
-                  duration: 2000
276
-                })
271
+
272
+                this.$message.success("删除成功")
277 273
                 this.recordInfo.recordData.splice(index, 1)
278 274
               }
279 275
             })
@@ -324,12 +320,9 @@
324 320
                 this.$message.error(response.data.msg)
325 321
                 return false
326 322
               } else {
327
-                this.$notify({
328
-                  title: '成功',
329
-                  message: '退货成功',
330
-                  type: 'success',
331
-                  duration: 2000
332
-                })
323
+
324
+                this.$message.success('退货成功')
325
+
333 326
                 this.$router.back(-1)
334 327
               }
335 328
             })

+ 3 - 6
src/xt_pages/stock/salesReturnOrderAdd.vue Parādīt failu

@@ -351,12 +351,9 @@
351 351
                 this.$message.error(response.data.msg)
352 352
                 return false
353 353
               } else {
354
-                this.$notify({
355
-                  title: '成功',
356
-                  message: '退货成功',
357
-                  type: 'success',
358
-                  duration: 2000
359
-                })
354
+
355
+                this.$message.success('退货成功')
356
+
360 357
                 this.recordInfo.recordData = []
361 358
                 this.$router.back(-1)
362 359
               }

+ 3 - 6
src/xt_pages/stock/stockInOrderAdd.vue Parādīt failu

@@ -550,12 +550,9 @@
550 550
                 this.$message.error(response.data.msg)
551 551
                 return false
552 552
               } else {
553
-                this.$notify({
554
-                  title: '成功',
555
-                  message: '入库成功',
556
-                  type: 'success',
557
-                  duration: 2000
558
-                })
553
+
554
+                this.$message.success('入库成功')
555
+
559 556
                 this.$router.back(-1)
560 557
               }
561 558
             })

+ 7 - 12
src/xt_pages/stock/stockInOrderEdit.vue Parādīt failu

@@ -348,12 +348,10 @@ export default {
348 348
                 this.$message.error(response.data.msg)
349 349
                 return false
350 350
               } else {
351
-                this.$notify({
352
-                  title: '成功',
353
-                  message: '删除成功',
354
-                  type: 'success',
355
-                  duration: 2000
356
-                })
351
+
352
+                this.$message.success("删除成功")
353
+
354
+
357 355
                 this.recordInfo.recordData.splice(index, 1)
358 356
               }
359 357
             })
@@ -430,12 +428,9 @@ export default {
430 428
                 this.$message.error(response.data.msg)
431 429
                 return false
432 430
               } else {
433
-                this.$notify({
434
-                  title: '成功',
435
-                  message: '入库成功',
436
-                  type: 'success',
437
-                  duration: 2000
438
-                })
431
+
432
+                this.$message.success("入库成功")
433
+
439 434
                 this.$router.back(-1)
440 435
               }
441 436
             })

+ 2 - 6
src/xt_pages/stock/stockOutOrderAdd.vue Parādīt failu

@@ -375,12 +375,8 @@
375 375
                 this.$message.error(response.data.msg)
376 376
                 return false
377 377
               } else {
378
-                this.$notify({
379
-                  title: '成功',
380
-                  message: '退货成功',
381
-                  type: 'success',
382
-                  duration: 2000
383
-                })
378
+
379
+                this.$message.success("退货成功")
384 380
                 this.recordInfo.recordData = []
385 381
                 this.$router.back(-1)
386 382
               }

+ 5 - 12
src/xt_pages/stock/stockOutOrderEdit.vue Parādīt failu

@@ -285,12 +285,9 @@
285 285
                 this.$message.error(response.data.msg)
286 286
                 return false
287 287
               } else {
288
-                this.$notify({
289
-                  title: '成功',
290
-                  message: '删除成功',
291
-                  type: 'success',
292
-                  duration: 2000
293
-                })
288
+
289
+                this.$message.success("删除成功")
290
+
294 291
                 this.recordInfo.recordData.splice(index, 1)
295 292
               }
296 293
             })
@@ -344,12 +341,8 @@
344 341
                 this.$message.error(response.data.msg)
345 342
                 return false
346 343
               } else {
347
-                this.$notify({
348
-                  title: '成功',
349
-                  message: '退货成功',
350
-                  type: 'success',
351
-                  duration: 2000
352
-                })
344
+
345
+                this.$message.success("退货成功")
353 346
                 this.$router.back(-1)
354 347
               }
355 348
             })