|
@@ -46,9 +46,12 @@
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="商品名称" prop="product_name" width="220">
|
|
|
|
|
|
|
+ <el-table-column label="商品信息" prop="product_name" width="220">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.product_name">{{ scope.row.product_name }}</span>
|
|
|
|
|
|
|
+ <div class="el-text" v-if="scope.row.product_name">
|
|
|
|
|
+ {{ scope.row.product_name }}
|
|
|
|
|
+ <div class="desc"><span>{{ scope.row.sku }}</span></div>
|
|
|
|
|
+ </div>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -83,28 +86,21 @@
|
|
|
<el-table-column label="创建时间" prop="create_at" width="180"></el-table-column>
|
|
<el-table-column label="创建时间" prop="create_at" width="180"></el-table-column>
|
|
|
<el-table-column label="操作" width="200" align="right" fixed="right">
|
|
<el-table-column label="操作" width="200" align="right" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-button-group>
|
|
|
|
|
- <el-button text type="warning" size="small" @click="table_log(scope.row)">订单记录</el-button>
|
|
|
|
|
- <el-button text type="warning" size="small" @click="table_express(scope.row)" v-if="scope.row.express_status==0">呼叫快递</el-button>
|
|
|
|
|
- <el-button text type="warning" size="small" v-if="scope.row.express_status==1" @click="table_print(scope.row)">打印面单</el-button>
|
|
|
|
|
- <el-button text type="success" size="small" @click="table_end(scope.row)" v-if="scope.row.express_status==1">手动核销</el-button>
|
|
|
|
|
- <el-button text type="success" size="small" @click="table_passwd(scope.row)" v-if="scope.row.express_status==0 && scope.row.service_type==2">更新地址</el-button>
|
|
|
|
|
|
|
+ <el-button-group v-if="scope.row.express_status == 4">
|
|
|
|
|
+ <el-button text type="success" size="small" @click="table_send(scope.row)">通过</el-button>
|
|
|
|
|
+ <el-button text type="warning" size="small" @click="table_pass(scope.row)">拒绝</el-button>
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</scTable>
|
|
</scTable>
|
|
|
- <formMain ref="formMain" @success="handleSuccess"></formMain>
|
|
|
|
|
- <addMain ref="addMain" @success="handleSuccess"></addMain>
|
|
|
|
|
<logMain ref="logMain" @success="handleSuccess"></logMain>
|
|
<logMain ref="logMain" @success="handleSuccess"></logMain>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import formMain from './form';
|
|
|
|
|
-import addMain from "@/views/manage/components/send";
|
|
|
|
|
import logMain from '@/views/manage/order/components/log'
|
|
import logMain from '@/views/manage/order/components/log'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
- formMain,addMain,logMain
|
|
|
|
|
|
|
+ logMain
|
|
|
},
|
|
},
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
@@ -114,48 +110,43 @@ export default {
|
|
|
dataSelect:[],
|
|
dataSelect:[],
|
|
|
dataSelectFull:[],
|
|
dataSelectFull:[],
|
|
|
searchKey:{
|
|
searchKey:{
|
|
|
- ex_status:2
|
|
|
|
|
|
|
+ ex_status:5
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- table_passwd(row){
|
|
|
|
|
- return this.$message.success("暂未开放");
|
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs.formMain.open("edit").setData(row)
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
- table_end(data){
|
|
|
|
|
- return this.$message.success("暂未开放");
|
|
|
|
|
- this.$confirm(`核销后该笔订单即为完成,如客户需退款只能通过来客后台进行操作,当前后台不支持核销后退款操作,确定要执行吗?`, '提示', {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ table_pass(data){
|
|
|
|
|
+ this.$confirm(`拒绝申请后,该笔订单状态变为原来的服务中,如已开通短信通知能力则系统自动发送短信至用户`, '提示', {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
|
var loading = this.$loading();
|
|
var loading = this.$loading();
|
|
|
- var resp = await this.$API.order.end.post({"order_id":data.order_id});
|
|
|
|
|
|
|
+ var resp = await this.$API.merOrder.refuse.post({"order_id":data.order_id});
|
|
|
loading.close();
|
|
loading.close();
|
|
|
- if (resp.code !== 1) {
|
|
|
|
|
- return this.$message.error(resp.msg);
|
|
|
|
|
|
|
+ if (resp.code == 0) {
|
|
|
|
|
+ return this.$message.error(resp.msg)
|
|
|
}
|
|
}
|
|
|
- this.$message.success(resp.msg);
|
|
|
|
|
|
|
+ this.$message.success(resp.msg)
|
|
|
this.$refs.table.refresh()
|
|
this.$refs.table.refresh()
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- table_express(data){
|
|
|
|
|
- return this.$message.success("暂未开放");
|
|
|
|
|
- this.$confirm(`呼叫快递成功后,可进入【待核销】栏目进行打印快递面单,如已接通云打印可忽略`, '提示', {
|
|
|
|
|
|
|
+ table_send(data){
|
|
|
|
|
+ this.$confirm(`通过审核后,系统将自动对该订单进行解锁,用户可在抖音团购订单中申请退款`, '提示', {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
- }).then(async ()=>{
|
|
|
|
|
|
|
+ }).then(async () => {
|
|
|
var loading = this.$loading();
|
|
var loading = this.$loading();
|
|
|
- var resp = await this.$API.merOrder.express.post({"id":data.id});
|
|
|
|
|
|
|
+ var resp = await this.$API.merOrder.agree.post({"order_id":data.order_id});
|
|
|
loading.close();
|
|
loading.close();
|
|
|
if (resp.code == 0) {
|
|
if (resp.code == 0) {
|
|
|
- return this.$message.warning(resp.msg);
|
|
|
|
|
|
|
+ return this.$message.error(resp.msg)
|
|
|
}
|
|
}
|
|
|
- this.$message.success(resp.msg);
|
|
|
|
|
|
|
+ this.$message.success(resp.msg)
|
|
|
this.$refs.table.refresh()
|
|
this.$refs.table.refresh()
|
|
|
- }).catch(()=>{})
|
|
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
table_log(data){
|
|
table_log(data){
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|