e 4 年之前
父节点
当前提交
08820189c1

+ 1 - 1
.eslintrc.js

@@ -5,7 +5,7 @@ module.exports = {
   },
   },
   extends: ['plugin:vue/essential'],
   extends: ['plugin:vue/essential'],
   rules: {
   rules: {
-    'no-console': process.env.NODE_ENV === 'production'  ? 'error' : 'off',
+    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
     'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
     'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
   },
   },
   parserOptions: {
   parserOptions: {

+ 17 - 1
src/views/productManagement/goatBloodLog.vue

@@ -85,7 +85,7 @@
                             <el-input v-model.number="formData.storageLocation"></el-input>
                             <el-input v-model.number="formData.storageLocation"></el-input>
                         </el-form-item>
                         </el-form-item>
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addGoatBloodLog')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addGoatBloodLog')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -241,6 +241,22 @@ export default {
             this.page = p;
             this.page = p;
             // 羊血登记列表
             // 羊血登记列表
             this.getGoatBloodLogList();
             this.getGoatBloodLogList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                sheepId: "",
+                bleedingTime: this.$moment().format("YYYY-MM-DD"),
+                slaughterBatch: "",
+                weight: null,
+                shelfLife: "",
+                storageLocation: ""
+            };
         }
         }
     }
     }
 };
 };

+ 17 - 1
src/views/productManagement/goatHasletLog.vue

@@ -80,7 +80,7 @@
                             <el-input v-model.number="formData.storageLocation"></el-input>
                             <el-input v-model.number="formData.storageLocation"></el-input>
                         </el-form-item>
                         </el-form-item>
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addGoatHasletLog')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addGoatHasletLog')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -241,6 +241,22 @@ export default {
             this.page = p;
             this.page = p;
             // 羊杂登记列表
             // 羊杂登记列表
             this.getGoatHasletLogList();
             this.getGoatHasletLogList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                sheepId: "",
+                slaughterTime: this.$moment().format("YYYY-MM-DD"),
+                slaughterBatch: "",
+                weight: null,
+                shelfLife: '',
+                storageLocation: ""
+            };
         }
         }
     }
     }
 };
 };

+ 16 - 1
src/views/productManagement/productInfo.vue

@@ -71,7 +71,7 @@
                             <el-input v-model="formData.shelfLife"></el-input>
                             <el-input v-model="formData.shelfLife"></el-input>
                         </el-form-item>
                         </el-form-item>
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addProductInfo')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addProductInfo')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -228,6 +228,21 @@ export default {
             this.page = p;
             this.page = p;
             // 产品档案列表
             // 产品档案列表
             this.getProductInfoList();
             this.getProductInfoList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                code: "",
+                productName: "",
+                specificModel: "",
+                productPrice: null,
+                shelfLife: ''
+            };
         }
         }
     }
     }
 };
 };

+ 16 - 1
src/views/productManagement/sheepskinLog.vue

@@ -81,7 +81,7 @@
                             <el-input v-model.number="formData.location"></el-input>
                             <el-input v-model.number="formData.location"></el-input>
                         </el-form-item>
                         </el-form-item>
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addSheepskinLog')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addSheepskinLog')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -233,6 +233,21 @@ export default {
             this.page = p;
             this.page = p;
             // 羊皮登记列表
             // 羊皮登记列表
             this.getSheepskinLogList();
             this.getSheepskinLogList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                sheepId: "",
+                strippingTime: this.$moment().format("YYYY-MM-DD"),
+                slaughterBatch: "",
+                weight: null,
+                location: ""
+            };
         }
         }
     }
     }
 };
 };

+ 18 - 1
src/views/sellManagement/carcassSell.vue

@@ -94,7 +94,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addCarcass')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addCarcass')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -255,6 +255,23 @@ export default {
             this.page = p;
             this.page = p;
             // 胴体销售列表
             // 胴体销售列表
             this.getCarcassList();
             this.getCarcassList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                salesNo: "",
+                sellingTime: this.$moment().format("YYYY-MM-DD"),
+                carcassWeight: "",
+                saleAmount: "",
+                buyer: "",
+                seller: "",
+                transportNo: ""
+            };
         }
         }
     }
     }
 };
 };

+ 16 - 1
src/views/sellManagement/client.vue

@@ -76,7 +76,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addClient')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addClient')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -229,6 +229,21 @@ export default {
             this.page = p;
             this.page = p;
             // 客户管理列表
             // 客户管理列表
             this.getClientList();
             this.getClientList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                company: "",
+                customerName: "",
+                contactInformation: "",
+                address: "",
+                remarks: ""
+            };
         }
         }
     }
     }
 };
 };

+ 19 - 1
src/views/sellManagement/directSell.vue

@@ -91,7 +91,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addDirectSell')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addDirectSell')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -256,6 +256,24 @@ export default {
             this.page = p;
             this.page = p;
             // 屠宰直销列表
             // 屠宰直销列表
             this.getDirectSellList();
             this.getDirectSellList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                saleTime: this.$moment().format("YYYY-MM-DD"),
+                buyer: "",
+                seller: "",
+                weight: "6",
+                remarks: "",
+                saleAmount: "",
+                salesNo: "",
+                transportNo: ""
+            };
         }
         }
     }
     }
 };
 };

+ 20 - 1
src/views/sellManagement/elseSell.vue

@@ -101,7 +101,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addElseSell')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addElseSell')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -270,6 +270,25 @@ export default {
             this.page = p;
             this.page = p;
             // 其他销售列表
             // 其他销售列表
             this.getElseSellList();
             this.getElseSellList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                productName: "",
+                weight: "",
+                slaughterBatch: "",
+                saleAmount: "",
+                salesTime: this.$moment().format("YYYY-MM-DD"),
+                salesNo: "",
+                buyer: "",
+                seller: "",
+                transportNo: ""
+            };
         }
         }
     }
     }
 };
 };

+ 21 - 6
src/views/sellManagement/price.vue

@@ -71,12 +71,12 @@
                             <el-input v-model="formData.price"></el-input>
                             <el-input v-model="formData.price"></el-input>
                         </el-form-item>
                         </el-form-item>
 
 
-                        <el-form-item label="操作">
-                            <el-input v-model="formData.operation"></el-input>
-                        </el-form-item>
+<!--                        <el-form-item label="操作">-->
+<!--                            <el-input v-model="formData.operation"></el-input>-->
+<!--                        </el-form-item>-->
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addPrice')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addPrice')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -139,7 +139,7 @@ export default {
                                     this.formData.specificModel = '';
                                     this.formData.specificModel = '';
                                     this.formData.category = '';
                                     this.formData.category = '';
                                     this.formData.price = '';
                                     this.formData.price = '';
-                                    this.formData.operation = '';
+                                    this.formData.operation = 1;
                                     this.isShow = false
                                     this.isShow = false
                                 }
                                 }
                             })
                             })
@@ -161,7 +161,7 @@ export default {
                                     this.formData.specificModel = '';
                                     this.formData.specificModel = '';
                                     this.formData.category = '';
                                     this.formData.category = '';
                                     this.formData.price = '';
                                     this.formData.price = '';
-                                    this.formData.operation = '';
+                                    this.formData.operation = 1;
                                     this.formData.id = '';
                                     this.formData.id = '';
                                     this.isShow = false
                                     this.isShow = false
                                 }
                                 }
@@ -229,6 +229,21 @@ export default {
             this.page = p;
             this.page = p;
             // 价格管理列表
             // 价格管理列表
             this.getPriceList();
             this.getPriceList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                productName: "",
+                specificModel: "",
+                category: "",
+                price: "",
+                operation: 1
+            };
         }
         }
     }
     }
 };
 };

+ 19 - 1
src/views/sellManagement/splitSell.vue

@@ -101,7 +101,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addSplitSell')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addSplitSell')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -266,6 +266,24 @@ export default {
             this.page = p;
             this.page = p;
             // 分割销售列表
             // 分割销售列表
             this.getSplitSellList();
             this.getSplitSellList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                salesNo: "",
+                productNames: "",
+                productQuantities: "",
+                salesTime: this.$moment().format("YYYY-MM-DD"),
+                totalAmount: "",
+                buyer: "",
+                seller: "",
+                transportNo: "",
+            };
         }
         }
     }
     }
 };
 };

+ 17 - 1
src/views/slaughterManagment/firmBuy.vue

@@ -85,7 +85,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addFirmBuy')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addFirmBuy')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -236,6 +236,22 @@ export default {
             this.page = p;
             this.page = p;
             // 企业采购列表
             // 企业采购列表
             this.getfirmBuyList();
             this.getfirmBuyList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                sheepId: "",
+                origin: "",
+                acquisitionTime: this.$moment().format("YYYY-MM-DD"),
+                acquisitionPerson: "",
+                acquisitionWeight: "",
+                transportVehicles: ""
+            };
         }
         }
     }
     }
 };
 };

+ 15 - 1
src/views/slaughterManagment/inButcherHurdle.vue

@@ -76,7 +76,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addWait')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addWait')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -224,6 +224,20 @@ export default {
             this.page = p;
             this.page = p;
             // 入待宰栏列表
             // 入待宰栏列表
             this.getWaitList();
             this.getWaitList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                sheepId: "",
+                entryTime: this.$moment().format("YYYY-MM-DD"),
+                operator: "",
+                currentPosition: ""
+            };
         }
         }
     }
     }
 };
 };

+ 18 - 1
src/views/slaughterManagment/inStore.vue

@@ -97,7 +97,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addInStore')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addInStore')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -259,6 +259,23 @@ export default {
             this.page = p;
             this.page = p;
             // 入库管理列表
             // 入库管理列表
             this.getInStoreList();
             this.getInStoreList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                carcassCode: "",
+                storageTime: this.$moment().format("YYYY-MM-DD"),
+                storageLocation: "",
+                slaughterTime: this.$moment().format("YYYY-MM-DD"),
+                storageWeight: "",
+                operator: "",
+                slaughterBatch: ""
+            };
         }
         }
     }
     }
 };
 };

+ 17 - 1
src/views/slaughterManagment/outStore.vue

@@ -101,7 +101,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addOutStore')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addOutStore')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -258,6 +258,22 @@ export default {
             this.page = p;
             this.page = p;
             // 出仓管理列表
             // 出仓管理列表
             this.getOutStoreList();
             this.getOutStoreList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                carcassCode: "",
+                deliveryTime: this.$moment().format("YYYY-MM-DD"),
+                flowTo: this.$store.state["outStoreDirection"][0].value,
+                deliveryWeight: "",
+                operator: "",
+                slaughterBatch: ""
+            };
         }
         }
     }
     }
 };
 };

+ 17 - 1
src/views/slaughterManagment/regisSlaughter.vue

@@ -86,7 +86,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addRegis')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addRegis')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -240,6 +240,22 @@ export default {
             this.page = p;
             this.page = p;
             // 入宰登记列表
             // 入宰登记列表
             this.getRegisList();
             this.getRegisList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                sheepId: "",
+                registrationTime: this.$moment().format("YYYY-MM-DD"),
+                slaughterBatch: "",
+                entryWeight: "",
+                operator: "",
+                quarantineNo: ""
+            };
         }
         }
     }
     }
 };
 };

+ 16 - 1
src/views/slaughterManagment/reportQuarantine.vue

@@ -95,7 +95,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addReport')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addReport')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -246,6 +246,21 @@ export default {
             this.page = p;
             this.page = p;
             // 上报检疫列表
             // 上报检疫列表
             this.getReportList();
             this.getReportList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                inspectionDate: this.$moment().format("YYYY-MM-DD"),
+                inspectionPerson: "",
+                status: 1,
+                quarantineNo: "",
+                slaughterBatch: null
+            };
         }
         }
     }
     }
 };
 };

+ 16 - 1
src/views/slaughterManagment/segmentation.vue

@@ -81,7 +81,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addSegmentation')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addSegmentation')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -234,6 +234,21 @@ export default {
             this.page = p;
             this.page = p;
             // 分割加工列表
             // 分割加工列表
             this.getSegmentationList();
             this.getSegmentationList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                carcassCode: "",
+                splitBatch: this.$moment().format("YYYYMMDD"),
+                processingTime: this.$moment().format("YYYY-MM-DD"),
+                weight: "",
+                operator: ""
+            };
         }
         }
     }
     }
 };
 };

+ 18 - 1
src/views/slaughterManagment/slaughterWeight.vue

@@ -111,7 +111,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addWeighS')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addWeighS')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -272,6 +272,23 @@ export default {
             this.page = p;
             this.page = p;
             // 宰后称重列表
             // 宰后称重列表
             this.getWeighSList();
             this.getWeighSList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                carcassCode: "",
+                slaughterBatch: "",
+                slaughterTime: this.$moment().format("YYYY-MM-DD"),
+                weighingTime: this.$moment().format("YYYY-MM-DD"),
+                flowTo: this.$store.state['outStoreDirection'][0].value,
+                carcassWeight: "",
+                operator: ""
+            };
         }
         }
     }
     }
 };
 };

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

@@ -76,7 +76,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addSplitBatch')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addSplitBatch')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -279,6 +279,18 @@ export default {
             this.page = p;
             this.page = p;
             // 分割批次列表
             // 分割批次列表
             this.getSplitBatchList();
             this.getSplitBatchList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                carcassCode: "",
+                weight: ""
+            };
         }
         }
     }
     }
 };
 };

+ 20 - 1
src/views/storeTransportation/dispatching.vue

@@ -105,7 +105,7 @@
                         </el-form-item>
                         </el-form-item>
 
 
                         <el-form-item>
                         <el-form-item>
-                            <el-button @click="isShow=false">取 消</el-button>
+                            <el-button @click="cancel">取 消</el-button>
                             <el-button type="primary" @click="submitForm('addDispatch')">保 存</el-button>
                             <el-button type="primary" @click="submitForm('addDispatch')">保 存</el-button>
                         </el-form-item>
                         </el-form-item>
                     </el-form>
                     </el-form>
@@ -275,6 +275,25 @@ export default {
             this.page = p;
             this.page = p;
             // 配送管理列表
             // 配送管理列表
             this.getDispatchList();
             this.getDispatchList();
+        },
+        // 取消
+        cancel() {
+            this.isShow = false;
+            this.reset();
+        },
+        // 重置
+        reset() {
+            this.formData = {
+                salesNo: "",
+                deliveryCustomer: "",
+                deliveryAddress: "",
+                transportNo: '',
+                weight: null,
+                distributor: '',
+                transportVehicles: '',
+                tel: '',
+                status: 0
+            };
         }
         }
     }
     }
 };
 };

+ 4 - 4
src/views/storeTransportation/productQuery.vue

@@ -25,8 +25,8 @@
                     <el-table-column prop="saleNo" label="销售单号"></el-table-column>
                     <el-table-column prop="saleNo" label="销售单号"></el-table-column>
                     <el-table-column prop="buyer" label="购买人"></el-table-column>
                     <el-table-column prop="buyer" label="购买人"></el-table-column>
                     <el-table-column prop="splitTime" label="分割时间"></el-table-column>
                     <el-table-column prop="splitTime" label="分割时间"></el-table-column>
-                    <el-table-column prop="saleNo" label="分割时间"></el-table-column>
-                    <el-table-column prop="acidTime" label="排酸时间"></el-table-column>
+<!--                    <el-table-column prop="saleNo" label="分割时间"></el-table-column>-->
+<!--                    <el-table-column prop="acidTime" label="排酸时间"></el-table-column>-->
                     <el-table-column prop="slaughterTime" label="屠宰时间"></el-table-column>
                     <el-table-column prop="slaughterTime" label="屠宰时间"></el-table-column>
                     <el-table-column prop="quarantineTime" label="检疫时间"></el-table-column>
                     <el-table-column prop="quarantineTime" label="检疫时间"></el-table-column>
                     <el-table-column prop="quarantineResult" label="检疫结果"></el-table-column>
                     <el-table-column prop="quarantineResult" label="检疫结果"></el-table-column>
@@ -49,7 +49,7 @@
             </article>
             </article>
         </section>
         </section>
 
 
-        
+
     </div>
     </div>
 </template>
 </template>
 
 
@@ -113,4 +113,4 @@ export default {
         margin-top: 20px;
         margin-top: 20px;
     }
     }
 }
 }
-</style>
+</style>