details.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <template>
  2. <div>
  3. <!-- <el-card shadow="never" v-loading="loading"> -->
  4. <!-- <search @search="reload" ref="searchRef"> </search> -->
  5. <div>
  6. <el-tabs type="card" v-model="activeName" @tab-click="handleClick">
  7. <el-tab-pane label="委外" name="1"></el-tab-pane>
  8. <el-tab-pane label="请托" name="2"></el-tab-pane>
  9. </el-tabs>
  10. </div>
  11. <!-- 数据表格 -->
  12. <ele-pro-table
  13. ref="table"
  14. :columns="columns"
  15. :datasource="dataList"
  16. cache-key="workOrderTable"
  17. max-height="61vh"
  18. :need-page="false"
  19. v-if="activeName == '1'"
  20. >
  21. <template v-slot:toolbar>
  22. <div class="rx-sc">
  23. <div class="c_title">委外记录 </div>
  24. <el-button
  25. type="primary"
  26. size="mini"
  27. style="margin: 0 5px"
  28. @click="handleAdd"
  29. >新增</el-button
  30. >
  31. </div>
  32. </template>
  33. <!-- <template v-slot:code="{ row }">
  34. <el-link
  35. type="primary"
  36. :underline="false"
  37. @click="handleDetails(row)"
  38. >{{ row.code }}</el-link
  39. >
  40. </template> -->
  41. <template v-slot:totalWeight="{ row }">
  42. <div v-if="row.totalWeight">{{ row.totalWeight }}</div>
  43. <div v-else>无</div>
  44. </template>
  45. <template v-slot:requireDeliveryTime="{ row }">
  46. <span v-if="row.deliveryMethod == 1">{{
  47. row.requireDeliveryTime
  48. }}</span>
  49. <el-link
  50. v-if="row.deliveryMethod == 2"
  51. type="primary"
  52. :underline="false"
  53. @click.native="handleMethod(row)"
  54. >分批时间</el-link
  55. >
  56. </template>
  57. <template v-slot:type="{ row }">
  58. <div v-if="row.type == 1">采购委外</div>
  59. <div v-if="row.type == 2">直接发货委外</div>
  60. <div v-if="row.type == 3">无采购委外</div>
  61. <div v-if="row.type == 4">带料委外</div>
  62. <div v-if="row.type == 5">不带料委外</div>
  63. </template>
  64. <template v-slot:status="{ row }">
  65. <el-tag>{{
  66. row.status == 0 ? '未提交' : row.status == 1 ? '已提交' : '已发布'
  67. }}</el-tag>
  68. </template>
  69. <template v-slot:approvalStatus="{ row }">
  70. <el-tag v-if="row.approvalStatus == 0">未提交</el-tag>
  71. <el-tag v-if="row.approvalStatus == 1" type="warning">审核中</el-tag>
  72. <el-tag v-if="row.approvalStatus == 2" type="success">审核通过</el-tag>
  73. <el-tag v-if="row.approvalStatus == 3" type="danger">审核不通过</el-tag>
  74. </template>
  75. <!-- <template v-slot:status="{ row }">
  76. <el-tag>{{
  77. row.status == 0 ? '未提交' : row.status == 1 ? '已提交' : '已发布'
  78. }}</el-tag>
  79. </template> -->
  80. <template v-slot:outsourceScene="{ row }">
  81. <span>{{ row.outsourceScene | outsourceSceneText }}</span>
  82. </template>
  83. <template v-slot:technicalDrawings="{ row }">
  84. <div v-if="row.technicalDrawings && row.technicalDrawings?.length">
  85. <el-link
  86. v-for="link in row.technicalDrawings"
  87. :key="link.id"
  88. type="primary"
  89. :underline="false"
  90. @click="downloadFile(link)"
  91. >
  92. {{ link.name }}</el-link
  93. >
  94. </div>
  95. </template>
  96. <template v-slot:files="{ row }">
  97. <div v-if="row.files && row.files?.length">
  98. <el-link
  99. v-for="link in row.files"
  100. :key="link.id"
  101. type="primary"
  102. :underline="false"
  103. @click="downloadFile(link)"
  104. >
  105. {{ link.name }}</el-link
  106. >
  107. </div>
  108. </template>
  109. <template v-slot:action="{ row }">
  110. <el-link type="primary" :underline="false" @click="handleDetails(row)">
  111. 详情
  112. </el-link>
  113. <!-- <el-link
  114. type="primary"
  115. v-if="row.status == 1"
  116. :underline="false"
  117. @click="handleFlow(row)"
  118. >
  119. 流程
  120. </el-link> -->
  121. <!--
  122. <el-link
  123. type="primary"
  124. v-if="row.status != 1"
  125. :underline="false"
  126. @click="handleRelease(row)"
  127. >
  128. 提交
  129. </el-link> -->
  130. </template>
  131. </ele-pro-table>
  132. <!-- </el-card> -->
  133. <ele-pro-table
  134. ref="tableTwo"
  135. :columns="colunms1"
  136. :datasource="pleaseData"
  137. cache-key="workOrderTable"
  138. max-height="61vh"
  139. :need-page="false"
  140. v-if="activeName == '2'"
  141. >
  142. <template v-slot:toolbar>
  143. <div class="rx-sc">
  144. <div class="c_title">请托记录 </div>
  145. <el-button
  146. type="primary"
  147. size="mini"
  148. style="margin: 0 5px"
  149. @click="handleAdd"
  150. >新增</el-button
  151. >
  152. </div>
  153. </template>
  154. <template v-slot:type="{ row }">
  155. <span> {{ getDictValue('请托类型', row.type + '') }}</span>
  156. </template>
  157. <template v-slot:status="{ row }">
  158. <el-tag>{{
  159. row.status == 0 ? '未提交' : row.status == 1 ? '已提交' : '已发布'
  160. }}</el-tag>
  161. </template>
  162. <template v-slot:sendStatus="{ row }">
  163. <el-tag v-if="row.sendStatus == 0">{{ '未发货' }}</el-tag>
  164. <el-tag v-else-if="row.sendStatus == 1">{{ '已发货' }}</el-tag>
  165. <el-tag v-else-if="row.sendStatus == 2">{{ '已收货' }}</el-tag>
  166. <span v-else>无</span>
  167. </template>
  168. <template v-slot:approvalStatus="{ row }">
  169. <el-tag v-if="row.approvalStatus == 0">未提交</el-tag>
  170. <el-tag v-if="row.approvalStatus == 1" type="warning">审核中</el-tag>
  171. <el-tag v-if="row.approvalStatus == 2" type="success">审核通过</el-tag>
  172. <el-tag v-if="row.approvalStatus == 3" type="danger">审核不通过</el-tag>
  173. </template>
  174. <template v-slot:code="{ row }">
  175. <el-link type="primary" :underline="false" @click="open('detail', row)">
  176. {{ row.code }}
  177. </el-link>
  178. </template>
  179. <template v-slot:action="{ row }">
  180. <el-link
  181. type="primary"
  182. v-if="
  183. row.status == 0 &&
  184. row.approvalStatus != 1 &&
  185. row.approvalStatus != 2
  186. "
  187. :underline="false"
  188. @click="open('edit', row)"
  189. >
  190. 编辑
  191. </el-link>
  192. <el-popconfirm
  193. class="ele-action"
  194. v-if="
  195. row.status == 0 &&
  196. row.approvalStatus != 1 &&
  197. row.approvalStatus != 2
  198. "
  199. title="确定要删除吗?"
  200. @confirm="remove([row.id])"
  201. >
  202. <template v-slot:reference>
  203. <el-link type="danger" :underline="false"> 删除 </el-link>
  204. </template>
  205. </el-popconfirm>
  206. <el-link
  207. type="primary"
  208. :underline="false"
  209. @click="submit(row)"
  210. v-if="
  211. row.status == 0 &&
  212. row.approvalStatus != 1 &&
  213. row.approvalStatus != 2
  214. "
  215. >
  216. 提交
  217. </el-link>
  218. <el-link
  219. type="primary"
  220. :underline="false"
  221. @click="sendGoods(row)"
  222. v-if="
  223. row.approvalStatus == 2 && (row.sendStatus == 0 || !row.sendStatus)
  224. "
  225. >
  226. 发货
  227. </el-link>
  228. <el-link
  229. type="primary"
  230. :underline="false"
  231. @click="handleFlow(row)"
  232. v-if="row.approvalStatus == 1 || row.approvalStatus == 2"
  233. >
  234. 流程
  235. </el-link>
  236. </template>
  237. </ele-pro-table>
  238. <flow ref="flowRef"></flow>
  239. <release ref="releaseRef" @refreshs="releaseRefresh"></release>
  240. <detail ref="detailsRef"></detail>
  241. <timeDialog ref="timeDialogRef"></timeDialog>
  242. </div>
  243. </template>
  244. <script>
  245. import { getList } from '@/api/outsourcing/index.js';
  246. import flow from '../../../outsourcing/components/flow.vue';
  247. import search from '../../../outsourcing/components/search.vue';
  248. import release from '../../../outsourcing/components/release.vue';
  249. import Detail from '../../../outsourcing/components/details.vue';
  250. import dictMixins from '@/mixins/dictMixins';
  251. import timeDialog from '../../../outsourcing/components/timeDialog.vue';
  252. import { getFile } from '@/api/system/file';
  253. import { getList as getPleaseListData } from '@/api/entrust/index';
  254. import { getByCode } from '@/api/system/dictionary-data';
  255. export default {
  256. components: {
  257. search,
  258. flow,
  259. release,
  260. Detail,
  261. timeDialog
  262. },
  263. props: {
  264. chooseType: {
  265. type: String,
  266. default: '1'
  267. }
  268. },
  269. mixins: [dictMixins],
  270. data() {
  271. return {
  272. loading: false,
  273. code: '',
  274. dataList: [],
  275. workOrderCode: '',
  276. activeName: this.chooseType,
  277. pleaseData: [],
  278. pleaseTypeList: []
  279. };
  280. },
  281. filters: {
  282. outsourceSceneText(text) {
  283. switch (text) {
  284. case 1:
  285. return '首工序委外';
  286. case 2:
  287. return '单工序';
  288. case 3:
  289. return '多工序';
  290. case 4:
  291. return '首工序及多工序';
  292. default:
  293. return '';
  294. }
  295. }
  296. },
  297. computed: {
  298. // 表格列配置
  299. columns() {
  300. return [
  301. {
  302. columnKey: 'index',
  303. label: '序号',
  304. type: 'index',
  305. width: 55,
  306. align: 'center',
  307. showOverflowTooltip: true,
  308. fixed: 'left',
  309. showOverflowTooltip: true
  310. },
  311. {
  312. prop: 'batchNo',
  313. label: '批次号',
  314. align: 'center',
  315. minWidth: 100,
  316. showOverflowTooltip: true
  317. },
  318. {
  319. slot: 'code',
  320. prop: 'code',
  321. label: '委外单编码',
  322. align: 'center',
  323. showOverflowTooltip: true
  324. },
  325. {
  326. prop: 'name',
  327. label: '委外单名称',
  328. align: 'center',
  329. showOverflowTooltip: true
  330. },
  331. {
  332. prop: 'workOrderCode',
  333. label: '工单编码',
  334. align: 'center',
  335. showOverflowTooltip: true
  336. },
  337. {
  338. prop: 'taskName',
  339. label: '委外发起工序',
  340. align: 'center',
  341. showOverflowTooltip: true
  342. },
  343. {
  344. prop: 'taskNames',
  345. label: '委外工序',
  346. align: 'center',
  347. showOverflowTooltip: true
  348. },
  349. {
  350. prop: 'totalCount',
  351. label: '委外数量',
  352. align: 'center',
  353. showOverflowTooltip: true
  354. },
  355. {
  356. prop: 'totalWeight',
  357. slot: 'totalWeight',
  358. label: '委外重量',
  359. align: 'center',
  360. showOverflowTooltip: true
  361. },
  362. {
  363. slot: 'type',
  364. label: '委外类型',
  365. align: 'center',
  366. showOverflowTooltip: true
  367. },
  368. {
  369. prop: 'outsourceScene',
  370. slot: 'outsourceScene',
  371. label: '委外场景',
  372. align: 'center',
  373. showOverflowTooltip: true
  374. },
  375. {
  376. prop: 'supplierName',
  377. label: '委外单位',
  378. align: 'center',
  379. showOverflowTooltip: true
  380. },
  381. {
  382. slot: 'requireDeliveryTime',
  383. label: '预计到货日期',
  384. align: 'center',
  385. width: 100,
  386. showOverflowTooltip: true
  387. },
  388. // {
  389. // prop: 'produceRoutingName',
  390. // label: '工艺路线',
  391. // align: 'center'
  392. // },
  393. {
  394. prop: 'warehouseName',
  395. label: '仓库',
  396. align: 'center',
  397. showOverflowTooltip: true
  398. },
  399. {
  400. prop: 'createTime',
  401. label: '创建时间',
  402. align: 'center',
  403. width: 100,
  404. showOverflowTooltip: true
  405. },
  406. {
  407. slot: 'status',
  408. label: '单据状态',
  409. align: 'center',
  410. showOverflowTooltip: true
  411. },
  412. {
  413. slot: 'approvalStatus',
  414. label: '审核状态',
  415. align: 'center',
  416. showOverflowTooltip: true
  417. },
  418. {
  419. label: '图片附件',
  420. slot: 'technicalDrawings',
  421. action: 'technicalDrawings',
  422. minWidth: 100,
  423. showOverflowTooltip: true
  424. },
  425. {
  426. label: '附件',
  427. slot: 'files',
  428. action: 'files',
  429. minWidth: 100,
  430. showOverflowTooltip: true
  431. },
  432. {
  433. prop: 'remark',
  434. label: '备注',
  435. align: 'center',
  436. showOverflowTooltip: true
  437. },
  438. {
  439. columnKey: 'action',
  440. label: '操作',
  441. width: 140,
  442. align: 'center',
  443. resizable: false,
  444. fixed: 'right',
  445. slot: 'action',
  446. showOverflowTooltip: true
  447. }
  448. ];
  449. },
  450. colunms1() {
  451. return [
  452. {
  453. columnKey: 'selection',
  454. type: 'selection',
  455. width: 45,
  456. align: 'center',
  457. fixed: 'left'
  458. },
  459. {
  460. columnKey: 'index',
  461. label: '序号',
  462. type: 'index',
  463. width: 55,
  464. align: 'center',
  465. showOverflowTooltip: true,
  466. fixed: 'left'
  467. },
  468. {
  469. prop: 'type',
  470. label: '类型',
  471. width: 55,
  472. align: 'center',
  473. showOverflowTooltip: true,
  474. slot: 'type'
  475. },
  476. {
  477. prop: 'priority',
  478. label: '紧急程度',
  479. width: 90,
  480. align: 'center',
  481. showOverflowTooltip: true,
  482. formatter: (row, column, cellValue) => {
  483. return cellValue == 1 ? '一般' : cellValue == 2 ? '紧急' : '';
  484. }
  485. },
  486. {
  487. prop: 'name',
  488. label: '名称',
  489. width: 130,
  490. showOverflowTooltip: true,
  491. align: 'center'
  492. },
  493. {
  494. prop: 'code',
  495. slot: 'code',
  496. label: '编码',
  497. width: 160,
  498. showOverflowTooltip: true,
  499. align: 'center'
  500. },
  501. {
  502. prop: 'applyFactoriesName',
  503. label: '所属工厂',
  504. align: 'center',
  505. width: 130,
  506. showOverflowTooltip: true
  507. },
  508. {
  509. prop: 'applyDeptName',
  510. label: '请托部门',
  511. align: 'center',
  512. width: 120,
  513. showOverflowTooltip: true
  514. },
  515. {
  516. prop: 'createUserName',
  517. label: '请托人',
  518. align: 'center',
  519. width: 80,
  520. showOverflowTooltip: true
  521. },
  522. {
  523. prop: 'totalCount',
  524. label: '请托数量',
  525. align: 'center',
  526. width: 130,
  527. showOverflowTooltip: true
  528. },
  529. {
  530. prop: 'beEntrustedFactoriesName',
  531. label: '受托工厂',
  532. align: 'center',
  533. width: 130,
  534. showOverflowTooltip: true
  535. },
  536. {
  537. prop: 'beEntrustedDeptName',
  538. label: '受托部门',
  539. align: 'center',
  540. width: 120,
  541. showOverflowTooltip: true
  542. },
  543. {
  544. prop: 'productionPlanCode',
  545. label: '计划编号',
  546. align: 'center',
  547. minWidth: 110,
  548. showOverflowTooltip: true
  549. },
  550. {
  551. prop: 'produceRoutingName',
  552. label: '工艺路线',
  553. align: 'center',
  554. showOverflowTooltip: true
  555. },
  556. {
  557. prop: 'bomType',
  558. label: 'BOM分类',
  559. align: 'center',
  560. width: 100,
  561. showOverflowTooltip: true,
  562. formatter: (row) => {
  563. if (row.bomType == 1) {
  564. return '产品(PBOM)';
  565. }
  566. if (row.bomType == 2) {
  567. return '加工(MBOM)';
  568. }
  569. if (row.bomType == 3) {
  570. return '装配(ABOM)';
  571. }
  572. return '';
  573. }
  574. },
  575. {
  576. prop: 'bomCategoryVersions',
  577. label: 'BOM版本',
  578. align: 'center',
  579. width: 100,
  580. showOverflowTooltip: true,
  581. formatter: (row) => {
  582. if (row.bomCategoryName) {
  583. return `${row.bomCategoryName} (V${row.bomCategoryVersions}.0)`;
  584. }
  585. return '';
  586. }
  587. },
  588. {
  589. prop: 'brandNum',
  590. label: '牌号',
  591. align: 'center',
  592. minWidth: 110,
  593. showOverflowTooltip: true
  594. },
  595. {
  596. prop: 'batchNo',
  597. label: '批次号',
  598. align: 'center',
  599. minWidth: 110,
  600. showOverflowTooltip: true
  601. },
  602. {
  603. prop: 'planStartTime',
  604. label: '计划开始时间',
  605. align: 'center',
  606. showOverflowTooltip: true,
  607. minWidth: 130,
  608. sortable: true
  609. },
  610. {
  611. prop: 'planCompleteTime',
  612. label: '计划结束时间',
  613. align: 'center',
  614. showOverflowTooltip: true,
  615. minWidth: 130,
  616. sortable: true
  617. },
  618. {
  619. prop: 'specification',
  620. label: '规格',
  621. align: 'center',
  622. minWidth: 110,
  623. showOverflowTooltip: true
  624. },
  625. {
  626. prop: 'modelType',
  627. label: '型号',
  628. align: 'center',
  629. minWidth: 110,
  630. showOverflowTooltip: true
  631. },
  632. {
  633. prop: 'sendStatus',
  634. slot: 'sendStatus',
  635. label: '发货状态',
  636. align: 'center',
  637. minWidth: 110,
  638. showOverflowTooltip: true
  639. },
  640. {
  641. prop: 'workOrderCode',
  642. label: '生产工单号',
  643. slot: 'workOrderCode',
  644. align: 'center',
  645. minWidth: 110,
  646. showOverflowTooltip: true
  647. },
  648. {
  649. prop: 'planDeliveryTime',
  650. label: '完成时间',
  651. align: 'center',
  652. width: 150,
  653. showOverflowTooltip: true
  654. },
  655. {
  656. prop: 'createTime',
  657. label: '创建时间',
  658. align: 'center',
  659. width: 150,
  660. showOverflowTooltip: true
  661. },
  662. {
  663. prop: 'describes',
  664. label: '需求描述',
  665. align: 'center',
  666. showOverflowTooltip: true
  667. },
  668. {
  669. prop: 'status',
  670. label: '状态',
  671. align: 'center',
  672. slot: 'status',
  673. width: 100
  674. },
  675. {
  676. prop: 'approvalStatus',
  677. label: '审批状态',
  678. align: 'center',
  679. slot: 'approvalStatus',
  680. width: 100
  681. },
  682. {
  683. columnKey: 'action',
  684. label: '操作',
  685. width: 180,
  686. align: 'center',
  687. resizable: false,
  688. fixed: 'right',
  689. slot: 'action',
  690. showOverflowTooltip: true
  691. }
  692. ];
  693. },
  694. clientEnvironmentId() {
  695. return this.$store.state.user.info.clientEnvironmentId;
  696. }
  697. },
  698. created() {
  699. this.requestDict('请托类型');
  700. },
  701. mounted() {
  702. this.getPleaseTypeList();
  703. },
  704. methods: {
  705. statusFormatter(status) {
  706. const obj = this.statusOpt.find((i) => i.value == status);
  707. return obj && obj.label;
  708. },
  709. /* 表格数据源 */
  710. // datasource() {
  711. // return getList({
  712. // pageNum: 1,
  713. // size: -1,
  714. // workOrderCode: this.code
  715. // });
  716. // },
  717. async getPleaseTypeList() {
  718. let res = await getByCode('entrust_type');
  719. if (res?.code == 0) {
  720. let list = res.data.map((item) => {
  721. let key = Object.keys(item)[0];
  722. return { value: key, label: item[key] };
  723. });
  724. this.pleaseTypeList = list;
  725. }
  726. },
  727. getPleaseType(item) {
  728. const data = this.pleaseTypeList.filter((it) => it.value == item.type);
  729. return data.length != 0 ? data[0].label : '';
  730. },
  731. async getDataList(code) {
  732. this.workOrderCode = code;
  733. await getList({
  734. pageNum: 1,
  735. size: -1,
  736. workOrderCode: this.workOrderCode
  737. }).then((res) => {
  738. console.log(res);
  739. this.dataList = res.list || [];
  740. // this.$forceUpdate();
  741. });
  742. },
  743. async getPleaseData(code) {
  744. console.log(code, '22000');
  745. this.workOrderCode = code;
  746. await getPleaseListData({
  747. pageNum: 1,
  748. size: -1,
  749. workOrderCode: this.workOrderCode
  750. }).then((res) => {
  751. this.pleaseData = res.list || [];
  752. });
  753. },
  754. downloadFile(file) {
  755. getFile({ objectName: file.storePath }, file.name);
  756. },
  757. handleFlow(row) {
  758. if (!row.processInstanceId) {
  759. return this.$message.warning('暂无流程图');
  760. }
  761. this.$refs.flowRef.open(row.processInstanceId);
  762. },
  763. handleDetails(row) {
  764. this.$refs.detailsRef.open(row);
  765. },
  766. handleMethod(row) {
  767. this.$refs.timeDialogRef.open(row, 'details');
  768. },
  769. handleRelease(row) {
  770. this.$refs.releaseRef.open(row);
  771. },
  772. handleClick(tab) {
  773. this.activeName = tab._props.name;
  774. if (this.activeName == '1') {
  775. this.getDataList(this.workOrderCode);
  776. } else if (this.activeName == '2') {
  777. this.getPleaseData(this.workOrderCode);
  778. }
  779. },
  780. openPleaseDetail() {},
  781. /* 刷新表格 */
  782. reload() {
  783. this.$nextTick(() => {
  784. console.log('88');
  785. // this.getList(this.workListIds);
  786. });
  787. },
  788. refresh() {
  789. this.$nextTick(() => {
  790. console.log('88');
  791. // this.getList(this.workListIds);
  792. });
  793. // this.getList(this.workListIds);
  794. },
  795. handleAdd() {
  796. // this.$refs.releaseRef.open();
  797. this.$emit('outsourcingAdd', 'pick', this.activeName);
  798. },
  799. releaseRefresh() {
  800. this.$refs.table.reload();
  801. }
  802. }
  803. };
  804. </script>
  805. <style lang="scss" scoped></style>