|
@@ -552,6 +552,16 @@ export default {
|
|
|
this.contractType = type
|
|
|
this.address = this.data.province + this.data.city + this.data.county + this.data.address
|
|
|
}
|
|
|
+ if(this.payTypeData.length > 0){
|
|
|
+ this.payTypeData.forEach(item=>{
|
|
|
+ if (item.isdefault == 1){
|
|
|
+ this.form.paytype = item.label
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.payTypeList()
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// if (type == '居间') {
|
|
|
// this.$nextTick(() => {
|
|
@@ -722,33 +732,19 @@ export default {
|
|
|
where: {condition: ""},
|
|
|
}
|
|
|
})
|
|
|
- console.log(res,'res')
|
|
|
this.payTypeData = res.data.map((item,index)=>{
|
|
|
- /*if (item.point === '订单审核'){
|
|
|
- return {
|
|
|
- label:item.ruleno + '\xa0 \xa0 \xa0 \xa0' + item.point + '\xa0 \xa0 \xa0 \xa0' + "立账额度" + (item.amountrate * 100) +'% ' + '\xa0 \xa0 \xa0 \xa0' + '后置天数' + item.days + '天',
|
|
|
- value:item.ruleno + '' + item.point + '' + "立账额度" + (item.amountrate * 100) +'% ' + '' + '后置天数' + item.days + '天',
|
|
|
- }
|
|
|
- }else {
|
|
|
- return {
|
|
|
- label:item.ruleno + '\xa0 \xa0 \xa0 \xa0' + item.point + '\xa0 \xa0 \xa0 \xa0' + '后置天数' + item.days + '天',
|
|
|
- value:item.ruleno + '' + item.point + '' + '后置天数' + item.days + '天',
|
|
|
- }
|
|
|
- }*/
|
|
|
return {
|
|
|
label:item.ruleno + '-' + item.remarks ,
|
|
|
- value:item.ruleno + '-' + item.remarks
|
|
|
+ value:item.ruleno + '-' + item.remarks,
|
|
|
+ isdefault:item.isdefault
|
|
|
}
|
|
|
|
|
|
})
|
|
|
- /* res.data.forEach((item,index)=>{
|
|
|
- if (item.point === '订单审核'){
|
|
|
- this.payTypeData[index] = item.ruleno + ' ' + item.point + ' ' + "立账额度" + (item.amountrate * 100) +'% ' + '后置天数' + item.days
|
|
|
- }else {
|
|
|
- this.payTypeData[index] = item.ruleno + ' ' + item.point + ' ' + '后置天数' + item.days
|
|
|
- }
|
|
|
- })*/
|
|
|
- console.log(this.payTypeData,'处理后数据')
|
|
|
+ this.payTypeData.forEach(item=>{
|
|
|
+ if (item.isdefault == 1){
|
|
|
+ this.form.paytype = item.label
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
discountrateChange(){
|
|
|
this.form.discountrate = Math.round(this.form.discountrate * 100)/100
|
|
@@ -764,7 +760,6 @@ export default {
|
|
|
},
|
|
|
mounted () {
|
|
|
this.queryTag()
|
|
|
- this.payTypeList()
|
|
|
}
|
|
|
}
|
|
|
|