|
@@ -15,21 +15,7 @@
|
|
|
<view class="input_module_as">
|
|
|
<view class="input_module_as_title"> *申请类别 </view>
|
|
|
<view class="input_module_as_en">
|
|
|
- <radio-group
|
|
|
- @change="
|
|
|
- d => {
|
|
|
- form.applyCategory = d.detail.value
|
|
|
- }
|
|
|
- "
|
|
|
- >
|
|
|
- <label style="margin-right: 20upx">
|
|
|
- <radio value="HOME" :checked="form.applyCategory === 'HOME'" />家用空调
|
|
|
- </label>
|
|
|
- <label> <radio value="TRADE" :checked="form.applyCategory === 'TRADE'" />商用空调 </label>
|
|
|
- <br />
|
|
|
- <br />
|
|
|
- <label> <radio value="ELEC" :checked="form.applyCategory === 'ELEC'" />生活电器(小家电) </label>
|
|
|
- </radio-group>
|
|
|
+ {{ { HOME: '家用空调', TRADE: '商用空调', ELEC: '生活电器(小家电)' }[form.applyCategory] }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="input_module_as">
|
|
@@ -189,11 +175,13 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- form: null
|
|
|
+ form: null,
|
|
|
+ applyCategory: null
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- var { salesId, pushFlag, identity } = option
|
|
|
+ var { salesId, pushFlag, identity, applyCategory } = option
|
|
|
+ this.applyCategory = applyCategory
|
|
|
this.getDetails({
|
|
|
salesId,
|
|
|
pushFlag,
|
|
@@ -303,7 +291,7 @@ export default {
|
|
|
item.quantity = item.qty
|
|
|
})
|
|
|
}
|
|
|
- this.form = res.data
|
|
|
+ this.form = { ...res.data, applyCategory: this.applyCategory }
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
},
|