Commit e4ff0ef7 authored by dcy's avatar dcy

特需修改为一个付款类型

parent 635d1eb5
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
<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>
<dict-selector placeholder="请选择付款类型" style="margin-left: 20px;" v-model="specialNeedsList[index].payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-selector> </el-form-item>
<el-form-item label="付款类型">
<dict-selector placeholder="请选择付款类型" v-model="payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-selector>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -44,12 +46,16 @@ export default { ...@@ -44,12 +46,16 @@ export default {
form:{}, form:{},
advanceType:[], advanceType:[],
specialNeedsList:[], specialNeedsList:[],
todoDetail:'' todoDetail:'',
payType:''
} }
}, },
methods:{ methods:{
submit(){ submit(){
this.specialNeedsList.forEach(i => i.todoDetail = this.todoDetail) this.specialNeedsList.forEach(i => {
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=>{
if(r.code === 0){ if(r.code === 0){
...@@ -67,7 +73,6 @@ export default { ...@@ -67,7 +73,6 @@ export default {
this.specialNeedsList.push({ this.specialNeedsList.push({
advanceType:r.value, advanceType:r.value,
orderId:this.orderId, orderId:this.orderId,
payType:'',//付款类型
transFee:'',//预计金额 transFee:'',//预计金额
transCurrency:'',//运输费币种 transCurrency:'',//运输费币种
}) })
......
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