Bu işleme şunda yer alıyor:
朱文强 2021-10-29 14:38:18 +08:00
ebeveyn 452375874b
işleme 247dfdc318

Dosyayı Görüntüle

@ -31,12 +31,12 @@
clearable
></el-autocomplete>
</el-form-item>
<el-form-item label="起点" prop="startPoint">
<!-- <el-form-item label="起点" prop="startPoint">
<el-input v-model="dataForm.startPoint" placeholder="起点"></el-input>
</el-form-item>
<el-form-item label="终点" prop="endPoint">
</el-form-item> -->
<!-- <el-form-item label="终点" prop="endPoint">
<el-input v-model="dataForm.endPoint" placeholder="终点"></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="数量" prop="num">
<el-input v-model="dataForm.num" placeholder="数量" oninput = "value=value.replace(/[^\d]/g,'')"></el-input>
</el-form-item>
@ -67,8 +67,8 @@ export default {
id: 0,
taskType: '',
model: '',
startPoint: '',
endPoint: '',
// startPoint: '',
// endPoint: '',
num: '',
unit: '',
remarks: '',
@ -83,13 +83,13 @@ export default {
],
num: [
{ required: true, message: '数量不能为空', trigger: 'blur' }
],
startPoint: [
{ required: true, message: '起点不能为空', trigger: 'blur' }
],
endPoint: [
{ required: true, message: '终点不能为空', trigger: 'blur' }
]
// startPoint: [
// { required: true, message: '', trigger: 'blur' }
// ],
// endPoint: [
// { required: true, message: '', trigger: 'blur' }
// ]
}
}
},
@ -151,8 +151,8 @@ export default {
'taskType': this.dataForm.taskType,
'model': this.dataForm.model,
'num': this.dataForm.num,
'startPoint': this.dataForm.startPoint,
'endPoint': this.dataForm.endPoint,
// 'startPoint': this.dataForm.startPoint,
// 'endPoint': this.dataForm.endPoint,
'remarks': this.dataForm.remarks,
'dateNum': this.dataForm.dateNum
})