|
|
@@ -1,10 +1,12 @@
|
|
|
<template>
|
|
|
<basic-container>
|
|
|
+<!-- @on-load="onLoad"-->
|
|
|
<avue-crud
|
|
|
:option="option"
|
|
|
:data="dataList"
|
|
|
ref="crud"
|
|
|
v-model="form"
|
|
|
+ :row-style="{ height: '30px', 'line-height': '30px' }"
|
|
|
:page.sync="page"
|
|
|
:search.sync="search"
|
|
|
:table-loading="loading"
|
|
|
@@ -15,7 +17,6 @@
|
|
|
@current-change="currentChange"
|
|
|
@size-change="sizeChange"
|
|
|
@refresh-change="refreshChange"
|
|
|
- @on-load="onLoad"
|
|
|
@resetColumn="resetColumn('crud', 'option', 'optionBack', 328.1)"
|
|
|
@saveColumn="saveColumn('crud', 'option', 'optionBack', 328.1)"
|
|
|
>
|
|
|
@@ -26,28 +27,25 @@
|
|
|
<!-- </el-option>-->
|
|
|
<!-- </el-select>-->
|
|
|
<!-- </template>-->
|
|
|
+ <!--
|
|
|
<template slot-scope="scope" slot="checkType">
|
|
|
<span v-if="scope.row.checkType == 'HYCK-FFSQ'">付费申请</span>
|
|
|
- <span v-if="scope.row.checkType == 'HYCK-FPSQ'">发票申请</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'HYCK-DJ'">海运出口</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'HYCK-FPSQ'">发票申请</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'HYCK'">海运出口</span>
|
|
|
<span v-else-if="scope.row.checkType == 'HYCK-FY'">海运出口费用</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'HYJK-DJ'">海运进口</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'HYJK'">海运进口</span>
|
|
|
<span v-else-if="scope.row.checkType == 'HYJK-FY'">海运进口费用</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'sea-approve'">海运出口AMEND</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'sia-approve'">海运进口AMEND</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'aea-approve'">空运出口AMEND</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'aia-approve'">空运进口AMEND</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'KYCK-DJ'">空运出口</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'KYJK-DJ'">空运进口</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'SEA'">海运出口AMEND</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'SIA'">海运进口AMEND</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'AEA'">空运出口AMEND</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'AIA'">空运进口AMEND</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'KYCK'">空运出口</span>
|
|
|
+ <span v-else-if="scope.row.checkType == 'KYJK'">空运进口</span>
|
|
|
<span v-else-if="scope.row.checkType == 'BGSE'">海运出口报关</span>
|
|
|
<span v-else-if="scope.row.checkType == 'BGSI'">海运进口报关</span>
|
|
|
<span v-else-if="scope.row.checkType == 'BGAE'">空运出口报关</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'BGAI'">空运进口报关</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'FFSQ-SK'">贸易代理货款付费申请</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'MYDL'">贸易代理单据审核</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'YSQR-C'">贸易代理货款付费确认</span>
|
|
|
- <span v-else-if="scope.row.checkType == 'YSQR-D'">贸易代理货款收费确认</span>
|
|
|
</template>
|
|
|
+ -->
|
|
|
<!-- 暂时屏蔽,不打开业务
|
|
|
<template slot-scope="scope" slot="billNo">
|
|
|
<span style="color: #1e9fff;cursor: pointer;" @click="billNoDetails(scope.row)">{{
|
|
|
@@ -71,77 +69,77 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-if="scope.row.checkType == 'HYCK-DJ'"
|
|
|
+ v-if="scope.row.checkType == 'HYCK'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'HYCK-DJ')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'HYCK')"
|
|
|
>
|
|
|
审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'HYJK-DJ'"
|
|
|
+ v-else-if="scope.row.checkType == 'HYJK'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'HYJK-DJ')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'HYJK')"
|
|
|
>
|
|
|
审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'KYCK-DJ'"
|
|
|
+ v-else-if="scope.row.checkType == 'KYCK'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'KYCK-DJ')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'KYCK')"
|
|
|
>
|
|
|
审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'KYJK-DJ'"
|
|
|
+ v-else-if="scope.row.checkType == 'KYJK'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'KYJK-DJ')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'KYJK')"
|
|
|
>
|
|
|
审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'HYCK-FFSQ'"
|
|
|
+ v-else-if="scope.row.checkType == 'FFSQ'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'HYCK-FFSQ')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'FFSQ')"
|
|
|
>审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'sea-approve'"
|
|
|
+ v-else-if="scope.row.checkType == 'SEA'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'sea-approve')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'SEA')"
|
|
|
>审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'sia-approve'"
|
|
|
+ v-else-if="scope.row.checkType == 'SIA'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'sia-approve')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'SIA')"
|
|
|
>审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'aea-approve'"
|
|
|
+ v-else-if="scope.row.checkType == 'AEA'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'aea-approve')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'AEA')"
|
|
|
>审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- v-else-if="scope.row.checkType == 'aia-approve'"
|
|
|
+ v-else-if="scope.row.checkType == 'AIA'"
|
|
|
:disabled="scope.row.auditStatus != 'S'"
|
|
|
- @click.stop="printWindowfun(scope.row, 'aia-approve')"
|
|
|
+ @click.stop="printWindowfun(scope.row, 'AIA')"
|
|
|
>审批
|
|
|
</el-button>
|
|
|
<el-button type="text" size="small" v-else :disabled="scope.row.auditStatus != 'S'" @click.stop="openCheck(scope.row)">审批</el-button>
|
|
|
@@ -174,11 +172,29 @@
|
|
|
:close-on-press-escape="false"
|
|
|
v-dialog-drag
|
|
|
>
|
|
|
- <check :checkData="checkData" :checkDetail="true" :idList="idList" @operationType="operationTypeFFSQ" @choceCheckFun="choceCheckFFSQ" :objMail="objMail"> </check>
|
|
|
+ <check
|
|
|
+ :checkData="checkData"
|
|
|
+ :checkDetail="true"
|
|
|
+ :idList="idList"
|
|
|
+ @operationType="operationTypeFFSQ"
|
|
|
+ @choceCheckFun="choceCheckFFSQ"
|
|
|
+ :objMail="objMail"
|
|
|
+ >
|
|
|
+ </check>
|
|
|
</el-dialog>
|
|
|
<!--报表+审批-->
|
|
|
<reportContainerlos style="width: 100%; height: 100vh" ref="reportContainer">
|
|
|
- <check :checkData="checkData" :checkDetail="true" :idList="idList" @operationType="operationType" @choceCheckFun="choceCheckFun"> </check>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <check
|
|
|
+ :checkData="checkData"
|
|
|
+ :checkDetail="true"
|
|
|
+ :idList="idList"
|
|
|
+ @operationType="operationType"
|
|
|
+ @choceCheckFun="choceCheckFun"
|
|
|
+ @gotoRecord="gotoRecord"
|
|
|
+ >
|
|
|
+ </check>
|
|
|
+ </template>
|
|
|
</reportContainerlos>
|
|
|
<!--<el-dialog-->
|
|
|
<!-- title="打印"-->
|
|
|
@@ -214,6 +230,8 @@ import { reportsGetReportData } from "@/api/iosBasicData/reports";
|
|
|
import reportformsList from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsList.vue";
|
|
|
import { getList as getreportsList } from "@/api/iosBasicData/reports";
|
|
|
import { selectListLos } from "@/api/approval/processConfig";
|
|
|
+import { bbusinesstypeList } from "@/api/iosBasicData/bbusinesstype";
|
|
|
+import { dateFormat, endDate, startDate } from "@/util/date";
|
|
|
|
|
|
let previousRouterName = "";
|
|
|
let checkRefresh = "";
|
|
|
@@ -222,7 +240,7 @@ export default {
|
|
|
reportformsList,
|
|
|
check,
|
|
|
checkSchedule,
|
|
|
- reportContainerlos
|
|
|
+ reportContainerlos,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -233,7 +251,9 @@ export default {
|
|
|
corpsList: [],
|
|
|
loading: false,
|
|
|
form: {},
|
|
|
- search: {},
|
|
|
+ search: {
|
|
|
+ auditStatus: "S"
|
|
|
+ },
|
|
|
show: true,
|
|
|
checkDialog: false,
|
|
|
checkId: "",
|
|
|
@@ -248,9 +268,11 @@ export default {
|
|
|
idList: [],
|
|
|
selectionList: [],
|
|
|
page: {
|
|
|
- pageSize: 10,
|
|
|
- pagerCount: 5,
|
|
|
- total: 0
|
|
|
+ pageSize: 1000,
|
|
|
+ // pagerCount: 5,
|
|
|
+ pageSizes: [10, 20, 50, 100, 200, 500, 1000], // 可选的分页大小
|
|
|
+ currentPage: 1, // 当前页码
|
|
|
+ total: 0,
|
|
|
},
|
|
|
query: {},
|
|
|
configuration: {
|
|
|
@@ -261,12 +283,12 @@ export default {
|
|
|
collapseTags: false,
|
|
|
clearable: true,
|
|
|
placeholder: "请点击右边按钮选择",
|
|
|
- dicData: []
|
|
|
- }
|
|
|
+ dicData: [],
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
- getUserInfo().then(res => {
|
|
|
+ async created() {
|
|
|
+ getUserInfo().then(async (res) => {
|
|
|
if (res.data.data.billType == 1) {
|
|
|
this.option = option2;
|
|
|
} else {
|
|
|
@@ -279,7 +301,7 @@ export default {
|
|
|
} else {
|
|
|
this.optionBack = JSON.parse(JSON.stringify(option));
|
|
|
|
|
|
- isProcurement({ param: "business" }).then(async res => {
|
|
|
+ await isProcurement({ param: "business" }).then(async (res) => {
|
|
|
this.business = res.data.data;
|
|
|
if (res.data.data == 1) {
|
|
|
this.optionBack.column.forEach((item, index) => {
|
|
|
@@ -297,22 +319,54 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- this.option = await this.getColumnData(this.getColumnName(328.1), this.optionBack);;
|
|
|
+ let opt = await this.getColumnData(this.getColumnName(328.1), this.optionBack);
|
|
|
+
|
|
|
+ // "searchFilterable": true,
|
|
|
+ // "searchFilterable": true,
|
|
|
+ // "searchFilterable": true,
|
|
|
+ // "filters": true
|
|
|
+
|
|
|
+ // let col = this.findObject(opt.column, "customizeThree");
|
|
|
+ // col.searchValue = [startDate(), endDate()];
|
|
|
+
|
|
|
+ let col = this.findObject(opt.column, "auditStatus");
|
|
|
+ col.searchValue = "S";
|
|
|
+ this.option = opt;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- this.getWorkDicts("auditStatus").then(res => {
|
|
|
- this.findObject(this.option.column, "auditStatus").dicData = res.data.data;
|
|
|
+ await this.getWorkDicts("auditStatus").then((res) => {
|
|
|
+ this.findObject(this.option.column, "auditStatus").dicData = res.data.data.filter((item) => "S,A,B".indexOf(item.dictKey) >= 0);
|
|
|
});
|
|
|
- gainUser().then(res => {
|
|
|
+ await gainUser().then((res) => {
|
|
|
this.findObject(this.option.column, "sendUserId").dicData = res.data.data;
|
|
|
});
|
|
|
+ /*
|
|
|
this.getWorkDicts("tire_audit").then(res => {
|
|
|
this.findObject(this.option.column, "processType").dicData = res.data.data;
|
|
|
});
|
|
|
- selectListLos("业务员").then(res => {
|
|
|
+ */
|
|
|
+ await bbusinesstypeList(1, 1000, { enableFee: "1" }).then((res) => {
|
|
|
+ this.findObject(this.option.column, "checkType").dicData = res.data.data.records;
|
|
|
+ });
|
|
|
+ await selectListLos("业务员").then((res) => {
|
|
|
this.findObject(this.option.column, "srcCnName").dicData = res.data.data;
|
|
|
});
|
|
|
+
|
|
|
+ this.findObject(this.option.column, "profitStatus").dicData = [
|
|
|
+ {value: "F", label: "正常"},
|
|
|
+ {value: "Z", label: "为零"},
|
|
|
+ {value: "D", label: "不成比例且过低"},
|
|
|
+ {value: "T", label: "不成比例且过高"},
|
|
|
+ {value: "H", label: "过高"},
|
|
|
+ {value: "L", label: "过低"},
|
|
|
+ {value: "M", label: "为负"},
|
|
|
+ {value: "U", label: "不成比例"},
|
|
|
+ ];
|
|
|
+
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.onLoad(this.page, this.search);
|
|
|
+ })
|
|
|
});
|
|
|
// 供应商
|
|
|
// corpsDescListAll({corpType: "GYS"}).then(res => {
|
|
|
@@ -330,92 +384,82 @@ export default {
|
|
|
methods: {
|
|
|
// 点击审核弹出打印表格
|
|
|
printWindowfun(row, type) {
|
|
|
+ console.log("printWindowfun", row, type);
|
|
|
// 当时选择的数据
|
|
|
this.reportsData = row;
|
|
|
this.checkData = row;
|
|
|
let obj = {};
|
|
|
- if (type == "HYCK-DJ") {
|
|
|
+ if (type == "HYCK") {
|
|
|
obj = {
|
|
|
businessType: "HYCK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告"
|
|
|
+ groupCode: "销售报告",
|
|
|
};
|
|
|
- } else if (type == "HYJK-DJ") {
|
|
|
+ } else if (type == "HYJK") {
|
|
|
obj = {
|
|
|
businessType: "HYJK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告"
|
|
|
+ groupCode: "销售报告",
|
|
|
};
|
|
|
- } else if (type == "KYCK-DJ") {
|
|
|
+ } else if (type == "KYCK") {
|
|
|
obj = {
|
|
|
businessType: "KYCK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告"
|
|
|
+ groupCode: "销售报告",
|
|
|
};
|
|
|
- } else if (type == "KYJK-DJ") {
|
|
|
+ } else if (type == "KYJK") {
|
|
|
obj = {
|
|
|
businessType: "KYJK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告"
|
|
|
+ groupCode: "销售报告",
|
|
|
};
|
|
|
- } else if (type == "HYCK-FFSQ") {
|
|
|
+ } else if (type == "FFSQ") {
|
|
|
obj = {
|
|
|
businessType: "FFSQ",
|
|
|
classifyCode: "付费申请",
|
|
|
- groupCode: "付费申请"
|
|
|
+ groupCode: "付费申请",
|
|
|
};
|
|
|
- } else if (type == "sea-approve") {
|
|
|
+ } else if (type == "SEA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDSE",
|
|
|
- groupCode: "SE"
|
|
|
+ groupCode: "SE",
|
|
|
};
|
|
|
- } else if (type == "sia-approve") {
|
|
|
+ } else if (type == "SIA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDSI",
|
|
|
- groupCode: "SI"
|
|
|
+ groupCode: "SI",
|
|
|
};
|
|
|
- } else if (type == "aea-approve") {
|
|
|
+ } else if (type == "AEA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDAE",
|
|
|
- groupCode: "AE"
|
|
|
+ groupCode: "AE",
|
|
|
};
|
|
|
- } else if (type == "aia-approve") {
|
|
|
+ } else if (type == "AIA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDAI",
|
|
|
- groupCode: "AI"
|
|
|
+ groupCode: "AI",
|
|
|
};
|
|
|
} else {
|
|
|
}
|
|
|
- getreportsList(1, 10, obj).then(res => {
|
|
|
+ getreportsList(1, 10, obj).then((res) => {
|
|
|
this.reportRadio(res.data.data.records[0]);
|
|
|
+ if (!this.selectionList.includes(row)) {
|
|
|
+ this.$refs.crud.toggleRowSelection(row);
|
|
|
+ }
|
|
|
});
|
|
|
- // this.selectPrintingDialog = true
|
|
|
- // let page = {
|
|
|
- // pageSize: 10,
|
|
|
- // currentPage: 1,
|
|
|
- // total: 0
|
|
|
- // }
|
|
|
- // this.$nextTick(()=>{
|
|
|
- // this.$refs.reportformsList.onLoad(page,{
|
|
|
- // businessType:'HYCK',
|
|
|
- // classifyCode:'费用',
|
|
|
- // groupCode:'销售报告'
|
|
|
- // })
|
|
|
- // })
|
|
|
},
|
|
|
// 获取报表数据
|
|
|
reportRadio(val) {
|
|
|
- console.log(val, 240);
|
|
|
reportsGetReportData({
|
|
|
billId: this.reportsData.billId,
|
|
|
reportCode: val.classifyCode,
|
|
|
groupCode: val.groupCode,
|
|
|
- type: val.businessType
|
|
|
- }).then(res => {
|
|
|
+ type: val.businessType,
|
|
|
+ }).then((res) => {
|
|
|
// 关闭弹窗
|
|
|
this.selectPrintingDialog = false;
|
|
|
this.handleReportPreview(val.url, res.data.data.data);
|
|
|
@@ -426,11 +470,10 @@ export default {
|
|
|
done();
|
|
|
},
|
|
|
testMail(e) {
|
|
|
- console.log(e,3333333333333)
|
|
|
this.objMail = {
|
|
|
attachments: e.fileName,
|
|
|
fileType: e.formatName,
|
|
|
- fileContent: e.data
|
|
|
+ fileContent: e.data,
|
|
|
};
|
|
|
},
|
|
|
// 预览报表
|
|
|
@@ -463,11 +506,9 @@ export default {
|
|
|
|
|
|
// viewer.onEmailReport = this.testMail;
|
|
|
// 报表
|
|
|
- console.log("创建一个报表实例");
|
|
|
let report = new window.Stimulsoft.Report.StiReport();
|
|
|
|
|
|
// 加载文件
|
|
|
- console.log("从url加载报表");
|
|
|
// report.loadFile("/reports/stimulsoft/demos/SimpleList.mrt");
|
|
|
// report.load(row.url)
|
|
|
report.load(url);
|
|
|
@@ -479,7 +520,6 @@ export default {
|
|
|
// 从模版和数据加载报表
|
|
|
// loadReport(report, '', {})
|
|
|
|
|
|
-
|
|
|
this.$refs.reportContainer.showContainer(
|
|
|
() => {
|
|
|
setTimeout(() => {
|
|
|
@@ -494,8 +534,7 @@ export default {
|
|
|
// });
|
|
|
// // 为按钮控件添加“PrintReport”事件
|
|
|
// printButton.events.add('PrintReport', handlePrintReport);
|
|
|
- console.log("加载成功完成!");
|
|
|
- viewer.report = report;
|
|
|
+ viewer.report = report;
|
|
|
},
|
|
|
// 报表的按钮
|
|
|
createViewerButtons(viewer) {
|
|
|
@@ -509,8 +548,7 @@ export default {
|
|
|
userButtonCell.appendChild(closeBtn);
|
|
|
|
|
|
let that = this;
|
|
|
- closeBtn.action = function() {
|
|
|
- console.log(that.$refs.ReportContainer);
|
|
|
+ closeBtn.action = function () {
|
|
|
if (that.$refs.reportContainer) that.$refs.reportContainer.hideContainer();
|
|
|
};
|
|
|
},
|
|
|
@@ -549,15 +587,15 @@ export default {
|
|
|
this.$alert("" + row.pageLabel + "页面已存在,请关闭" + row.pageLabel + "页面再进行操作", "温馨提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
type: "warning",
|
|
|
- callback: action => {}
|
|
|
+ callback: (action) => {},
|
|
|
});
|
|
|
} else {
|
|
|
this.$router.$avueRouter.closeTag(row.url);
|
|
|
this.$router.push({
|
|
|
path: row.url,
|
|
|
query: {
|
|
|
- billId: row.billId
|
|
|
- }
|
|
|
+ billId: row.billId,
|
|
|
+ },
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
@@ -569,7 +607,7 @@ export default {
|
|
|
row.operate = operate;
|
|
|
this.loading = true;
|
|
|
approvePass(row)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功!");
|
|
|
this.refreshChange();
|
|
|
})
|
|
|
@@ -579,7 +617,7 @@ export default {
|
|
|
},
|
|
|
openCheck(row) {
|
|
|
if (row.checkType == "CK") {
|
|
|
- financingExcess({ id: row.corpId }).then(res => {
|
|
|
+ financingExcess({ id: row.corpId }).then((res) => {
|
|
|
if (res.data.data == "操作成功") {
|
|
|
this.batch = false; //单条操作
|
|
|
this.checkDialog = true;
|
|
|
@@ -588,7 +626,7 @@ export default {
|
|
|
this.$confirm(res.data.data, {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ type: "warning",
|
|
|
}).then(() => {
|
|
|
this.batch = false; //单条操作
|
|
|
this.checkDialog = true;
|
|
|
@@ -602,14 +640,18 @@ export default {
|
|
|
this.checkData = row;
|
|
|
}
|
|
|
},
|
|
|
- choceCheckFun() {
|
|
|
+ choceCheckFun(reload) {
|
|
|
// this.checkDialog = false;
|
|
|
this.$refs.reportContainer.visible = false;
|
|
|
- this.refreshChange();
|
|
|
+ if (reload === true) {
|
|
|
+ this.refreshChange();
|
|
|
+ }
|
|
|
},
|
|
|
- choceCheckFFSQ() {
|
|
|
+ choceCheckFFSQ(reload) {
|
|
|
this.checkDialog = false;
|
|
|
- this.refreshChange();
|
|
|
+ if (reload === true) {
|
|
|
+ this.refreshChange();
|
|
|
+ }
|
|
|
},
|
|
|
openCheckSchedule(row) {
|
|
|
this.checkId = row.srcBillId;
|
|
|
@@ -626,10 +668,25 @@ export default {
|
|
|
editOpen(row, status) {
|
|
|
this.detailData = {
|
|
|
id: row.id,
|
|
|
- status: status
|
|
|
+ status: status,
|
|
|
};
|
|
|
this.show = false;
|
|
|
},
|
|
|
+ gotoRecord(next) {
|
|
|
+ if (this.dataList.length <= 1) return;
|
|
|
+
|
|
|
+ let lastRow = this.checkData ? this.checkData : this.dataList[0];
|
|
|
+ let index = this.dataList.indexOf(lastRow);
|
|
|
+ index = next === true ? index + 1 : index - 1;
|
|
|
+ if (index < 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (index >= this.dataList.length) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let row = this.dataList[index];
|
|
|
+ this.printWindowfun(row, row.checkType);
|
|
|
+ },
|
|
|
//点击搜索按钮触发
|
|
|
searchChange(params, done) {
|
|
|
this.query = params;
|
|
|
@@ -638,7 +695,11 @@ export default {
|
|
|
done();
|
|
|
},
|
|
|
searchReset() {
|
|
|
- console.log("1");
|
|
|
+ this.search = {
|
|
|
+ // customizeThreeList: [startDate(), endDate()],
|
|
|
+ auditStatus: "S"
|
|
|
+ }
|
|
|
+ this.onLoad(this.page)
|
|
|
},
|
|
|
selectionChange(list) {
|
|
|
this.idList = [];
|
|
|
@@ -646,9 +707,10 @@ export default {
|
|
|
},
|
|
|
currentChange(val) {
|
|
|
this.page.currentPage = val;
|
|
|
+ this.onLoad(this.page);
|
|
|
},
|
|
|
sizeChange() {
|
|
|
- console.log("1");
|
|
|
+ this.onLoad(this.page);
|
|
|
},
|
|
|
refreshChange(params) {
|
|
|
this.onLoad(this.page, params);
|
|
|
@@ -669,7 +731,7 @@ export default {
|
|
|
delete params.sendTime;
|
|
|
}
|
|
|
getList(page.currentPage, page.pageSize, params)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.dataList = res.data.data.records;
|
|
|
this.page.total = res.data.data.total;
|
|
|
})
|
|
|
@@ -678,7 +740,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
cellStyle() {
|
|
|
- return "padding:0;height:40px;";
|
|
|
+ return "padding:0;height:30px;";
|
|
|
},
|
|
|
//自定义列保存
|
|
|
async saveColumn(ref, option, optionBack, code) {
|
|
|
@@ -705,8 +767,12 @@ export default {
|
|
|
this.searchReset();
|
|
|
}
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style scoped></style>
|
|
|
+<style scoped>
|
|
|
+::v-deep(.el-table__row) {
|
|
|
+ height: 30px;
|
|
|
+}
|
|
|
+</style>
|