index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. <template>
  2. <div style="width: 100%; height: 100%; position: relative">
  3. <!-- 工单池 -->
  4. <template-page
  5. v-if="!(!!~['detail'].indexOf(pageType) && pageCode != '') && showTableBool"
  6. ref="pageRef"
  7. :getList="getList"
  8. :operation="operation()"
  9. :exportList="exportList"
  10. :optionsEvensGroup="optionsEvensGroup"
  11. :columnParsing="columnParsing"
  12. :tableAttributes="tableAttributes"
  13. :tableEvents="tableEvents"
  14. :moreParameters="moreParameters"
  15. :screeningAnalysis="screeningAnalysis"
  16. :filterMethod="filterMethod"
  17. :replaceOrNotMap="true"
  18. :defaultSearchData="defaultSearchData"
  19. >
  20. <div slot="moreSearch">
  21. <div style="margin-bottom: 10px">
  22. <span
  23. style="
  24. font-size: 12px;
  25. font-weight: 400;
  26. text-align: left;
  27. color: #666;
  28. line-height: 28px;
  29. margin-right: 10px;
  30. "
  31. >选择年份</span
  32. >
  33. <el-date-picker
  34. style="width: 130px"
  35. v-model="value1"
  36. format="yyyy"
  37. size="mini"
  38. type="year"
  39. placeholder="选择日期"
  40. >
  41. </el-date-picker>
  42. </div>
  43. </div>
  44. <!-- 创建工单 -->
  45. <div class="cartographer_big" v-if="!(!!~['detail'].indexOf(pageType) && pageCode != '')">
  46. <el-dialog
  47. title="创建工单"
  48. width="100%"
  49. :modal="false"
  50. :visible.sync="createFormBool"
  51. :before-close="handleClose"
  52. >
  53. <workOrderInfo :workOrderType="workOrderType" v-if="createFormBool" :cloneWorkOrder="cloneWorkOrder" />
  54. </el-dialog>
  55. </div>
  56. <!-- 批量预约/改约 -->
  57. <div class="cartographer_big" v-if="!(!!~['detail'].indexOf(pageType) && pageCode != '')">
  58. <el-dialog
  59. title="批量约单"
  60. width="100%"
  61. :modal="false"
  62. :visible.sync="rescheduleBool"
  63. :before-close="rescheduleClose"
  64. >
  65. <Reschedule v-if="rescheduleBool" :recordSelected="recordSelected" @close="rescheduleClose" />
  66. </el-dialog>
  67. </div>
  68. <!-- 批量派工/改派 -->
  69. <div class="cartographer_big" v-if="!(!!~['detail'].indexOf(pageType) && pageCode != '')">
  70. <el-dialog
  71. title="批量派单"
  72. width="100%"
  73. :modal="false"
  74. :visible.sync="reassignmentBool"
  75. :before-close="reassignmentClose"
  76. >
  77. <Reassignment v-if="reassignmentBool" :recordSelected="recordSelected" @close="reassignmentClose" />
  78. </el-dialog>
  79. </div>
  80. <div class="tubiao">
  81. <span style="margin-right: 4px; font-weight: bold; font-size: 12px">工单标识说明:</span>
  82. <img :src="v4" style="width: 20px; height: 20px; margin: 0 3px" />
  83. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【4.0工单】</span>
  84. <img :src="gc" style="width: 20px; height: 20px; margin: 0 3px" />
  85. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【工程】</span>
  86. <img :src="jj" style="width: 20px; height: 20px; margin: 0 3px" />
  87. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【加急】</span>
  88. <img :src="ls" style="width: 20px; height: 20px; margin: 0 3px" />
  89. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【零售】</span>
  90. <img :src="yjs" style="width: 20px; height: 20px; margin: 0 3px" />
  91. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【已结算】</span>
  92. </div>
  93. <div class="tubiao2">
  94. <span style="margin-right: 4px; font-weight: bold; font-size: 12px; opacity: 0">工单标识说明:</span>
  95. <img :src="ywg" style="width: 20px; height: 20px; margin: 0 3px" />
  96. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【已完工】</span>
  97. <img :src="yc" style="width: 20px; height: 20px; margin: 0 3px" />
  98. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【异常】</span>
  99. <img :src="zj" style="width: 20px; height: 20px; margin: 0 3px" />
  100. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【自建工单】</span>
  101. <img :src="pjsq" style="width: 20px; height: 20px; margin: 0 3px" />
  102. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【配件申请】</span>
  103. <img :src="pjdh" style="width: 20px; height: 20px; margin: 0 3px" />
  104. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【配件到货】</span>
  105. <img :src="pjqx" style="width: 20px; height: 20px; margin: 0 3px" />
  106. <span style="margin-right: 4px; font-size: 12px; display: inline-block; width: 76px">【配件取消】</span>
  107. </div>
  108. </template-page>
  109. <!-- 工单详情 -->
  110. <div class="cartographer_big haidhead__" v-if="!!~['detail'].indexOf(pageType) && pageCode != ''">
  111. <el-dialog
  112. class="noinonnlinin"
  113. :title="'工单详情-' + id"
  114. width="100%"
  115. :modal="false"
  116. :visible.sync="detailFormBool"
  117. :before-close="handleClose"
  118. >
  119. <Detail v-if="detailFormBool" :id="id" :workOrderType="workOrderType" />
  120. </el-dialog>
  121. </div>
  122. </div>
  123. </template>
  124. <script>
  125. import { EventBus } from '@/utils/eventBus'
  126. import TemplatePage from '@/components/template/template-page-1.vue'
  127. import import_mixin from '@/components/template/import_mixin.js'
  128. import operation_mixin from '@/components/template/operation_mixin.js'
  129. import { listPageV2 } from '@/api/workOrder/orderType'
  130. import {
  131. orderBaseList,
  132. orderBaseListExport,
  133. orderBaseStatusCount,
  134. orderBaseImport,
  135. orderBaseImport2,
  136. orderBaseImport3,
  137. orderBaseDetail,
  138. changeOrderChangWebsit
  139. } from '@/api/workOrderPool.js'
  140. import workOrderInfo from './detailModule/workOrderInfo/index.vue'
  141. import Detail from './detail'
  142. import Reassignment from './components/reassignment/index.vue'
  143. import Reschedule from './components/reschedule/index.vue'
  144. import { commonTemplateDownload } from '@/api/common.js'
  145. import orderListColumn from '@/mixin/orderListColumn'
  146. // -----------------------
  147. import v4 from '@/assets/order/4.0@2x.png'
  148. import gc from '@/assets/order/工程@2x.png'
  149. import jj from '@/assets/order/加急@2x.png'
  150. import ls from '@/assets/order/零售@2x.png'
  151. import yjs from '@/assets/order/已结算@2x.png'
  152. import ywg from '@/assets/order/已完工待结算@2x@2x.png'
  153. import yc from '@/assets/order/异常@2x.png'
  154. import zj from '@/assets/order/自建@2x.png'
  155. import pjsq from '@/assets/order/配件申请中@2x.png'
  156. import pjdh from '@/assets/order/配件已到货@2x.png'
  157. import pjqx from '@/assets/order/配件已取消@2x.png'
  158. import { orderStatus_v_fh } from '@/views/workOrder/workOrderPool/mixins/orderStatus_FH.js'
  159. export default {
  160. components: {
  161. TemplatePage,
  162. workOrderInfo,
  163. Detail,
  164. Reassignment,
  165. Reschedule
  166. },
  167. mixins: [import_mixin, operation_mixin, orderListColumn],
  168. data() {
  169. return {
  170. v4,
  171. gc,
  172. jj,
  173. ls,
  174. yjs,
  175. ywg,
  176. yc,
  177. zj,
  178. pjsq,
  179. pjdh,
  180. pjqx,
  181. id: this.$route.query.id || '',
  182. // 创建表单
  183. createFormBool: false,
  184. // 详情
  185. detailFormBool: true,
  186. // 批量改约
  187. rescheduleBool: false,
  188. // 批量派工/改派
  189. reassignmentBool: false,
  190. // 表格属性
  191. tableAttributes: {
  192. // 启用勾选列
  193. selectColumn: true,
  194. selectable: this.selectable
  195. },
  196. // 表格事件
  197. tableEvents: {
  198. 'selection-change': this.selectionChange
  199. },
  200. recordSelected: [],
  201. orderTypeList: [],
  202. orderStatusList: [],
  203. defaultSearchData: [],
  204. workOrderType: 1,
  205. cloneWorkOrder: null,
  206. value1: new Date(),
  207. showTableBool: true,
  208. fuhezhuangtai: {
  209. DSHPG: [
  210. 'DSHPG',
  211. 'CJ',
  212. 'YPD',
  213. 'DXSPD',
  214. 'DZBPG',
  215. 'DWDSPGP',
  216. 'DXSSPGP',
  217. 'DTJXSSPGP',
  218. 'DZBSPGP',
  219. 'DFZXPD',
  220. 'DFZXSPGP'
  221. ],
  222. DWDPG: ['DWDPG', 'DWDPD'],
  223. FWZ: ['FWZ', 'GCSZT', 'BFWG', 'DSM', 'YZP', 'WDBH', 'XSBH', 'TJXSBH', 'ZBBH', 'FZXBH'],
  224. YWG: ['YWG', 'GCSZX', 'WDWG', 'YWGO'],
  225. YJS: ['YJS', 'LRCD'],
  226. YQX: ['YQX', 'FWZT', 'YCGB', 'FWQX', 'FL']
  227. }
  228. }
  229. },
  230. watch: {
  231. value1() {
  232. this.showTableBool = false
  233. this.$nextTick(() => {
  234. this.showTableBool = true
  235. })
  236. }
  237. },
  238. computed: {
  239. moreParameters() {
  240. return [
  241. {
  242. name: '工单类型',
  243. key: 'orderSmallTypeText',
  244. value: '',
  245. conditions: [
  246. {
  247. label: '全部',
  248. value: ''
  249. },
  250. ...this.orderTypeList
  251. ]
  252. },
  253. {
  254. name: '工单状态',
  255. key: 'orderStatus',
  256. value: this.pageType == 'orderStatus' && this.pageCode ? this.pageCode : '',
  257. conditions: [
  258. {
  259. label: '全部',
  260. value: ''
  261. },
  262. ...this.orderStatusList
  263. // {
  264. // label: '待支付',
  265. // value: 'fucaidaizhifu'
  266. // }
  267. ]
  268. }
  269. ]
  270. },
  271. // 用户信息
  272. userInfo() {
  273. return JSON.parse(localStorage.getItem('greemall_user'))
  274. },
  275. // 事件组合
  276. optionsEvensGroup() {
  277. return [
  278. [
  279. [
  280. this.optionsEvensAuth(['createWorkOrder', 'createWbWorkOrder'], {
  281. name: '创建工单',
  282. click: () => {}
  283. }),
  284. this.optionsEvensAuth('createWorkOrder', {
  285. click: () => {
  286. this.workOrderType = 1
  287. this.createFormBool = true
  288. }
  289. }),
  290. this.optionsEvensAuth('createGCWorkOrder', {
  291. click: () => {
  292. this.workOrderType = 2
  293. this.createFormBool = true
  294. }
  295. }),
  296. this.optionsEvensAuth('createWbWorkOrder', {
  297. click: () => {
  298. this.workOrderType = 4
  299. this.createFormBool = true
  300. }
  301. })
  302. ],
  303. [
  304. this.optionsEvensAuth(
  305. [
  306. 'import4',
  307. 'importTemplate',
  308. 'downloadImportTemplate',
  309. 'downloadImportTemplate4',
  310. 'importTemplate2',
  311. 'downloadImportTemplate2'
  312. ],
  313. {
  314. name: '导入工单',
  315. click: () => {}
  316. }
  317. ),
  318. this.optionsEvensAuth('import4', ({ moduleName }) => {
  319. return {
  320. name: moduleName,
  321. render: () => {
  322. return this.importButton(orderBaseImport3, moduleName)
  323. }
  324. }
  325. }),
  326. this.optionsEvensAuth('downloadImportTemplate4', {
  327. click: () => {
  328. commonTemplateDownload({ name: '4.0工单导入模板.xlsx' }, `4.0工单导入模板`)
  329. .then(res => {
  330. this.$message({
  331. message: '下载成功',
  332. type: 'success'
  333. })
  334. })
  335. .catch(err => {
  336. this.$message.error('下载失败')
  337. })
  338. }
  339. }),
  340. this.optionsEvensAuth('importTemplate', ({ moduleName }) => {
  341. return {
  342. name: moduleName,
  343. render: () => {
  344. return this.importButton(orderBaseImport, moduleName)
  345. }
  346. }
  347. }),
  348. this.optionsEvensAuth('downloadImportTemplate', {
  349. click: () => {
  350. commonTemplateDownload({ name: '工单导入模板.xlsx' }, `工单导入模板`)
  351. .then(res => {
  352. this.$message({
  353. message: '下载成功',
  354. type: 'success'
  355. })
  356. })
  357. .catch(err => {
  358. this.$message.error('下载失败')
  359. })
  360. }
  361. }),
  362. this.optionsEvensAuth('importTemplate2', ({ moduleName }) => {
  363. return {
  364. name: moduleName,
  365. render: () => {
  366. return this.importButton(orderBaseImport2, moduleName)
  367. }
  368. }
  369. }),
  370. this.optionsEvensAuth('downloadImportTemplate2', {
  371. click: () => {
  372. commonTemplateDownload({ name: '工单导入模板2.xlsx' }, `${this.$route.meta.title}`)
  373. .then(res => {
  374. this.$message({
  375. message: '下载成功',
  376. type: 'success'
  377. })
  378. })
  379. .catch(err => {
  380. this.$message.error('下载失败')
  381. })
  382. }
  383. })
  384. ],
  385. [
  386. this.optionsEvensAuth(['bulkOrder', 'lotOrder'], {
  387. name: '批量操作',
  388. click: () => {}
  389. }),
  390. this.optionsEvensAuth('bulkOrder', {
  391. click: () => {
  392. if (this.recordSelected.length === 0) {
  393. this.$message.warning('请勾选工单')
  394. return
  395. }
  396. this.reassignmentBool = true
  397. }
  398. }),
  399. this.optionsEvensAuth('lotOrder', {
  400. click: () => {
  401. if (this.recordSelected.length === 0) {
  402. this.$message.warning('请勾选工单')
  403. return
  404. }
  405. this.rescheduleBool = true
  406. }
  407. })
  408. ],
  409. [
  410. this.optionsEvensAuth('changeOrderChangWebsit', {
  411. click: () => {
  412. if (this.recordSelected.length === 0) {
  413. this.$message.warning('请勾选工单')
  414. return
  415. }
  416. changeOrderChangWebsit({
  417. ids: this.recordSelected.map(item => item.id)
  418. }).then(res => {
  419. this.$message({
  420. type: 'success',
  421. message: '操作成功!'
  422. })
  423. this.$refs?.pageRef?.refreshList()
  424. })
  425. }
  426. })
  427. ]
  428. ]
  429. ]
  430. }
  431. },
  432. created() {
  433. this.initFun()
  434. EventBus.$on('handleOrderClone', () => {
  435. if (!(!!~['detail'].indexOf(this.pageType) && this.pageCode != '')) {
  436. this.handleClose()
  437. }
  438. })
  439. EventBus.$on('cloneWorkOrder', data => {
  440. if (!(!!~['detail'].indexOf(this.pageType) && this.pageCode != '')) {
  441. this.handleClose(() => {
  442. this.cloneWorkOrder = data
  443. this.workOrderType = data.saleType
  444. this.createFormBool = false
  445. this.$nextTick(() => {
  446. this.createFormBool = true
  447. })
  448. })
  449. }
  450. })
  451. if (!(!!~['detail'].indexOf(this.pageType) && this.pageCode != '')) {
  452. // 获取工单类型
  453. listPageV2({ pageNum: 1, pageSize: -1, params: [{ param: 'a.status', compare: '=', value: 'true' }] }).then(
  454. res => {
  455. var obj = {}
  456. res.data.records.map(item => {
  457. if (!obj[item.orderSmallTypeText]) {
  458. obj[item.orderSmallTypeText] = {
  459. value: item.orderSmallTypeText,
  460. label: item.orderSmallTypeText
  461. }
  462. }
  463. })
  464. this.orderTypeList = Object.values(obj)
  465. }
  466. )
  467. }
  468. },
  469. methods: {
  470. initFun() {
  471. if (this.pageType == 'detail') {
  472. this.id = this.pageCode
  473. orderBaseDetail({
  474. orderBaseId: this.id
  475. }).then(res => {
  476. this.workOrderType = Number(res?.data?.saleType)
  477. this.$nextTick(() => {
  478. this.detailFormBool = true
  479. })
  480. })
  481. }
  482. if (this.pageType == 'saleOrderId') {
  483. this.defaultSearchData = [{ param: 'a.sale_order_id', compare: '=', value: this.pageCode, label: '销售订单号' }]
  484. }
  485. if (this.pageType == 'pgIncreItemId') {
  486. this.defaultSearchData = [
  487. { param: 'a.pg_incre_order_id', compare: '=', value: this.pageCode, label: '增置服务订单ID' }
  488. ]
  489. }
  490. if (this.pageType == 'rpProjectRepairId') {
  491. this.defaultSearchData = [
  492. { param: 'a.rp_project_repair_id', compare: '=', value: this.pageCode, label: '维保配置ID' }
  493. ]
  494. }
  495. if (this.pageType == 'projectNo') {
  496. this.defaultSearchData = [{ param: 'a.project_no', compare: '=', value: this.pageCode, label: '工程编号' }]
  497. }
  498. },
  499. selectable(row, index) {
  500. var orderStatus = Object.entries(row.selectMapData.orderStatus).find(([key, val]) => val == row.orderStatus)?.[0]
  501. return (
  502. !row.isThreeOrder &&
  503. !['YWG', 'GCSZX', 'WDWG', 'YWGO'].includes(orderStatus) &&
  504. !['YJS', 'LRCD'].includes(orderStatus) &&
  505. !['YQX', 'FWZT', 'YCGB', 'FWQX', 'FL'].includes(orderStatus) &&
  506. !row.rpProjectRepairId &&
  507. !row.isImportExcel
  508. )
  509. },
  510. screeningAnalysis(jname, val) {
  511. if (jname == 'orderFlags') {
  512. return (val || []).map(item => item.tagName).join(',')
  513. } else {
  514. return val
  515. }
  516. },
  517. filterMethod(value, row, column) {
  518. if (column['property'] == 'orderFlags') {
  519. return (row[column['property']] || []).map(item => item.tagName).join(',') === value
  520. }
  521. return row[column['property']] === value
  522. },
  523. // 获取统计
  524. getOrderBaseStatusCount(...p) {
  525. orderBaseStatusCount(...p).then(res => {
  526. this.orderStatusList = [
  527. {
  528. label: '待预约',
  529. value: 'DYY'
  530. },
  531. {
  532. label: '待抢单',
  533. value: 'DQD'
  534. },
  535. {
  536. label: '待商户派工',
  537. value: 'DSHPG'
  538. },
  539. {
  540. label: '待网点派工',
  541. value: 'DWDPG'
  542. },
  543. {
  544. label: '待接单',
  545. value: 'DJD'
  546. },
  547. {
  548. label: '服务中',
  549. value: 'FWZ'
  550. },
  551. {
  552. label: '异常单',
  553. value: 'YCD'
  554. },
  555. {
  556. label: '已完工',
  557. value: 'YWG'
  558. },
  559. {
  560. label: '已结算',
  561. value: 'YJS'
  562. },
  563. {
  564. label: '已取消',
  565. value: 'YQX'
  566. },
  567. {
  568. label: '配件申请中',
  569. value: 'PJSQZ'
  570. },
  571. {
  572. label: '配件已到货',
  573. value: 'PJYDH'
  574. },
  575. {
  576. label: '配件已取消',
  577. value: 'PJYQX'
  578. }
  579. ].map(item => {
  580. if (this.fuhezhuangtai[item.value]) {
  581. var num = 0
  582. this.fuhezhuangtai[item.value].map(status => {
  583. num += res.data.find(val => val.orderStatus == status)?.total || 0
  584. })
  585. item.label = `${item.label}(${num || 0})`
  586. } else {
  587. var data = res.data.find(val => val.orderStatus == item.value)
  588. item.label = `${item.label}(${data?.total || 0})`
  589. }
  590. return item
  591. })
  592. })
  593. },
  594. // 列表请求函数
  595. getList(p, cb) {
  596. var pam = JSON.parse(JSON.stringify(p))
  597. try {
  598. if (pam.orderStatus) {
  599. if (pam.orderStatus == 'fucaidaizhifu') {
  600. pam.isWait = true
  601. } else if (this.fuhezhuangtai[pam.orderStatus]) {
  602. pam.params.push({ param: 'a.order_status', compare: '=', value: this.fuhezhuangtai[pam.orderStatus] })
  603. pam.orderStatus = ''
  604. } else {
  605. pam.params.push({ param: 'a.order_status', compare: '=', value: pam.orderStatus })
  606. }
  607. }
  608. if (pam.orderSmallTypeText) {
  609. pam.params.push({ param: 'a.order_small_type_text', compare: '=', value: pam.orderSmallTypeText })
  610. }
  611. if (this.value1) {
  612. pam.params.push(
  613. { param: 'a.create_time', compare: '>=', value: `${new Date(this.value1).getFullYear()}-01-01 00:00:00` },
  614. { param: 'a.create_time', compare: '<=', value: `${new Date(this.value1).getFullYear()}-12-31 23:59:59` }
  615. )
  616. }
  617. cb && cb(pam)
  618. return orderBaseList(pam)
  619. } catch (err) {
  620. } finally {
  621. this.$nextTick(() => {
  622. this.getOrderBaseStatusCount({
  623. orderSmallTypeText: pam.orderSmallTypeText || '',
  624. ...(() => {
  625. if (this.value1) {
  626. return {
  627. startTime: `${new Date(this.value1).getFullYear()}-01-01 00:00:00`,
  628. endTime: `${new Date(this.value1).getFullYear()}-12-31 23:59:59`
  629. }
  630. }
  631. return {}
  632. })()
  633. })
  634. })
  635. }
  636. },
  637. // 列表导出函数
  638. exportList: orderBaseListExport,
  639. // 监听勾选变化
  640. selectionChange(data) {
  641. this.recordSelected = data
  642. },
  643. operation() {
  644. return this.operationBtn({
  645. edit: {
  646. click: ({ row, index, column }) => {
  647. this.$router.push({
  648. name: window.isWorkOrderPoolPath,
  649. params: {
  650. pageName: row.id,
  651. pageType: 'detail',
  652. pageCode: row.id
  653. }
  654. })
  655. }
  656. }
  657. })
  658. },
  659. handleClose(cb) {
  660. this.$router.push({
  661. name: window.isWorkOrderPoolPath,
  662. params: {},
  663. query: {}
  664. })
  665. this.$nextTick(() => {
  666. this.cloneWorkOrder = null
  667. this.createFormBool = false
  668. this.detailFormBool = false
  669. this.recordSelected = []
  670. this.$refs?.pageRef?.refreshList()
  671. if (cb && typeof cb === 'function') {
  672. cb()
  673. }
  674. })
  675. },
  676. rescheduleClose() {
  677. this.rescheduleBool = false
  678. this.recordSelected = []
  679. this.$refs?.pageRef?.refreshList()
  680. },
  681. reassignmentClose() {
  682. this.reassignmentBool = false
  683. this.recordSelected = []
  684. this.$refs?.pageRef?.refreshList()
  685. }
  686. }
  687. }
  688. </script>
  689. <style lang="scss" scoped>
  690. .haidhead__ {
  691. ::v-deep .noinonnlinin {
  692. & > div > .el-dialog__header {
  693. display: none !important;
  694. }
  695. & > div > .el-dialog__body {
  696. width: 100%;
  697. height: 100% !important;
  698. position: relative;
  699. box-sizing: border-box;
  700. padding: 0px;
  701. overflow-y: auto;
  702. }
  703. }
  704. }
  705. .tubiao {
  706. position: absolute;
  707. bottom: 35px;
  708. left: 20px;
  709. z-index: 10;
  710. width: 60%;
  711. height: auto;
  712. display: flex;
  713. justify-content: flex-start;
  714. align-items: center;
  715. z-index: -1;
  716. }
  717. .tubiao2 {
  718. position: absolute;
  719. bottom: 5px;
  720. left: 20px;
  721. z-index: 10;
  722. width: 60%;
  723. height: auto;
  724. display: flex;
  725. justify-content: flex-start;
  726. align-items: center;
  727. z-index: -1;
  728. }
  729. </style>