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