Prechádzať zdrojové kódy

新增编辑后 清空formData

李楠 4 rokov pred
rodič
commit
6b4effa80a

+ 9 - 5
src/views/productManagement/goatBloodLog.vue

@@ -116,12 +116,12 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                sheepId: "1010",
+                sheepId: "",
                 bleedingTime: this.$moment().format("YYYY-MM-DD"),
-                slaughterBatch: "1210",
-                weight: 16,
-                shelfLife: "365",
-                storageLocation: "冷藏仓"
+                slaughterBatch: "",
+                weight: null,
+                shelfLife: "",
+                storageLocation: ""
             },
             isAdd: false,
             rules
@@ -145,6 +145,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -157,6 +159,8 @@ export default {
                                 // 羊血登记列表
                                 this.getGoatBloodLogList();
                                 this.$message.success("编辑成功!");
+                                this.formData = {}
+                                this.isShow = false
                             })
                             .catch(err => {
                                 console.log(err);

+ 9 - 5
src/views/productManagement/goatHasletLog.vue

@@ -111,12 +111,12 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                sheepId: "1010",
+                sheepId: "",
                 slaughterTime: this.$moment().format("YYYY-MM-DD"),
-                slaughterBatch: "1210",
-                weight: 16,
-                shelfLife: '365',
-                storageLocation: "冷藏仓"
+                slaughterBatch: "",
+                weight: null,
+                shelfLife: '',
+                storageLocation: ""
             },
             isAdd: false,
             rules
@@ -140,6 +140,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -155,6 +157,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                                 // this.$message.success("编辑成功!");
                             })

+ 9 - 5
src/views/productManagement/productInfo.vue

@@ -102,11 +102,11 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                code: "1010",
-                productName: "带骨羊前腿",
-                specificModel: "AAA",
-                productPrice: 168,
-                shelfLife: '360'
+                code: "",
+                productName: "",
+                specificModel: "",
+                productPrice: null,
+                shelfLife: ''
             },
             isAdd: false,
             rules
@@ -130,6 +130,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -146,6 +148,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 8 - 4
src/views/productManagement/sheepskinLog.vue

@@ -112,11 +112,11 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                sheepId: "1010",
+                sheepId: "",
                 strippingTime: this.$moment().format("YYYY-MM-DD"),
-                slaughterBatch: "1210",
-                weight: 168,
-                location: "冷藏仓"
+                slaughterBatch: "",
+                weight: null,
+                location: ""
             },
             isAdd: false,
             rules
@@ -140,6 +140,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -152,6 +154,8 @@ export default {
                                 // 羊皮登记列表
                                 this.getSheepskinLogList();
                                 this.$message.success("编辑成功!");
+                                this.formData = {}
+                                this.isShow = false
                             })
                             .catch(err => {
                                 console.log(err);

+ 9 - 3
src/views/productManagement/splitLog.vue

@@ -127,10 +127,10 @@ export default {
             isShowWeigh: false,
             formData: {
                 productUniqueNo: "",
-                productName: "带骨羊前腿",
+                productName: "",
                 splitTime: this.$moment().format("YYYY-MM-DD"),
-                weight: "35",
-                splitBatchNo: "1548"
+                weight: "",
+                splitBatchNo: ""
             },
             formData_1: {
                 productUniqueNo: "",
@@ -158,6 +158,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -174,6 +176,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -194,6 +198,8 @@ export default {
                             this.$message.error(res.errMsg);
                         } else {
                             this.$message.success("成功");
+                            this.formData_1 = {}
+                            this.isShowWeigh = false
                         }
                     });
                 } else {

+ 10 - 6
src/views/sellManagement/carcassSell.vue

@@ -125,13 +125,13 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                salesNo: "JD5S6D4F444",
+                salesNo: "",
                 sellingTime: this.$moment().format("YYYY-MM-DD"),
-                carcassWeight: "26",
-                saleAmount: "26789.5",
-                buyer: "张小刚",
-                seller: "李思涵",
-                transportNo: "DS74V5DDF5455"
+                carcassWeight: "",
+                saleAmount: "",
+                buyer: "",
+                seller: "",
+                transportNo: ""
             },
             isAdd: false,
             rules
@@ -155,6 +155,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -171,6 +173,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 9 - 5
src/views/sellManagement/client.vue

@@ -107,11 +107,11 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                company: "深圳大蒜食品有限公司",
-                customerName: "张小刚",
-                contactInformation: "13456255464",
-                address: "深圳新思路1242号",
-                remarks: "未添加备注信息"
+                company: "",
+                customerName: "",
+                contactInformation: "",
+                address: "",
+                remarks: ""
             },
             isAdd: false,
             rules
@@ -135,6 +135,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -151,6 +153,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 10 - 6
src/views/sellManagement/directSell.vue

@@ -123,13 +123,13 @@ export default {
             isShow: false,
             formData: {
                 saleTime: this.$moment().format("YYYY-MM-DD"),
-                buyer: "张小刚",
-                seller: "王凯军",
+                buyer: "",
+                seller: "",
                 weight: "6",
-                remarks: "好吃的大羊排",
-                saleAmount: "35241.5",
-                salesNo: "DS454GF54",
-                transportNo: "AF652AC456"
+                remarks: "",
+                saleAmount: "",
+                salesNo: "",
+                transportNo: ""
             },
             isAdd: false,
             rules
@@ -153,6 +153,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -169,6 +171,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 12 - 8
src/views/sellManagement/elseSell.vue

@@ -132,15 +132,15 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                productName: "羊腿",
-                weight: "33",
-                slaughterBatch: "2678",
-                saleAmount: "15424",
+                productName: "",
+                weight: "",
+                slaughterBatch: "",
+                saleAmount: "",
                 salesTime: this.$moment().format("YYYY-MM-DD"),
-                salesNo: "KD4F654W454",
-                buyer: "张小刚",
-                seller: "王小五",
-                transportNo: "浙A45154"
+                salesNo: "",
+                buyer: "",
+                seller: "",
+                transportNo: ""
             },
             isAdd: false,
             rules
@@ -164,6 +164,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -180,6 +182,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 8 - 4
src/views/sellManagement/price.vue

@@ -107,10 +107,10 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                productName: "大羊排",
-                specificModel: "2500g/袋",
-                category: "成品",
-                price: "198",
+                productName: "",
+                specificModel: "",
+                category: "",
+                price: "",
                 operation: 1
             },
             isAdd: false,
@@ -135,6 +135,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -151,6 +153,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 11 - 7
src/views/sellManagement/splitSell.vue

@@ -132,14 +132,14 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                salesNo: "XS-FG-202008150001",
-                productNames: "羊腿",
-                productQuantities: "55",
+                salesNo: "",
+                productNames: "",
+                productQuantities: "",
                 salesTime: this.$moment().format("YYYY-MM-DD"),
-                totalAmount: "19858",
-                buyer: "张小刚",
-                seller: "王小五",
-                transportNo: "GDF488D85D8",
+                totalAmount: "",
+                buyer: "",
+                seller: "",
+                transportNo: "",
             },
             isAdd: false,
             rules
@@ -163,6 +163,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -179,6 +181,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 5 - 1
src/views/slaughterManagment/drainageAcid.vue

@@ -133,7 +133,7 @@ export default {
                 weightBefore: "",
                 weightAfter: "",
                 acidLoss: "",
-                responsiblePerson: "王三喜"
+                responsiblePerson: ""
             },
             isAdd: false,
             rules
@@ -173,6 +173,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -189,6 +191,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 7 - 3
src/views/slaughterManagment/firmBuy.vue

@@ -117,11 +117,11 @@ export default {
             isShow: false,
             formData: {
                 sheepId: "",
-                origin: "牧场",
+                origin: "",
                 acquisitionTime: this.$moment().format("YYYY-MM-DD"),
-                acquisitionPerson: "王炸",
+                acquisitionPerson: "",
                 acquisitionWeight: "",
-                transportVehicles: "浙A 13K80"
+                transportVehicles: ""
             },
             rules
         };
@@ -143,6 +143,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -158,6 +160,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 7 - 3
src/views/slaughterManagment/inButcherHurdle.vue

@@ -107,10 +107,10 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                sheepId: "1008",
+                sheepId: "",
                 entryTime: this.$moment().format("YYYY-MM-DD"),
-                operator: "王炸",
-                currentPosition: "待宰栏一舍01"
+                operator: "",
+                currentPosition: ""
             },
             isAdd: false,
             rules
@@ -133,6 +133,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -148,6 +150,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 9 - 5
src/views/slaughterManagment/inStore.vue

@@ -128,13 +128,13 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                carcassCode: "1006",
+                carcassCode: "",
                 storageTime: this.$moment().format("YYYY-MM-DD"),
-                storageLocation: "15206",
+                storageLocation: "",
                 slaughterTime: this.$moment().format("YYYY-MM-DD"),
-                storageWeight: "48",
-                operator: "李小红",
-                slaughterBatch: "16546"
+                storageWeight: "",
+                operator: "",
+                slaughterBatch: ""
             },
             isAdd: false,
             rules
@@ -158,6 +158,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -174,6 +176,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 8 - 4
src/views/slaughterManagment/outStore.vue

@@ -132,12 +132,12 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                carcassCode: "1010",
+                carcassCode: "",
                 deliveryTime: this.$moment().format("YYYY-MM-DD"),
                 flowTo: this.$store.state["outStoreDirection"][0].value,
-                deliveryWeight: "48",
-                operator: "王三喜",
-                slaughterBatch: "16546"
+                deliveryWeight: "",
+                operator: "",
+                slaughterBatch: ""
             },
             isAdd: false,
             rules
@@ -161,6 +161,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -177,6 +179,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 8 - 4
src/views/slaughterManagment/packinghouse.vue

@@ -112,11 +112,11 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                sheepId: "1008",
+                sheepId: "",
                 entryTime: this.$moment().format("YYYY-MM-DD"),
-                operator: "王炸",
-                currentPosition: "待宰栏一舍01",
-                batchNo: '1396'
+                operator: "",
+                currentPosition: "",
+                batchNo: ''
             },
             isAdd: false,
             rules
@@ -140,6 +140,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -156,6 +158,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 7 - 3
src/views/slaughterManagment/regisSlaughter.vue

@@ -120,9 +120,9 @@ export default {
                 sheepId: "",
                 registrationTime: this.$moment().format("YYYY-MM-DD"),
                 slaughterBatch: "",
-                entryWeight: "48",
-                operator: "李小红",
-                quarantineNo: "265315132131"
+                entryWeight: "",
+                operator: "",
+                quarantineNo: ""
             },
             isAdd: false,
             rules
@@ -145,6 +145,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -160,6 +162,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 6 - 2
src/views/slaughterManagment/reportQuarantine.vue

@@ -127,9 +127,9 @@ export default {
             isShow: false,
             formData: {
                 inspectionDate: this.$moment().format("YYYY-MM-DD"),
-                inspectionPerson: "王炸",
+                inspectionPerson: "",
                 status: 1,
-                quarantineNo: "88255662380",
+                quarantineNo: "",
                 slaughterBatch: null
             },
             isAdd: false,
@@ -153,6 +153,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -168,6 +170,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 7 - 3
src/views/slaughterManagment/segmentation.vue

@@ -112,11 +112,11 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                carcassCode: "1010",
+                carcassCode: "",
                 splitBatch: this.$moment().format("YYYYMMDD"),
                 processingTime: this.$moment().format("YYYY-MM-DD"),
-                weight: "28",
-                operator: "王三喜"
+                weight: "",
+                operator: ""
             },
             isAdd: false,
             rules
@@ -140,6 +140,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -156,6 +158,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 8 - 4
src/views/slaughterManagment/slaughterWeight.vue

@@ -142,13 +142,13 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                carcassCode: "1006",
-                slaughterBatch: "15206",
+                carcassCode: "",
+                slaughterBatch: "",
                 slaughterTime: this.$moment().format("YYYY-MM-DD"),
                 weighingTime: this.$moment().format("YYYY-MM-DD"),
                 flowTo: this.$store.state['outStoreDirection'][0].value,
-                carcassWeight: "48",
-                operator: "李小红"
+                carcassWeight: "",
+                operator: ""
             },
             isAdd: false,
             rules
@@ -172,6 +172,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -188,6 +190,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 5 - 1
src/views/slaughterManagment/splitBatch.vue

@@ -132,7 +132,7 @@ export default {
             },
             isShowCreateBatch: false,
             multipleSelection: [],
-            operator: "张亚洲",
+            operator: "",
             isAdd: false,
             rules
         };
@@ -155,6 +155,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -171,6 +173,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 12 - 8
src/views/storeTransportation/dispatching.vue

@@ -129,14 +129,14 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                salesNo: "DHG54G8415",
-                deliveryCustomer: "xx食品有限公司",
-                deliveryAddress: "深圳新思路",
-                transportNo: 'J4544T4D4F54',
-                weight: 2096,
-                distributor: '李宜珊',
-                transportVehicles: '浙A 1J8022',
-                tel: '13856798458'
+                salesNo: "",
+                deliveryCustomer: "",
+                deliveryAddress: "",
+                transportNo: '',
+                weight: null,
+                distributor: '',
+                transportVehicles: '',
+                tel: ''
             },
             isAdd: false,
             rules
@@ -160,6 +160,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -176,6 +178,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {

+ 9 - 5
src/views/storeTransportation/shopStore.vue

@@ -107,11 +107,11 @@ export default {
             totalPages: 0,
             isShow: false,
             formData: {
-                storeName: "北京一号店铺",
-                personCharge: "李小红",
-                telephoneNumber: "13699637894",
-                storeAddress: "北京市海淀区西二旗",
-                remarks: "备注"
+                storeName: "",
+                personCharge: "",
+                telephoneNumber: "",
+                storeAddress: "",
+                remarks: ""
             },
             isAdd: false,
             rules
@@ -135,6 +135,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {
@@ -151,6 +153,8 @@ export default {
                                     this.$message.error(res.errMsg);
                                 } else {
                                     this.$message.success("成功");
+                                    this.formData = {}
+                                    this.isShow = false
                                 }
                             })
                             .catch(err => {