Commit 10d9209b authored by dcy's avatar dcy

特需修改

parent 7179b8c3
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
<div class="content"> <div class="content">
<el-form label-width="180px" label-position="left"> <el-form label-width="180px" label-position="left">
<el-form-item label="特殊要求"> <el-form-item label="特殊要求">
<dict-selector v-if="show" v-model="advanceType" multiple formType="checkbox" :type="DICT_TYPE.ORDER_SPECIAL_NEEDS" ></dict-selector> <el-checkbox-group v-model="advanceType">
<el-checkbox v-for="(item) in getDictDatas(DICT_TYPE.ORDER_SPECIAL_NEEDS)" :disabled="advanceTypeList.includes(item.value)" :label="item.value" >{{item.label}}</el-checkbox>
</el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item label="特殊要求备注"><el-input type="textarea" style="width: 300px;" v-model="todoDetail"></el-input></el-form-item> <el-form-item label="特殊要求备注"><el-input type="textarea" style="width: 300px;" v-model="todoDetail"></el-input></el-form-item>
<el-form-item v-for="(item,index) in this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)" v-if="advanceType.indexOf(item.value) > -1" :key="item.value" :label="item.label + '预计金额'"> <el-form-item v-for="(item,index) in this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)" v-if="advanceType.indexOf(item.value) > -1" :key="item.value" :label="item.label + '预计金额'">
...@@ -14,9 +16,10 @@ ...@@ -14,9 +16,10 @@
<dict-selector v-model="specialNeedsList[index].transCurrency" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" ></dict-selector> <dict-selector v-model="specialNeedsList[index].transCurrency" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" ></dict-selector>
</div> </div>
</el-input> </el-input>
</el-form-item> <div style="display: inline-block;margin-left: 20px;">
<el-form-item label="付款类型"> <span style="margin-right: 10px;">付款类型</span>
<dict-selector placeholder="请选择付款类型" v-model="payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-selector> <dict-selector placeholder="请选择付款类型" v-model="specialNeedsList[index].payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-selector>
</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -38,6 +41,12 @@ export default { ...@@ -38,6 +41,12 @@ export default {
type:[String,Number], type:[String,Number],
}, },
show:Boolean, show:Boolean,
advanceTypes:String,
},
computed:{
advanceTypeList(){
return !!this.advanceTypes ? this.advanceTypes.split(',') : []
}
}, },
data(){ data(){
return{ return{
...@@ -47,14 +56,13 @@ export default { ...@@ -47,14 +56,13 @@ export default {
advanceType:[], advanceType:[],
specialNeedsList:[], specialNeedsList:[],
todoDetail:'', todoDetail:'',
payType:''
} }
}, },
methods:{ methods:{
submit(){ submit(){
this.specialNeedsList.forEach(i => { this.specialNeedsList.forEach(i => {
i.todoDetail = this.todoDetail i.todoDetail = this.todoDetail
i.payType = this.payType
}) })
let p = this.specialNeedsList.filter(i => this.advanceType.indexOf(i.advanceType) > -1) let p = this.specialNeedsList.filter(i => this.advanceType.indexOf(i.advanceType) > -1)
specialNeedCreate(p).then(r=>{ specialNeedCreate(p).then(r=>{
...@@ -75,6 +83,7 @@ export default { ...@@ -75,6 +83,7 @@ export default {
orderId:this.orderId, orderId:this.orderId,
transFee:'',//预计金额 transFee:'',//预计金额
transCurrency:'',//运输费币种 transCurrency:'',//运输费币种
payType:''
}) })
}) })
}else { }else {
......
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