index.vue 23 KB

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