|
@@ -67,6 +67,7 @@
|
|
{required: true, message:'请选择合同终止日期', trigger:'blur'}
|
|
{required: true, message:'请选择合同终止日期', trigger:'blur'}
|
|
]">
|
|
]">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
|
+ @change="checkData"
|
|
placement="bottom-start"
|
|
placement="bottom-start"
|
|
v-model="inputForm.closingDate"
|
|
v-model="inputForm.closingDate"
|
|
type="date"
|
|
type="date"
|
|
@@ -108,7 +109,9 @@
|
|
:rules="[
|
|
:rules="[
|
|
{required: true, message:'请输入合同/预计金额(元)', trigger:'blur'}
|
|
{required: true, message:'请输入合同/预计金额(元)', trigger:'blur'}
|
|
]">
|
|
]">
|
|
- <el-input v-model="inputForm.contractAmount" placeholder="请输入合同/预计金额(元)"></el-input>
|
|
|
|
|
|
+ <el-input v-model="inputForm.contractAmount" placeholder="请输入合同/预计金额(元)"
|
|
|
|
+ @keyup.native="inputForm.contractAmount = twoDecimalPlaces(inputForm.contractAmount)"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -595,6 +598,14 @@
|
|
this.inputForm.status = '3'
|
|
this.inputForm.status = '3'
|
|
this.workContractService.updateStatusById(this.inputForm)
|
|
this.workContractService.updateStatusById(this.inputForm)
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ checkData () {
|
|
|
|
+ let begin = this.inputForm.effectiveDate
|
|
|
|
+ let close = this.inputForm.closingDate
|
|
|
|
+ if (close < begin) {
|
|
|
|
+ this.$message.warning(`合同终止日期异常,请重新选择`)
|
|
|
|
+ this.inputForm.closingDate = ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|