123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <template>
- <view style="width: 100%; height: 100vh">
- <zj-page-container>
- <zj-page-fill>
- <view class="accessories_nfo_card_view" v-if="info">
- <!-- 配件信息 -->
- <view class="accessories_nfo_card">
- <view class="accessories_nfo_card_title">
- <text>配件信息</text>
- <text class="colorts">
- {{ info.flagName }}
- </text>
- </view>
- <view class="accessories_list_card">
- <view
- class="accessories_list_a"
- v-for="(item, index) in info.partsNewRefundManageRecordList || []"
- :key="index"
- >
- <view class="accessories_list_a_info">
- <view>
- {{ item.partsName }}
- </view>
- <view> *{{ item.qty }} </view>
- <view> ¥{{ item.totalAmount }} </view>
- </view>
- <view class="accessories_list_a_number">
- <text>{{ item.partsNumber }}</text>
- <view
- v-if="~['REFUNDED'].indexOf(info.flag)"
- class="viewtkstate"
- @tap.stop="
- () => {
- listItem = item
- showPopup = true
- }
- "
- >
- 查看退款状态
- </view>
- </view>
- </view>
- <view class="accessories_list_amount">
- 合计:<text class="colorts">
- ¥{{
- [...(info.partsNewRefundManageRecordList || []).map(a => a.totalAmount || 0), 0].reduce((a, b) => {
- return a + b
- })
- }}
- </text>
- </view>
- </view>
- <view class="accessories_nfo_card_title"> 备注信息 </view>
- <view class="accessories_nfo_card_note">
- {{ info.remark }}
- </view>
- </view>
- <!-- 申请信息 -->
- <view class="accessories_nfo_card">
- <view class="accessories_nfo_card_title"> 申请信息 </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 申请单号: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.applyNo }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 申请日期: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.createTime }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 申请人: </view>
- <view class="accessories_nfo_info">
- <view> {{ info.workerName }}({{ info.workerId }}) </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 网点: </view>
- <view class="accessories_nfo_info">
- <view> {{ info.websitName }}({{ info.websitNumber }}) </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 申请类别: </view>
- <view class="accessories_nfo_info">
- <radio-group
- v-if="info.flag === 'SAVE'"
- @change="
- d => {
- info.applyCategory = d.detail.value
- }
- "
- >
- <label style="margin-right: 20upx">
- <radio value="HOME" :checked="info.applyCategory === 'HOME'" />家用空调
- </label>
- <label> <radio value="TRADE" :checked="info.applyCategory === 'TRADE'" />商用空调 </label>
- <br />
- <br />
- <label> <radio value="ELEC" :checked="info.applyCategory === 'ELEC'" />生活电器(小家电) </label>
- </radio-group>
- <view v-else>
- {{ info.applyCategoryName }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 申请类型: </view>
- <view class="accessories_nfo_info">
- <radio-group
- v-if="info.flag === 'SAVE'"
- @change="
- d => {
- info.applyType = d.detail.value
- }
- "
- >
- <label style="margin-right: 20upx">
- <radio value="NEW" :checked="info.applyType === 'NEW'" />新件返还
- </label>
- <label> <radio value="LOST" :checked="info.applyType === 'LOST'" />破损返还 </label>
- <br />
- <br />
- <label> <radio value="BUG" :checked="info.applyType === 'BUG'" />故障返还 </label>
- </radio-group>
- <view v-else>
- {{ info.applyTypeName }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 返件方式: </view>
- <view class="accessories_nfo_info">
- <radio-group
- v-if="info.flag === 'SAVE'"
- @change="
- d => {
- info.refundMode = d.detail.value
- }
- "
- >
- <label style="margin-right: 20upx">
- <radio value="EXPRESS" :checked="info.refundMode === 'EXPRESS'" />物流快递
- </label>
- <label> <radio value="SELF" :checked="info.refundMode === 'SELF'" />网点自还 </label>
- </radio-group>
- <view v-else>
- {{ info.refundModeName }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 审批人: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.examineBy }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 审批时间: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.examineTime }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 审批结果: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.flagName }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 审批备注: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.examineRemark }}
- </view>
- </view>
- </view>
- </view>
- <!-- 发货信息 -->
- <view class="accessories_nfo_card" v-if="~['SUBMIT', 'AGREE', 'REJECT', 'REFUNDED'].indexOf(info.flag)">
- <view class="accessories_nfo_card_title"> 发货信息 </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 发货单位: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.workerName }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 接收单位: </view>
- <view class="accessories_nfo_info">
- <view> {{ info.receiveWebsitName }}({{ info.receiveWebsitId }}) </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 收货地址: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.receiveAddress }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 物流单号: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ info.expressNo }}
- </view>
- </view>
- </view>
- </view>
- <popup
- :value="showPopup"
- @input="
- val => {
- showPopup = val
- }
- "
- >
- <view
- v-if="listItem"
- style="
- background: #fff;
- width: 500upx;
- -moz-box-shadow: 0px 0px 20px #333333;
- -webkit-box-shadow: 0px 0px 20px #333333;
- box-shadow: 0px 0px 20px #333333;
- border-radius: 20rpx;
- "
- >
- <view class="accessories_nfo_card">
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 退款金额: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ listItem.refundAmount }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 退款状态: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ ['成功', '失败', '等待'][['OK', 'FAIL', 'WAIT'].indexOf(listItem.refundState)] || '' }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 退款时间: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ listItem.refundTime }}
- </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 退款方式: </view>
- <view class="accessories_nfo_info">
- <view> 微信 </view>
- </view>
- </view>
- <view class="accessories_nfo_ac">
- <view class="accessories_nfo_title"> 微信接收账号: </view>
- <view class="accessories_nfo_info">
- <view>
- {{ listItem.refundMchNo }}
- </view>
- </view>
- </view>
- </view>
- </view>
- </popup>
- </view>
- </zj-page-fill>
- <!-- <bt-container v-if="info && ~['AGREE'].indexOf(info.flag)">
- <view class=" btcon pv30 ph10">
- <view class="confirm-btn" v-if="~['AGREE'].indexOf(info.flag)">确认接收</view>
- </view>
- </bt-container> -->
- </zj-page-container>
- </view>
- </template>
- <script>
- import zjPageContainer from '@/components/zj-page-container/zj-page-container.vue'
- import zjPageFill from '@/components/zj-page-container/zj-page-fill.vue'
- import popup from '@/components/popup.vue'
- export default {
- components: {
- zjPageContainer,
- zjPageFill,
- popup
- },
- data() {
- return {
- showPopup: false,
- info: null,
- listItem: null
- }
- },
- onLoad: function (option) {
- this.getDetails(option.applyNo)
- },
- methods: {
- getDetails(applyNo) {
- this.$api
- .post('/app/worker/new-refund/detail', {
- applyNo
- })
- .then(res => {
- this.info = res.data
- })
- .catch(() => {})
- }
- }
- }
- </script>
- <style scoped lang="scss">
- @import '@/static/style/accessories_nfo_card.scss';
- </style>
|