index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. v-show="showSearch"
  7. label-width="100px"
  8. size="mini"
  9. >
  10. <el-row>
  11. <el-col :span="6">
  12. <el-form-item label="客户名称" prop="corpId">
  13. <el-select
  14. v-model="queryParams.corpId"
  15. placeholder="请输入客户名称"
  16. clearable
  17. size="small"
  18. filterable
  19. >
  20. <el-option
  21. v-for="(dict, index) in fMblnoOptions"
  22. :key="index.fId"
  23. :label="dict.fName"
  24. :value="dict.fId"
  25. />
  26. </el-select> </el-form-item
  27. ></el-col>
  28. <el-col :span="6">
  29. <el-form-item label-width="100px" label="业务类型" prop="billType">
  30. <el-select
  31. v-model="queryParams.billType"
  32. placeholder="请选择业务类型"
  33. clearable
  34. size="small"
  35. >
  36. <el-option
  37. v-for="(dict, index) in billTypeList"
  38. :key="index.dictValue"
  39. :label="dict.dictLabel"
  40. :value="dict.dictValue"
  41. />
  42. </el-select>
  43. </el-form-item>
  44. </el-col>
  45. <el-col :span="6">
  46. <el-form-item label-width="100px" label="运输方式" prop="transType">
  47. <el-select
  48. v-model="queryParams.transType"
  49. placeholder="请选择运输方式"
  50. clearable
  51. size="small"
  52. >
  53. <el-option
  54. v-for="(dict, index) in transTypeList"
  55. :key="index.dictValue"
  56. :label="dict.dictLabel"
  57. :value="dict.dictValue"
  58. />
  59. </el-select>
  60. </el-form-item>
  61. </el-col>
  62. <el-col :span="6">
  63. <el-form-item label-width="100px" label="运输性质" prop="transProp">
  64. <el-select
  65. v-model="queryParams.transProp"
  66. placeholder="请选择运输性质"
  67. clearable
  68. size="small"
  69. >
  70. <el-option
  71. v-for="(dict, index) in transPropList"
  72. :key="index.dictValue"
  73. :label="dict.dictLabel"
  74. :value="dict.dictValue"
  75. />
  76. </el-select>
  77. </el-form-item>
  78. </el-col>
  79. </el-row>
  80. <el-collapse-transition>
  81. <div v-show="show">
  82. <el-row>
  83. <el-col :span="6">
  84. <el-form-item label-width="100px" label="提单号" prop="mblno">
  85. <el-input
  86. v-model="queryParams.mblno"
  87. placeholder="请输入提单号"
  88. clearable
  89. size="small"
  90. @keyup.enter.native="handleQuery"
  91. style="max-width: 187px"
  92. />
  93. </el-form-item>
  94. </el-col>
  95. <el-col :span="6">
  96. <el-form-item label-width="100px" label="货品名称" prop="goodsId">
  97. <el-select
  98. v-model="queryParams.goodsId"
  99. placeholder="请输入货品名称"
  100. clearable
  101. size="small"
  102. filterable
  103. >
  104. <el-option
  105. v-for="(dict, index) in goodsOptions"
  106. :key="index.fId"
  107. :label="dict.fName"
  108. :value="dict.fId"
  109. />
  110. </el-select>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="6">
  114. <el-form-item
  115. label-width="100px"
  116. label="提箱地点"
  117. prop="loadAddr"
  118. >
  119. <el-input
  120. v-model="queryParams.loadAddr"
  121. placeholder="请输入提箱地点"
  122. clearable
  123. size="small"
  124. @keyup.enter.native="handleQuery"
  125. style="max-width: 187px"
  126. />
  127. </el-form-item>
  128. </el-col>
  129. <el-col :span="6">
  130. <el-form-item
  131. label-width="100px"
  132. label="装卸货地点"
  133. prop="mdLoadAddr"
  134. >
  135. <el-input
  136. v-model="queryParams.mdLoadAddr"
  137. placeholder="请输入装卸货地点"
  138. clearable
  139. size="small"
  140. @keyup.enter.native="handleQuery"
  141. style="max-width: 187px"
  142. /> </el-form-item
  143. ></el-col>
  144. </el-row>
  145. <el-row>
  146. <el-col :span="6"
  147. ><el-form-item
  148. label-width="100px"
  149. label="卸箱地点"
  150. prop="unLoadAddr"
  151. >
  152. <el-input
  153. v-model="queryParams.unLoadAddr"
  154. placeholder="请输入卸箱地点"
  155. clearable
  156. size="small"
  157. @keyup.enter.native="handleQuery"
  158. style="max-width: 187px"
  159. /> </el-form-item
  160. ></el-col>
  161. </el-row>
  162. </div>
  163. </el-collapse-transition>
  164. <el-form-item>
  165. <el-button
  166. type="cyan"
  167. icon="el-icon-search"
  168. size="mini"
  169. @click="handleQuery"
  170. >搜索</el-button
  171. >
  172. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  173. >重置</el-button
  174. >
  175. <el-button
  176. v-show="show"
  177. @click="show = !show"
  178. icon="el-icon-arrow-up"
  179. size="mini"
  180. >展开</el-button
  181. >
  182. <el-button
  183. v-show="!show"
  184. @click="show = !show"
  185. icon="el-icon-arrow-down"
  186. size="mini"
  187. >展开</el-button
  188. >
  189. </el-form-item>
  190. </el-form>
  191. <el-row :gutter="10" class="mb8">
  192. <!-- <el-col :span="1.5">
  193. <el-button
  194. type="primary"
  195. icon="el-icon-plus"
  196. size="mini"
  197. @click="handleAdd"
  198. v-hasPermi="['fleet:plans:add']"
  199. >新增</el-button
  200. >
  201. </el-col> -->
  202. <el-col :span="1.5">
  203. <el-button
  204. type="success"
  205. icon="el-icon-edit"
  206. size="mini"
  207. :disabled="single"
  208. @click="handleUpdate"
  209. v-hasPermi="['fleet:plans:edit']"
  210. >修改</el-button
  211. >
  212. </el-col>
  213. <el-col :span="1.5">
  214. <el-button
  215. type="danger"
  216. icon="el-icon-delete"
  217. size="mini"
  218. :disabled="multiple"
  219. @click="handleDelete"
  220. v-hasPermi="['fleet:plans:remove']"
  221. >删除</el-button
  222. >
  223. </el-col>
  224. <el-col :span="1.5">
  225. <el-button
  226. type="warning"
  227. icon="el-icon-download"
  228. size="mini"
  229. @click="handleExport"
  230. v-hasPermi="['fleet:plans:export']"
  231. >导出</el-button
  232. >
  233. </el-col>
  234. <div class="tabSetting">
  235. <right-toolbar
  236. :showSearch.sync="showSearch"
  237. @queryTable="getList"
  238. ></right-toolbar>
  239. <div style="margin: 0 12px">
  240. <el-button
  241. icon="el-icon-setting"
  242. size="mini"
  243. circle
  244. @click="showSetting = !showSetting"
  245. ></el-button>
  246. </div>
  247. </div>
  248. </el-row>
  249. <el-dialog title="提示" :visible.sync="showSetting" width="700px">
  250. <div>配置排序列数据(拖动调整顺序)</div>
  251. <div style="margin-left: 17px">
  252. <el-checkbox
  253. v-model="allCheck"
  254. label="全选"
  255. @change="allChecked"
  256. ></el-checkbox>
  257. </div>
  258. <div style="padding: 4px; display: flex; justify-content: center">
  259. <draggable
  260. v-model="setRowList"
  261. group="site"
  262. animation="300"
  263. @start="onStart"
  264. @end="onEnd"
  265. handle=".indraggable"
  266. >
  267. <transition-group>
  268. <div
  269. v-for="item in setRowList"
  270. :key="item.surface"
  271. class="listStyle"
  272. >
  273. <div style="width: 500px" class="indraggable">
  274. <div class="progress" :style="{ width: item.width + 'px' }">
  275. <el-checkbox
  276. :label="item.name"
  277. v-model="item.checked"
  278. :true-label="0"
  279. :false-label="1"
  280. >{{ item.name }}
  281. </el-checkbox>
  282. </div>
  283. </div>
  284. <el-input-number
  285. v-model.number="item.width"
  286. controls-position="right"
  287. :min="1"
  288. :max="500"
  289. size="mini"
  290. ></el-input-number>
  291. </div>
  292. </transition-group>
  293. </draggable>
  294. </div>
  295. <span slot="footer" class="dialog-footer">
  296. <el-button @click="showSetting = false">取 消</el-button>
  297. <el-button type="primary" @click="save()">确 定</el-button>
  298. </span>
  299. </el-dialog>
  300. <el-table
  301. v-loading="loading"
  302. :data="ftmsorderbillscarsList"
  303. @selection-change="handleSelectionChange"
  304. >
  305. <el-table-column type="selection" width="55" align="center" />
  306. <el-table-column
  307. v-for="(item, index) in getRowList"
  308. :key="index"
  309. :label="item.name"
  310. :width="item.width"
  311. :prop="item.label"
  312. align="center"
  313. :show-overflow-tooltip="true"
  314. sortable
  315. />
  316. <el-table-column
  317. label="操作"
  318. align="center"
  319. class-name="small-padding fixed-width"
  320. fixed="right"
  321. width="150px"
  322. >
  323. <template slot-scope="scope">
  324. <el-button
  325. size="mini"
  326. type="text"
  327. icon="el-icon-edit"
  328. @click="handleUpdate(scope.row)"
  329. >查看</el-button
  330. >
  331. <!-- <el-button
  332. v-if="scope.row.billStatus != 6"
  333. size="mini"
  334. type="text"
  335. icon="el-icon-edit"
  336. @click="handleUpdate(scope.row)"
  337. v-hasPermi="['fleet:plans:edit']"
  338. >修改</el-button
  339. > -->
  340. <el-button
  341. size="mini"
  342. type="text"
  343. icon="el-icon-delete"
  344. @click="handleDelete(scope.row)"
  345. v-hasPermi="['fleet:plans:remove']"
  346. >删除</el-button
  347. >
  348. </template>
  349. </el-table-column>
  350. </el-table>
  351. <pagination
  352. v-show="total > 0"
  353. :total="total"
  354. :page.sync="queryParams.pageNum"
  355. :limit.sync="queryParams.pageSize"
  356. @pagination="getList"
  357. />
  358. <!-- 新增编辑弹框子组件 -->
  359. <add-or-update
  360. :addOrUpdateVisible="addOrUpdateVisible"
  361. :title="title"
  362. :form="form"
  363. :DList="DList"
  364. :CList="CList"
  365. :disabled="disabled"
  366. @changeShow="showAddOrUpdate"
  367. ref="addOrUpdateRef"
  368. ></add-or-update>
  369. </div>
  370. </template>
  371. <script>
  372. import AddOrUpdate from "./AddOrUpdate.vue";
  373. import {
  374. delFtmsorderbills,
  375. exportFtmsorderbills,
  376. } from "@/api/fleet/ftmsorderbills";
  377. import {
  378. listFtmsorderbillscars,
  379. selectDriverFtmsorderbillscars,
  380. } from "@/api/fleet/ftmsorderbillscars";
  381. import { listGoods } from "@/api/basicdata/goods";
  382. import { listCorps } from "@/api/basicdata/corps";
  383. import { addSet, select } from "@/api/system/set";
  384. import Cookies from "js-cookie";
  385. import draggable from "vuedraggable";
  386. export default {
  387. name: "plans",
  388. data() {
  389. return {
  390. // 控制新增编辑弹窗的显示与隐藏
  391. addOrUpdateVisible: false,
  392. // 非单个禁用
  393. single: true,
  394. // 非多个禁用
  395. multiple: true,
  396. // 显示搜索条件
  397. showSearch: true,
  398. // 订单主表格数据
  399. ftmsorderbillscarsList: [],
  400. // 总条数
  401. total: 0,
  402. // 查询参数
  403. queryParams: {
  404. pageNum: 1,
  405. pageSize: 10,
  406. corpId: null,
  407. billType: null,
  408. transType: null,
  409. transProp: null,
  410. goodsId: null,
  411. mblno: null,
  412. loadAddr: null,
  413. mdLoadAddr: null,
  414. unLoadAddr: null,
  415. },
  416. showSetting: false,
  417. drag: false,
  418. setRowList: [
  419. {
  420. surface: "1",
  421. label: "mblno",
  422. name: "提单号",
  423. checked: 0,
  424. width: 100,
  425. },
  426. {
  427. surface: "2",
  428. label: "carregNo",
  429. name: "车号",
  430. checked: 0,
  431. width: 100,
  432. },
  433. {
  434. surface: "3",
  435. label: "orderStatus",
  436. name: "订单状态",
  437. checked: 0,
  438. width: 100,
  439. },
  440. {
  441. surface: "4",
  442. label: "acceptDate",
  443. name: "接单时间",
  444. checked: 0,
  445. width: 100,
  446. },
  447. {
  448. surface: "5",
  449. label: "loadDate",
  450. name: "提箱时间",
  451. checked: 0,
  452. width: 100,
  453. },
  454. {
  455. surface: "6",
  456. label: "loadAddr",
  457. name: "提箱地点",
  458. checked: 0,
  459. width: 100,
  460. },
  461. {
  462. surface: "7",
  463. label: "mdLoadDate",
  464. name: "装卸货时间",
  465. checked: 0,
  466. width: 110,
  467. },
  468. {
  469. surface: "8",
  470. label: "mdLoadAddr",
  471. name: "装卸货地点",
  472. checked: 0,
  473. width: 110,
  474. },
  475. {
  476. surface: "9",
  477. label: "unLoadDate",
  478. name: "还卸柜时间",
  479. checked: 0,
  480. width: 110,
  481. },
  482. {
  483. surface: "10",
  484. label: "unLoadAddr",
  485. name: "还卸柜地点",
  486. checked: 0,
  487. width: 110,
  488. },
  489. {
  490. surface: "11",
  491. label: "waybillDate",
  492. name: "回单时间",
  493. checked: 0,
  494. width: 100,
  495. },
  496. ],
  497. getRowList: [
  498. {
  499. surface: "1",
  500. label: "mblno",
  501. name: "提单号",
  502. checked: 0,
  503. width: 100,
  504. },
  505. {
  506. surface: "2",
  507. label: "carregNo",
  508. name: "车号",
  509. checked: 0,
  510. width: 100,
  511. },
  512. {
  513. surface: "3",
  514. label: "orderStatus",
  515. name: "订单状态",
  516. checked: 0,
  517. width: 100,
  518. },
  519. {
  520. surface: "4",
  521. label: "acceptDate",
  522. name: "接单时间",
  523. checked: 0,
  524. width: 100,
  525. },
  526. {
  527. surface: "5",
  528. label: "loadDate",
  529. name: "提箱时间",
  530. checked: 0,
  531. width: 100,
  532. },
  533. {
  534. surface: "6",
  535. label: "loadAddr",
  536. name: "提箱地点",
  537. checked: 0,
  538. width: 100,
  539. },
  540. {
  541. surface: "7",
  542. label: "mdLoadDate",
  543. name: "装卸货时间",
  544. checked: 0,
  545. width: 110,
  546. },
  547. {
  548. surface: "8",
  549. label: "mdLoadAddr",
  550. name: "装卸货地点",
  551. checked: 0,
  552. width: 110,
  553. },
  554. {
  555. surface: "9",
  556. label: "unLoadDate",
  557. name: "还卸柜时间",
  558. checked: 0,
  559. width: 110,
  560. },
  561. {
  562. surface: "10",
  563. label: "unLoadAddr",
  564. name: "还卸柜地点",
  565. checked: 0,
  566. width: 110,
  567. },
  568. {
  569. surface: "11",
  570. label: "waybillDate",
  571. name: "回单时间",
  572. checked: 0,
  573. width: 100,
  574. },
  575. ],
  576. allCheck: false,
  577. title: "",
  578. form: {},
  579. DList: [],
  580. CList: [],
  581. disabled: false,
  582. goodsOptions: [],
  583. fMblnoOptions: [],
  584. transPropList: [],
  585. transTypeList: [],
  586. billTypeList: [],
  587. show: false,
  588. };
  589. },
  590. // 使用子组件
  591. components: {
  592. AddOrUpdate,
  593. draggable,
  594. },
  595. created() {
  596. this.getList();
  597. this.getDicts("data_billType").then((response) => {
  598. this.billTypeList = response.data;
  599. });
  600. this.getDicts("data_transType").then((response) => {
  601. this.transTypeList = response.data;
  602. });
  603. this.getDicts("data_transProp").then((response) => {
  604. this.transPropList = response.data;
  605. });
  606. listGoods().then((response) => {
  607. this.goodsOptions = response.rows;
  608. });
  609. listCorps().then((response) => {
  610. this.fMblnoOptions = response.rows;
  611. });
  612. this.getRow();
  613. },
  614. methods: {
  615. //列设置全选
  616. allChecked() {
  617. if (this.allCheck == true) {
  618. this.setRowList.map((e) => {
  619. return (e.checked = 0);
  620. });
  621. } else {
  622. this.setRowList.map((e) => {
  623. return (e.checked = 1);
  624. });
  625. }
  626. },
  627. //查询列数据
  628. getRow() {
  629. let that = this;
  630. this.data = {
  631. tableName: "接单",
  632. userId: Cookies.get("userName"),
  633. };
  634. select(this.data).then((res) => {
  635. if (res.data.length != 0) {
  636. this.getRowList = res.data.filter((e) => e.checked == 0);
  637. this.setRowList = res.data;
  638. this.setRowList = this.setRowList.reduce((res, item) => {
  639. res.push({
  640. surface: item.surface,
  641. label: item.label,
  642. name: item.name,
  643. checked: item.checked,
  644. width: item.width,
  645. });
  646. return res;
  647. }, []);
  648. }
  649. });
  650. },
  651. //保存列设置
  652. save() {
  653. this.showSetting = false;
  654. this.data = {
  655. tableName: "接单",
  656. userId: Cookies.get("userName"),
  657. sysTableSetList: this.setRowList,
  658. };
  659. addSet(this.data).then((res) => {
  660. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  661. });
  662. },
  663. //开始拖拽事件
  664. onStart() {
  665. this.drag = true;
  666. },
  667. //拖拽结束事件
  668. onEnd() {
  669. this.drag = false;
  670. },
  671. /** 查询订单主列表 */
  672. getList() {
  673. this.loading = true;
  674. listFtmsorderbillscars(this.queryParams).then((response) => {
  675. response.rows.map((e) => {
  676. if (e.orderStatus == 10) {
  677. e.orderStatus = "车队安排";
  678. }
  679. if (e.orderStatus == 20) {
  680. e.orderStatus = "司机受理";
  681. }
  682. if (e.orderStatus == 30) {
  683. e.orderStatus = "司机出车";
  684. }
  685. if (e.orderStatus == 40) {
  686. e.orderStatus = "提箱";
  687. }
  688. if (e.orderStatus == 50) {
  689. e.orderStatus = "装卸货";
  690. }
  691. if (e.orderStatus == 60) {
  692. e.orderStatus = "还卸柜";
  693. }
  694. if (e.orderStatus == 70) {
  695. e.orderStatus = "费用确认";
  696. }
  697. if (e.orderStatus == 80) {
  698. e.orderStatus = "回单";
  699. }
  700. if (e.loadDate) {
  701. this.$set(e, "loadDate", e.loadDate.substring(0, 10));
  702. }
  703. if (e.acceptDate) {
  704. this.$set(e, "acceptDate", e.acceptDate.substring(0, 10));
  705. }
  706. if (e.mdLoadDate) {
  707. this.$set(e, "mdLoadDate", e.mdLoadDate.substring(0, 10));
  708. }
  709. if (e.unLoadDate) {
  710. this.$set(e, "unLoadDate", e.unLoadDate.substring(0, 10));
  711. }
  712. if (e.waybillDate) {
  713. e.waybillDate = e.waybillDate.substring(0, 10);
  714. }
  715. });
  716. this.ftmsorderbillscarsList = response.rows;
  717. this.total = response.total;
  718. this.loading = false;
  719. });
  720. },
  721. /** 新增按钮操作 */
  722. handleAdd() {
  723. this.reset();
  724. this.addOrUpdateVisible = !this.addOrUpdateVisible;
  725. this.title = "添加订单主";
  726. },
  727. // 表单重置
  728. reset() {
  729. this.form = {
  730. id: null,
  731. billNo: null,
  732. actId: null,
  733. corpId: null,
  734. transUserName: null,
  735. planUserName: null,
  736. billType: null,
  737. transType: null,
  738. transProp: null,
  739. ifContracted: null,
  740. contractNo: null,
  741. refNo: null,
  742. accstlType: null,
  743. accdays: null,
  744. goodsId: null,
  745. goodsPrice: null,
  746. goodsLossType: null,
  747. goodsLossStd: null,
  748. mblno: null,
  749. ysl: null,
  750. voy: null,
  751. pol: null,
  752. pod: null,
  753. qtyPlan: null,
  754. qtyDisPatch: null,
  755. weightPlan: null,
  756. cntrDesc: null,
  757. carNoList: null,
  758. loadAddr: null,
  759. loadAttn: null,
  760. loadAttntel: null,
  761. loadDate: null,
  762. mdLoadAddr: null,
  763. mdLoadAttn: null,
  764. mdLoadAttnTel: null,
  765. mdLoadDate: null,
  766. unLoadAddr: null,
  767. unLoadAttn: null,
  768. unLoadAttnTel: null,
  769. unLoadDate: null,
  770. routeId: null,
  771. routeDesc: null,
  772. ifWaybill: null,
  773. ifNeedinvDr: null,
  774. postDate: null,
  775. billStatus: 0,
  776. delFlag: null,
  777. createBy: null,
  778. createTime: null,
  779. updateBy: null,
  780. updateTime: null,
  781. remarks: null,
  782. };
  783. this.resetForm("form");
  784. },
  785. // 多选框选中数据
  786. handleSelectionChange(selection) {
  787. this.ids = selection.map((item) => item.id);
  788. this.single = selection.length !== 1;
  789. this.multiple = !selection.length;
  790. },
  791. /** 修改按钮操作 */
  792. handleUpdate(row) {
  793. this.reset();
  794. const data = { id: row.id, billStatus: 1030 };
  795. selectDriverFtmsorderbillscars(data).then((response) => {
  796. if (response.data.cars.billType != null) {
  797. response.data.cars.billType = response.data.cars.billType.toString();
  798. }
  799. if (response.data.fees.length) {
  800. response.data.fees.map((e) => {
  801. if (e.fFeeunitid) {
  802. e.fFeeunitid = e.fFeeunitid.toString();
  803. }
  804. });
  805. this.DList = response.data.fees.filter((e) => e.fDc == "D");
  806. this.CList = response.data.fees.filter((e) => e.fDc == "C");
  807. } else {
  808. this.DList = [];
  809. this.CList = [];
  810. }
  811. this.disabled = false;
  812. this.title = "查看接单";
  813. this.form = response.data.cars;
  814. this.addOrUpdateVisible = !this.addOrUpdateVisible;
  815. });
  816. },
  817. // //获取到保存并复制
  818. // getSave(data) {
  819. // data.data.map((e) => {s
  820. // if (e.cntrId != null) {
  821. // return (e.cntrId = e.cntrId.toString());
  822. // }
  823. // });
  824. // this.vehicleList = data.data;
  825. // },
  826. /** 删除按钮操作 */
  827. handleDelete(row) {
  828. const ids = row.id || this.ids;
  829. this.$confirm('是否确认删除订单主编号为"' + ids + '"的数据项?', "警告", {
  830. confirmButtonText: "确定",
  831. cancelButtonText: "取消",
  832. type: "warning",
  833. })
  834. .then(function () {
  835. return delFtmsorderbills(ids);
  836. })
  837. .then(() => {
  838. this.getList();
  839. this.msgSuccess("删除成功");
  840. });
  841. },
  842. /** 导出按钮操作 */
  843. handleExport() {
  844. const queryParams = this.queryParams;
  845. this.$confirm("是否确认导出所有订单主数据项?", "警告", {
  846. confirmButtonText: "确定",
  847. cancelButtonText: "取消",
  848. type: "warning",
  849. })
  850. .then(function () {
  851. return exportFtmsorderbills(queryParams);
  852. })
  853. .then((response) => {
  854. this.download(response.msg);
  855. });
  856. },
  857. /** 搜索按钮操作 */
  858. handleQuery() {
  859. this.queryParams.pageNum = 1;
  860. this.getList();
  861. },
  862. /** 重置按钮操作 */
  863. resetQuery() {
  864. this.resetForm("queryForm");
  865. this.handleQuery();
  866. },
  867. // 监听 子组件弹窗关闭后触发,有子组件调用
  868. showAddOrUpdate(data) {
  869. if (data === "false") {
  870. this.addOrUpdateVisible = false;
  871. } else {
  872. this.addOrUpdateVisible = true;
  873. }
  874. },
  875. },
  876. };
  877. </script>
  878. <style lang="scss" scoped>
  879. .tabSetting {
  880. display: flex;
  881. justify-content: flex-end;
  882. }
  883. .listStyle {
  884. display: flex;
  885. border-top: 1px solid #dcdfe6;
  886. border-left: 1px solid #dcdfe6;
  887. border-right: 1px solid #dcdfe6;
  888. }
  889. .listStyle:last-child {
  890. border-bottom: 1px solid #dcdfe6;
  891. }
  892. .progress {
  893. display: flex;
  894. align-items: center;
  895. padding: 2px;
  896. background-color: rgba(0, 0, 0, 0.05);
  897. height: 100%;
  898. }
  899. </style>