index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <div class="ele-body" style="width: 100%">
  3. <el-card shadow="never" v-loading="loading" style="width: 100%">
  4. <div class="ele-border-lighter form-content" v-loading="loading">
  5. <search-table @search="reload"></search-table>
  6. <!-- 数据表格 -->
  7. <ele-pro-table
  8. ref="table"
  9. :columns="columns"
  10. :datasource="datasource"
  11. height="calc(100vh - 410px)"
  12. style="margin-bottom: 10px"
  13. full-height="calc(100vh - 116px)"
  14. tool-class="ele-toolbar-form"
  15. :selection.sync="selection"
  16. :page-size="20"
  17. @columns-change="handleColumnChange"
  18. :cache-key="cacheKeyUrl"
  19. >
  20. <!-- 表头工具栏 -->
  21. <template v-slot:toolbar>
  22. <el-button
  23. size="small"
  24. type="primary"
  25. icon="el-icon-plus"
  26. class="ele-btn-icon"
  27. @click="openEdit('add', {})"
  28. v-if="
  29. !saleOrderData.id ||
  30. (saleOrderData.id && saleOrderData.orderStatus == 2)
  31. "
  32. >
  33. 新建
  34. </el-button>
  35. <el-button
  36. size="small"
  37. type="danger"
  38. class="el-icon-delete"
  39. @click="allDelBtn"
  40. :disabled="selection?.length === 0"
  41. >
  42. 批量删除
  43. </el-button>
  44. <el-dropdown trigger="click" :disabled="selection?.length === 0">
  45. <el-button type="primary" class="el-icon-printer" size="small">
  46. 打印<i class="el-icon-arrow-down el-icon--right"></i>
  47. </el-button>
  48. <el-dropdown-menu slot="dropdown">
  49. <el-dropdown-item
  50. @click.native="handlePrint('printTemplateByRef')"
  51. v-if="$hasPermission('eom:print-invoice1')"
  52. >发货单</el-dropdown-item
  53. >
  54. <el-dropdown-item
  55. v-if="$hasPermission('eom:print-invoice2')"
  56. @click.native="handlePrint('printTemplateJsRef')"
  57. >器械出库单</el-dropdown-item
  58. >
  59. <el-dropdown-item
  60. v-if="$hasPermission('eom:print-invoice3')"
  61. @click.native="handlePrint('printTemplateJsYpRef')"
  62. >药品出库单</el-dropdown-item
  63. >
  64. <el-dropdown-item
  65. v-if="$hasPermission('eom:print-invoice4')"
  66. @click.native="handlePrint('printTemplateWlRef')"
  67. >送货单模板</el-dropdown-item
  68. >
  69. <el-dropdown-item
  70. v-if="$hasPermission('eom:print-invoice5')"
  71. @click.native="handlePrint('printTemplateBSRef')"
  72. >送货单模板</el-dropdown-item
  73. >
  74. <el-dropdown-item
  75. v-if="$hasPermission('eom:print-invoice6')"
  76. @click.native="handlePrint('printTemplateHtRef')"
  77. >货物签收单</el-dropdown-item
  78. >
  79. <el-dropdown-item
  80. v-if="$hasPermission('eom:print-invoice7')"
  81. @click.native="handlePrint('printTemplateJrRef')"
  82. >发货单</el-dropdown-item
  83. >
  84. <el-dropdown-item
  85. v-if="$hasPermission('eom:print-invoice8')"
  86. @click.native="handlePrint('printTemplateTrRef')"
  87. >送货单打印</el-dropdown-item
  88. >
  89. <el-dropdown-item
  90. v-if="$hasPermission('eom:print-invoice9')"
  91. @click.native="handlePrint('printTemplateHt1Ref')"
  92. >出库单</el-dropdown-item
  93. >
  94. </el-dropdown-menu>
  95. </el-dropdown>
  96. <exportButton
  97. btnName="列表导出"
  98. fileName="销售发货单"
  99. apiUrl="/eom/saleordersendrecord/export"
  100. :params="params"
  101. ></exportButton>
  102. </template>
  103. <!-- 查看详情列 -->
  104. <template v-slot:docNo="{ row }">
  105. <el-link
  106. type="primary"
  107. :underline="false"
  108. @click="openorderDetail(row, 'docNo')"
  109. >
  110. {{ row.docNo }}
  111. </el-link>
  112. </template>
  113. <template v-slot:orderNo="{ row }">
  114. <el-link
  115. type="primary"
  116. :underline="false"
  117. v-for="(v, j) in row.orderNo.split(',')"
  118. :key="v"
  119. @click="openorderDetail(row, 'orderNo', j)"
  120. >
  121. {{ v }}
  122. <span v-if="j != row.orderNo.split(',').length - 1">,</span>
  123. </el-link>
  124. </template>
  125. <!-- 操作列 -->
  126. <template v-slot:action="{ row }">
  127. <template v-if="row.suspendReviewStatus == 0 || row.suspendReviewStatus == 3 || row.isSuspend != 1">
  128. <el-link
  129. type="primary"
  130. :underline="false"
  131. icon="el-icon-edit"
  132. @click="openEdit('edit', row)"
  133. v-if="
  134. ([0, 3].includes(row.reviewStatus) &&
  135. isNeed_process_is_close) ||
  136. !isNeed_process_is_close
  137. "
  138. >
  139. 修改
  140. </el-link>
  141. <el-link
  142. type="primary"
  143. :underline="false"
  144. icon="el-icon-plus"
  145. @click="sendSubmit(row)"
  146. v-if="
  147. isNeed_process_is_close && [0, 3].includes(row.reviewStatus)
  148. "
  149. >
  150. 提交
  151. </el-link>
  152. <el-popconfirm
  153. class="ele-action"
  154. title="确定要删除此信息吗?"
  155. @confirm="remove([row.id])"
  156. v-if="
  157. (isNeed_process_is_close &&
  158. [0, 3].includes(row.reviewStatus)) ||
  159. !isNeed_process_is_close
  160. "
  161. >
  162. <template v-slot:reference>
  163. <el-link type="danger" :underline="false" icon="el-icon-delete">
  164. 删除
  165. </el-link>
  166. </template>
  167. </el-popconfirm>
  168. </template>
  169. <el-link
  170. type="primary"
  171. :underline="false"
  172. icon="el-icon-plus"
  173. @click="exportFile(row)"
  174. v-if="[2].includes(row.reviewStatus)"
  175. >
  176. 导出
  177. </el-link>
  178. <el-link
  179. type="primary"
  180. :underline="false"
  181. icon="el-icon-edit"
  182. @click="creatInvoiceConfirm(row)"
  183. v-if="[2].includes(row.reviewStatus) && row.isSuspend != 1"
  184. >
  185. 创建发货确认单
  186. </el-link>
  187. <el-link
  188. type="primary"
  189. :underline="false"
  190. icon="el-icon-edit"
  191. @click="creatReturnGoods('add', row)"
  192. v-if="[2].includes(row.reviewStatus) && row.isSuspend != 1"
  193. >
  194. 创建退货单
  195. </el-link>
  196. </template>
  197. </ele-pro-table>
  198. </div>
  199. </el-card>
  200. <order-detail-dialog ref="orderDetailDialogRef"></order-detail-dialog>
  201. <add-invoice-dialog
  202. ref="invoiceDialogRef"
  203. @done="reload"
  204. :contactData="contactData"
  205. :saleOrderData="saleOrderData"
  206. ></add-invoice-dialog>
  207. <detail-dialog ref="DetailDialogRef"></detail-dialog>
  208. <add-return-goods-dialog
  209. ref="addReturnGoodsRef"
  210. @done="reload"
  211. :contactData="contactData"
  212. ></add-return-goods-dialog>
  213. <!-- 多选删除弹窗 -->
  214. <pop-modal
  215. :visible.sync="delVisible"
  216. content="是否确定删除?"
  217. @done="commitBtn"
  218. />
  219. <printTemplateBy
  220. ref="printTemplateByRef"
  221. :groupName="groupName"
  222. ></printTemplateBy>
  223. <printTemplateJs
  224. ref="printTemplateJsRef"
  225. :groupName="groupName"
  226. ></printTemplateJs>
  227. <printTemplateJsYp
  228. ref="printTemplateJsYpRef"
  229. :groupName="groupName"
  230. ></printTemplateJsYp>
  231. <printTemplateWl
  232. ref="printTemplateWlRef"
  233. :groupName="groupName"
  234. ></printTemplateWl>
  235. <printTemplateJr
  236. ref="printTemplateJrRef"
  237. :groupName="groupName"
  238. ></printTemplateJr>
  239. <printTemplateBs
  240. ref="printTemplateBSRef"
  241. :groupName="groupName"
  242. ></printTemplateBs>
  243. <printTemplateHt
  244. ref="printTemplateHtRef"
  245. :groupName="groupName"
  246. ></printTemplateHt>
  247. <printTemplateHt1
  248. ref="printTemplateHt1Ref"
  249. :groupName="groupName"
  250. ></printTemplateHt1>
  251. <printTemplateTr
  252. ref="printTemplateTrRef"
  253. :groupName="groupName"
  254. :companyInfo="companyInfo"
  255. ></printTemplateTr>
  256. <process-submit-dialog
  257. :isNotNeedProcess="false"
  258. :isCloseRefresh="false"
  259. :processSubmitDialogFlag.sync="processSubmitDialogFlag"
  260. v-if="processSubmitDialogFlag"
  261. ref="processSubmitDialogRef"
  262. @reload="reload"
  263. ></process-submit-dialog>
  264. <addInvoiceConfirm
  265. ref="addInvoiceConfirmRef"
  266. @done="reload"
  267. :contactData="contactData"
  268. :saleOrderData="saleOrderData"
  269. ></addInvoiceConfirm>
  270. </div>
  271. </template>
  272. <script>
  273. import searchTable from './components/searchTable.vue';
  274. import addInvoiceDialog from './components/addInvoiceDialog.vue';
  275. import addInvoiceConfirm from '@/views/saleManage/saleOrder/invoiceConfirm/components/addInvoiceDialog.vue';
  276. import detailDialog from './components/detailDialog.vue';
  277. import popModal from '@/components/pop-modal';
  278. import { reviewStatus } from '@/enum/dict';
  279. import orderDetailDialog from '@/views/saleManage/saleOrder/components/detailDialog.vue';
  280. import addReturnGoodsDialog from '@/views/saleManage/saleOrder/returnGoods/components/addReturnGoodsDialog';
  281. import printTemplateBy from '@/views/saleManage/saleOrder/invoice/components/print-template-by.vue';
  282. import printTemplateJs from '@/views/saleManage/saleOrder/invoice/components/print-template-js.vue';
  283. import printTemplateJsYp from '@/views/saleManage/saleOrder/invoice/components/print-template-jsyp.vue';
  284. import printTemplateWl from '@/views/saleManage/saleOrder/invoice/components/print-template-wl.vue';
  285. import printTemplateBs from '@/views/saleManage/saleOrder/invoice/components/print-template-bs.vue';
  286. import printTemplateJr from '@/views/saleManage/saleOrder/invoice/components/print-template-jr.vue';
  287. import printTemplateHt from '@/views/saleManage/saleOrder/invoice/components/print-template-ht.vue';
  288. import printTemplateHt1 from '@/views/saleManage/saleOrder/invoice/components/print-template-ht-1.vue';
  289. import printTemplateTr from '@/views/saleManage/saleOrder/invoice/components/print-template-tr.vue';
  290. import {
  291. deleteSendInformation,
  292. getSendTableList,
  293. submit
  294. } from '@/api/saleManage/saleordersendrecord';
  295. import dictMixins from '@/mixins/dictMixins';
  296. import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
  297. import tabMixins from '@/mixins/tableColumnsMixin';
  298. import { enterprisePage } from '@/api/contractManage/contractBook';
  299. import { getSendSaleOrderrecordDetailSplit } from '@/api/saleManage/saleordersendrecord';
  300. import { getWarehouseListByIds } from '@/api/purchasingManage/returnGoods';
  301. import exportButton from '@/components/upload/exportButton.vue';
  302. import { downLoadTemplate } from '@/api/system/file/index.js';
  303. import { parameterGetByCode } from '@/api/main/index.js';
  304. export default {
  305. mixins: [dictMixins, tabMixins],
  306. components: {
  307. processSubmitDialog,
  308. printTemplateBy,
  309. searchTable,
  310. popModal,
  311. addReturnGoodsDialog,
  312. orderDetailDialog,
  313. addInvoiceDialog,
  314. detailDialog,
  315. addInvoiceConfirm,
  316. printTemplateJs,
  317. printTemplateJsYp,
  318. printTemplateWl,
  319. printTemplateBs,
  320. printTemplateJr,
  321. exportButton,
  322. printTemplateHt,
  323. printTemplateTr,
  324. printTemplateHt1
  325. },
  326. //客户管理数据
  327. props: {
  328. contactData: {
  329. type: Object,
  330. default: () => {
  331. return {};
  332. }
  333. },
  334. saleOrderData: {
  335. type: Object,
  336. default: () => {
  337. return {};
  338. }
  339. }
  340. },
  341. data() {
  342. return {
  343. params: {},
  344. activeComp: 'saleorder',
  345. companyInfo: {},
  346. tabOptions: [
  347. { key: 'saleorder', name: '销售订单' },
  348. { key: 'invoice', name: '发货单' },
  349. { key: 'returnorder', name: '退货单' }
  350. ],
  351. groupName: '',
  352. selection: [], //单选中集合
  353. delVisible: false, //批量删除弹框状态
  354. loading: false, // 加载状态
  355. processSubmitDialogFlag: false,
  356. columns: [
  357. {
  358. width: 45,
  359. type: 'selection',
  360. columnKey: 'selection',
  361. align: 'center'
  362. },
  363. {
  364. columnKey: 'index',
  365. label: '序号',
  366. type: 'index',
  367. width: 55,
  368. align: 'center',
  369. showOverflowTooltip: true,
  370. fixed: 'left'
  371. },
  372. {
  373. prop: 'docNo',
  374. label: '发货单编码',
  375. align: 'center',
  376. sortable: true,
  377. slot: 'docNo',
  378. showOverflowTooltip: true,
  379. minWidth: 200
  380. },
  381. {
  382. prop: 'orderNo',
  383. label: '销售订单编码',
  384. align: 'center',
  385. sortable: true,
  386. slot: 'orderNo',
  387. showOverflowTooltip: true,
  388. minWidth: 200
  389. },
  390. {
  391. prop: 'productNames',
  392. label: '产品名称',
  393. align: 'center',
  394. showOverflowTooltip: true,
  395. minWidth: 140
  396. },
  397. {
  398. prop: 'productCodes',
  399. label: '产品编码',
  400. align: 'center',
  401. showOverflowTooltip: true,
  402. minWidth: 160
  403. },
  404. {
  405. minWidth: 160,
  406. prop: 'productionCodes',
  407. label: '生产编号',
  408. align: 'center'
  409. },
  410. {
  411. prop: 'batchNos',
  412. label: '批次号',
  413. align: 'center',
  414. showOverflowTooltip: true,
  415. minWidth: 140
  416. },
  417. {
  418. prop: 'orderTotalCount',
  419. label: '订单数量',
  420. align: 'center',
  421. showOverflowTooltip: true,
  422. minWidth: 140
  423. },
  424. {
  425. prop: 'sendTotalCount',
  426. label: '发货数量',
  427. align: 'center',
  428. showOverflowTooltip: true,
  429. minWidth: 140
  430. },
  431. {
  432. prop: 'sendTotalAmount',
  433. label: '发货金额',
  434. align: 'center',
  435. showOverflowTooltip: true,
  436. minWidth: 140
  437. },
  438. {
  439. prop: 'projectName',
  440. label: '项目名称',
  441. align: 'center',
  442. showOverflowTooltip: true,
  443. minWidth: 180
  444. },
  445. {
  446. prop: 'contactName',
  447. label: '客户名称',
  448. align: 'center',
  449. showOverflowTooltip: true,
  450. minWidth: 180
  451. },
  452. {
  453. prop: 'replied',
  454. label: '是否回执',
  455. align: 'center',
  456. showOverflowTooltip: true,
  457. minWidth: 120,
  458. formatter: (_row, _column, cellValue) => {
  459. return _row.replied == 1 ? '是' : '否';
  460. }
  461. },
  462. {
  463. prop: 'reviewStatus',
  464. label: '状态',
  465. align: 'center',
  466. showOverflowTooltip: true,
  467. minWidth: 100,
  468. formatter: (_row, _column, cellValue) => {
  469. return reviewStatus[_row.reviewStatus];
  470. }
  471. },
  472. {
  473. prop: 'reconciliationStatus',
  474. label: '对账状态',
  475. align: 'center',
  476. showOverflowTooltip: true,
  477. minWidth: 120,
  478. formatter: (_row, _column, cellValue) => {
  479. let options = [
  480. { value: 0, label: '未对账' },
  481. { value: 1, label: '部分对账' },
  482. { value: 2, label: '全部对账' }
  483. ];
  484. return options.find(item => item.value == cellValue)?.label || '';
  485. }
  486. },
  487. {
  488. prop: 'createUserName',
  489. label: '创建人',
  490. align: 'center',
  491. showOverflowTooltip: true,
  492. minWidth: 80
  493. },
  494. {
  495. prop: 'createTime',
  496. label: '创建时间',
  497. align: 'center',
  498. showOverflowTooltip: true,
  499. minWidth: 170
  500. },
  501. {
  502. columnKey: 'action',
  503. label: '操作',
  504. width: 280,
  505. align: 'center',
  506. resizable: false,
  507. slot: 'action',
  508. showOverflowTooltip: true,
  509. fixed: 'right'
  510. }
  511. ],
  512. cacheKeyUrl: 'eos-bfe3d5ea-saleManage-invoice',
  513. isReview: false
  514. };
  515. },
  516. computed: {},
  517. created() {
  518. //打印是否需要审核//0否 1是
  519. parameterGetByCode({
  520. code: 'eom_invoice_print_need_review'
  521. }).then((res) => {
  522. this.isReview = res.value;
  523. });
  524. enterprisePage({
  525. pageNum: 1,
  526. size: 200
  527. }).then((res) => {
  528. if (res.list?.length > 0) {
  529. this.groupName = res.list[0].name;
  530. this.companyInfo = res.list[0];
  531. }
  532. });
  533. console.log('this.saleOrderData',this.saleOrderData.id)
  534. },
  535. watch: {
  536. saleOrderData: {
  537. handler(newVal, oldVal) {
  538. if (newVal.id) {
  539. this.reload();
  540. }
  541. },
  542. deep: true
  543. }
  544. },
  545. methods: {
  546. /* 表格数据源 */
  547. datasource({ page, limit, where, order }) {
  548. if (this.saleOrderData.id) {
  549. //订单详情进入
  550. where['orderId'] = this.saleOrderData.id;
  551. }
  552. if (this.contactData.id) {
  553. where['contactId'] = this.contactData.id;
  554. }
  555. this.params = {
  556. pageNum: page,
  557. size: limit,
  558. ...where
  559. };
  560. return getSendTableList({
  561. pageNum: page,
  562. size: limit,
  563. ...where
  564. });
  565. },
  566. exportFile(row) {
  567. downLoadTemplate(
  568. `/eom/saleordersendrecord/export/${row.id}`,
  569. '货物签收单'
  570. );
  571. },
  572. //创建退货单
  573. creatReturnGoods(type, row) {
  574. this.$refs.addReturnGoodsRef.open(type, {}, row.id);
  575. },
  576. /* 刷新表格 */
  577. reload(where) {
  578. this.$refs.table.reload({ page: 1, where });
  579. this.$emit('getToDoReminder');
  580. },
  581. //新增编辑
  582. openEdit(type, row) {
  583. this.$refs.invoiceDialogRef.open(type, row);
  584. this.$refs.invoiceDialogRef.$refs.form &&
  585. this.$refs.invoiceDialogRef.$refs.form.clearValidate();
  586. },
  587. creatInvoiceConfirm(row) {
  588. this.$refs.addInvoiceConfirmRef.open('add', {}, row);
  589. },
  590. //批量删除
  591. allDelBtn() {
  592. if (this.selection.length === 0) return;
  593. let flag = this.selection.some((item) =>
  594. [1, 2].includes(item.reviewStatus)
  595. );
  596. if (flag)
  597. return this.$message.warning(
  598. '抱歉已审核、审核中的数据不能删除,请检查'
  599. );
  600. this.delVisible = true;
  601. },
  602. handlePrint(ref) {
  603. if (this.selection.length > 1)
  604. return this.$message.warning('请选择一条');
  605. const approveList = ['printTemplateJsRef', 'printTemplateJsYpRef', 'printTemplateWlRef']
  606. let flag = this.selection.some((item) =>
  607. [2].includes(item.reviewStatus)
  608. );
  609. console.log('flag', flag, approveList.includes(ref))
  610. if (!flag && (approveList.includes(ref) || this.isReview == 1))
  611. return this.$message.warning('抱歉需要已审核的发货单才能打印,请检查');
  612. if (ref != 'printTemplateByRef' && ref != 'printTemplateHtRef') {
  613. this.$refs[ref].open(this.selection[0].id);
  614. return;
  615. }
  616. this.$confirm('是否需要打印价格', '提示', {
  617. type: 'warning',
  618. cancelButtonText: '否',
  619. confirmButtonText: '是'
  620. })
  621. .then((res) => {
  622. this.$refs[ref].open(this.selection[0].id, true);
  623. })
  624. .catch((err) => {
  625. this.$refs[ref].open(this.selection[0].id, false);
  626. });
  627. },
  628. //删除接口
  629. remove(delData) {
  630. deleteSendInformation(delData).then((res) => {
  631. this.$message.success('删除成功!');
  632. this.reload();
  633. });
  634. },
  635. //删除弹框确定
  636. commitBtn() {
  637. const dataId = this.selection.map((v) => v.id);
  638. this.remove(dataId);
  639. },
  640. async sendSubmit(res) {
  641. const data = await getSendSaleOrderrecordDetailSplit(res.id);
  642. let storemanIds = '';
  643. let ids = data.productList.map((item) => item.warehouseId);
  644. if (ids?.length) {
  645. let warehouseList = await getWarehouseListByIds(ids || []);
  646. storemanIds = warehouseList.map((item) => item.ownerId);
  647. }
  648. this.processSubmitDialogFlag = true;
  649. this.$nextTick(() => {
  650. let params = {
  651. businessId: res.id,
  652. businessKey:
  653. res.isSuspend == 1 ? 'sales_suspend_send_approve' :
  654. res.saleTypeName.indexOf('技改') != '-1'
  655. ? 'sele_order_send_correction'
  656. : res.saleTypeName.indexOf('三包') != '-1'
  657. ? 'eom_sh'
  658. : res.saleTypeName.indexOf('补发') != '-1'
  659. ? 'eom_sh'
  660. : res.saleTypeName.indexOf('赠品') != '-1'
  661. ? 'sale_order_send_giftAndOther'
  662. : 'sales_send_approve',
  663. // businessKey:'eom_sh',
  664. formCreateUserId: res.createUserId,
  665. variables: {
  666. businessCode: res.docNo,
  667. businessName: res.contactName,
  668. storemanIds: storemanIds.toString(),
  669. businessType: data.sourceType == 3 ? '退货发货单' : '销售发货单'
  670. }
  671. };
  672. this.$refs.processSubmitDialogRef.init(params);
  673. });
  674. },
  675. //查看详情
  676. openorderDetail(row, type, index) {
  677. if (type === 'docNo') {
  678. this.$refs.DetailDialogRef.open(row);
  679. }
  680. if (type === 'orderNo') {
  681. let orderId = '';
  682. if (row.orderIds) {
  683. orderId = row.orderIds.split(',')[index];
  684. } else {
  685. orderId = row.orderId;
  686. }
  687. this.$refs.orderDetailDialogRef.open({ id: orderId });
  688. }
  689. }
  690. }
  691. };
  692. </script>
  693. <style lang="scss" scoped>
  694. .ele-body {
  695. padding-top: 0;
  696. padding-bottom: 0;
  697. }
  698. :deep .el-card__body {
  699. padding: 0;
  700. }
  701. :deep(.el-link--inner) {
  702. margin-left: 0px !important;
  703. }
  704. .sys-organization-list {
  705. height: calc(100vh - 264px);
  706. box-sizing: border-box;
  707. border-width: 1px;
  708. border-style: solid;
  709. overflow: auto;
  710. }
  711. .sys-organization-list :deep(.el-tree-node__content) {
  712. height: 40px;
  713. & > .el-tree-node__expand-icon {
  714. margin-left: 10px;
  715. }
  716. }
  717. .switch_left ul .active {
  718. border-top: 4px solid var(--color-primary);
  719. color: var(--color-primary-5);
  720. }
  721. .switch {
  722. padding-bottom: 20px;
  723. }
  724. .el-dropdown-link {
  725. cursor: pointer;
  726. color: var(--color-primary-5);
  727. }
  728. .el-icon-arrow-down {
  729. font-size: 12px;
  730. }
  731. </style>