|
|
@@ -16,7 +16,11 @@
|
|
|
<el-tag prop="status" v-for="(item, index) in salesStatusOptions" v-if="afterSales.salesStatus==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</span>
|
|
|
<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: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:refund']" @click="handleRefund" v-show="afterSales.salesStatus==0&&afterSales.status===3">财务审核</el-button>
|
|
|
+ <el-button size="mini" v-hasPermi="['store:storeAfterSales:cancel']" @click="cancel" v-show="afterSales.salesStatus==0">撤销</el-button>
|
|
|
<el-button size="mini" @click="showOrder">查看订单</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -204,7 +208,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {getLiveAfterSales,cancel,refund,audit,updateLiveAfterSales } from "@/api/live/liveAfterSales";
|
|
|
+import {getLiveAfterSales,cancel,refund,audit,updateLiveAfterSales,audit1,audit2 } from "@/api/live/liveAfterSales";
|
|
|
|
|
|
import productOrder from "./productOrder";
|
|
|
export default {
|
|
|
@@ -318,6 +322,41 @@ export default {
|
|
|
this.form.salesId=this.afterSales.id;
|
|
|
this.form.refundAmount=this.afterSales.refundAmount;
|
|
|
},
|
|
|
+ handleRefund(){
|
|
|
+ this.audit.open=true;
|
|
|
+ this.form.salesId=this.afterSales.id;
|
|
|
+ this.form.refundAmount=this.afterSales.refundAmount;
|
|
|
+ },
|
|
|
+ handleAudit1(){
|
|
|
+ var id=this.afterSales.id;
|
|
|
+ this.$confirm('确定审请通过?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ var data={salesId:id}
|
|
|
+ return audit1(data);
|
|
|
+ }).then(() => {
|
|
|
+ this.getStoreAfterSales(id);
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
+ }).catch(function() {});
|
|
|
+
|
|
|
+ },
|
|
|
+ handleAudit2(){
|
|
|
+ var id=this.afterSales.id;
|
|
|
+ this.$confirm('确定审请通过?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ var data={salesId:id}
|
|
|
+ return audit2(data);
|
|
|
+ }).then(() => {
|
|
|
+ this.getStoreAfterSales(id);
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
+ }).catch(function() {});
|
|
|
+
|
|
|
+ },
|
|
|
submitAuditForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|