提交 407dfeb1 authored 作者: huaxinzhu's avatar huaxinzhu

云仓2.2-品牌授权下载地址

上级 ff8fbe04
...@@ -9,15 +9,6 @@ export function getMyAssetListData(data) { ...@@ -9,15 +9,6 @@ export function getMyAssetListData(data) {
}) })
} }
// 获取 提现等权限 getPurviewData
export function getPurviewData(query) {
return request({
url: '/local/getOrganization',
method: 'get',
params: query
})
}
// 获取 主体信息 // 获取 主体信息
export function getOrganizationData(query) { export function getOrganizationData(query) {
return request({ return request({
......
...@@ -62,3 +62,12 @@ export function cancelOnsale(data) { ...@@ -62,3 +62,12 @@ export function cancelOnsale(data) {
data: data data: data
}) })
} }
// 批量取消申请上架
export function cancelOnsaleAllData(data) {
return request({
url: '/system/goodsNew/cancelOnsaleAll',
method: 'post',
data: data
})
}
...@@ -143,14 +143,3 @@ export function exportUnSendOrderGoodsData(query) { ...@@ -143,14 +143,3 @@ export function exportUnSendOrderGoodsData(query) {
params: query params: query
}) })
} }
//
// // 单商品订单 补单发货
// export function toReissueOrderData(data) {
// return request({
// url: '/system/order/orderListAgainSend',
// method: 'post',
// data: data
// })
// }
...@@ -73,7 +73,7 @@ export function getSearchParams(query) { ...@@ -73,7 +73,7 @@ export function getSearchParams(query) {
// }) // })
// } // }
// 列表 // 售后列表
export function getRetreatList(query) { export function getRetreatList(query) {
return request({ return request({
url: '/system/retreat/list', url: '/system/retreat/list',
...@@ -117,3 +117,12 @@ export function getASAdressData(query) { ...@@ -117,3 +117,12 @@ export function getASAdressData(query) {
params: query params: query
}) })
} }
// 获取 售后 tab 数量
export function getTabCountData(data) {
return request({
url: '/system/retreat/refundListTopNum',
method: 'post',
data: data
})
}
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</template> </template>
<script> <script>
import { getPurviewData,getMyAssetListData,getOrganizationData, getBankDetailsData,getBankcardListData, addBankcardData,editBankcardData ,delBankcardData } from '@/api/module/bankcard' import { getMyAssetListData,getOrganizationData, getBankDetailsData,getBankcardListData, addBankcardData,editBankcardData ,delBankcardData } from '@/api/module/bankcard'
export default { export default {
name: "Index", name: "Index",
data() { data() {
...@@ -163,18 +163,8 @@ ...@@ -163,18 +163,8 @@
this.getBankcardList() this.getBankcardList()
/** 获取主体信息 */ /** 获取主体信息 */
this.getOrganization(); this.getOrganization();
/** 获取 提现等操作权限 */
this.getPurview();
}, },
methods: { methods: {
/** 获取 提现等操作权限 */
getPurview() {
getPurviewData().then(res=> {
if (res.code == 1) {
//this.isAllowWithdraw = res.data.is_allow_withdraw;
}
});
},
/** 我的资产 所有数据 */ /** 我的资产 所有数据 */
getMyAssetList() { getMyAssetList() {
getMyAssetListData( {seller_id:this.seller_id} ).then(res=> { getMyAssetListData( {seller_id:this.seller_id} ).then(res=> {
...@@ -184,14 +174,14 @@ ...@@ -184,14 +174,14 @@
this.withdrawalBalance = Number(res.data.account_info.new_balance) / 100; this.withdrawalBalance = Number(res.data.account_info.new_balance) / 100;
this.withdrawalProgress = Number(res.data.account_info.new_frozen_money) / 100; this.withdrawalProgress = Number(res.data.account_info.new_frozen_money) / 100;
this.currentBalance = this.add(this.withdrawalBalance,this.withdrawalProgress); this.currentBalance = this.add(this.withdrawalBalance,this.withdrawalProgress);
this.isAllowWithdraw = res.data.account_info.is_allow_withdraw ? true : false;
} }
// 账户管理 // 账户管理
if(res.data.bank_list) { if(res.data.bank_list) {
this.bankcardList = res.data.bank_list; this.bankcardList = res.data.bank_list;
} }
}else { }else {
let msg = res.message ? res.message : '获取用户列表失败' this.$message({type:'error',message: res.message ? res.message : '获取用户列表失败'});
this.$message({type:'error',message: msg});
} }
}); });
}, },
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="发布时间" align="center" :formatter="formatTime" prop="add_time"/> <el-table-column label="发布时间" align="center" :formatter="formatTime" prop="add_time"/>
<el-table-column label="审核说明" align="center" prop="shsm" width="240px"/> <el-table-column label="审核说明" align="center" prop="last_perate_content" width="240px"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if='radiomodel==3&&scope.row.up_onsale===1'> <div v-if='radiomodel==3&&scope.row.up_onsale===1'>
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
<script> <script>
import goodDetail from './components/goodsdetail' import goodDetail from './components/goodsdetail'
import editGood from '@/views/system/goods/add/index' import editGood from '@/views/system/goods/add/index'
import {getlistGoods, shelvesStatus, delgoodsStatus,cancelOnsale} from '@/api/module/goodsgement' import { getlistGoods, shelvesStatus, delgoodsStatus,cancelOnsale,cancelOnsaleAllData } from '@/api/module/goodsgement'
import {dateFormat} from '@/utils' import {dateFormat} from '@/utils'
export default { export default {
...@@ -506,18 +506,37 @@ ...@@ -506,18 +506,37 @@
/** 批量取消申请上架 */ /** 批量取消申请上架 */
handleCancelUpale() { handleCancelUpale() {
// id组成的数组 this.ids // id组成的数组 this.ids
if( this.ids.length <= 0 ) {
this.$message({type:'warning',message:'请先选择需要操作的数据'});
return
}
// let isContinue = true;
// for (let i = 0; i < this.ids.length; i++) {
//
// }
//
// if (!isContinue) {
// this.$message({type:'warning',message:'请先选择需要操作的数据'});
// return
// }
//return;
let ids = {goods_id:this.ids.join(',')};
this.$confirm('是否批量取消所选中的商品的上架申请', '批量取消申请上架', { this.$confirm('是否批量取消所选中的商品的上架申请', '批量取消申请上架', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
center: true center: true
}).then(async() => { }).then(async() => {
let res = ''//await fn(re) let res = await cancelOnsaleAllData(ids)
if (res.code == 1) { if (res.code == 1) {
this.$message({type:'success',message:'批量取消成功'}); this.$message({type:'success',message:'批量取消成功'});
} else { } else {
this.$message({type:'success',message: res.message ? res.message : 0}); this.$message({type:'success',message: res.message ? res.message : '批量取消失败'});
} }
this.getList()
}).catch(() => {}); }).catch(() => {});
}, },
// 取消上架申请 // 取消上架申请
......
...@@ -7,6 +7,12 @@ ...@@ -7,6 +7,12 @@
<el-step title="订单完成"></el-step> <el-step title="订单完成"></el-step>
</el-steps> </el-steps>
</el-card> </el-card>
<p class="order-status-con" v-if="isShowOrderStatusInfo(orderDetail.status,orderDetail.settlement_status)">
<span>订单状态:</span>
<span>已完成,已结算</span>
</p>
<el-card style="margin-top: 20px;"> <el-card style="margin-top: 20px;">
<div class="orderList"> <div class="orderList">
<div class="orderItem"> <div class="orderItem">
...@@ -319,12 +325,21 @@ export default { ...@@ -319,12 +325,21 @@ export default {
onlyEidtPlaceholder: false, onlyEidtPlaceholder: false,
goShippingNum: 0, // 发货类型 goShippingNum: 0, // 发货类型
goods_ids: null, // 发货的商品订单 id goods_ids: null, // 发货的商品订单 id
// isShowOrderStatus: false,
//orderStatusInfo: ''
} }
}, },
watch: {}, watch: {},
created() {}, created() {},
mounted() {}, mounted() {},
methods: { methods: {
/** 订单最终状态 */
isShowOrderStatusInfo(status,settlementStatus) {
let isShow = (status == 3 && settlementStatus == 1) ? true : false;
// console.log("订单最终状态:",status,settlementStatus);
// this.orderStatusInfo = ''
return isShow;
},
/** 商品 发货状态 */ /** 商品 发货状态 */
goodsStatusFormatter(status) { goodsStatusFormatter(status) {
let res = '—'; let res = '—';
...@@ -853,9 +868,18 @@ export default { ...@@ -853,9 +868,18 @@ export default {
.orderDetail { .orderDetail {
height: 660px; height: 660px;
padding: 0 20px;
overflow-y: auto; overflow-y: auto;
}
.order-status-con {
padding: 20px;
border: 1px solid #eee;
border-radius: 4px;
font-size: 16px;
box-shadow: 0 2px 10px 0 rgba(0,0,0,0.1);
} }
.text-r { .text-r {
justify-content: center; justify-content: center;
background: #F7F8FA; background: #F7F8FA;
......
<template> <template>
<div class="app-container after-sale-detail"> <div class="after-sale-detail">
<el-card> <el-card>
<!-- 仅退款 --> <!-- 仅退款 -->
<div v-if="asOrderType == 1" class="as-step-info"> <div v-if="asOrderType == 1" class="as-step-info">
...@@ -21,6 +21,15 @@ ...@@ -21,6 +21,15 @@
</div> </div>
</el-card> </el-card>
<el-card style="margin: 10px 0;" v-if="isShowRefundStatusText">
<p>
<span>售后状态:</span>
<span>{{ refundStatusText }}</span>
<span>退款金额:</span>
<span>{{ asOrderDetail.apply_price / 100 }}</span>
</p>
</el-card>
<el-card class="as-order-details"> <el-card class="as-order-details">
<!-- 倒计时 提示 --> <!-- 倒计时 提示 -->
<p class="count-down-con" v-if="!(asOrderDetail.status == 5 || asOrderDetail.status == -1)"><i class="spec-icon-w el-icon-warning"></i>剩余处理时间: <span class="cd-time-span">{{ cdHour }} 小时 {{ cdMinute }}</span> 请在期限内处理,逾期不处理,系统将自动退款到买家账户</p> <p class="count-down-con" v-if="!(asOrderDetail.status == 5 || asOrderDetail.status == -1)"><i class="spec-icon-w el-icon-warning"></i>剩余处理时间: <span class="cd-time-span">{{ cdHour }} 小时 {{ cdMinute }}</span> 请在期限内处理,逾期不处理,系统将自动退款到买家账户</p>
...@@ -206,7 +215,11 @@ ...@@ -206,7 +215,11 @@
:title="dialogASTypeTitle" :title="dialogASTypeTitle"
:visible.sync="isASTypeDialog" :visible.sync="isASTypeDialog"
width="50%" width="50%"
center> center
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
>
<div v-if="onlyIsAgree == 1" class="only-refund-agree"> <div v-if="onlyIsAgree == 1" class="only-refund-agree">
<p>同意退款,该订单将关闭,请您仔细核实商品发货状态以及退款金额,若因此导致的损失将由您自己承担!</p> <p>同意退款,该订单将关闭,请您仔细核实商品发货状态以及退款金额,若因此导致的损失将由您自己承担!</p>
<p>确定同意同款吗?</p> <p>确定同意同款吗?</p>
...@@ -261,12 +274,19 @@ ...@@ -261,12 +274,19 @@
import { dateFormat } from '@/utils' //getASOrderDetail import { dateFormat } from '@/utils' //getASOrderDetail
export default { export default {
name: "Edit", name: "Edit",
props: {
// 当前 售后订单的 id
asGoodId: {
type: String,
required: true
}
},
data() { data() {
return { return {
// Refund only 仅退款 // Refund only 仅退款
// Return refund 退货退款 // Return refund 退货退款
timer: null, timer: null,
asGoodId: 0, // 当前 售后订单的 id //asGoodId: 0, // 当前 售后订单的 id
asOrderType: 1, // 售后类型 1-仅退款; 2-退货退款 asOrderType: 1, // 售后类型 1-仅退款; 2-退货退款
// 仅退款 流程,每个步骤文字提示 // 仅退款 流程,每个步骤文字提示
step: 1, // 激活 当前步骤 step: 1, // 激活 当前步骤
...@@ -328,20 +348,23 @@ ...@@ -328,20 +348,23 @@
order_refund_address:'', order_refund_address:'',
isFinishedButtonDisabled: false, isFinishedButtonDisabled: false,
returnRefundDisabled: false, // 仅 退货退款 订单,需要此参数,控制,拒收包裹-同意退款按钮是否可以点击 returnRefundDisabled: false, // 仅 退货退款 订单,需要此参数,控制,拒收包裹-同意退款按钮是否可以点击
isShowRefundStatusText: false,
refundStatusText: '',
} // return end } // return end
}, },
watch: { watch: {
$route(to,from) { // $route(to,from) {
if(this.$route.query.refund_sn) { // if(this.$route.query.refund_sn) {
this.asGoodId = this.$route.query.refund_sn; // this.asGoodId = this.$route.query.refund_sn;
this.getDetail(); // this.getDetail();
} // }
} // }
}, },
created() { created() {
this.sellerId = this.$store.state.user.sellerid; this.sellerId = this.$store.state.user.sellerid;
/** 获取 当前售后 订单的id */ /** 获取 当前售后 订单的id */
this.asGoodId = this.$route.query.refund_sn; //this.asGoodId = this.$route.query.refund_sn;
/** 查询 售后订单详情 */ /** 查询 售后订单详情 */
this.getDetail(); this.getDetail();
/** 获取 退货退款的发送 地址 */ /** 获取 退货退款的发送 地址 */
...@@ -351,6 +374,27 @@ ...@@ -351,6 +374,27 @@
}, },
methods: { methods: {
/** 售后状态 */
refundTypeStatus(refundType,goodsStatus,status ) {
this.refundStatusText = '';
this.isShowRefundStatusText = false;
if (status == 5) {
if(refundType == 1 && goodsStatus == 0) {
this.isShowRefundStatusText = true;
this.refundStatusText = '未发货仅退款成功'
}
if(refundType == 1 && goodsStatus == 1) {
this.isShowRefundStatusText = true;
this.refundStatusText = '已发货仅退款成功'
}
if(refundType == 2 && goodsStatus == 2) {
this.isShowRefundStatusText = true;
this.refundStatusText = '已完成退货退款成功'
}
}
},
returnInofImgList(imgsStr) { returnInofImgList(imgsStr) {
let imgList = []; let imgList = [];
if(imgsStr) { if(imgsStr) {
...@@ -547,6 +591,8 @@ ...@@ -547,6 +591,8 @@
}else { }else {
this.asApplyList = []; this.asApplyList = [];
} }
console.log(111,this.asOrderType,this.goodsOrderDetail.goods_status,this.asOrderDetail.status)
this.refundTypeStatus(this.asOrderType,this.goodsOrderDetail.goods_status,this.asOrderDetail.status)
} }
}); });
}, },
...@@ -807,7 +853,7 @@ ...@@ -807,7 +853,7 @@
<style scoped> <style scoped>
.after-sale-detail { .after-sale-detail {
overflow: auto; /*overflow: auto;*/
} }
.as-detail-title { .as-detail-title {
text-align: center; text-align: center;
......
...@@ -418,8 +418,10 @@ ...@@ -418,8 +418,10 @@
brand_business_auth: [{ required: true, message: '品牌经营授权至少上传一张图片', validator: authBusValidator }], brand_business_auth: [{ required: true, message: '品牌经营授权至少上传一张图片', validator: authBusValidator }],
}, },
downTemplatehttp: '', downTemplatehttp: '',
shopTemplatehttp : 'http://img3.jxhh.com/shop/brand.doc', // shopTemplatehttp : 'http://excel.jxhh.com/brand_new.doc',
factoryTemplatehttp : 'http://img3.jxhh.com/shop/factory.doc', // factoryTemplatehttp : 'http://excel.jxhh.com/brand_new.doc',
shopTemplatehttp : 'http://excel.jxhh.com/brand_new.doc',
factoryTemplatehttp : 'http://excel.jxhh.com/brand_new.doc',
} }
}, },
created() { created() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论