|
@@ -18,6 +18,7 @@
|
|
|
@init="init"
|
|
|
/>
|
|
|
<picture-list
|
|
|
+ :key="type + 'a'"
|
|
|
:fn="getCountOrderNum"
|
|
|
:list="showTabList[type]"
|
|
|
></picture-list>
|
|
@@ -33,6 +34,9 @@
|
|
|
:objectSpanMethod="spanMethod"
|
|
|
>
|
|
|
<template slot="customize">
|
|
|
+ <el-button @click="openDialog({}, 5)" type="success">
|
|
|
+ 坏账设置
|
|
|
+ </el-button>
|
|
|
<el-button @click="batchExport" type="primary"> 导出excel </el-button>
|
|
|
</template>
|
|
|
<template slot="predictPayTime" slot-scope="props">
|
|
@@ -66,13 +70,17 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot="status" slot-scope="props">
|
|
|
- <el-checkbox
|
|
|
- @change="changeStatus"
|
|
|
- :checked="!!props.scope.row.status"
|
|
|
- ></el-checkbox>
|
|
|
+ {{
|
|
|
+ props.scope.row.payStatus == 1
|
|
|
+ ? "0"
|
|
|
+ : props.scope.row[props.scope.column.property]
|
|
|
+ }}
|
|
|
</template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
- <el-button type="text" @click="openDialog(props.scope.row, type + 3)">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="openDialog(props.scope.row, type == 0 ? 3 : 4)"
|
|
|
+ >
|
|
|
查看详情
|
|
|
</el-button>
|
|
|
<el-button
|
|
@@ -122,8 +130,9 @@
|
|
|
:dialogVisible.sync="orderDialogVisible"
|
|
|
/>
|
|
|
<arap-remarks
|
|
|
- :orderSn="activeOrderInfo.orderSn"
|
|
|
+ :orderSn="activeOrderInfo.id"
|
|
|
:remark="activeOrderInfo.remark"
|
|
|
+ :id="activeOrderInfo.id"
|
|
|
@search="search"
|
|
|
:dialogVisible.sync="remarkDialogVisible"
|
|
|
></arap-remarks>
|
|
@@ -137,6 +146,10 @@
|
|
|
></dislog-set>
|
|
|
<!-- 查看详情 -->
|
|
|
<dislog-arap-details :type="type" :dialogVisible.sync="arapDialogVisible" />
|
|
|
+ <!-- 坏账设置 -->
|
|
|
+ <dislog-bad-bill
|
|
|
+ :dialogVisible.sync="badBillDialogVisible"
|
|
|
+ ></dislog-bad-bill>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -150,6 +163,7 @@ import dislogOrderDetails from "../components/dislogOrderDetails.vue";
|
|
|
import arapRemarks from "../components/arapRemarks.vue";
|
|
|
import pictureList from "@/components/Comon/pictureList.vue";
|
|
|
import dislogArapDetails from "../components/dislogArapDetails.vue";
|
|
|
+import dislogBadBill from "../components/dislogBadBill.vue";
|
|
|
import { exportFn } from "@/utils/index.js";
|
|
|
import {
|
|
|
orderList,
|
|
@@ -160,6 +174,8 @@ import {
|
|
|
tenantExport,
|
|
|
sellerExport,
|
|
|
countOrderNum,
|
|
|
+ commissionList,
|
|
|
+ sellerPercentageList,
|
|
|
} from "@/api/financed/index";
|
|
|
export default {
|
|
|
name: "cost",
|
|
@@ -173,6 +189,7 @@ export default {
|
|
|
arapRemarks,
|
|
|
dislogSet,
|
|
|
pictureList,
|
|
|
+ dislogBadBill,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -188,57 +205,57 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
label: "代付分成",
|
|
|
- prop: "orderPriceTotal",
|
|
|
+ prop: "payMoneyTotal",
|
|
|
img: "未收款",
|
|
|
},
|
|
|
{
|
|
|
label: "待扣分成",
|
|
|
- prop: "orderReceivedTotal",
|
|
|
+ prop: "deductMoneyTotal",
|
|
|
img: "已退款",
|
|
|
},
|
|
|
{
|
|
|
label: "已扣分成",
|
|
|
- prop: "orderUncollectedTotal",
|
|
|
+ prop: "unDeductMoneyTotal",
|
|
|
img: "成本金额",
|
|
|
},
|
|
|
{
|
|
|
label: "已付分成",
|
|
|
- prop: "orderUncollectedTotal",
|
|
|
+ prop: "unPayMoneyTotal",
|
|
|
img: "已收款",
|
|
|
},
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
label: "代付分成",
|
|
|
- prop: "orderPriceTotal",
|
|
|
+ prop: "payMoneyTotal",
|
|
|
img: "未收款",
|
|
|
},
|
|
|
{
|
|
|
label: "待扣分成",
|
|
|
- prop: "orderReceivedTotal",
|
|
|
+ prop: "deductMoneyTotal",
|
|
|
img: "已退款",
|
|
|
},
|
|
|
{
|
|
|
label: "已扣分成",
|
|
|
- prop: "orderUncollectedTotal",
|
|
|
+ prop: "unDeductMoneyTotal",
|
|
|
img: "成本金额",
|
|
|
},
|
|
|
{
|
|
|
label: "已付分成",
|
|
|
- prop: "orderUncollectedTotal",
|
|
|
+ prop: "unPayMoneyTotal",
|
|
|
img: "已收款",
|
|
|
},
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
label: "待付佣金",
|
|
|
- prop: "sellerPay",
|
|
|
+ prop: "payMoneyTotal",
|
|
|
img: "未收款",
|
|
|
},
|
|
|
{
|
|
|
label: "已付佣金",
|
|
|
- prop: "tenantPay",
|
|
|
- mg: "已收款",
|
|
|
+ prop: "unPayMoneyTotal",
|
|
|
+ img: "已收款",
|
|
|
},
|
|
|
],
|
|
|
],
|
|
@@ -350,6 +367,8 @@ export default {
|
|
|
label: "待付分成(元)",
|
|
|
prop: "payMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "待扣分成(元)",
|
|
@@ -397,27 +416,29 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "已付提成(元)",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "payMoneyTotal",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "已扣提成(元)",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "deductMoneyTotal",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "待审月份",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "month",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "待审提成(元)",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "payMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "待扣提成(元)",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "deductMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
@@ -441,18 +462,20 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "已付佣金(元)",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "payMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "待付月份",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "month",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "待付佣金(元)",
|
|
|
- prop: "divideSellerMoney",
|
|
|
+ prop: "deductMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "审核状态",
|
|
@@ -468,12 +491,13 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableData: [], //表单数据
|
|
|
- total: 4, //一共多少条
|
|
|
+ total: 0, //一共多少条
|
|
|
tipDialogVisible: false,
|
|
|
orderDialogVisible: false,
|
|
|
arapDialogVisible: false,
|
|
|
remarkDialogVisible: false,
|
|
|
examineDialogVisible: false,
|
|
|
+ badBillDialogVisible: false,
|
|
|
type: 1,
|
|
|
activeOrderInfo: {},
|
|
|
roleList: [],
|
|
@@ -532,9 +556,8 @@ export default {
|
|
|
},
|
|
|
openDialog(data, type) {
|
|
|
this.activeOrderInfo = data;
|
|
|
- this.activeOrderInfo.orderSn = 123;
|
|
|
this[
|
|
|
- ["tip", "examine", "remark", "order", "arap", "arap", "arap"][type] +
|
|
|
+ ["tip", "examine", "remark", "order", "arap", "badBill"][type] +
|
|
|
"DialogVisible"
|
|
|
] = true;
|
|
|
},
|
|
@@ -564,7 +587,9 @@ export default {
|
|
|
this.search(2);
|
|
|
},
|
|
|
getDataList() {
|
|
|
- const fn = [orderList, companyList, sellerList][this.type];
|
|
|
+ const fn = [orderList, companyList, sellerPercentageList, commissionList][
|
|
|
+ this.type
|
|
|
+ ];
|
|
|
fn(this.formData)
|
|
|
.then((res) => {
|
|
|
this.tableData = this.changeData(res.rows);
|
|
@@ -616,10 +641,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getCountOrderNum() {
|
|
|
- // return countOrderNum().then((res) => {
|
|
|
- // return Promise.resolve(res);
|
|
|
- // });
|
|
|
- return Promise.resolve({ data: {} });
|
|
|
+ return countOrderNum({ totalType: this.type + 1 }).then((res) => {
|
|
|
+ return Promise.resolve(res);
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
computed: {
|
|
@@ -638,7 +662,7 @@ export default {
|
|
|
if (this.type != 0) {
|
|
|
data.push(
|
|
|
{
|
|
|
- prop: "month",
|
|
|
+ prop: "monthTime",
|
|
|
scope: "moreMonth",
|
|
|
},
|
|
|
{
|
|
@@ -665,6 +689,15 @@ export default {
|
|
|
}
|
|
|
if (this.type == 0) {
|
|
|
data.push(
|
|
|
+ {
|
|
|
+ prop: "badStatus",
|
|
|
+ placeholder: "坏账选择",
|
|
|
+ scope: "select",
|
|
|
+ options: [
|
|
|
+ { label: "是", value: 0 },
|
|
|
+ { label: "否", value: 1 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
{
|
|
|
prop1: "startTime",
|
|
|
prop2: "endTime",
|