|
@@ -20,7 +20,7 @@
|
|
<el-button type="primary" size="small" @click="editRemarks(1)"
|
|
<el-button type="primary" size="small" @click="editRemarks(1)"
|
|
>修改备注</el-button
|
|
>修改备注</el-button
|
|
>
|
|
>
|
|
- <el-button size="small" @click="exportExcel()">导出excel</el-button>
|
|
|
|
|
|
+ <el-button size="small" @click="exportData">导出excel</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="dis_flex_order_li">
|
|
<div class="dis_flex_order_li">
|
|
<div class="list" v-for="(item, index) in ShowTabList" :key="index">
|
|
<div class="list" v-for="(item, index) in ShowTabList" :key="index">
|
|
@@ -193,7 +193,7 @@
|
|
:disabled="
|
|
:disabled="
|
|
!(
|
|
!(
|
|
// props.scope.row.finishSign === 1 &&
|
|
// props.scope.row.finishSign === 1 &&
|
|
- props.scope.row.finishStatus === 0
|
|
|
|
|
|
+ (props.scope.row.finishStatus === 0)
|
|
) || disabledStatus(props.scope.row.commercialTenant)
|
|
) || disabledStatus(props.scope.row.commercialTenant)
|
|
"
|
|
"
|
|
@click="completeOrder(props.scope.row.orderSn, 1)"
|
|
@click="completeOrder(props.scope.row.orderSn, 1)"
|
|
@@ -354,7 +354,7 @@ export default {
|
|
choice: true,
|
|
choice: true,
|
|
addHide: true,
|
|
addHide: true,
|
|
openCheckMore: true,
|
|
openCheckMore: true,
|
|
- changeWidth: "100px",
|
|
|
|
|
|
+ changeWidth: "160px",
|
|
custom: false,
|
|
custom: false,
|
|
backFatherBtn: {
|
|
backFatherBtn: {
|
|
status: false,
|
|
status: false,
|
|
@@ -381,6 +381,11 @@ export default {
|
|
{ label: "出纳", value: 2 },
|
|
{ label: "出纳", value: 2 },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ prop: "orderOrg",
|
|
|
|
+ placeholder: "订单来源",
|
|
|
|
+ },
|
|
|
|
+
|
|
// {
|
|
// {
|
|
// prop: "businessFullName",
|
|
// prop: "businessFullName",
|
|
// placeholder: "业务分类",
|
|
// placeholder: "业务分类",
|
|
@@ -463,8 +468,17 @@ export default {
|
|
placeholder: "时间",
|
|
placeholder: "时间",
|
|
prop1: "startTime",
|
|
prop1: "startTime",
|
|
prop2: "endTime",
|
|
prop2: "endTime",
|
|
- placeholder1: "开始日期",
|
|
|
|
- placeholder2: "结束日期",
|
|
|
|
|
|
+ placeholder1: "订单开始日期",
|
|
|
|
+ placeholder2: "订单结束日期",
|
|
|
|
+ scope: "moreDataPicker",
|
|
|
|
+ Diszing: true,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ placeholder: "审核时间",
|
|
|
|
+ prop1: "checkStartTime",
|
|
|
|
+ prop2: "checkEndTime",
|
|
|
|
+ placeholder1: "审核开始日期",
|
|
|
|
+ placeholder2: "审核结束日期",
|
|
scope: "moreDataPicker",
|
|
scope: "moreDataPicker",
|
|
Diszing: true,
|
|
Diszing: true,
|
|
},
|
|
},
|
|
@@ -476,13 +490,25 @@ export default {
|
|
prop: "userCard",
|
|
prop: "userCard",
|
|
placeholder: "身份号",
|
|
placeholder: "身份号",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ prop: "userName",
|
|
|
|
+ placeholder: "学员姓名",
|
|
|
|
+ },
|
|
],
|
|
],
|
|
formData: {
|
|
formData: {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
|
+ checkStatus: 0,
|
|
},
|
|
},
|
|
// 表单
|
|
// 表单
|
|
tableSet: [
|
|
tableSet: [
|
|
|
|
+ {
|
|
|
|
+ label: "业务类型",
|
|
|
|
+ prop: "businessNames",
|
|
|
|
+ hidden: true,
|
|
|
|
+ scope: "solt",
|
|
|
|
+ soltName: "type",
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: "订单信息",
|
|
label: "订单信息",
|
|
prop: "name",
|
|
prop: "name",
|
|
@@ -567,13 +593,6 @@ export default {
|
|
prop: "purchaseOrg",
|
|
prop: "purchaseOrg",
|
|
hidden: true,
|
|
hidden: true,
|
|
},
|
|
},
|
|
- {
|
|
|
|
- label: "业务类型",
|
|
|
|
- prop: "businessNames",
|
|
|
|
- hidden: true,
|
|
|
|
- scope: "solt",
|
|
|
|
- soltName: "type",
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
label: "发票状态",
|
|
label: "发票状态",
|
|
prop: "invoiceStatus",
|
|
prop: "invoiceStatus",
|
|
@@ -591,10 +610,15 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "备注",
|
|
|
|
|
|
+ label: "业务员备注",
|
|
prop: "remark",
|
|
prop: "remark",
|
|
hidden: true,
|
|
hidden: true,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label: "财务备注",
|
|
|
|
+ prop: "financeRemark",
|
|
|
|
+ hidden: true,
|
|
|
|
+ },
|
|
],
|
|
],
|
|
tableData: [], //表单数据
|
|
tableData: [], //表单数据
|
|
total: 0, //一共多少条
|
|
total: 0, //一共多少条
|
|
@@ -615,7 +639,7 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.search();
|
|
this.search();
|
|
- this.getStatistics();
|
|
|
|
|
|
+ this.getStatistics(this.formData);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getRoles(roleId) {
|
|
getRoles(roleId) {
|
|
@@ -676,20 +700,22 @@ export default {
|
|
}
|
|
}
|
|
return str;
|
|
return str;
|
|
},
|
|
},
|
|
- exportExcel() {
|
|
|
|
- var b = 1;
|
|
|
|
- var a = "0,1";
|
|
|
|
- if (this.$refs.tableList.allCheckData.length === 0) {
|
|
|
|
- this.$message.error("请勾选数据");
|
|
|
|
- return;
|
|
|
|
|
|
+
|
|
|
|
+ exportData() {
|
|
|
|
+ var data = JSON.parse(JSON.stringify(this.formData));
|
|
|
|
+ if (data.roleId === 0 || data.roleId === 1) {
|
|
|
|
+ data.refundStatusList = "0,3,4";
|
|
}
|
|
}
|
|
- this.$api
|
|
|
|
- .systemtoporderexport({
|
|
|
|
- orderSnList: this.$refs.tableList.allCheckData.map((i) => i.orderSn),
|
|
|
|
- })
|
|
|
|
- .then((res) => {
|
|
|
|
|
|
+ if (data.roleId === 2) {
|
|
|
|
+ data.refundStatusList = "2,3";
|
|
|
|
+ }
|
|
|
|
+ this.$api.systemtoporderexport(data).then((res) => {
|
|
|
|
+ if (res.msg) {
|
|
exportFn(res.msg, `导出数据`);
|
|
exportFn(res.msg, `导出数据`);
|
|
- });
|
|
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("导出失败");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
|
|
editCost() {
|
|
editCost() {
|
|
@@ -717,7 +743,7 @@ export default {
|
|
type: "success",
|
|
type: "success",
|
|
message: "操作成功!",
|
|
message: "操作成功!",
|
|
});
|
|
});
|
|
- this.search(3)
|
|
|
|
|
|
+ this.search(3);
|
|
});
|
|
});
|
|
};
|
|
};
|
|
if (!orderSn && this.$refs.tableList.allCheckData.length === 0) {
|
|
if (!orderSn && this.$refs.tableList.allCheckData.length === 0) {
|
|
@@ -779,8 +805,11 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- getStatistics() {
|
|
|
|
- this.$api.systemtoporderstatistics().then((res) => {
|
|
|
|
|
|
+ getStatistics(datas) {
|
|
|
|
+ var data = JSON.parse(JSON.stringify(datas));
|
|
|
|
+ delete data.pageNum;
|
|
|
|
+ delete data.pageSize;
|
|
|
|
+ this.$api.systemtoporderstatistics(data).then((res) => {
|
|
this.statisticsData = res.data || {};
|
|
this.statisticsData = res.data || {};
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -842,6 +871,7 @@ export default {
|
|
this.formData = {
|
|
this.formData = {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
|
+ checkStatus: 0,
|
|
};
|
|
};
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.tableList.clearMoreActive();
|
|
this.$refs.tableList.clearMoreActive();
|
|
@@ -859,12 +889,7 @@ export default {
|
|
if (data.roleId === 2) {
|
|
if (data.roleId === 2) {
|
|
data.refundStatusList = "2,3";
|
|
data.refundStatusList = "2,3";
|
|
}
|
|
}
|
|
- if (this.formData.startTime) {
|
|
|
|
- data.startTime = parseInt(data.startTime / 1000);
|
|
|
|
- }
|
|
|
|
- if (this.formData.endTime) {
|
|
|
|
- data.endTime = parseInt(data.endTime / 1000);
|
|
|
|
- }
|
|
|
|
|
|
+ this.getStatistics(data);
|
|
this.$api
|
|
this.$api
|
|
.systemtoporderlist(data)
|
|
.systemtoporderlist(data)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
@@ -885,7 +910,7 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.cell > .el-button + .el-button {
|
|
.cell > .el-button + .el-button {
|
|
- margin-left: 0px;
|
|
|
|
|
|
+ // margin-left: 0px;
|
|
}
|
|
}
|
|
.dis_flex_order_li {
|
|
.dis_flex_order_li {
|
|
display: flex;
|
|
display: flex;
|