index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. <template>
  2. <div class="logistics">
  3. <div style="margin: 20px 0">
  4. <el-radio-group v-model="curTarget" size="small" @change="handleChange">
  5. <template v-for="(item, index) in tabsList">
  6. <el-radio-button v-if="item.show " :key="index" :label="item.value">{{ item.label }}</el-radio-button>
  7. </template>
  8. </el-radio-group>
  9. </div>
  10. <el-card v-if="curTarget === 1 && tabsList[curTarget - 1].show ">
  11. <div slot="header">
  12. <span>物流信息</span>
  13. </div>
  14. <slot name="header" />
  15. <div>
  16. <el-timeline v-if="logisticsDetail.length" :reverse="false">
  17. <el-timeline-item
  18. v-for="(item, index) in logisticsDetail"
  19. :key="index"
  20. placement="top"
  21. type="success"
  22. :timestamp="item.time"
  23. >
  24. <el-row :gutter="20">
  25. <el-col class="logistics-title"> {{ item && item.status && statusObj[item.status].label }} </el-col>
  26. <el-col>
  27. <div class="flex">
  28. <div>{{ item.comment }}</div>
  29. <!-- <div>{{ item.createTime }}</div> -->
  30. </div>
  31. <div class="flex">
  32. <div>{{ item.statusDetails }}</div>
  33. <!-- <div>{{ item.createTime }}</div> -->
  34. </div>
  35. </el-col>
  36. </el-row>
  37. </el-timeline-item>
  38. </el-timeline>
  39. <div v-else class="tip">暂无物流信息</div>
  40. </div>
  41. </el-card>
  42. <el-card v-if="curTarget === 2 && tabsList[curTarget - 1].show ">
  43. <div slot="header">
  44. <span>物流费用</span>
  45. </div>
  46. <zj-table
  47. :table-attributes="defaultTableAttributes"
  48. :is-drop="true"
  49. :columns="formLogistics"
  50. :table-data="logisticsData"
  51. />
  52. </el-card>
  53. <el-card v-if="curTarget === 3 && tabsList[curTarget - 1].show">
  54. <div slot="header">
  55. <span>出库条码</span>
  56. </div>
  57. <zj-table :is-drop="true" :columns="formOutbound" :table-data="outboundData" />
  58. </el-card>
  59. <el-card v-if="curTarget === 4 && tabsList[curTarget - 1].show">
  60. <div slot="header">
  61. <span>安装信息</span>
  62. </div>
  63. <el-form ref="installDetail" :model="installDetail" label-width="120px" :inline="false" size="mini">
  64. <el-row :gutter="20">
  65. <el-col :span="12">
  66. <el-form-item label="信息编码">
  67. <el-input :value="installDetail.gongDanId" style="width: 85%;" readonly /> <el-button class="tag-read" :data-clipboard-text="installDetail.gongDanId" type="primary" size="mini" @click="copy">复制</el-button>
  68. </el-form-item>
  69. </el-col>
  70. <el-col :span="12">
  71. <el-form-item label="创建网点名称">
  72. <el-input :value="`${installDetail.createWname} (${installDetail.createNumber})`" style="width: 85%;" readonly /><el-button class="tag-read" :data-clipboard-text="installDetail.createWname" type="primary" size="mini" @click="copy">复制</el-button>
  73. </el-form-item>
  74. </el-col>
  75. <el-col :span="12">
  76. <el-form-item label="总部信息编码">
  77. <el-input :value="installDetail.pgid" readonly />
  78. </el-form-item>
  79. </el-col>
  80. <el-col :span="12">
  81. <el-form-item label="销售服务网点">
  82. <el-input :value="`${installDetail.salesWname} (${installDetail.salesNumber})`" readonly />
  83. </el-form-item>
  84. </el-col>
  85. <el-col :span="12">
  86. <el-form-item label="接收派工网点">
  87. <el-input :value="`${installDetail.afterWname} (${installDetail.afterNumber})`" readonly />
  88. </el-form-item>
  89. </el-col>
  90. <el-col :span="6">
  91. <el-form-item label="主要服务人员">
  92. <el-input :value="installDetail.workerName" readonly />
  93. </el-form-item>
  94. </el-col>
  95. <el-col :span="6">
  96. <el-form-item label="联系电话">
  97. <el-input :value="installDetail.workerPhone" readonly />
  98. </el-form-item>
  99. </el-col>
  100. <el-col :span="12">
  101. <el-form-item label="售后服务网点">
  102. <el-input :value="`${installDetail.installName} (${installDetail.installNumber})`" readonly />
  103. </el-form-item>
  104. </el-col>
  105. <el-col :span="6">
  106. <el-form-item label="辅助服务人员">
  107. <el-input :value="installDetail.assistName" readonly />
  108. </el-form-item>
  109. </el-col>
  110. <el-col :span="6">
  111. <el-form-item label="联系电话">
  112. <el-input :value="installDetail.assistPhone" readonly />
  113. </el-form-item>
  114. </el-col>
  115. <el-col :span="12">
  116. <el-form-item label="工单接收时间">
  117. <el-input :value="installDetail.afterTime" readonly />
  118. </el-form-item>
  119. </el-col>
  120. <el-col :span="12">
  121. <el-form-item label="工单状态">
  122. <el-input :value="orderState[installDetail.orderState || 1]" readonly />
  123. </el-form-item>
  124. </el-col>
  125. <el-col :span="12">
  126. <el-form-item label="派工状态">
  127. <el-input :value=" appointState[installDetail.appointState || 0] " readonly />
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="12">
  131. <el-form-item label="完工情况">
  132. <el-input :value="installDetail.orderOver || '0/0'" readonly />
  133. </el-form-item>
  134. </el-col>
  135. <el-col :span="12">
  136. <el-form-item label="跟单信息员">
  137. <el-input :value="`${installDetail.adminOfficerName} (${installDetail.adminOfficerNumber})`" readonly />
  138. </el-form-item>
  139. </el-col>
  140. <el-col :span="12">
  141. <el-form-item label="工单时间">
  142. <el-input :value="installDetail.createTime" readonly />
  143. </el-form-item>
  144. </el-col>
  145. </el-row>
  146. </el-form>
  147. <zj-table :is-drop="true" :columns="installInfo" :table-data=" installDetail && installDetail.logs" />
  148. </el-card>
  149. <el-card v-if="curTarget === 5 && tabsList[curTarget - 1].show">
  150. <div slot="header">
  151. <span>安装条码</span>
  152. </div>
  153. <zj-table :is-drop="true" :columns="formOutbound" :table-data="instalLList" />
  154. </el-card>
  155. </div>
  156. </template>
  157. <script>
  158. import Clipboard from 'clipboard'
  159. import { getListCostBillV2, getOrderTrackList2, getInstalDetail } from '@/api/logisticsBill'
  160. import { getListCodeV2, getListInstallCodeV2 } from '@/api/barcode'
  161. export default {
  162. props: {
  163. jiaxianOrderId: {
  164. type: String,
  165. default: null
  166. },
  167. detailsId: {
  168. type: String,
  169. default: null
  170. },
  171. returnShow: {
  172. type: Boolean,
  173. default: true
  174. },
  175. gongDanId: {
  176. type: String,
  177. default: null
  178. },
  179. details: {
  180. type: Object,
  181. default: () => ({})
  182. }
  183. },
  184. data() {
  185. return {
  186. tabsList: [
  187. {
  188. label: '物流状态',
  189. value: 1,
  190. show: true,
  191. fun: this.getOrderTrackList2
  192. },
  193. {
  194. label: '物流费用',
  195. value: 2,
  196. show: false,
  197. fun: this.getListCostBillV2
  198. },
  199. {
  200. label: '出库条码',
  201. value: 3,
  202. show: true,
  203. fun: this.getListCodeV2
  204. },
  205. {
  206. label: '安装信息',
  207. value: 4,
  208. show: true,
  209. fun: this.getInstalDetail
  210. },
  211. {
  212. label: '安装条码',
  213. value: 5,
  214. show: true,
  215. fun: this.getListInstallCodeV2
  216. }
  217. ],
  218. curTarget: 1,
  219. statusObj: {
  220. COLLECT: {
  221. label: '揽收',
  222. value: 'COLLECT'
  223. },
  224. OUT_OF_STOCK: {
  225. label: '出库',
  226. value: 'OUT_OF_STOCK'
  227. },
  228. ASSIVE_BRANCH: {
  229. label: '到达网点',
  230. value: 'ASSIVE_BRANCH'
  231. },
  232. ASSIGN_BRANCH: {
  233. label: '指派网点',
  234. value: 'ASSIGN_BRANCH'
  235. },
  236. DELIVERING: {
  237. label: '派送中',
  238. value: 'DELIVERING'
  239. },
  240. SIGNED: {
  241. label: '已签收',
  242. value: 'SIGNED'
  243. },
  244. RETURN: {
  245. label: '退件',
  246. value: 'RETURN'
  247. },
  248. REJECTION: {
  249. label: '拒收',
  250. value: 'REJECTION'
  251. },
  252. RESCHEDULE: {
  253. label: '改约',
  254. value: 'RESCHEDULE'
  255. },
  256. OTHER_EXCEPTION: {
  257. label: '其他异常',
  258. value: 'OTHER_EXCEPTION'
  259. }
  260. },
  261. orderState: {
  262. 1: '已保存工单', 2: '待分部派工', 3: '待分中心派工', 4: '待网点派工', 5: '待审批改派', 6: '待服务人员处理', 7: '服务人员报完工', 8: '申请售后处理', 9: '已作废工单', 10: '已关闭工单', 99: '非广佛作废'
  263. },
  264. appointState: {
  265. 0: '待接收', 1: '待签到', 2: '待采集', 3: '已采集', 4: '已完工', 5: '改约中', 6: '改派中'
  266. },
  267. defaultTableAttributes: {
  268. height: '100%',
  269. border: true,
  270. size: 'mini',
  271. 'summary-method': this.$getSummaries,
  272. 'show-summary': true
  273. },
  274. logisticsData: [],
  275. outboundData: [],
  276. logisticsDetail: [],
  277. installDetail: {},
  278. instalLList: []
  279. }
  280. },
  281. computed: {
  282. formLogistics() {
  283. return [
  284. {
  285. columnAttributes: {
  286. label: '补贴费用',
  287. prop: 'allowanceCost',
  288. width: 200
  289. }
  290. },
  291. {
  292. columnAttributes: {
  293. label: '所属销售公司类型',
  294. prop: 'belongCompanyType',
  295. width: 200
  296. },
  297. render: (h, { row }) => {
  298. const { belongCompanyType } = row
  299. const typeObj = {
  300. GE_JIANG: '格匠',
  301. GUANG_ZHOU: '广州销售公司',
  302. FO_SHAN: '佛山销售公司',
  303. OTHER: '其他销售公司'
  304. }
  305. return <div>{typeObj[belongCompanyType]}</div>
  306. }
  307. },
  308. {
  309. columnAttributes: {
  310. label: '运费结算系数',
  311. prop: 'coefficient',
  312. width: 200
  313. }
  314. },
  315. {
  316. columnAttributes: {
  317. label: '备注',
  318. prop: 'comment',
  319. width: 200
  320. }
  321. },
  322. {
  323. columnAttributes: {
  324. label: '最终运费',
  325. prop: 'cost',
  326. width: 200
  327. }
  328. },
  329. {
  330. columnAttributes: {
  331. label: '客户名称',
  332. prop: 'customerName',
  333. width: 200
  334. }
  335. },
  336. {
  337. columnAttributes: {
  338. label: '客户电话',
  339. prop: 'customerPhone',
  340. width: 200
  341. }
  342. },
  343. {
  344. columnAttributes: {
  345. label: '无法生成的原因',
  346. prop: 'errorResult',
  347. width: 200
  348. }
  349. },
  350. {
  351. columnAttributes: {
  352. label: '是否已经对过帐',
  353. prop: 'isAccountChecking',
  354. width: 200
  355. },
  356. render: (h, { row }) => {
  357. const { isAccountChecking } = row
  358. return <div>{+isAccountChecking ? '是' : '否'}</div>
  359. }
  360. },
  361. {
  362. columnAttributes: {
  363. label: '是否已经审核',
  364. prop: 'isAudit',
  365. width: 200
  366. },
  367. render: (h, { row }) => {
  368. const { isAudit } = row
  369. return <div>{+isAudit ? '是' : '否'}</div>
  370. }
  371. },
  372. {
  373. columnAttributes: {
  374. label: '是否完结',
  375. prop: 'isFinish',
  376. width: 200
  377. },
  378. render: (h, { row }) => {
  379. const { isFinish } = row
  380. return <div>{+isFinish ? '已经完结' : '未完结'}</div>
  381. }
  382. },
  383. {
  384. columnAttributes: {
  385. label: '实际是否卸货',
  386. prop: 'isRealUnload',
  387. width: 200
  388. },
  389. render: (h, { row }) => {
  390. const { isRealUnload } = row
  391. return <div>{+isRealUnload ? '是' : '否'}</div>
  392. }
  393. },
  394. {
  395. columnAttributes: {
  396. label: '实际是否上楼',
  397. prop: 'isRealUpstairs',
  398. width: 200
  399. },
  400. render: (h, { row }) => {
  401. const { isRealUpstairs } = row
  402. return <div>{+isRealUpstairs ? '是' : '否'}</div>
  403. }
  404. },
  405. {
  406. columnAttributes: {
  407. label: '是否卸货',
  408. prop: 'isUnload',
  409. width: 200
  410. },
  411. render: (h, { row }) => {
  412. const { isUnload } = row
  413. return <div>{+isUnload ? '是' : '否'}</div>
  414. }
  415. },
  416. {
  417. columnAttributes: {
  418. label: '是否上楼',
  419. prop: 'isUpstairs',
  420. width: 200
  421. },
  422. render: (h, { row }) => {
  423. const { isUpstairs } = row
  424. return <div>{+isUpstairs ? '是' : '否'}</div>
  425. }
  426. },
  427. {
  428. columnAttributes: {
  429. label: '物料名称',
  430. prop: 'materialCode',
  431. width: 200
  432. }
  433. },
  434. {
  435. columnAttributes: {
  436. label: '计费分类',
  437. prop: 'materialCostType',
  438. width: 200
  439. }
  440. },
  441. {
  442. columnAttributes: {
  443. label: '产品名称',
  444. prop: 'materialName',
  445. width: 200
  446. }
  447. },
  448. {
  449. columnAttributes: {
  450. label: '规格型号',
  451. prop: 'materialSpecification',
  452. width: 350
  453. }
  454. },
  455. {
  456. columnAttributes: {
  457. label: '物料类型',
  458. prop: 'materialType',
  459. width: 200
  460. }
  461. },
  462. {
  463. columnAttributes: {
  464. label: '商家编码',
  465. prop: 'merchantCode',
  466. width: 200
  467. }
  468. },
  469. {
  470. columnAttributes: {
  471. label: '商家名称',
  472. prop: 'merchantName',
  473. width: 200
  474. }
  475. },
  476. {
  477. columnAttributes: {
  478. label: '订单号',
  479. prop: 'orderCode',
  480. width: 200
  481. }
  482. },
  483. {
  484. columnAttributes: {
  485. label: '订单时间',
  486. prop: 'orderDate',
  487. width: 200
  488. }
  489. },
  490. {
  491. columnAttributes: {
  492. label: '订单类型',
  493. prop: 'orderType',
  494. width: 200
  495. },
  496. render: (h, { row }) => {
  497. const { orderType } = row
  498. const typeObj = {
  499. TOB: '商家机工程机类型',
  500. ALL: '所有类型,广州的订单统一 开单价',
  501. TOC: '佛山销售销售订单类型公司'
  502. }
  503. return <div>{typeObj[orderType]}</div>
  504. }
  505. },
  506. {
  507. columnAttributes: {
  508. label: '订单类型细分',
  509. prop: 'orderTypeDetail',
  510. width: 200
  511. },
  512. render: (h, { row }) => {
  513. const { orderType } = row
  514. const typeObj = {
  515. PICKING_UP_ORDER: '前置仓提货订单',
  516. SALE_ORDER: '销售订单',
  517. MERCHANT_WAREHOUSE_ORDER: '商家仓订单',
  518. PROJECT_ORDER: '工程机订单',
  519. SALE_RETURN_ORDER: '销售退货单'
  520. }
  521. return <div>{typeObj[orderType]}</div>
  522. }
  523. },
  524. {
  525. columnAttributes: {
  526. label: '收货送货地址',
  527. prop: 'receiptAddress',
  528. width: 200
  529. }
  530. },
  531. {
  532. columnAttributes: {
  533. label: '退货单号',
  534. prop: 'returnOrderCode',
  535. width: 200
  536. }
  537. },
  538. {
  539. columnAttributes: {
  540. label: '补贴结算系数',
  541. prop: 'subsidyCoefficient',
  542. width: 200
  543. }
  544. },
  545. {
  546. columnAttributes: {
  547. label: '嘉贤创建时间',
  548. prop: 'time',
  549. width: 200
  550. }
  551. },
  552. {
  553. columnAttributes: {
  554. label: '费用汇总',
  555. prop: 'totalCost',
  556. width: 200
  557. }
  558. },
  559. {
  560. columnAttributes: {
  561. label: '单价计算',
  562. prop: 'unitPrice',
  563. width: 200
  564. }
  565. },
  566. {
  567. columnAttributes: {
  568. label: '卸货上楼结算系数',
  569. prop: 'unloadUpstairsCoefficient',
  570. width: 200
  571. }
  572. },
  573. {
  574. columnAttributes: {
  575. label: '上楼卸货费用',
  576. prop: 'unloadUpstairsCost',
  577. width: 200
  578. }
  579. },
  580. {
  581. columnAttributes: {
  582. label: '发货仓库编码',
  583. prop: 'warehouseCode',
  584. width: 200
  585. }
  586. },
  587. {
  588. columnAttributes: {
  589. label: '发货仓库名称',
  590. prop: 'warehouseName',
  591. width: 200
  592. }
  593. }
  594. ]
  595. },
  596. formOutbound() {
  597. return [
  598. {
  599. columnAttributes: {
  600. label: '条码',
  601. prop: 'barCode',
  602. width: 200
  603. }
  604. },
  605. {
  606. columnAttributes: {
  607. label: '出库时间',
  608. prop: 'consignerTime',
  609. width: 200
  610. }
  611. },
  612. {
  613. columnAttributes: {
  614. label: '出库时间',
  615. prop: 'consignerTimeV2',
  616. width: 200
  617. }
  618. },
  619. {
  620. columnAttributes: {
  621. label: '创建人',
  622. prop: 'createBy',
  623. width: 200
  624. }
  625. },
  626. {
  627. columnAttributes: {
  628. label: '创建时间',
  629. prop: 'createTime',
  630. width: 200
  631. }
  632. },
  633. {
  634. columnAttributes: {
  635. label: '送货时间',
  636. prop: 'deliveryTime',
  637. width: 200
  638. }
  639. },
  640. {
  641. columnAttributes: {
  642. label: '送货时间',
  643. prop: 'deliveryTimeV2',
  644. width: 200
  645. }
  646. },
  647. {
  648. columnAttributes: {
  649. label: '物料代码',
  650. prop: 'materialCode',
  651. width: 200
  652. }
  653. },
  654. {
  655. columnAttributes: {
  656. label: '物料类型',
  657. prop: 'materialType',
  658. width: 200
  659. }
  660. },
  661. {
  662. columnAttributes: {
  663. label: '销售订单号',
  664. prop: 'orderNumber',
  665. width: 200
  666. }
  667. },
  668. {
  669. columnAttributes: {
  670. label: '收货人',
  671. prop: 'receiptCompany',
  672. width: 200
  673. }
  674. },
  675. {
  676. columnAttributes: {
  677. label: '商家名称',
  678. prop: 'salesCompany',
  679. width: 200
  680. }
  681. },
  682. {
  683. columnAttributes: {
  684. label: '规格',
  685. prop: 'specification',
  686. width: 350
  687. }
  688. },
  689. {
  690. columnAttributes: {
  691. label: '更新人',
  692. prop: 'updateBy',
  693. width: 200
  694. }
  695. },
  696. {
  697. columnAttributes: {
  698. label: '修改时间',
  699. prop: 'updateTime',
  700. width: 200
  701. }
  702. },
  703. {
  704. columnAttributes: {
  705. label: '发货仓库名称',
  706. prop: 'warehouse',
  707. width: 200
  708. }
  709. }
  710. ]
  711. },
  712. installInfo() {
  713. return [
  714. {
  715. columnAttributes: {
  716. label: '操作类别',
  717. prop: 'type'
  718. }
  719. },
  720. {
  721. columnAttributes: {
  722. label: '操作内容',
  723. prop: 'content'
  724. }
  725. },
  726. {
  727. columnAttributes: {
  728. label: '最后操作时间',
  729. prop: 'updatetime'
  730. }
  731. },
  732. {
  733. columnAttributes: {
  734. label: '操作人',
  735. prop: 'operator'
  736. }
  737. }
  738. ]
  739. },
  740. installBarCdoe() {
  741. return [
  742. {
  743. columnAttributes: {
  744. label: '产品类型',
  745. prop: 'barCode'
  746. }
  747. },
  748. {
  749. columnAttributes: {
  750. label: '机型条码',
  751. prop: 'barCode'
  752. }
  753. },
  754. {
  755. columnAttributes: {
  756. label: '条码类型',
  757. prop: 'barCode'
  758. }
  759. },
  760. {
  761. columnAttributes: {
  762. label: '状态',
  763. prop: 'barCode'
  764. }
  765. },
  766. {
  767. columnAttributes: {
  768. label: '采集来源',
  769. prop: 'barCode'
  770. }
  771. },
  772. {
  773. columnAttributes: {
  774. label: '采集时间',
  775. prop: 'barCode'
  776. }
  777. }
  778. ]
  779. },
  780. formInstall() {
  781. return [
  782. {
  783. columnAttributes: {
  784. label: '产品类型',
  785. prop: 'specification'
  786. }
  787. },
  788. {
  789. columnAttributes: {
  790. label: '机型条码',
  791. prop: 'barCode'
  792. }
  793. },
  794. {
  795. columnAttributes: {
  796. label: '条码类型',
  797. prop: 'materialType'
  798. }
  799. },
  800. {
  801. columnAttributes: {
  802. label: '状态',
  803. prop: 'orderState'
  804. },
  805. render: (h, { row }) => {
  806. const { orderState } = row
  807. return <div>{orderState[orderState]}</div>
  808. }
  809. },
  810. {
  811. columnAttributes: {
  812. label: '采集来源',
  813. prop: 'verificationStatus'
  814. },
  815. render: (h, { row }) => {
  816. const { verificationStatus } = row
  817. const typeObj = {
  818. 1: '广佛设备',
  819. 2: '非广佛设备'
  820. }
  821. return <div>{typeObj[verificationStatus]}</div>
  822. }
  823. },
  824. {
  825. columnAttributes: {
  826. label: '采集时间',
  827. prop: 'createTime'
  828. }
  829. }
  830. ]
  831. }
  832. },
  833. mounted() {
  834. if (this.details && this.details.stockType == 2) {
  835. this.tabsList = [
  836. {
  837. label: '安装信息',
  838. value: 4,
  839. show: true,
  840. fun: this.getInstalDetail
  841. },
  842. {
  843. label: '安装条码',
  844. value: 5,
  845. show: true,
  846. fun: this.getListInstallCodeV2
  847. }]
  848. }
  849. this.getOrderTrackList2()
  850. },
  851. methods: {
  852. handleChange() {
  853. this.tabsList[this.curTarget - 1].fun()
  854. },
  855. getOrderTrackList2() {
  856. getOrderTrackList2({
  857. pageNum: 1,
  858. pageSize: -1,
  859. params: [
  860. {
  861. param: 'sale_code',
  862. compare: '=',
  863. value: this.jiaxianOrderId
  864. }
  865. ]
  866. }).then(res => {
  867. this.logisticsDetail = res.data.records
  868. })
  869. },
  870. getListCostBillV2() {
  871. getListCostBillV2({
  872. pageNum: 1,
  873. pageSize: -1,
  874. params: [
  875. {
  876. param: 'order_code',
  877. compare: '=',
  878. value: this.jiaxianOrderId
  879. }
  880. ]
  881. }).then(res => {
  882. res.data.records.forEach(item => {
  883. item.sums1 = ['orderHasSendQty', 'subsidyCoefficient', 'unloadUpstairsCoefficient', 'coefficient']
  884. item.sums2 = ['cost', 'unitPrice', 'totalCost', 'allowanceCost']
  885. })
  886. this.logisticsData = res.data.records
  887. })
  888. },
  889. getListCodeV2() {
  890. getListCodeV2({
  891. pageNum: 1,
  892. pageSize: -1,
  893. params: [
  894. {
  895. param: 'order_number',
  896. compare: '=',
  897. value: this.jiaxianOrderId
  898. }
  899. ]
  900. }).then(res => {
  901. this.outboundData = res.data.records
  902. })
  903. },
  904. getListInstallCodeV2() {
  905. getListInstallCodeV2({
  906. pageNum: 1,
  907. pageSize: -1
  908. }).then(res => {
  909. this.instalLList = res.data.records
  910. })
  911. },
  912. getInstalDetail() {
  913. getInstalDetail({ gongDanId: this.gongDanId }).then(res => {
  914. this.installDetail = res.data || {}
  915. this.installDetail.logs = this.installDetail.logs.sort((a, b) => b.id - a.id)
  916. })
  917. },
  918. copy() {
  919. const clipboard = new Clipboard('.tag-read')
  920. // clipboard.on('success', e => {
  921. // this.$successMsg('复制成功');
  922. // })
  923. clipboard.on('error', e => {
  924. console.log('该浏览器不支持复制')
  925. return false
  926. })
  927. this.$successMsg('复制成功')
  928. }
  929. }
  930. }
  931. </script>
  932. <style lang="scss" scoped>
  933. ::v-deep .el-timeline-item__tail {
  934. border-left: 2px solid #67c23a;
  935. }
  936. ::v-deep .el-form-item__content {
  937. line-height: 33px;
  938. }
  939. .logistics-title {
  940. padding: 10px;
  941. }
  942. .logistics {
  943. margin: 20px 0;
  944. }
  945. </style>