|
@@ -7,10 +7,6 @@
|
|
|
v-model="listQuery.purchaser"></el-input>
|
|
|
<el-input clearable class="filter-item" style="width: 200px;" placeholder="订单编号"
|
|
|
v-model="listQuery.orderSeq"></el-input>
|
|
|
- <el-select v-model="listQuery.orderType" clearable placeholder="订单状态" style="top: -4px;width: 200px;">
|
|
|
- <el-option :key="item.orderType" v-for="item in orderTypeList" :label="item.orderTypeName" :value="item.orderType">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
<el-input clearable class="filter-item" style="width: 200px;" placeholder="活动标题"
|
|
|
v-model="listQuery.title"></el-input>
|
|
|
<el-select v-model="listQuery.productAttribute" clearable placeholder="商品属性" class="filter-item" style="width: 200px">
|
|
@@ -56,9 +52,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="操作" width="80px" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="scope.row.orderType == 0 || scope.row.orderType == 4" type="success" size="small"
|
|
|
+ <el-button type="success" size="small"
|
|
|
@click="handleClick(scope.row.orderId, 'complete')">处理</el-button>
|
|
|
- <el-button v-else type="primary" size="small" @click="handleClick(scope.row.orderId, 'view')">查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -141,14 +136,14 @@
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-form-item v-if="detailData.orderType == 0" label="价格调整">
|
|
|
+ <el-form-item label="价格调整">
|
|
|
<el-input v-model="detailData.nowPrice"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
- <el-form-item v-if="detailData.orderType == 0 || detailData.orderType == 4" label="备注">
|
|
|
+ <el-form-item label="备注">
|
|
|
<el-input type="textarea" v-model="comment" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
@@ -170,7 +165,7 @@
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
- <div v-if="detailData.orderType == 0 || detailData.orderType == 4" slot="footer" class="dialog-footer">
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="complete(0)">同意</el-button>
|
|
|
<el-button type="danger" @click="complete(1)">驳回</el-button>
|
|
|
</div>
|
|
@@ -260,10 +255,10 @@ export default {
|
|
|
limit: 10,
|
|
|
purchaser: '',
|
|
|
orderSeq: '',
|
|
|
- orderType: '',
|
|
|
title: '',
|
|
|
productAttribute:'',
|
|
|
deliveryType:'',
|
|
|
+ orderType:0
|
|
|
},
|
|
|
dialogVisible: false,
|
|
|
dialogStatus: '',
|
|
@@ -288,24 +283,6 @@ export default {
|
|
|
window.location.href = process.env.BASE_API + '/mall-order/exportOrderLog?purchaser=' + this.listQuery.purchaser + '&orderSeq=' + this.listQuery.orderSeq + '&orderType=' + this.listQuery.orderType + '&title=' + this.listQuery.title;
|
|
|
},
|
|
|
checked(val){
|
|
|
- if(val.flag == 0 && val.deliveryType==1){
|
|
|
- if(!val.trackingNumber){
|
|
|
- this.$alert("请填写快递单号", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- };
|
|
|
- if(val.flag == 0 && val.deliveryType==2){
|
|
|
- if(!val.trackingNumber){
|
|
|
- this.$alert("请填写兑换码", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- };
|
|
|
if(val.flag == 1){
|
|
|
if(!val.comment){
|
|
|
this.$alert("请填备注", "提示", {
|