|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="车牌号" prop="vehicleNumber">
|
|
|
|
|
<JnpfInput v-model="dataForm.vehicleNumber" @change="changeData('vehicleNumber', -1)" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
:disabled="!changeId" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -41,6 +41,20 @@
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="皮重重量" prop="vehicleWeight">
|
|
|
|
|
<JnpfInput v-model="dataForm.vehicleWeight" @change="changeData('vehicleWeight', -1)" placeholder="请输入"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="皮重公差" prop="weightTolerances">
|
|
|
|
|
<JnpfInput v-model="dataForm.weightTolerances" @change="changeData('weightTolerances', -1)"
|
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="联系电话" prop="contactsPhone">
|
|
|
|
|
<JnpfInput v-model="dataForm.contactsPhone" @change="changeData('contactsPhone', -1)" placeholder="请输入"
|
|
|
|
@ -88,7 +102,7 @@
|
|
|
|
|
@select="addForSelect" @close="selectDialogVisible = false" />
|
|
|
|
|
</el-row>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<div class="upAndDown-button" v-if="dataForm.id">
|
|
|
|
|
<!-- <div class="upAndDown-button" v-if="dataForm.id">
|
|
|
|
|
<el-button @click="prev" :disabled='prevDis'>
|
|
|
|
|
{{'上一条'}}
|
|
|
|
|
</el-button>
|
|
|
|
@ -97,7 +111,7 @@
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-button type="primary" @click="dataFormSubmit(2)" :loading="continueBtnLoading">
|
|
|
|
|
{{!dataForm.id ?'确定并新增':'确定并继续'}}</el-button>
|
|
|
|
|
{{!dataForm.id ?'确定并新增':'确定并继续'}}</el-button> -->
|
|
|
|
|
<el-button @click="visible = false"> 取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading"> 确 定</el-button>
|
|
|
|
|
</span>
|
|
|
|
@ -166,6 +180,8 @@
|
|
|
|
|
vehicleColor: undefined,
|
|
|
|
|
contactsName: undefined,
|
|
|
|
|
contactsPhone: undefined,
|
|
|
|
|
weightTolerances: undefined,
|
|
|
|
|
vehicleWeight: undefined,
|
|
|
|
|
vehiclePhotos: [],
|
|
|
|
|
vehicleAscription: "1",
|
|
|
|
|
ascriptionId: undefined,
|
|
|
|
@ -199,6 +215,22 @@
|
|
|
|
|
message: '请输入',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},],
|
|
|
|
|
weightTolerances: [
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
pattern: /^\d+$/,
|
|
|
|
|
message: '请输入正确的数字',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
vehicleWeight: [
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
pattern: /^\d+$/,
|
|
|
|
|
message: '请输入正确的数字',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
contactsPhone: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入',
|
|
|
|
@ -258,6 +290,8 @@
|
|
|
|
|
vehicleBrand: [],
|
|
|
|
|
vehicleColor: [],
|
|
|
|
|
contactsName: [],
|
|
|
|
|
weightTolerances: [],
|
|
|
|
|
vehicleWeight: [],
|
|
|
|
|
contactsPhone: [],
|
|
|
|
|
vehiclePhotos: [],
|
|
|
|
|
vehicleAscription: [],
|
|
|
|
@ -267,6 +301,9 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
changeId() {
|
|
|
|
|
return !this.dataForm.id;
|
|
|
|
|
},
|
|
|
|
|
...mapGetters(['userInfo'])
|
|
|
|
|
},
|
|
|
|
|
watch: {},
|
|
|
|
@ -278,8 +315,8 @@
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {
|
|
|
|
|
selectChangeData(var1, var2) {
|
|
|
|
|
this.dataForm.ascriptionId = var2.id;
|
|
|
|
|
this.dataForm.ascriptionName = var2.cmp_nm;
|
|
|
|
|
this.dataForm.ascriptionId = var1.id;
|
|
|
|
|
this.dataForm.ascriptionName = var1.cmp_nm;
|
|
|
|
|
},
|
|
|
|
|
depSelectChangeData(var1, var2) {
|
|
|
|
|
this.dataForm.ascriptionId = var2.id;
|
|
|
|
|