index.vue 22 KB

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