|
@@ -15,7 +15,7 @@
|
|
icon="Edit" @click="editStatus = true">修改</el-button>
|
|
icon="Edit" @click="editStatus = true">修改</el-button>
|
|
<el-button v-if="form.id && editStatus" type="info" size="small" icon="Close"
|
|
<el-button v-if="form.id && editStatus" type="info" size="small" icon="Close"
|
|
@click="editStatus = false">取消修改</el-button>
|
|
@click="editStatus = false">取消修改</el-button>
|
|
- <el-button type="info" size="small" icon="Close" @click="exportExcel">导出</el-button>
|
|
|
|
|
|
+ <el-button type="warning" size="small" icon="Download" @click="exportExcel">导出</el-button>
|
|
<el-button v-if="form.id" type="success" icon="refresh" size="small" @click="getForm">
|
|
<el-button v-if="form.id" type="success" icon="refresh" size="small" @click="getForm">
|
|
刷新</el-button>
|
|
刷新</el-button>
|
|
|
|
|
|
@@ -273,6 +273,7 @@
|
|
genDeduct,
|
|
genDeduct,
|
|
addDeduct,
|
|
addDeduct,
|
|
updateDeduct,
|
|
updateDeduct,
|
|
|
|
+ exportAccountStatement
|
|
} from "@/api/business/entrust/deduct";
|
|
} from "@/api/business/entrust/deduct";
|
|
import useUserStore from "@/store/modules/user";
|
|
import useUserStore from "@/store/modules/user";
|
|
import { deepClone } from "@/utils";
|
|
import { deepClone } from "@/utils";
|
|
@@ -379,10 +380,12 @@
|
|
if (id) {
|
|
if (id) {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
getDeduct(id).then((response) => {
|
|
getDeduct(id).then((response) => {
|
|
- console.log(response);
|
|
|
|
form.value = response.data;
|
|
form.value = response.data;
|
|
editStatus.value = false;
|
|
editStatus.value = false;
|
|
title.value = "修改客户";
|
|
title.value = "修改客户";
|
|
|
|
+ condition.value.entrustOrderId = form.value.entrustOrderId;
|
|
|
|
+ condition.value.startMonth = form.value.startMonth;
|
|
|
|
+ condition.value.endMonth = form.value.endMonth;
|
|
}).finally
|
|
}).finally
|
|
(() => {
|
|
(() => {
|
|
loading.value = false;
|
|
loading.value = false;
|
|
@@ -465,7 +468,8 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function exportExcel() {
|
|
function exportExcel() {
|
|
- console.log(condition.value);
|
|
|
|
|
|
+ condition.value.title = "(" + form.value.contactCompany + "-" + form.value.formNo+")";
|
|
|
|
+ exportAccountStatement(condition.value)
|
|
}
|
|
}
|
|
/** 提交保存 */
|
|
/** 提交保存 */
|
|
function submitForm() {
|
|
function submitForm() {
|