Commit 6ab785fc authored by zhangjianguo's avatar zhangjianguo

修改订单管理的待处理

parent 94cbdf29
...@@ -196,6 +196,16 @@ ...@@ -196,6 +196,16 @@
<img @click="qrEnd(item,6)" v-if="item.OrderStatus==4" class="app-order-icon" <img @click="qrEnd(item,6)" v-if="item.OrderStatus==4" class="app-order-icon"
src="../../assets/img/userman/sale.png" alt=""> src="../../assets/img/userman/sale.png" alt="">
</el-tooltip> </el-tooltip>
<!--待处理-->
<el-tooltip class="item" effect="dark" content="同意" placement="top">
<img @click="pending(item,1)" v-if="item.OrderStatus==6" class="app-order-icon"
src="../../assets/img/userman/pass.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="拒绝" placement="top">
<img @click="pending(item,2)" v-if="item.OrderStatus==6" class="app-order-icon"
src="../../assets/img/userman/nopass.png" alt="">
</el-tooltip>
</template> </template>
<!-- 回收站 --> <!-- 回收站 -->
...@@ -278,6 +288,14 @@ ...@@ -278,6 +288,14 @@
<el-button size="small" type="primary" @click="submitForm('exitMsg')">确 定</el-button> <el-button size="small" type="primary" @click="submitForm('exitMsg')">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!--待处理-->
<el-dialog custom-class="app-send" :title="pendMgs.Type==1?'同意':'拒绝'" :visible.sync="pendD" width="15%">
<el-input v-if="pendMgs.Type==2" type="textarea" size="small" v-model="pendMgs.Remark" placeholder="拒绝理由"></el-input>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="pendD = false">取 消</el-button>
<el-button size="small" type="primary" @click="pendingForm()">确 定</el-button>
</span>
</el-dialog>
<!-- 发货 --> <!-- 发货 -->
<el-dialog custom-class="app-send" title="发货" :visible.sync="fhDig" width="35%"> <el-dialog custom-class="app-send" title="发货" :visible.sync="fhDig" width="35%">
<div class="title-box"> <div class="title-box">
...@@ -506,8 +524,15 @@ ...@@ -506,8 +524,15 @@
Remark: '', Remark: '',
OrderDetailIdList: [], OrderDetailIdList: [],
}, },
// 待处理
pendMgs:{
OrderId:0,
Type:1,
Remark:0,
},
fahuoList: [], fahuoList: [],
fhDig: false, fhDig: false,
pendD:false,
exitMsg: { exitMsg: {
OrderId: 0, OrderId: 0,
Type: 1, Type: 1,
...@@ -767,6 +792,28 @@ ...@@ -767,6 +792,28 @@
null null
); );
}, },
pending(item,type){
this.pendD=true;
this.pendMgs.OrderId = item.OrderId;
this.pendMgs.Type = type;
this.pendMgs.Remark = '';
},
// 待处理调用接口
pendingForm(){
this.apipost('/api/order/SetOrderApplyForCancelAudit', this.pendMgs,
res => {
if (res.data.resultCode === 1) {
this.pendD= false
this.getList();
this.Success(res.data.message)
} else {
this.Error(res.data.message);
}
},
);
},
// 确认完成 // 确认完成
qrEnd(item, num) { qrEnd(item, num) {
let msg = { let msg = {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="searchInput" style="width:250px"> <div class="searchInput" style="width:250px">
<el-input style="display:inline-block;width:225px;height:30px" <el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入昵称搜索" placeholder="请输入昵称搜索"
v-model="msg.Name" v-model="msg.MemberName"
size="small" size="small"
clearable> clearable>
</el-input> </el-input>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
msg:{ msg:{
pageIndex:1, pageIndex:1,
pageSize:20, pageSize:20,
Name:'', MemberName:'',
StartDate:'', StartDate:'',
EndDate:'', EndDate:'',
}, },
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
}, },
Export(){ Export(){
let msg = { let msg = {
Name:this.msg.Name, MemberName:this.msg.MemberName,
StartDate :this.msg.StartDate , StartDate :this.msg.StartDate ,
EndDate :this.msg.EndDate, EndDate :this.msg.EndDate,
ExcelEnumIds:this.checkedCities ExcelEnumIds:this.checkedCities
......
...@@ -50,7 +50,12 @@ ...@@ -50,7 +50,12 @@
label="优惠方式" label="优惠方式"
width="150"> width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<div >优惠:{{scope.row.DiscountsPrice}}</div> <div v-if="scope.row.CouponType==1">优惠:{{scope.row.DiscountsPrice}}</div>
<div v-if="scope.row.CouponType==2">
<div>{{scope.row.DiscountsPrice}}</div>
<div v-if="scope.row.MaxDiscountsPrice!=0">优惠上限:{{scope.row.MaxDiscountsPrice}}</div>
<div v-if="scope.row.MaxDiscountsPrice==0">优惠上限:无上限</div>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment