Commit a4ce6aee authored by dcy's avatar dcy

佣金设置去掉必填

parent 3cf47c91
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :rules="rules" :model="form" ref="form" :inline="true" > <el-form class="demo-ruleForm" :rules="rules" :model="form" ref="form" >
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="客户名称" prop="customerId"> <el-form-item label="客户名称" prop="customerId">
...@@ -22,33 +22,32 @@ ...@@ -22,33 +22,32 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="5"> <el-col :span="4">
<el-form-item label="运输方式" prop="transportId"> <el-form-item label="运输方式" prop="transportId">
<div style="width: 130px;"> <div>
<custom-selectors-dictionary v-model="form.transportId" <custom-selectors-dictionary v-model="form.transportId" :options="getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"></custom-selectors-dictionary>
:options="getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"></custom-selectors-dictionary>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="4">
<el-form-item label="始发地" prop="departureId"> <el-form-item label="始发地" prop="departureId">
<div style="width: 130px;"> <div>
<custom-selectors-dictionary label-key="titleZh" value-key="id" v-model="form.departureId" <custom-selectors-dictionary label-key="titleZh" value-key="id" v-model="form.departureId"
:options="exportCityList"></custom-selectors-dictionary> :options="exportCityList"></custom-selectors-dictionary>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="4">
<el-form-item label="目的地" prop="objectiveId"> <el-form-item label="目的地" prop="objectiveId">
<div style="width: 130px;"> <div>
<custom-selectors-dictionary label-key="titleZh" value-key="id" v-model="form.objectiveId" <custom-selectors-dictionary label-key="titleZh" value-key="id" v-model="form.objectiveId"
:options="importCityList"></custom-selectors-dictionary> :options="importCityList"></custom-selectors-dictionary>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="4">
<el-form-item label="报关方式" prop="customsType"> <el-form-item label="报关方式" prop="customsType">
<div style="width: 130px;"> <div>
<custom-selectors-dictionary v-model="form.customsType" <custom-selectors-dictionary v-model="form.customsType"
:options="getDictDatas(DICT_TYPE.SHIPPING_DECLARATION_TYPE)"></custom-selectors-dictionary> :options="getDictDatas(DICT_TYPE.SHIPPING_DECLARATION_TYPE)"></custom-selectors-dictionary>
</div> </div>
...@@ -56,7 +55,7 @@ ...@@ -56,7 +55,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="备案" prop="approval"> <el-form-item label="备案" prop="approval">
<div style="width: 130px;"> <div>
<custom-selectors-dictionary v-model="form.approval" <custom-selectors-dictionary v-model="form.approval"
:options="getDictDatas(DICT_TYPE.COMMISSION_PRODUCT_APPROVAL)"></custom-selectors-dictionary> :options="getDictDatas(DICT_TYPE.COMMISSION_PRODUCT_APPROVAL)"></custom-selectors-dictionary>
</div> </div>
...@@ -320,11 +319,6 @@ export default { ...@@ -320,11 +319,6 @@ export default {
// 表单校验 // 表单校验
rules: { rules: {
customerId: [{required: true, message: "客户名称不能为空", trigger: "blur"}], customerId: [{required: true, message: "客户名称不能为空", trigger: "blur"}],
departureId: [{required: true, message: "始发地不能为空", trigger: "blur"}],
transportId: [{required: true, message: "运输方式不能为空", trigger: "blur"}],
objectiveId: [{required: true, message: "目的地不能为空", trigger: "blur"}],
customsType: [{required: true, message: "报关类别不能为空", trigger: "blur"}],
approval: [{required: true, message: "产品备案不能为空", trigger: "blur"}],
}, },
customerShow: true, customerShow: true,
id:undefined,//佣金id id:undefined,//佣金id
...@@ -619,6 +613,7 @@ export default { ...@@ -619,6 +613,7 @@ export default {
.title { .title {
margin: 15px 0; margin: 15px 0;
text-align: left;
.label { .label {
vertical-align: middle; vertical-align: middle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment