|
@@ -5,6 +5,14 @@
|
|
<div class="form">
|
|
<div class="form">
|
|
<div class="form_box">
|
|
<div class="form_box">
|
|
<dil-form :formId="114" v-model="form1" ref="from1"></dil-form>
|
|
<dil-form :formId="114" v-model="form1" ref="from1"></dil-form>
|
|
|
|
+ <span> 二程:海港-江港</span>
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="status"
|
|
|
|
+ active-color="#13ce66"
|
|
|
|
+ inactive-color="#909399"
|
|
|
|
+ @change="changeStatus"
|
|
|
|
+ >
|
|
|
|
+ </el-switch>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 确定和取消 -->
|
|
<!-- 确定和取消 -->
|
|
@@ -23,6 +31,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
form1: {},
|
|
form1: {},
|
|
|
|
+ status: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -45,6 +54,11 @@ export default {
|
|
handleCheckedCitiesChange(value) {
|
|
handleCheckedCitiesChange(value) {
|
|
console.log(value);
|
|
console.log(value);
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ //改变二程状态
|
|
|
|
+ changeStatus() {
|
|
|
|
+ console.log(this.status);
|
|
|
|
+ },
|
|
// 返回
|
|
// 返回
|
|
onClickCancel() {
|
|
onClickCancel() {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
@@ -58,6 +72,7 @@ export default {
|
|
shipmentInstructionsId: this.$route.params.instructionsId,
|
|
shipmentInstructionsId: this.$route.params.instructionsId,
|
|
instructionsTotalTonnage: this.form1.instructionsTotalTonnage,
|
|
instructionsTotalTonnage: this.form1.instructionsTotalTonnage,
|
|
instructionTime: sjTime(this.form1.instructionTime),
|
|
instructionTime: sjTime(this.form1.instructionTime),
|
|
|
|
+ statu: this.status,
|
|
};
|
|
};
|
|
|
|
|
|
//判断合计吨位是否为数字
|
|
//判断合计吨位是否为数字
|
|
@@ -72,10 +87,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var val = this.value;
|
|
var val = this.value;
|
|
-
|
|
|
|
|
|
+
|
|
if (
|
|
if (
|
|
omsshipShipmentInstructions.instructionsTotalTonnage == null ||
|
|
omsshipShipmentInstructions.instructionsTotalTonnage == null ||
|
|
- omsshipShipmentInstructions.instructionTime==null
|
|
|
|
|
|
+ omsshipShipmentInstructions.instructionTime == null
|
|
)
|
|
)
|
|
this.$message.error("存在空值!");
|
|
this.$message.error("存在空值!");
|
|
else if (!isNumber(val)) this.$message.warning("合计吨位请填写数字");
|
|
else if (!isNumber(val)) this.$message.warning("合计吨位请填写数字");
|