|
@@ -179,10 +179,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<template v-if="item.slot">
|
|
|
<!-- 装货点 -->
|
|
|
- <template
|
|
|
- v-if="item.prop == 'requirementPlatformName'"
|
|
|
- style="width: 400px"
|
|
|
- >
|
|
|
+ <template v-if="item.prop == 'requirementPlatformName'">
|
|
|
<el-input
|
|
|
class="textinput"
|
|
|
v-model="scope.row.requirementPlatformName"
|
|
@@ -367,6 +364,7 @@
|
|
|
import PageTitle from '@/components/Page/Title'
|
|
|
import { sjTime } from '@/utils/sharedJsFile'
|
|
|
import { getCookie } from '@/utils/util.js'
|
|
|
+import { isNumber } from '../../app.js'
|
|
|
export default {
|
|
|
components: { PageTitle },
|
|
|
data() {
|
|
@@ -523,6 +521,9 @@ export default {
|
|
|
computed: {
|
|
|
requirementType() {
|
|
|
return this.form.requirementType
|
|
|
+ },
|
|
|
+ requirementEstimatedDuration() {
|
|
|
+ return this.form.requirementEstimatedDuration
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -535,6 +536,16 @@ export default {
|
|
|
'/api/v1/uc/queryMaterialByLike?apiId=244&i=' + new Date()
|
|
|
}
|
|
|
},
|
|
|
+ requirementEstimatedDuration() {
|
|
|
+ if (!isNumber(this.form.requirementEstimatedDuration)) {
|
|
|
+ this.$message({
|
|
|
+ message: '预计用车时长单位为分钟,请填写数字',
|
|
|
+ offset: '250',
|
|
|
+ duration: 2500
|
|
|
+ })
|
|
|
+ this.$set(this.form, 'requirementEstimatedDuration', null)
|
|
|
+ }
|
|
|
+ },
|
|
|
// form: {
|
|
|
// handler(oldVal, newVal) {
|
|
|
// console.log(oldVal);
|