index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. <template>
  2. <basic-container>
  3. <avue-crud :option="option" :data="dataList" ref="crud" v-model="form" :page.sync="page" :search.sync="search"
  4. :table-loading="loading" :cell-style="cellStyle" @search-change="searchChange" @search-reset="searchReset"
  5. @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
  6. @refresh-change="refreshChange" @on-load="onLoad">
  7. <template slot="corpIdSearch">
  8. <!-- <select-component v-model="search.corpId" :configuration="configuration"></select-component>-->
  9. <el-select v-model="search.corpId" clearable placeholder="请选择">
  10. <el-option
  11. v-for="item in corpsList"
  12. :key="item.id"
  13. :label="item.cname"
  14. :value="item.id">
  15. </el-option>
  16. </el-select>
  17. </template>
  18. <template slot-scope="scope" slot="checkType">
  19. <span v-if="scope.row.checkType == 'HYCK-FFSQ'">付费申请</span>
  20. <span v-if="scope.row.checkType == 'HYCK-FPSQ'">发票申请</span>
  21. <span v-else-if="scope.row.checkType == 'HYCK-DJ'">海运出口</span>
  22. <span v-else-if="scope.row.checkType == 'HYCK-FY'">海运出口费用</span>
  23. <span v-else-if="scope.row.checkType == 'HYJK-DJ'">海运进口</span>
  24. <span v-else-if="scope.row.checkType == 'HYJK-FY'">海运进口费用</span>
  25. <span v-else-if="scope.row.checkType == 'sea-approve'">海运出口AMEND</span>
  26. <span v-else-if="scope.row.checkType == 'KYCK-DJ'">空运出口</span>
  27. </template>
  28. <template slot-scope="scope" slot="billNo">
  29. <span style="color: #1e9fff;cursor: pointer;" @click="billNoDetails(scope.row)">{{scope.row.billNo}}</span>
  30. </template>
  31. <!-- <template slot="menuLeft">
  32. <el-button size="small" type="success" :disabled="selectionList.length == 0" @click.stop="batchCheck">批量审批
  33. </el-button>
  34. </template> -->
  35. <template slot-scope="scope" slot="menu">
  36. <!-- <el-button type="text" size="small" :disabled="scope.row.operate" @click.stop="jumpPage(scope.row)">查看-->
  37. <!-- </el-button>-->
  38. <el-button type="text" size="small" :disabled="scope.row.operate" @click.stop="jumpPage(scope.row)">查看
  39. </el-button>
  40. <el-button type="text" size="small" v-if="scope.row.checkType == 'HYCK-DJ'"
  41. :disabled="scope.row.auditStatus != 'S'"
  42. @click.stop="printWindowfun(scope.row,'HYCK-DJ')">审批
  43. </el-button>
  44. <el-button type="text" size="small" v-if="scope.row.checkType == 'HYJK-DJ'"
  45. :disabled="scope.row.auditStatus != 'S'"
  46. @click.stop="printWindowfun(scope.row,'HYJK-DJ')">审批
  47. </el-button>
  48. <!--<el-button type="text" size="small" v-if="scope.row.checkType == 'KYCK-DJ'"-->
  49. <!-- :disabled="scope.row.auditStatus != 'S'"-->
  50. <!-- @click.stop="printWindowfun(scope.row,'KYCK-DJ')">审批-->
  51. <!--</el-button>-->
  52. <el-button type="text" size="small" v-else-if="scope.row.checkType == 'HYCK-FFSQ'"
  53. :disabled="scope.row.auditStatus != 'S'"
  54. @click.stop="printWindowfun(scope.row,'HYCK-FFSQ')">审批
  55. </el-button>
  56. <el-button type="text" size="small" v-else-if="scope.row.checkType == 'sea-approve'"
  57. :disabled="scope.row.auditStatus != 'S'"
  58. @click.stop="printWindowfun(scope.row,'sea-approve')">审批
  59. </el-button>
  60. <el-button type="text" size="small" v-else :disabled="scope.row.auditStatus != 'S'"
  61. @click.stop="openCheck(scope.row)">审批
  62. </el-button>
  63. <el-button type="text" size="small" @click.stop="openCheckSchedule(scope.row)">审批流程
  64. </el-button>
  65. </template>
  66. </avue-crud>
  67. <el-dialog append-to-body title="审批进度" class="el-dialogDeep" :visible.sync="checkScheduleDialog" width="40%"
  68. :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
  69. <check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun">
  70. </check-schedule>
  71. </el-dialog>
  72. <!--单个审批-->
  73. <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
  74. :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
  75. <check :checkData="checkData" :checkDetail="true" :idList="idList" @operationType="operationTypeFFSQ"
  76. @choceCheckFun="choceCheckFFSQ">
  77. </check>
  78. </el-dialog>
  79. <!--报表+审批-->
  80. <reportContainerlos style="width: 100%; height: 100vh" ref="reportContainer">
  81. <check :checkData="checkData" :checkDetail="true" :idList="idList" @operationType="operationType"
  82. @choceCheckFun="choceCheckFun">
  83. </check>
  84. </reportContainerlos>
  85. <!--<el-dialog-->
  86. <!-- title="打印"-->
  87. <!-- :visible.sync="selectPrintingDialog"-->
  88. <!-- append-to-body-->
  89. <!-- width="70%"-->
  90. <!-- :before-close="handleClose">-->
  91. <!-- <div>-->
  92. <!-- <reportformsList ref="reportformsList" @reportRadio="reportRadio"></reportformsList>-->
  93. <!-- </div>-->
  94. <!-- <span slot="footer" class="dialog-footer">-->
  95. <!-- <el-button size="small" @click="selectPrintingDialog = false;">取 消</el-button>-->
  96. <!-- </span>-->
  97. <!--</el-dialog>-->
  98. </basic-container>
  99. </template>
  100. <script>
  101. import option from "./configuration/mainList.json";
  102. import option2 from "./configuration/mainList2.json";
  103. import option3 from "./configuration/mainList3.json";
  104. import option4 from "./configuration/mainList4.json";
  105. import { getList, approvePass, financingExcess } from "@/api/approveDataH/main";
  106. import checkSchedule from "@/components/checkH/checkSchedule";
  107. import check from "./check";
  108. import { getUserInfo } from "@/api/system/user";
  109. import { gainUser } from "@/api/basicData/customerInquiry";
  110. import {corpsDescListAll} from "../../api/tirePartsMall/salesManagement/saleOrder";
  111. import reportContainerlos from "@/views/iosBasicData/report-container/report-container-los.vue"
  112. import {finstlbillsDetail} from "../../api/iosBasicData/finstlbills";
  113. import {reportsGetReportData} from "@/api/iosBasicData/reports";
  114. import reportformsList from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsList.vue";
  115. import {getList as getreportsList} from "@/api/iosBasicData/reports";
  116. let previousRouterName = "";
  117. let checkRefresh = "";
  118. export default {
  119. components: {
  120. reportformsList,
  121. check,
  122. checkSchedule,
  123. reportContainerlos
  124. },
  125. data() {
  126. return {
  127. selectPrintingDialog:false, // 打印弹窗
  128. reportsData:{}, // 当前要审核数据
  129. reportlist:[], // 报表数据
  130. corpsList: [],
  131. loading: false,
  132. form: {},
  133. search: {},
  134. show: true,
  135. checkDialog: false,
  136. checkId: "",
  137. batchNo: "",
  138. checkScheduleDialog: false,
  139. detailData: {},
  140. option: {},
  141. parentId: 0,
  142. checkData: {},
  143. dataList: [],
  144. idList: [],
  145. selectionList: [],
  146. page: {
  147. pageSize: 10,
  148. pagerCount: 5,
  149. total: 0
  150. },
  151. query: {},
  152. configuration: {
  153. multipleChoices: false,
  154. multiple: false,
  155. disabled: false,
  156. searchShow: true,
  157. collapseTags: false,
  158. clearable: true,
  159. placeholder: "请点击右边按钮选择",
  160. dicData: []
  161. }
  162. };
  163. },
  164. created() {
  165. getUserInfo().then(res => {
  166. if (res.data.data.billType == 1) {
  167. this.option = option2;
  168. } else {
  169. if (this.$store.getters.userInfo.tenant_id === "681169") {
  170. this.option = option3;
  171. }else if (this.$store.getters.userInfo.tenant_id === "673511") {
  172. this.option = option4;
  173. }else if (this.$store.getters.userInfo.tenant_id === "064132") {
  174. this.option = option4;
  175. } else {
  176. this.option = option;
  177. }
  178. console.log(this.option);
  179. }
  180. this.getWorkDicts("auditStatus").then(res => {
  181. this.findObject(this.option.column, "auditStatus").dicData =
  182. res.data.data;
  183. });
  184. gainUser().then(res => {
  185. this.findObject(this.option.column, "sendUserId").dicData =
  186. res.data.data;
  187. });
  188. this.getWorkDicts("tire_audit").then(res => {
  189. this.findObject(this.option.column, "processType").dicData =
  190. res.data.data;
  191. });
  192. });
  193. // 供应商
  194. // corpsDescListAll({corpType: "GYS"}).then(res => {
  195. // this.corpsList = res.data.data
  196. // })
  197. },
  198. mounted() {
  199. // option.height = window.innerHeight - 200 ;
  200. },
  201. activated() {
  202. if (this.$route.query.check === "refresh") {
  203. this.onLoad(this.page, this.search);
  204. }
  205. },
  206. methods: {
  207. // 点击审核弹出打印表格
  208. printWindowfun(row,type){
  209. // 当时选择的数据
  210. this.reportsData = row
  211. this.checkData = row
  212. let obj = {}
  213. if (type == 'HYCK-DJ') {
  214. obj = {
  215. businessType:'HYCK',
  216. classifyCode:'业务',
  217. groupCode:'销售报告'
  218. }
  219. }else if (type == 'HYJK-DJ') {
  220. obj = {
  221. businessType:'HYJK',
  222. classifyCode:'业务',
  223. groupCode:'销售报告'
  224. }
  225. } else if (type == 'KYCK-DJ') {
  226. obj = {
  227. businessType:'KYCK',
  228. classifyCode:'业务',
  229. groupCode:'销售报告'
  230. }
  231. } else if (type == 'HYCK-FFSQ') {
  232. obj = {
  233. businessType:'FFSQ',
  234. classifyCode:'付费申请',
  235. groupCode:'付费申请'
  236. }
  237. }else if (type == 'sea-approve') {
  238. obj = {
  239. businessType:'AMEND',
  240. classifyCode:'AMEND',
  241. groupCode:'SE'
  242. }
  243. }else {}
  244. getreportsList(1, 10, obj).then(res=>{
  245. this.reportRadio(res.data.data.records[0])
  246. })
  247. // this.selectPrintingDialog = true
  248. // let page = {
  249. // pageSize: 10,
  250. // currentPage: 1,
  251. // total: 0
  252. // }
  253. // this.$nextTick(()=>{
  254. // this.$refs.reportformsList.onLoad(page,{
  255. // businessType:'HYCK',
  256. // classifyCode:'业务',
  257. // groupCode:'销售报告'
  258. // })
  259. // })
  260. },
  261. // 获取报表数据
  262. reportRadio(val){
  263. console.log(val,240)
  264. reportsGetReportData({
  265. billId:this.reportsData.billId,
  266. reportCode:val.classifyCode,
  267. groupCode:val.groupCode,
  268. type:val.businessType
  269. }).then(res=>{
  270. // 关闭弹窗
  271. this.selectPrintingDialog = false
  272. this.handleReportPreview(val.url,res.data.data.data)
  273. })
  274. },
  275. // 关闭弹窗
  276. handleClose(done) {
  277. this.$confirm('确认关闭?')
  278. .then(_ => {
  279. done();
  280. })
  281. .catch(_ => {});
  282. },
  283. // 预览报表
  284. handleReportPreview(url,data){
  285. this.reportlist = data // 存一下数据 打印的时候需要传
  286. Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
  287. // Stimulsoft.Base.StiLicense.Key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkcgIvwL0jnpsDqRpWg5FI5kt2G7A0tYIcUygBh1sPs7plofUOqPB1a4HBIXJB621mau2oiAIj+ysU7gKUXfjn/D5BocmduNB+ZMiDGPxFrAp3PoD0nYNkkWh8r7gBZ1v/JZSXGE3bQDrCQCNSy6mgby+iFAMV8/PuZ1z77U+Xz3fkpbm6MYQXYp3cQooLGLUti7k1TFWrnawT0iEEDJ2iRcU9wLqn2g9UiWesEZtKwI/UmEI2T7nv5NbgV+CHguu6QU4WWzFpIgW+3LUnKCT/vCDY+ymzgycw9A9+HFSzARiPzgOaAuQYrFDpzhXV+ZeX31AxWlnzjDWqpfluygSNPtGul5gyNt2CEoJD1Yom0VN9fvRonYsMsimkFFx2AwyVpPcs+JfVBtpPbTcZscnzUdmiIvxv8Gcin6sNSibM6in/uUKFt3bVgW/XeMYa7MLGF53kvBSwi78poUDigA2n12SmghLR0AHxyEDIgZGOTbNI33GWu7ZsPBeUdGu55R8w='
  288. Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile( '/reports/stimulsoft/Localization/zh-CHS.xml', true, 'zh-CHS')
  289. Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile('/reports/stimulsoft/Localization/zh-CHS.xml' )
  290. // 工具栏
  291. var options = new Stimulsoft.Viewer.StiViewerOptions()
  292. options.height = '100%'
  293. options.appearance.scrollbarsMode = true
  294. options.toolbar.showDesignButton = false
  295. options.toolbar.showAboutButton = false
  296. options.toolbar.showResourcesButton = false
  297. options.toolbar.showFullScreenButton = false
  298. options.toolbar.showOpenButton = false
  299. options.appearance.showTooltips = false
  300. options.appearance.showDialogsHelp = false
  301. options.exports.showExportToDocument = false
  302. options.toolbar.showParametersButton = true
  303. options.appearance.bookmarksPrint = true
  304. options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Direct
  305. options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
  306. let viewer = new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false)
  307. // 报表
  308. console.log("创建一个报表实例");
  309. let report = new window.Stimulsoft.Report.StiReport();
  310. // 加载文件
  311. console.log("从url加载报表");
  312. // report.loadFile("/reports/stimulsoft/demos/SimpleList.mrt");
  313. // report.load(row.url)
  314. report.load(url)
  315. // 加载数据
  316. var dataSet = new Stimulsoft.System.Data.DataSet(
  317. 'reportData'
  318. )
  319. dataSet.readJson(data)
  320. report.regData('reportData', 'reportData', dataSet)
  321. // 从模版和数据加载报表
  322. // loadReport(report, '', {})
  323. viewer.report = report;
  324. this.$refs.reportContainer.showContainer(
  325. ()=> {
  326. setTimeout(() => {
  327. viewer.renderHtml('reportContainer')
  328. this.createViewerButtons(viewer)
  329. }, 50)
  330. },
  331. ()=>{
  332. },
  333. )
  334. console.log(report,301)
  335. // var printButton = report.renderedPages[0].components.find(function(c) {
  336. // return c.name === 'printButton';
  337. // });
  338. // // 为按钮控件添加“PrintReport”事件
  339. // printButton.events.add('PrintReport', handlePrintReport);
  340. console.log("加载成功完成!");
  341. },
  342. // 报表的按钮
  343. createViewerButtons (viewer){
  344. viewer.jsObject.collections.images['myClose.png'] =
  345. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA0ElEQVQ4ja3TO05CQRQG4A8iOwAbtYWETndAaecK7NwCKmETtJZsSBNLobEz8ZFIJQ0UnOGSm3DnYviTybzO/895DQXGWGCVGQuMEqkRcwcfuMOLalziCaf4TIe9UG9nyMJmFRzNGoRK1BU4xxx9G7cfwostciGk+x8MqgySwDXe4tU53hVV+MNtTmAoX84JGv9NYgrHyR6DV8wUSW7hItZLm36ZVoVQxsFJLOMsPOrH/h7dQwR2cdxOTEn8DtUbPGc4V2H7Vb4Yqfedf/GYSGt8VUmxgyfuBAAAAABJRU5ErkJggg=='
  346. const closeBtn = viewer.jsObject.SmallButton(
  347. 'closeBtn',
  348. '关闭',
  349. 'myClose.png'
  350. )
  351. const toolbarTable = viewer.jsObject.controls.toolbar.firstChild.firstChild
  352. const buttonsTable = toolbarTable.rows[0].lastChild.lastChild
  353. const userButtonCell = buttonsTable.rows[0].insertCell(0)
  354. userButtonCell.className = 'stiJsViewerClearAllStyles'
  355. userButtonCell.appendChild(closeBtn)
  356. let that = this
  357. closeBtn.action = function() {
  358. console.log(that.$refs.ReportContainer)
  359. if (that.$refs.reportContainer)
  360. that.$refs.reportContainer.hideContainer()
  361. }
  362. },
  363. batchCheck() {
  364. for (let i = 0; i < this.selectionList.length; i++) {
  365. if (this.selectionList[i].auditStatus != "S") {
  366. return this.$message.error("审核状态必须都为待审核状态!");
  367. } else {
  368. this.idList.push(this.selectionList[i].id);
  369. }
  370. }
  371. //打开cheack
  372. this.checkDialog = true;
  373. },
  374. operationType() {
  375. // this.checkDialog = false;
  376. this.$refs.reportContainer.visible = false
  377. this.refreshChange();
  378. this.idList = [];
  379. },
  380. operationTypeFFSQ() {
  381. this.checkDialog = false;
  382. this.refreshChange();
  383. this.idList = [];
  384. },
  385. // 业务编号跳转详情
  386. billNoDetails(row){
  387. this.$router.push({
  388. path: '/iosBasicData/SeafreightExportF/bills/index',
  389. query: {
  390. id:row.billId
  391. }
  392. });
  393. },
  394. //跳转页面
  395. jumpPage(row) {
  396. console.log('row',row);
  397. console.log(eval("(" + row.pageStatus + ")"))
  398. if (row.url) {
  399. if (eval("(" + row.pageStatus + ")")) {
  400. this.$alert(
  401. "" +
  402. row.pageLabel +
  403. "页面已存在,请关闭" +
  404. row.pageLabel +
  405. "页面再进行操作",
  406. "温馨提示",
  407. {
  408. confirmButtonText: "确定",
  409. type: "warning",
  410. callback: action => { }
  411. }
  412. );
  413. } else {
  414. this.$router.$avueRouter.closeTag(row.url);
  415. this.$router.push({
  416. path: row.url,
  417. query: {
  418. billId:row.billId
  419. }
  420. });
  421. }
  422. }else {
  423. this.$message.warning('当前数据无法跳转')
  424. }
  425. },
  426. //审批通过
  427. pass(row, operate) {
  428. row.operate = operate;
  429. this.loading = true;
  430. approvePass(row)
  431. .then(res => {
  432. this.$message.success("操作成功!");
  433. this.refreshChange();
  434. })
  435. .finally(() => {
  436. this.loading = false;
  437. });
  438. },
  439. openCheck(row) {
  440. if (row.checkType == 'CK') {
  441. financingExcess({ id: row.corpId }).then(res => {
  442. if (res.data.data == '操作成功') {
  443. this.batch = false; //单条操作
  444. this.checkDialog = true;
  445. this.checkData = row;
  446. } else {
  447. this.$confirm(res.data.data, {
  448. confirmButtonText: "确定",
  449. cancelButtonText: "取消",
  450. type: "warning"
  451. }).then(() => {
  452. this.batch = false; //单条操作
  453. this.checkDialog = true;
  454. this.checkData = row;
  455. })
  456. }
  457. })
  458. } else {
  459. this.batch = false; //单条操作
  460. this.checkDialog = true;
  461. this.checkData = row;
  462. }
  463. },
  464. choceCheckFun() {
  465. // this.checkDialog = false;
  466. this.$refs.reportContainer.visible = false
  467. this.refreshChange();
  468. },
  469. choceCheckFFSQ() {
  470. this.checkDialog = false;
  471. this.refreshChange();
  472. },
  473. openCheckSchedule(row) {
  474. this.checkId = row.srcBillId;
  475. this.batchNo = row.batchNo;
  476. this.checkScheduleDialog = true;
  477. },
  478. //关闭审批流程页面
  479. choceScheduleFun() {
  480. this.checkScheduleDialog = false;
  481. },
  482. //新单打开
  483. addReceipt(row) { },
  484. //编辑打开
  485. editOpen(row, status) {
  486. this.detailData = {
  487. id: row.id,
  488. status: status
  489. };
  490. this.show = false;
  491. },
  492. //点击搜索按钮触发
  493. searchChange(params, done) {
  494. this.query = params;
  495. this.page.currentPage = 1;
  496. this.onLoad(this.page, params);
  497. done();
  498. },
  499. searchReset() {
  500. console.log("1");
  501. },
  502. selectionChange(list) {
  503. this.idList = []
  504. this.selectionList = list;
  505. },
  506. currentChange(val) {
  507. this.page.currentPage = val;
  508. },
  509. sizeChange() {
  510. console.log("1");
  511. },
  512. refreshChange(params) {
  513. this.onLoad(this.page, params);
  514. },
  515. paramsAdjustment(params) {
  516. params = Object.assign({}, this.search);
  517. if (!params.auditStatus && params.auditStatus !== "") {
  518. params.auditStatus = "S";
  519. }
  520. return params;
  521. },
  522. onLoad(page, params) {
  523. this.loading = true;
  524. params = this.paramsAdjustment(params);
  525. if (params.sendTime) {
  526. params.applybegintime = params.sendTime[0]
  527. params.applyendtime = params.sendTime[1]
  528. delete params.sendTime
  529. }
  530. getList(page.currentPage, page.pageSize, params).then(res => {
  531. this.dataList = res.data.data.records;
  532. this.page.total = res.data.data.total;
  533. }).finally(() => {
  534. this.loading = false;
  535. });
  536. },
  537. cellStyle() {
  538. return "padding:0;height:40px;";
  539. }
  540. }
  541. };
  542. </script>
  543. <style scoped>
  544. </style>