|
@@ -8,7 +8,9 @@
|
|
|
@init="init"
|
|
|
/>
|
|
|
<div style="margin-bottom: 12px">
|
|
|
- <el-button type="primary" size="small">成本设置</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="editCost"
|
|
|
+ >成本设置</el-button
|
|
|
+ >
|
|
|
<el-button type="primary" size="small" @click="editRemarks(1)"
|
|
|
>修改备注</el-button
|
|
|
>
|
|
@@ -39,8 +41,8 @@
|
|
|
>
|
|
|
<template slot="orderInfo" slot-scope="props">
|
|
|
<div>机构名称:{{ props.scope.row["createOrg"] }}</div>
|
|
|
- <div>业务员:{{ props.scope.row["createNo"] }}</div>
|
|
|
- <div>业务号:{{ props.scope.row["createSysUserId"] }}</div>
|
|
|
+ <div>业务员:{{ props.scope.row["createUsername"] }}</div>
|
|
|
+ <div>业务号:{{ props.scope.row["createNo"] }}</div>
|
|
|
<div>订单来源:{{ props.scope.row["orderFrom"] }}</div>
|
|
|
<div>订单日期:{{ props.scope.row["orderCost"] }}</div>
|
|
|
<div>订单号:{{ props.scope.row["orderSn"] }}</div>
|
|
@@ -66,7 +68,9 @@
|
|
|
<template slot="statusRoles" slot-scope="props">
|
|
|
<div>
|
|
|
{{ refundStatus(props.scope.row["refundStatus"])
|
|
|
- }}<span style="color: red">(总经理)</span>
|
|
|
+ }}<span style="color: red" v-if="props.scope.row['refundName']"
|
|
|
+ >({{ props.scope.row["refundName"] }})</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot="type" slot-scope="props">
|
|
@@ -75,10 +79,27 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
- <el-button type="text">查看详情</el-button>
|
|
|
- <el-button type="text">成本设置</el-button>
|
|
|
- <el-button type="text">订单审核</el-button>
|
|
|
- <el-button type="text" @click="handelClick">退款审核</el-button>
|
|
|
+ <el-button type="text" @click="openDialog(props.scope.row)"
|
|
|
+ >查看详情</el-button
|
|
|
+ >
|
|
|
+ <el-button type="text" @click="handelClickCost(props.scope.row)"
|
|
|
+ >成本设置</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="openDialog(props.scope.row, 1)"
|
|
|
+ :disabled="props.scope.row.orderFrom !== 3"
|
|
|
+ >订单审核</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="handelClick(props.scope.row)"
|
|
|
+ :disabled="
|
|
|
+ props.scope.row.refundStatus !== 0 &&
|
|
|
+ props.scope.row.refundStatus !== 2
|
|
|
+ "
|
|
|
+ >退款审核</el-button
|
|
|
+ >
|
|
|
<el-button type="text" @click="editRemarks(props.scope.row)"
|
|
|
>修改备注</el-button
|
|
|
>
|
|
@@ -94,24 +115,48 @@
|
|
|
<dislog-set
|
|
|
:dialogVisible.sync="dialogVisible"
|
|
|
@search="search"
|
|
|
+ :type="2"
|
|
|
+ :orderSn="orderSn"
|
|
|
></dislog-set>
|
|
|
<remarks
|
|
|
:dialogVisible.sync="remarksVisible"
|
|
|
@search="search"
|
|
|
:options="remarksOptions"
|
|
|
></remarks>
|
|
|
+ <dislogOrderDetails
|
|
|
+ :dialogVisible.sync="orderDialogVisible"
|
|
|
+ :orderSn="orderSn"
|
|
|
+ :orderFrom="orderFrom"
|
|
|
+ :ShowStatus="ShowStatus"
|
|
|
+ ></dislogOrderDetails>
|
|
|
+ <dislog-set-cost
|
|
|
+ :dialogVisible.sync="dialogVisiblecost"
|
|
|
+ :tpId="tpId"
|
|
|
+ :type="type"
|
|
|
+ @search="search"
|
|
|
+ ></dislog-set-cost>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import dislogSetCost from "../cost/dislogSet.vue";
|
|
|
import dislogSet from "@/components/audit/dislogSet.vue";
|
|
|
import remarks from "../components/remarks.vue";
|
|
|
import searchBoxNew from "@/components/searchBoxNew";
|
|
|
import tableList from "@/components/tableList";
|
|
|
import pagination from "@/components/pagination";
|
|
|
+import dislogOrderDetails from "../components/dislogOrderDetails.vue";
|
|
|
export default {
|
|
|
name: "orderManageList",
|
|
|
- components: { searchBoxNew, tableList, pagination, dislogSet, remarks },
|
|
|
+ components: {
|
|
|
+ searchBoxNew,
|
|
|
+ tableList,
|
|
|
+ pagination,
|
|
|
+ dislogSet,
|
|
|
+ remarks,
|
|
|
+ dislogOrderDetails,
|
|
|
+ dislogSetCost,
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
ShowTabList: [
|
|
@@ -198,7 +243,7 @@ export default {
|
|
|
//搜索
|
|
|
formList: [
|
|
|
{
|
|
|
- prop: "name",
|
|
|
+ prop: "roleId",
|
|
|
placeholder: "角色分类",
|
|
|
scope: "select",
|
|
|
options: [
|
|
@@ -209,7 +254,7 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- prop: "name",
|
|
|
+ prop: "businessFullName",
|
|
|
placeholder: "业务分类",
|
|
|
scope: "select",
|
|
|
options: [
|
|
@@ -218,59 +263,61 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- prop: "name",
|
|
|
+ prop: "checkStatus",
|
|
|
placeholder: "审核状态",
|
|
|
scope: "select",
|
|
|
options: [
|
|
|
- { label: "待审核", value: 1 },
|
|
|
- { label: "已通过", value: 2 },
|
|
|
- { label: "未通过", value: 3 },
|
|
|
- { label: "已撤销", value: 4 },
|
|
|
+ { label: "待审核", value: 0 },
|
|
|
+ { label: "已通过", value: 1 },
|
|
|
+ { label: "未通过", value: 2 },
|
|
|
+ { label: "已撤销", value: 3 },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- prop: "name",
|
|
|
+ prop: "refundStatusList",
|
|
|
placeholder: "退款状态",
|
|
|
scope: "select",
|
|
|
options: [
|
|
|
- { label: "待审核", value: 1 },
|
|
|
- { label: "未通过", value: 2 },
|
|
|
- { label: "带退款", value: 3 },
|
|
|
- { label: "已完成", value: 4 },
|
|
|
+ { label: "待审核", value: 0 },
|
|
|
+ { label: "正常", value: 1 },
|
|
|
+ { label: "未退款", value: 2 },
|
|
|
+ { label: "已完成", value: 3 },
|
|
|
+ { label: "未通过", value: 4 },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- prop: "name",
|
|
|
+ prop: "creditStatus",
|
|
|
placeholder: "账款状态",
|
|
|
scope: "select",
|
|
|
options: [
|
|
|
{ label: "已结清", value: 1 },
|
|
|
- { label: "未结清", value: 2 },
|
|
|
+ { label: "未结清", value: 0 },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- prop: "name",
|
|
|
+ prop: "invoiceStatus",
|
|
|
placeholder: "开票状态",
|
|
|
scope: "select",
|
|
|
options: [
|
|
|
{ label: "已开票", value: 1 },
|
|
|
- { label: "未开票", value: 2 },
|
|
|
+ { label: "未开票", value: 0 },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
placeholder: "时间",
|
|
|
- prop1: "validityStartTime",
|
|
|
- prop2: "validityEndTime",
|
|
|
+ prop1: "startTime",
|
|
|
+ prop2: "endTime",
|
|
|
placeholder1: "开始日期",
|
|
|
placeholder2: "结束日期",
|
|
|
scope: "moreDataPicker",
|
|
|
+ Diszing:true
|
|
|
},
|
|
|
{
|
|
|
- prop: "name",
|
|
|
- placeholder: "机构/订单号/业务号/下单企业",
|
|
|
+ prop: "orderSn",
|
|
|
+ placeholder: "订单号",
|
|
|
},
|
|
|
{
|
|
|
- prop: "name",
|
|
|
+ prop: "userCard",
|
|
|
placeholder: "身份号",
|
|
|
},
|
|
|
],
|
|
@@ -333,7 +380,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "下单企业",
|
|
|
- prop: "tenantName",
|
|
|
+ prop: "orderOrg",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
@@ -369,9 +416,16 @@ export default {
|
|
|
total: 0, //一共多少条
|
|
|
dialogVisible: false,
|
|
|
remarksVisible: false,
|
|
|
+ orderDialogVisible: false,
|
|
|
id: "",
|
|
|
statisticsData: {},
|
|
|
remarksOptions: [],
|
|
|
+ orderSn: null,
|
|
|
+ orderFrom: null,
|
|
|
+ ShowStatus: false,
|
|
|
+ dialogVisiblecost: false,
|
|
|
+ tpId: "",
|
|
|
+ type: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -404,6 +458,32 @@ export default {
|
|
|
}
|
|
|
return str;
|
|
|
},
|
|
|
+ editCost() {
|
|
|
+ if (this.$refs.tableList.allCheckData.length === 0) {
|
|
|
+ this.$message.error("请勾选数据");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.dialogVisiblecost = true;
|
|
|
+ this.type = 4;
|
|
|
+ this.tpId = this.$refs.tableList.allCheckData
|
|
|
+ .map((i) => i.orderSn)
|
|
|
+ .toString();
|
|
|
+ },
|
|
|
+ handelClickCost(item) {
|
|
|
+ this.dialogVisiblecost = true;
|
|
|
+ this.type = 3;
|
|
|
+ this.tpId = item.orderSn;
|
|
|
+ },
|
|
|
+ openDialog(data, e) {
|
|
|
+ if (e === 1) {
|
|
|
+ this.ShowStatus = true;
|
|
|
+ } else {
|
|
|
+ this.ShowStatus = false;
|
|
|
+ }
|
|
|
+ this.orderSn = data.orderSn;
|
|
|
+ this.orderFrom = data.orderFrom;
|
|
|
+ this.orderDialogVisible = true;
|
|
|
+ },
|
|
|
getStatistics() {
|
|
|
this.$api.systemtoporderstatistics().then((res) => {
|
|
|
this.statisticsData = res.data || {};
|
|
@@ -422,7 +502,8 @@ export default {
|
|
|
this.remarksVisible = true;
|
|
|
}
|
|
|
},
|
|
|
- handelClick() {
|
|
|
+ handelClick(data) {
|
|
|
+ this.orderSn = data.orderSn;
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
changeStatus(val) {
|
|
@@ -458,6 +539,10 @@ export default {
|
|
|
},
|
|
|
search(v) {
|
|
|
this.loading = true;
|
|
|
+ if (this.type === 4) {
|
|
|
+ this.$refs.tableList.clearMoreActive();
|
|
|
+ this.type = null;
|
|
|
+ }
|
|
|
if (v === 2) {
|
|
|
this.formData = {
|
|
|
pageSize: 10,
|
|
@@ -465,12 +550,12 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
var data = JSON.parse(JSON.stringify(this.formData));
|
|
|
- // if (this.formData.classStartTime) {
|
|
|
- // data.classStartTime = parseInt(data.classStartTime / 1000);
|
|
|
- // }
|
|
|
- // if (this.formData.classEndTime) {
|
|
|
- // data.classEndTime = parseInt(data.classEndTime / 1000);
|
|
|
- // }
|
|
|
+ if (this.formData.startTime) {
|
|
|
+ data.startTime = parseInt(data.startTime / 1000);
|
|
|
+ }
|
|
|
+ if (this.formData.endTime) {
|
|
|
+ data.endTime = parseInt(data.endTime / 1000);
|
|
|
+ }
|
|
|
this.$api
|
|
|
.systemtoporderlist(data)
|
|
|
.then((res) => {
|