|
@@ -14,9 +14,11 @@
|
|
|
<div class="operate-container">
|
|
<div class="operate-container">
|
|
|
<span style="margin-left: 20px" class="color-danger">售后状态:
|
|
<span style="margin-left: 20px" class="color-danger">售后状态:
|
|
|
<el-tag prop="status" v-for="(item, index) in salesStatusOptions" v-if="afterSales.salesStatus==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
<el-tag prop="status" v-for="(item, index) in salesStatusOptions" v-if="afterSales.salesStatus==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
|
|
+ <el-tag v-if="afterSales.erpExceptionStatus === 1" type="danger" size="mini" style="margin-left: 8px;">erp订单状态异常</el-tag>
|
|
|
</span>
|
|
</span>
|
|
|
<div class="operate-button-container" >
|
|
<div class="operate-button-container" >
|
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:edit']" v-show="afterSales.salesStatus==0&&afterSales.status===1" @click="addDelivery">编辑物流</el-button>
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:edit']" v-show="afterSales.salesStatus==0&&afterSales.status===1" @click="addDelivery">编辑物流</el-button>
|
|
|
|
|
+ <el-button size="mini" v-hasPermi="['store:storeAfterSales:edit']" v-show="afterSales.salesStatus==0&&afterSales.status===0&&afterSales.erpExceptionStatus===1" @click="handleConfirmErpStatus">ERP订单状态确认</el-button>
|
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:audit1']" v-show="afterSales.salesStatus==0&&afterSales.status===0" @click="handleAudit1">平台审核</el-button>
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:audit1']" v-show="afterSales.salesStatus==0&&afterSales.status===0" @click="handleAudit1">平台审核</el-button>
|
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:audit2']" v-show="afterSales.salesStatus==0&&afterSales.status===2" @click="handleAudit2">仓库审核</el-button>
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:audit2']" v-show="afterSales.salesStatus==0&&afterSales.status===2" @click="handleAudit2">仓库审核</el-button>
|
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:refund']" @click="handleRefund" v-show="afterSales.salesStatus==0&&afterSales.status===3">财务审核</el-button>
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:refund']" @click="handleRefund" v-show="afterSales.salesStatus==0&&afterSales.status===3">财务审核</el-button>
|
|
@@ -90,6 +92,9 @@
|
|
|
<el-descriptions-item label="售后二级原因" v-if="afterSales!=null">
|
|
<el-descriptions-item label="售后二级原因" v-if="afterSales!=null">
|
|
|
<span>{{ afterSales.reasonValue2 || afterSales.reasonLevel2Text || '-' }}</span>
|
|
<span>{{ afterSales.reasonValue2 || afterSales.reasonLevel2Text || '-' }}</span>
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="ERP异常状态" v-if="afterSales!=null">
|
|
|
|
|
+ <span>{{ erpExceptionStatusText(afterSales.erpExceptionStatus) }}</span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
<div style="margin: 20px 0px">
|
|
<div style="margin: 20px 0px">
|
|
@@ -274,7 +279,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import {getStoreAfterSales,cancel,refund,audit1,audit2,updateStoreAfterSales,listRefundReason} from "@/api/hisStore/storeAfterSales";
|
|
|
|
|
|
|
+import {getStoreAfterSales,cancel,refund,audit1,audit2,updateStoreAfterSales,listRefundReason,confirmErpStatus} from "@/api/hisStore/storeAfterSales";
|
|
|
|
|
|
|
|
import productOrder from "./productOrder";
|
|
import productOrder from "./productOrder";
|
|
|
export default {
|
|
export default {
|
|
@@ -401,6 +406,34 @@ export default {
|
|
|
this.$refs.productOrder.getOrder(orderId);
|
|
this.$refs.productOrder.getOrder(orderId);
|
|
|
}, 500);
|
|
}, 500);
|
|
|
},
|
|
},
|
|
|
|
|
+ erpExceptionStatusText(status) {
|
|
|
|
|
+ if (status === 1) {
|
|
|
|
|
+ return '异常';
|
|
|
|
|
+ }
|
|
|
|
|
+ if (status === 2) {
|
|
|
|
|
+ return '已处理';
|
|
|
|
|
+ }
|
|
|
|
|
+ return '-';
|
|
|
|
|
+ },
|
|
|
|
|
+ handleConfirmErpStatus() {
|
|
|
|
|
+ const id = this.afterSales.id;
|
|
|
|
|
+ this.$confirm('请选择ERP订单状态确认结果', 'ERP订单状态确认', {
|
|
|
|
|
+ confirmButtonText: '通过',
|
|
|
|
|
+ cancelButtonText: '不通过',
|
|
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ return confirmErpStatus({ salesId: id, erpExceptionStatus: 2 });
|
|
|
|
|
+ }).catch(action => {
|
|
|
|
|
+ if (action === 'cancel') {
|
|
|
|
|
+ return confirmErpStatus({ salesId: id, erpExceptionStatus: 1 });
|
|
|
|
|
+ }
|
|
|
|
|
+ return Promise.reject();
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.getStoreAfterSales(id);
|
|
|
|
|
+ this.msgSuccess('操作成功');
|
|
|
|
|
+ }).catch(() => {});
|
|
|
|
|
+ },
|
|
|
handleAudit1(){
|
|
handleAudit1(){
|
|
|
var id=this.afterSales.id;
|
|
var id=this.afterSales.id;
|
|
|
this.$confirm('确定审请通过?', "警告", {
|
|
this.$confirm('确定审请通过?', "警告", {
|