|
@@ -8,7 +8,8 @@
|
|
<view class="one_2">
|
|
<view class="one_2">
|
|
<view class="list" v-for="(item,index) in info.goods" :key="index">
|
|
<view class="list" v-for="(item,index) in info.goods" :key="index">
|
|
<view class="list_1">
|
|
<view class="list_1">
|
|
- <image class="image" :src="item.goods.file&&item.goods.file.length>0?item.goods.file[0].url:''" mode="">
|
|
|
|
|
|
+ <image class="image"
|
|
|
|
+ :src="item.goods.file&&item.goods.file.length>0?item.goods.file[0].url:''" mode="">
|
|
</image>
|
|
</image>
|
|
</view>
|
|
</view>
|
|
<view class="list_2">
|
|
<view class="list_2">
|
|
@@ -36,23 +37,27 @@
|
|
<view class="two_1" v-if="status=='3'">
|
|
<view class="two_1" v-if="status=='3'">
|
|
<uni-forms ref="thrform" :rules="thrrules" :model="thrform" label-width="auto">
|
|
<uni-forms ref="thrform" :rules="thrrules" :model="thrform" label-width="auto">
|
|
<uni-forms-item label="售后商品" name="goods_id">
|
|
<uni-forms-item label="售后商品" name="goods_id">
|
|
- <picker class="picker" mode="selector" :range="info.goods" @change="goodsChange" range-key="goods_name">
|
|
|
|
|
|
+ <picker class="picker" mode="selector" :range="info.goods" @change="goodsChange"
|
|
|
|
+ range-key="goods_name">
|
|
<view>{{thrform.goods_name||'请选择退款商品'}}</view>
|
|
<view>{{thrform.goods_name||'请选择退款商品'}}</view>
|
|
</picker>
|
|
</picker>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="售后类型" name="type">
|
|
<uni-forms-item label="售后类型" name="type">
|
|
- <picker class="picker" mode="selector" :range="typeList" @change="typeChange" range-key="label">
|
|
|
|
|
|
+ <picker class="picker" mode="selector" :range="typeList" @change="typeChange"
|
|
|
|
+ range-key="label">
|
|
<view>{{thrform.type_name||'请选择售后类型'}}</view>
|
|
<view>{{thrform.type_name||'请选择售后类型'}}</view>
|
|
</picker>
|
|
</picker>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="退款金额" name="money" v-if="thrform.type=='1'||thrform.type=='2'">
|
|
<uni-forms-item label="退款金额" name="money" v-if="thrform.type=='1'||thrform.type=='2'">
|
|
- <uni-easyinput type="digit" v-model="thrform.money" @input="toMoney" placeholder="请输入退款金额" />
|
|
|
|
|
|
+ <uni-easyinput type="digit" v-model="thrform.money" @input="toMoney"
|
|
|
|
+ placeholder="请输入退款金额" />
|
|
<view class="money">
|
|
<view class="money">
|
|
最大退款金额不能超过 <text>{{moneyInfo.payTotal||0}}</text>,<text @tap="toAll">全部提现</text>
|
|
最大退款金额不能超过 <text>{{moneyInfo.payTotal||0}}</text>,<text @tap="toAll">全部提现</text>
|
|
</view>
|
|
</view>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="申请理由" name="reason">
|
|
<uni-forms-item label="申请理由" name="reason">
|
|
- <picker class="picker" mode="selector" :range="reasonList" @change="reasonChange" range-key="label">
|
|
|
|
|
|
+ <picker class="picker" mode="selector" :range="reasonList" @change="reasonChange"
|
|
|
|
+ range-key="label">
|
|
<view>{{thrform.reason_name||'请选择申请理由'}}</view>
|
|
<view>{{thrform.reason_name||'请选择申请理由'}}</view>
|
|
</picker>
|
|
</picker>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
@@ -60,7 +65,8 @@
|
|
<uni-easyinput type="textarea" v-model="thrform.desc" placeholder="请输入售后描述" />
|
|
<uni-easyinput type="textarea" v-model="thrform.desc" placeholder="请输入售后描述" />
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="附件" name="file">
|
|
<uni-forms-item label="附件" name="file">
|
|
- <upload :list="thrform.file" name="file" :count="1" @uplSuc="uplSuc" @uplDel="uplDel"></upload>
|
|
|
|
|
|
+ <upload :list="thrform.file" name="file" :count="1" @uplSuc="uplSuc" @uplDel="uplDel">
|
|
|
|
+ </upload>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<view class="btn">
|
|
<view class="btn">
|
|
<button type="primary" size="mini" @click="onSubmit('thrform')">提交保存</button>
|
|
<button type="primary" size="mini" @click="onSubmit('thrform')">提交保存</button>
|
|
@@ -140,8 +146,8 @@
|
|
},
|
|
},
|
|
onLoad: async function(e) {
|
|
onLoad: async function(e) {
|
|
const that = this;
|
|
const that = this;
|
|
- that.$set(that, `id`, e && e.id || '636221e5e25ed78601dd4fbb');
|
|
|
|
- that.$set(that, `status`, e && e.status || '3');
|
|
|
|
|
|
+ that.$set(that, `id`, e && e.id || '');
|
|
|
|
+ that.$set(that, `status`, e && e.status || '');
|
|
// 查询其他信息
|
|
// 查询其他信息
|
|
await that.searchOther();
|
|
await that.searchOther();
|
|
// 监听用户登录
|
|
// 监听用户登录
|