|
@@ -167,24 +167,29 @@ export default {
|
|
|
onClickConfirm() {
|
|
|
let tmstrainLoadingResult = {
|
|
|
resultId: this.$route.params.resultId,
|
|
|
- resultIsclear: this.form1.resultIsclear,
|
|
|
+ resultWagonNo: this.form1.resultWagonNo,
|
|
|
+ resultBillableTonnage: this.form1.resultBillableTonnage,
|
|
|
resultClass: this.form1.resultClass,
|
|
|
+ resultIsclear: this.form1.resultIsclear,
|
|
|
sendStationId: this.sendStationId,
|
|
|
arrivalStationId: this.toTheStationId,
|
|
|
resultLoadingDate: sjTime(this.form1.resultLoadingDate),
|
|
|
+ batchId: this.form1.batchId,
|
|
|
capacityId: this.form1.capacityId,
|
|
|
resultMaterialNumber: this.form1.resultMaterialNumber,
|
|
|
resultMaterialTheoryweight: this.form1.resultMaterialTheoryweight,
|
|
|
resultRemarks: this.form1.resultRemarks,
|
|
|
+ resultType:1
|
|
|
};
|
|
|
if (
|
|
|
+ tmstrainLoadingResult.resultId ==null ||
|
|
|
tmstrainLoadingResult.resultIsclear == null ||
|
|
|
tmstrainLoadingResult.resultClass == null ||
|
|
|
tmstrainLoadingResult.sendStationId == null ||
|
|
|
tmstrainLoadingResult.arrivalStationId == null ||
|
|
|
tmstrainLoadingResult.resultLoadingDate == null
|
|
|
)
|
|
|
- this.$message.error("必填项存在空值!");
|
|
|
+ this.$message.error("必填项存在空值!1");
|
|
|
else
|
|
|
this.axios
|
|
|
.post(
|
|
@@ -197,6 +202,11 @@ export default {
|
|
|
type: "success",
|
|
|
message: "修改成功!",
|
|
|
});
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.data.data,
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
this.$router.go(-1);
|