|
@@ -69,12 +69,30 @@
|
|
|
</template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
<el-button
|
|
|
+ v-if="type == 1"
|
|
|
type="text"
|
|
|
:disabled="props.scope.row.creditStatus == 1"
|
|
|
@click="handelClick(props.scope.row)"
|
|
|
>
|
|
|
催款提醒
|
|
|
</el-button>
|
|
|
+ <template v-else>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ :disabled="props.scope.row.creditStatus == 1"
|
|
|
+ @click="handelClick(props.scope.row)"
|
|
|
+ >
|
|
|
+ 点击审核
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ style="color: #e6a23c"
|
|
|
+ :disabled="props.scope.row.creditStatus == 1"
|
|
|
+ @click="handelClick(props.scope.row)"
|
|
|
+ >
|
|
|
+ 修改备注
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</table-list>
|
|
|
<pagination
|
|
@@ -101,7 +119,12 @@ import pagination from "@/components/pagination";
|
|
|
import dislogTip from "./dislogTip.vue";
|
|
|
import dislogOrderDetails from "../components/dislogOrderDetails.vue";
|
|
|
import { exportFn } from "@/utils/index.js";
|
|
|
-import { orderList, sellerList, orderExport } from "@/api/financed/index";
|
|
|
+import {
|
|
|
+ orderList,
|
|
|
+ sellerList,
|
|
|
+ tenantList,
|
|
|
+ orderExport,
|
|
|
+} from "@/api/financed/index";
|
|
|
export default {
|
|
|
name: "cost",
|
|
|
components: {
|
|
@@ -206,44 +229,46 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "订单单号",
|
|
|
- prop: "name",
|
|
|
+ prop: "orderSn",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "机构名称",
|
|
|
- prop: "name",
|
|
|
+ prop: "tenantName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "待付账款(元)",
|
|
|
- prop: "name",
|
|
|
+ prop: "divideCompanyMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "预付时间",
|
|
|
- prop: "name",
|
|
|
+ prop: "predictPayTime",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "剩余天数",
|
|
|
- prop: "name",
|
|
|
+ prop: "predictReceiveDay",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "审核状态",
|
|
|
- prop: "name",
|
|
|
+ prop: "refundStatus",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "refundStatus",
|
|
|
},
|
|
|
{
|
|
|
label: "备注",
|
|
|
- prop: "name",
|
|
|
+ prop: "remark",
|
|
|
hidden: true,
|
|
|
},
|
|
|
],
|
|
|
tableSet3: [
|
|
|
{
|
|
|
label: "下单时间",
|
|
|
- prop: "lastTime",
|
|
|
+ prop: "buyTime",
|
|
|
hidden: true,
|
|
|
scope: "aTimeList",
|
|
|
},
|
|
@@ -289,6 +314,11 @@ export default {
|
|
|
scope: "solt",
|
|
|
soltName: "refundStatus",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "remark",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
],
|
|
|
tableData: [], //表单数据
|
|
|
total: 0, //一共多少条
|
|
@@ -296,10 +326,11 @@ export default {
|
|
|
orderDialogVisible: false,
|
|
|
type: 1,
|
|
|
activeOrderInfo: {},
|
|
|
+ roleList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.search(2);
|
|
|
+ this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
openDialog(data) {
|
|
@@ -326,14 +357,14 @@ export default {
|
|
|
return data;
|
|
|
},
|
|
|
changeSearch() {
|
|
|
- this.init();
|
|
|
+ this.search(2);
|
|
|
},
|
|
|
handelClick(row) {
|
|
|
this.activeOrderInfo = row;
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
getDataList(data) {
|
|
|
- const fn = [orderList, orderList, sellerList][this.type - 1];
|
|
|
+ const fn = [orderList, tenantList, sellerList][this.type - 1];
|
|
|
fn(data)
|
|
|
.then((res) => {
|
|
|
this.tableData = res.rows;
|
|
@@ -369,8 +400,14 @@ export default {
|
|
|
return data;
|
|
|
},
|
|
|
init() {
|
|
|
+ this.getRoleList();
|
|
|
this.search(2);
|
|
|
},
|
|
|
+ getRoleList() {
|
|
|
+ this.$api.obtainRoleList().then((res) => {
|
|
|
+ this.roleList = res.rows;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
tableSet() {
|
|
@@ -398,16 +435,15 @@ export default {
|
|
|
if (this.type != 1) {
|
|
|
data.unshift(
|
|
|
{
|
|
|
- prop: "status1",
|
|
|
+ prop: "roleId",
|
|
|
placeholder: "角色选择",
|
|
|
scope: "select",
|
|
|
- options: [
|
|
|
- { label: "已结清", value: 1 },
|
|
|
- { label: "未结清", value: 0 },
|
|
|
- ],
|
|
|
+ options: this.roleList,
|
|
|
+ selectValue: "roleId",
|
|
|
+ selectLabel: "roleName",
|
|
|
},
|
|
|
{
|
|
|
- prop: "checkStatus",
|
|
|
+ prop: "divideStatus",
|
|
|
placeholder: "审核状态",
|
|
|
scope: "select",
|
|
|
options: [
|
|
@@ -416,6 +452,11 @@ export default {
|
|
|
{ label: "未通过", value: 2 },
|
|
|
{ label: "已撤销", value: 3 },
|
|
|
],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "tenantId",
|
|
|
+ placeholder: "机构选择",
|
|
|
+ scope: "systemtenantlist",
|
|
|
}
|
|
|
);
|
|
|
} else {
|