|
|
@@ -25,11 +25,7 @@
|
|
|
<view class="list">{{ info.status==0?'待审核':info.status==1?'已通过':info.status==2?'已驳回':info.status==3 ? '已取消':'' }}</view>
|
|
|
</view>
|
|
|
<view class=" refund-item">
|
|
|
- <view class="refund-label">客户备注:</view>
|
|
|
- <view class="list">{{info.hdRemark?info.hdRemark:''}}</view>
|
|
|
- </view>
|
|
|
- <view class=" refund-item">
|
|
|
- <view class="refund-label">我的备注:</view>
|
|
|
+ <view class="refund-label">备注信息:</view>
|
|
|
<view class="list">{{info.remark?info.remark:''}}</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -56,10 +52,21 @@
|
|
|
<view style="text-align:center;">
|
|
|
<button class="admin-button-com big default" style="margin:30upx auto 10upx auto;width:50%;" @click="goBack()">返回</button>
|
|
|
</view>
|
|
|
+
|
|
|
+ <uni-popup ref="rejectRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
+ <view style="padding:30upx;">
|
|
|
+ <textarea v-model="rejectReason" style="border:1upx solid #cccccc;height:140upx;" placeholder="驳回原因..."></textarea>
|
|
|
+ <view style="text-align:center;">
|
|
|
+ <button class="admin-button-com big default" style="margin:30upx auto 10upx auto;width:45%;" @click="cancelReject()">取消</button>
|
|
|
+ <button class="admin-button-com big blue" style="margin:30upx auto 10upx 20upx;width:45%;" @click="confirmReject()">确认</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { refundDetail } from "@/api/refund";
|
|
|
+import { refundDetail,passRefund,rejectRefund } from "@/api/refund";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -67,17 +74,44 @@ export default {
|
|
|
refundPrice:0,
|
|
|
refundType:1,
|
|
|
remark:'',
|
|
|
- info:[]
|
|
|
+ info:[],
|
|
|
+ rejectReason:''
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ cancelReject(){
|
|
|
+ this.$refs.rejectRef.close()
|
|
|
+ },
|
|
|
reject(){
|
|
|
-
|
|
|
+ this.$refs.rejectRef.open('center')
|
|
|
+ },
|
|
|
+ confirmReject(){
|
|
|
+ let that = this
|
|
|
+ this.$util.confirmModal({content:'确认驳回?'},() => {
|
|
|
+ uni.showLoading({mask:true})
|
|
|
+ rejectRefund({id: this.option.id,rejectReason:this.rejectReason}).then(res=>{
|
|
|
+ uni.hideLoading()
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg('操作成功')
|
|
|
+ that.init()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
pass(){
|
|
|
-
|
|
|
+ let that = this
|
|
|
+ this.$util.confirmModal({content:'确认通过?'},() => {
|
|
|
+ uni.showLoading({mask:true})
|
|
|
+ passRefund({id: this.option.id}).then(res=>{
|
|
|
+ uni.hideLoading()
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg('操作成功')
|
|
|
+ that.init()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
showBig(index){
|
|
|
if(this.info.bigImgList && !this.$util.isEmpty(this.info.bigImgList)){
|