|
@@ -17,39 +17,43 @@
|
|
|
:tableData="tableData"
|
|
:tableData="tableData"
|
|
|
:navText="navText"
|
|
:navText="navText"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
- @load="load"
|
|
|
|
|
- @select="selectRow"
|
|
|
|
|
>
|
|
>
|
|
|
<template slot="customize">
|
|
<template slot="customize">
|
|
|
<el-button @click="batchExport" type="primary"> 导出excel </el-button>
|
|
<el-button @click="batchExport" type="primary"> 导出excel </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
- <template slot="divideCheckStatus" slot-scope="props">
|
|
|
|
|
- <div v-if="props.scope.row.billType != 7">
|
|
|
|
|
|
|
+ <template slot="checkStatus" slot-scope="props">
|
|
|
|
|
+ <div>
|
|
|
{{
|
|
{{
|
|
|
- divideCheckStatus(
|
|
|
|
|
- props.scope.row.orderSn,
|
|
|
|
|
- props.scope.row.payStatus,
|
|
|
|
|
- props.scope.row.checkStatus
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ [
|
|
|
|
|
+ "未通过",
|
|
|
|
|
+ "待审核",
|
|
|
|
|
+ "已通过",
|
|
|
|
|
+ "待支付",
|
|
|
|
|
+ "已结算",
|
|
|
|
|
+ "审核中",
|
|
|
|
|
+ "支付失败",
|
|
|
|
|
+ ][props.scope.row.checkStatus + 1]
|
|
|
}}
|
|
}}
|
|
|
- <span style="color: #409eff" v-if="props.scope.row.roleName">
|
|
|
|
|
|
|
+ <span style="color: red" v-if="props.scope.row.roleName">
|
|
|
({{ props.scope.row.roleName }})
|
|
({{ props.scope.row.roleName }})
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template slot="pretax" slot-scope="props">
|
|
|
|
|
+ {{ props.scope.row.pretax * 100 }}%
|
|
|
|
|
+ </template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
<template slot="btn" slot-scope="props">
|
|
|
- <el-button type="text" @click="openDialog([props.scope.row])">
|
|
|
|
|
|
|
+ <el-button type="text" @click="openDialog(props.scope.row)">
|
|
|
详情
|
|
详情
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="text"
|
|
type="text"
|
|
|
- v-if="!props.scope.row.orderSn"
|
|
|
|
|
- :disabled="
|
|
|
|
|
- !(
|
|
|
|
|
- props.scope.row.payStatus === 0 || props.scope.row.payStatus === 4
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ props.scope.row.checkStatus === 1 ||
|
|
|
|
|
+ props.scope.row.checkStatus === 5
|
|
|
"
|
|
"
|
|
|
- @click="openDialog([props.scope.row])"
|
|
|
|
|
|
|
+ :disabled="getRoles(props.scope.row.roleId)"
|
|
|
|
|
+ @click="openDialog([props.scope.row], 1)"
|
|
|
>
|
|
>
|
|
|
支付
|
|
支付
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -60,15 +64,31 @@
|
|
|
props.scope.row.checkStatus !== 0 ||
|
|
props.scope.row.checkStatus !== 0 ||
|
|
|
getRoles(props.scope.row.roleId)
|
|
getRoles(props.scope.row.roleId)
|
|
|
"
|
|
"
|
|
|
- @click="openDialog([props.scope.row])"
|
|
|
|
|
|
|
+ @click="batchAudit(props.scope.row)"
|
|
|
>
|
|
>
|
|
|
审核
|
|
审核
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button type="text"> 单据打印 </el-button>
|
|
|
|
|
- <el-button type="text"> 明细打印 </el-button>
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color:
|
|
|
|
|
+ props.scope.row.checkStatus !== 1 ? '#ccc' : 'rgb(230, 162, 60)',
|
|
|
|
|
+ }"
|
|
|
|
|
+ :disabled="props.scope.row.checkStatus !== 1"
|
|
|
|
|
+ @click="openDialog({ ...props.scope.row, type: 3, printType: 1 }, 0)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 单据打印
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ style="color: rgb(230, 162, 60)"
|
|
|
|
|
+ @click="openDialog({ ...props.scope.row, type: 3, printType: 2 }, 0)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 明细打印
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</table-list>
|
|
</table-list>
|
|
|
- <pagination
|
|
|
|
|
|
|
+ <pagination1
|
|
|
:total="total"
|
|
:total="total"
|
|
|
:pageSize.sync="formData.pageSize"
|
|
:pageSize.sync="formData.pageSize"
|
|
|
:currentPage.sync="formData.pageNum"
|
|
:currentPage.sync="formData.pageNum"
|
|
@@ -78,16 +98,19 @@
|
|
|
:dialogVisible.sync="examineDialogVisible"
|
|
:dialogVisible.sync="examineDialogVisible"
|
|
|
@search="search"
|
|
@search="search"
|
|
|
:info="activeOrderInfoArray"
|
|
:info="activeOrderInfoArray"
|
|
|
- ></dislog-set>
|
|
|
|
|
|
|
+ />
|
|
|
|
|
+ <!-- 打印 -->
|
|
|
|
|
+ <dislog-print
|
|
|
|
|
+ :activeData="activeOrderInfo"
|
|
|
|
|
+ :dialogVisible.sync="printDialogVisible"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import dislogSet from "../../components/audit/dislogSet.vue";
|
|
import dislogSet from "../../components/audit/dislogSet.vue";
|
|
|
-import searchBoxNew from "@/components/searchBoxNew";
|
|
|
|
|
-import tableList from "@/components/tableList";
|
|
|
|
|
-import pagination from "@/components/pagination";
|
|
|
|
|
import pictureList from "@/components/Comon/pictureList.vue";
|
|
import pictureList from "@/components/Comon/pictureList.vue";
|
|
|
|
|
+import dislogPrint from "../components/dislogPrint.vue";
|
|
|
import { exportFn } from "@/utils/index.js";
|
|
import { exportFn } from "@/utils/index.js";
|
|
|
import {
|
|
import {
|
|
|
orderList,
|
|
orderList,
|
|
@@ -96,16 +119,15 @@ import {
|
|
|
commissionList,
|
|
commissionList,
|
|
|
sellerPercentageList,
|
|
sellerPercentageList,
|
|
|
commissionExport,
|
|
commissionExport,
|
|
|
|
|
+ monthOrderList
|
|
|
} from "@/api/financed/index";
|
|
} from "@/api/financed/index";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "Arap",
|
|
name: "Arap",
|
|
|
components: {
|
|
components: {
|
|
|
- searchBoxNew,
|
|
|
|
|
- tableList,
|
|
|
|
|
- pagination,
|
|
|
|
|
dislogSet,
|
|
dislogSet,
|
|
|
pictureList,
|
|
pictureList,
|
|
|
|
|
+ dislogPrint,
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -132,7 +154,7 @@ export default {
|
|
|
index: 0,
|
|
index: 0,
|
|
|
ch: "条",
|
|
ch: "条",
|
|
|
num: true,
|
|
num: true,
|
|
|
- choice: true,
|
|
|
|
|
|
|
+ choice: false,
|
|
|
addHide: true,
|
|
addHide: true,
|
|
|
dontNum: true,
|
|
dontNum: true,
|
|
|
openCheckMore: false,
|
|
openCheckMore: false,
|
|
@@ -147,15 +169,15 @@ export default {
|
|
|
tableSet: [
|
|
tableSet: [
|
|
|
{
|
|
{
|
|
|
label: "订单日期",
|
|
label: "订单日期",
|
|
|
- prop: "buyTime",
|
|
|
|
|
|
|
+ prop: "createTime",
|
|
|
hidden: true,
|
|
hidden: true,
|
|
|
scope: "aTimeList",
|
|
scope: "aTimeList",
|
|
|
- width: 140,
|
|
|
|
|
|
|
+ width: 160,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "订单号",
|
|
label: "订单号",
|
|
|
prop: "orderSn",
|
|
prop: "orderSn",
|
|
|
- width: "180",
|
|
|
|
|
|
|
+ width: "210",
|
|
|
hidden: true,
|
|
hidden: true,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -192,28 +214,39 @@ export default {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "佣金税占比",
|
|
label: "佣金税占比",
|
|
|
- prop: "deductMoney",
|
|
|
|
|
|
|
+ prop: "pretax",
|
|
|
hidden: true,
|
|
hidden: true,
|
|
|
- scope: "formatPrice",
|
|
|
|
|
|
|
+ scope: "solt",
|
|
|
|
|
+ soltName: "pretax",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "结算佣金",
|
|
label: "结算佣金",
|
|
|
- prop: "deductMoney",
|
|
|
|
|
|
|
+ prop: "brokerage",
|
|
|
hidden: true,
|
|
hidden: true,
|
|
|
scope: "formatPrice",
|
|
scope: "formatPrice",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "支付方式",
|
|
label: "支付方式",
|
|
|
- prop: "deductMoney",
|
|
|
|
|
|
|
+ prop: "payType",
|
|
|
hidden: true,
|
|
hidden: true,
|
|
|
- scope: "formatPrice",
|
|
|
|
|
|
|
+ scope: "type",
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ values: {
|
|
|
|
|
+ 1: "微信",
|
|
|
|
|
+ 2: "支付宝",
|
|
|
|
|
+ 3: "金币",
|
|
|
|
|
+ 4: "现金",
|
|
|
|
|
+ 5: "网银支付",
|
|
|
|
|
+ 6: "协议",
|
|
|
|
|
+ 7: "对公转账",
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "审核状态",
|
|
label: "审核状态",
|
|
|
- prop: "divideCheckStatus",
|
|
|
|
|
|
|
+ prop: "checkStatus",
|
|
|
hidden: true,
|
|
hidden: true,
|
|
|
scope: "solt",
|
|
scope: "solt",
|
|
|
- soltName: "divideCheckStatus",
|
|
|
|
|
|
|
+ soltName: "checkStatus",
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
tableData: [], //表单数据
|
|
tableData: [], //表单数据
|
|
@@ -225,7 +258,7 @@ export default {
|
|
|
multiple: true,
|
|
multiple: true,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: "month",
|
|
|
|
|
|
|
+ prop: "monthTime",
|
|
|
placeholder: "账期时间",
|
|
placeholder: "账期时间",
|
|
|
scope: "moreMonth",
|
|
scope: "moreMonth",
|
|
|
},
|
|
},
|
|
@@ -235,11 +268,11 @@ export default {
|
|
|
scope: "select",
|
|
scope: "select",
|
|
|
multiple: true,
|
|
multiple: true,
|
|
|
options: [
|
|
options: [
|
|
|
- { label: "待审核", value: 2 },
|
|
|
|
|
- { label: "审核中", value: 5 },
|
|
|
|
|
- { label: "待支付", value: 3 },
|
|
|
|
|
- { label: "支付失败", value: 4 },
|
|
|
|
|
- { label: "已结算", value: 1 },
|
|
|
|
|
|
|
+ { label: "待审核", value: 0 },
|
|
|
|
|
+ { label: "审核中", value: 4 },
|
|
|
|
|
+ { label: "未通过", value: -1 },
|
|
|
|
|
+ { label: "待结算", value: 2 },
|
|
|
|
|
+ { label: "已结算", value: 3 },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -247,12 +280,13 @@ export default {
|
|
|
placeholder: "输入订单号",
|
|
placeholder: "输入订单号",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: "kewWorad",
|
|
|
|
|
|
|
+ prop: "createNo",
|
|
|
placeholder: "输入业务号/业务员号",
|
|
placeholder: "输入业务号/业务员号",
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
total: 0, //一共多少条
|
|
total: 0, //一共多少条
|
|
|
examineDialogVisible: false,
|
|
examineDialogVisible: false,
|
|
|
|
|
+ printDialogVisible: false,
|
|
|
type: 1,
|
|
type: 1,
|
|
|
activeOrderInfo: {},
|
|
activeOrderInfo: {},
|
|
|
activeOrderInfoArray: [],
|
|
activeOrderInfoArray: [],
|
|
@@ -278,55 +312,14 @@ export default {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- divideCheckStatus(type, e1, e2) {
|
|
|
|
|
- var a = "";
|
|
|
|
|
- if (type) {
|
|
|
|
|
- switch (e2) {
|
|
|
|
|
- case -1:
|
|
|
|
|
- a = "未通过";
|
|
|
|
|
- break;
|
|
|
|
|
- case 0:
|
|
|
|
|
- a = "待审核";
|
|
|
|
|
- break;
|
|
|
|
|
- case 1:
|
|
|
|
|
- a = "已通过";
|
|
|
|
|
- break;
|
|
|
|
|
- case 2:
|
|
|
|
|
- a = "待支付";
|
|
|
|
|
- break;
|
|
|
|
|
- case 3:
|
|
|
|
|
- a = "已支付";
|
|
|
|
|
- break;
|
|
|
|
|
- default:
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ openDialog(data, type = 1) {
|
|
|
|
|
+ if (type === 1) {
|
|
|
|
|
+ data.forEach((e) => (e.checkFrom = 4));
|
|
|
|
|
+ this.activeOrderInfoArray = data;
|
|
|
} else {
|
|
} else {
|
|
|
- switch (e1) {
|
|
|
|
|
- case 0:
|
|
|
|
|
- a = "待支付";
|
|
|
|
|
- break;
|
|
|
|
|
- case 1:
|
|
|
|
|
- a = "已打款";
|
|
|
|
|
- break;
|
|
|
|
|
- case 2:
|
|
|
|
|
- a = "待审核";
|
|
|
|
|
- break;
|
|
|
|
|
- case 3:
|
|
|
|
|
- a = "打款中";
|
|
|
|
|
- break;
|
|
|
|
|
- case 4:
|
|
|
|
|
- a = "打款失败";
|
|
|
|
|
- break;
|
|
|
|
|
- default:
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.activeOrderInfo = data;
|
|
|
}
|
|
}
|
|
|
- return a;
|
|
|
|
|
- },
|
|
|
|
|
- openDialog(data, type = 0) {
|
|
|
|
|
- data.forEach((e) => (e.checkFrom = 4));
|
|
|
|
|
- this.activeOrderInfoArray = data;
|
|
|
|
|
- this[["examine"][type] + "DialogVisible"] = true;
|
|
|
|
|
|
|
+ this[["print", "examine"][type] + "DialogVisible"] = true;
|
|
|
},
|
|
},
|
|
|
batchExport() {
|
|
batchExport() {
|
|
|
commissionExport(this.formData).then((res) => {
|
|
commissionExport(this.formData).then((res) => {
|
|
@@ -352,31 +345,6 @@ export default {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- getReplaceData() {
|
|
|
|
|
- return new Promise((resolve) => {
|
|
|
|
|
- const fn = [
|
|
|
|
|
- orderList,
|
|
|
|
|
- companyList,
|
|
|
|
|
- sellerPercentageList,
|
|
|
|
|
- commissionList,
|
|
|
|
|
- ][this.type];
|
|
|
|
|
- fn(this.formData)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- res.rows.forEach((i) => {
|
|
|
|
|
- this.$set(
|
|
|
|
|
- this.tableData[this.tableData.findIndex((k) => k.id === i.id)],
|
|
|
|
|
- "payStatus",
|
|
|
|
|
- i.payStatus
|
|
|
|
|
- );
|
|
|
|
|
- });
|
|
|
|
|
- this.total = res.total;
|
|
|
|
|
- this.navText.index = res.total;
|
|
|
|
|
- })
|
|
|
|
|
- .finally(() => {
|
|
|
|
|
- this.loading = false;
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
async search(v) {
|
|
async search(v) {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
if (v === 2) {
|
|
if (v === 2) {
|
|
@@ -384,7 +352,7 @@ export default {
|
|
|
this.formData = {
|
|
this.formData = {
|
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
- month: "",
|
|
|
|
|
|
|
+ monthTime: [],
|
|
|
years: [],
|
|
years: [],
|
|
|
roleIds: this.rolesId,
|
|
roleIds: this.rolesId,
|
|
|
};
|
|
};
|
|
@@ -399,10 +367,8 @@ export default {
|
|
|
this.search(2);
|
|
this.search(2);
|
|
|
},
|
|
},
|
|
|
getCountOrderNum() {
|
|
getCountOrderNum() {
|
|
|
- var data = JSON.parse(JSON.stringify(this.formData));
|
|
|
|
|
- delete data.pageNum;
|
|
|
|
|
- delete data.pageSize;
|
|
|
|
|
- countOrderNum({ totalType: 3, ...data }).then((res) => {
|
|
|
|
|
|
|
+ monthOrderList(this.formData).then((res) => {
|
|
|
|
|
+ console.log("🚀 ~ file: index.vue:371 ~ monthOrderList ~ res:", res)
|
|
|
let {
|
|
let {
|
|
|
unPayMoneyTotal,
|
|
unPayMoneyTotal,
|
|
|
unDeductMoneyTotal,
|
|
unDeductMoneyTotal,
|