index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  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="refno1">
  13. <el-select
  14. v-model="queryParams.refno1"
  15. placeholder="请输入客户名称"
  16. clearable
  17. size="small"
  18. filterable
  19. >
  20. <el-option
  21. v-for="(dict, index) in factIdOptions"
  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="rbillId">
  30. <el-select
  31. v-model="queryParams.rbillId"
  32. placeholder="请选择业务类型"
  33. clearable
  34. size="small"
  35. multiple
  36. >
  37. </el-select>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :span="6">
  41. <el-form-item label-width="100px" label="提单号" prop="actId">
  42. <el-input
  43. v-model="queryParams.actId"
  44. placeholder="请输入提单号"
  45. clearable
  46. size="small"
  47. @keyup.enter.native="handleQuery"
  48. style="max-width: 187px"
  49. />
  50. </el-form-item>
  51. </el-col>
  52. <el-col :span="6">
  53. <el-form-item label-width="100px" label="系统编号" prop="billNo">
  54. <el-input
  55. v-model="queryParams.billNo"
  56. placeholder="请输入系统编号"
  57. clearable
  58. size="small"
  59. @keyup.enter.native="handleQuery"
  60. style="max-width: 187px"
  61. />
  62. </el-form-item>
  63. </el-col>
  64. </el-row>
  65. <el-collapse-transition>
  66. <div v-show="show">
  67. <el-row>
  68. <el-col :span="6">
  69. <el-form-item
  70. label-width="100px"
  71. label="请核人"
  72. prop="sendUserId"
  73. >
  74. <el-select
  75. v-model="queryParams.sendUserId"
  76. placeholder="请选择请核人"
  77. clearable
  78. size="small"
  79. multiple
  80. >
  81. </el-select>
  82. </el-form-item>
  83. </el-col>
  84. <el-col :span="6">
  85. <el-form-item
  86. label-width="100px"
  87. label="审核人"
  88. prop="auditUserId"
  89. >
  90. <el-select
  91. v-model="queryParams.auditUserId"
  92. placeholder="请输入审核人"
  93. clearable
  94. size="small"
  95. multiple
  96. >
  97. </el-select>
  98. </el-form-item>
  99. </el-col>
  100. <el-col :span="6">
  101. <el-form-item
  102. label-width="100px"
  103. label="提交日期"
  104. prop="sendTime"
  105. >
  106. <el-date-picker
  107. v-model="queryParams.sendTime"
  108. size="small"
  109. @keyup.enter.native="handleQuery"
  110. style="max-width: 187px"
  111. type="datetimerange"
  112. align="right"
  113. start-placeholder="开始日期"
  114. end-placeholder="结束日期"
  115. :default-time="['00:00:00', '23:59:59']"
  116. >
  117. </el-date-picker>
  118. </el-form-item>
  119. </el-col>
  120. <el-col :span="6">
  121. <el-form-item
  122. label-width="100px"
  123. label="业务日期"
  124. prop="billTime"
  125. >
  126. <el-date-picker
  127. v-model="queryParams.billTime"
  128. placeholder="请输入业务日期"
  129. clearable
  130. size="small"
  131. @keyup.enter.native="handleQuery"
  132. style="max-width: 187px"
  133. type="date"
  134. >
  135. </el-date-picker> </el-form-item
  136. ></el-col>
  137. </el-row>
  138. <el-row>
  139. <el-col :span="6"
  140. ><el-form-item
  141. label-width="100px"
  142. label="审核日期"
  143. prop="auditOpTime"
  144. >
  145. <el-date-picker
  146. v-model="queryParams.auditOpTime"
  147. placeholder="请输入审核日期"
  148. clearable
  149. size="small"
  150. @keyup.enter.native="handleQuery"
  151. style="max-width: 187px"
  152. type="date"
  153. >
  154. </el-date-picker></el-form-item
  155. ></el-col>
  156. </el-row>
  157. </div>
  158. </el-collapse-transition>
  159. </el-form>
  160. <el-row :gutter="10" class="mb8">
  161. <el-col :span="1.5">
  162. <el-button size="mini" @click="handleQuery">全部</el-button></el-col
  163. >
  164. <el-col :span="1.5">
  165. <el-button size="mini" @click="handleQuery">待审业务</el-button></el-col
  166. >
  167. <el-col :span="1.5">
  168. <el-button size="mini" @click="handleQuery">审核中</el-button></el-col
  169. >
  170. <el-col :span="1.5">
  171. <el-button size="mini" @click="handleQuery">审核通过</el-button></el-col
  172. >
  173. <div class="tabSetting">
  174. <div style="margin-right: 20px">
  175. <el-button
  176. type="cyan"
  177. icon="el-icon-search"
  178. size="mini"
  179. @click="handleQuery"
  180. >搜索</el-button
  181. >
  182. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  183. >重置</el-button
  184. >
  185. <el-button
  186. v-show="show"
  187. @click="show = !show"
  188. icon="el-icon-arrow-up"
  189. size="mini"
  190. >展开</el-button
  191. >
  192. <el-button
  193. v-show="!show"
  194. @click="show = !show"
  195. icon="el-icon-arrow-down"
  196. size="mini"
  197. >展开</el-button
  198. >
  199. </div>
  200. <right-toolbar
  201. :showSearch.sync="showSearch"
  202. @queryTable="getList"
  203. ></right-toolbar>
  204. <div style="margin: 0 12px">
  205. <el-tooltip
  206. class="item"
  207. effect="dark"
  208. content="列设置"
  209. placement="top"
  210. >
  211. <el-button
  212. icon="el-icon-setting"
  213. size="mini"
  214. circle
  215. @click="showSetting = !showSetting"
  216. ></el-button>
  217. </el-tooltip>
  218. </div>
  219. </div>
  220. </el-row>
  221. <el-dialog title="自定义列显示" :visible.sync="showSetting" width="700px">
  222. <div>配置排序列数据(拖动调整顺序)</div>
  223. <div style="margin-left: 17px">
  224. <el-checkbox
  225. v-model="allCheck"
  226. label="全选"
  227. @change="allChecked"
  228. ></el-checkbox>
  229. </div>
  230. <div style="padding: 4px; display: flex; justify-content: center">
  231. <draggable
  232. v-model="setRowList"
  233. group="site"
  234. animation="300"
  235. @start="onStart"
  236. @end="onEnd"
  237. handle=".indraggable"
  238. >
  239. <transition-group>
  240. <div
  241. v-for="item in setRowList"
  242. :key="item.surface"
  243. class="listStyle"
  244. >
  245. <div style="width: 500px" class="indraggable">
  246. <div class="progress" :style="{ width: item.width + 'px' }">
  247. <el-checkbox
  248. :label="item.name"
  249. v-model="item.checked"
  250. :true-label="0"
  251. :false-label="1"
  252. >{{ item.name }}
  253. </el-checkbox>
  254. </div>
  255. </div>
  256. <el-input-number
  257. v-model.number="item.width"
  258. controls-position="right"
  259. :min="1"
  260. :max="500"
  261. size="mini"
  262. ></el-input-number>
  263. </div>
  264. </transition-group>
  265. </draggable>
  266. </div>
  267. <span slot="footer" class="dialog-footer">
  268. <el-button @click="showSetting = false">取 消</el-button>
  269. <el-button @click="delRow" type="danger">重 置</el-button>
  270. <el-button type="primary" @click="save()">确 定</el-button>
  271. </span>
  272. </el-dialog>
  273. <el-table
  274. v-loading="loading"
  275. :data="selectAuditList"
  276. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  277. >
  278. <el-table-column
  279. v-for="(item, index) in getRowList"
  280. :key="index"
  281. :label="item.name"
  282. :width="item.width"
  283. :prop="item.label"
  284. align="center"
  285. :fixed="item.fixed"
  286. :show-overflow-tooltip="true"
  287. sortable
  288. >
  289. <template slot-scope="scope">
  290. <span v-if="item.label == 'refno3'">{{
  291. scope.row.refno3 ? scope.row.refno3 : scope.row.billNo
  292. }}</span>
  293. <span v-else>{{ scope.row[item.label] }}</span>
  294. </template>
  295. </el-table-column>
  296. <!-- <el-table-column
  297. prop="refno1"
  298. :show-overflow-tooltip="true"
  299. label="委托方"
  300. ></el-table-column>
  301. <el-table-column
  302. prop="auditItem"
  303. :show-overflow-tooltip="true"
  304. label="日期"
  305. >
  306. <template slot-scope="scope">
  307. <span v-if="!scope.row.auditItem">无时间</span>
  308. <span v-else>{{ scope.row.auditItem.slice(0, 10) }}</span>
  309. </template>
  310. </el-table-column>
  311. <el-table-column
  312. prop="refno3"
  313. :show-overflow-tooltip="true"
  314. label="提单号"
  315. ></el-table-column>
  316. <el-table-column
  317. prop="refno2"
  318. :show-overflow-tooltip="true"
  319. label="业务类型"
  320. >
  321. <template slot-scope="scope">
  322. <span v-if="scope.row.refno2 === 'SJRK'">入库</span>
  323. <span v-else-if="scope.row.refno2 === 'SJCK'">出库</span>
  324. <span v-else-if="scope.row.refno2 === 'HQZY'">货转</span>
  325. <span v-else-if="scope.row.refno2 === 'CKDB'">调拨</span>
  326. <span v-else-if="scope.row.refno2 === 'CCF'">仓储费</span>
  327. <span v-else-if="scope.row.refno2 === 'HWTG'">货物通关</span>
  328. <span v-else-if="scope.row.refno2 === 'ZYF'">作业费</span>
  329. <span v-else-if="scope.row.refno2 === 'SF'">收费</span>
  330. <span v-else-if="scope.row.refno2 === 'DZ'">对账</span>
  331. <span v-else-if="scope.row.refno2 === 'FF'">付费</span>
  332. <span v-else-if="scope.row.refno2 === 'JSCCF'">计算仓储费</span>
  333. <span v-else-if="scope.row.refno2 === 'SE'">下单配船</span>
  334. </template>
  335. </el-table-column>
  336. <el-table-column
  337. :show-overflow-tooltip="true"
  338. label="系统编号"
  339. ></el-table-column>
  340. <el-table-column
  341. :show-overflow-tooltip="true"
  342. label="审核状态"
  343. ></el-table-column>
  344. <el-table-column
  345. :show-overflow-tooltip="true"
  346. label="审核人"
  347. ></el-table-column>
  348. <el-table-column
  349. :show-overflow-tooltip="true"
  350. label="审核日期"
  351. ></el-table-column>
  352. <el-table-column
  353. :show-overflow-tooltip="true"
  354. label="提交人"
  355. ></el-table-column>
  356. <el-table-column
  357. :show-overflow-tooltip="true"
  358. label="提交日期"
  359. ></el-table-column> -->
  360. <el-table-column label="操作" width="80">
  361. <template slot-scope="scope">
  362. <span style="cursor: pointer" @click="approval(scope.row)"
  363. >查看详情</span
  364. >
  365. </template>
  366. </el-table-column>
  367. </el-table>
  368. <pagination
  369. v-show="total > 0"
  370. :total="total"
  371. :page.sync="queryParams.pageNum"
  372. :limit.sync="queryParams.pageSize"
  373. @pagination="getList"
  374. />
  375. <el-dialog
  376. title="消息提示"
  377. :visible.sync="dialogVisible"
  378. width="80%"
  379. :before-close="handleClose"
  380. :close-on-click-modal="false"
  381. >
  382. <span
  383. v-html="text"
  384. class="text"
  385. style="max-width: 100%; height: auto"
  386. ></span>
  387. <span slot="footer" class="dialog-footer">
  388. <el-button type="primary" @click="dialogVisible = false"
  389. >关 闭</el-button
  390. >
  391. </span>
  392. </el-dialog>
  393. </div>
  394. </template>
  395. <script>
  396. import { selectAuditItems, selectAuditItemsTotal } from "@/api/morePage/stock";
  397. import { listCorps } from "@/api/basicdata/corps";
  398. import { addSet, select, resetModule } from "@/api/system/set";
  399. import Cookies from "js-cookie";
  400. import draggable from "vuedraggable";
  401. export default {
  402. name: "index",
  403. components: { draggable },
  404. data() {
  405. return {
  406. selectAuditList: [],
  407. dialogVisible: false,
  408. total: 0,
  409. text: "",
  410. queryParams: {
  411. pageNum: 1,
  412. pageSize: 10,
  413. refno1: null,
  414. rbillId: null,
  415. billNo: null,
  416. sendUserId: null,
  417. auditUserId: null,
  418. actId: null,
  419. sendTime: null,
  420. billTime: null,
  421. auditOpTime: null,
  422. },
  423. show: false,
  424. showSearch: true,
  425. factIdOptions: [],
  426. showSetting: false,
  427. drag: false,
  428. setRowList: [],
  429. getRowList: [],
  430. tableDate: [
  431. {
  432. surface: "1",
  433. label: "refno1",
  434. name: "委托方",
  435. checked: 0,
  436. width: 100,
  437. },
  438. {
  439. surface: "2",
  440. label: Cookies.get("sysType") == 3 ? "sendTime" : "billTime",
  441. name: "日期",
  442. checked: 0,
  443. width: 120,
  444. },
  445. {
  446. surface: "3",
  447. label: "refno3",
  448. name: "提单号",
  449. checked: 0,
  450. width: 120,
  451. },
  452. {
  453. surface: "4",
  454. label: "refno2",
  455. name: "业务类型",
  456. checked: 0,
  457. width: 120,
  458. },
  459. {
  460. surface: "5",
  461. label: "fAmount",
  462. name: "出入库费",
  463. checked: 0,
  464. width: 120,
  465. },
  466. {
  467. surface: "6",
  468. label: "billNo",
  469. name: "系统编号",
  470. checked: 0,
  471. width: 120,
  472. },
  473. {
  474. surface: "7",
  475. label: "audit",
  476. name: "审核状态",
  477. checked: 0,
  478. width: 120,
  479. },
  480. {
  481. surface: "8",
  482. label: "auditUserName",
  483. name: "审核人",
  484. checked: 0,
  485. width: 120,
  486. },
  487. {
  488. surface: "9",
  489. label: "auditOpTime",
  490. name: "审核日期",
  491. checked: 0,
  492. width: 150,
  493. },
  494. {
  495. surface: "10",
  496. label: "isAccountPeriod",
  497. name: "提交人",
  498. checked: 0,
  499. width: 150,
  500. },
  501. {
  502. surface: "11",
  503. label: "sendTime",
  504. name: "提交日期",
  505. checked: 0,
  506. width: 150,
  507. },
  508. ],
  509. allCheck: false,
  510. };
  511. },
  512. created() {
  513. this.setRowList = this.tableDate;
  514. this.getRowList = this.tableDate;
  515. listCorps().then((response) => {
  516. this.factIdOptions = response.rows;
  517. });
  518. this.getList();
  519. this.getRow();
  520. console.log(Cookies.get("sysType"))
  521. },
  522. methods: {
  523. //列设置全选
  524. allChecked() {
  525. if (this.allCheck == true) {
  526. this.setRowList.map((e) => {
  527. return (e.checked = 0);
  528. });
  529. } else {
  530. this.setRowList.map((e) => {
  531. return (e.checked = 1);
  532. });
  533. }
  534. },
  535. //查询列数据
  536. getRow() {
  537. let that = this;
  538. this.data = {
  539. tableName: "我的审核",
  540. userId: Cookies.get("userName"),
  541. };
  542. select(this.data).then((res) => {
  543. if (res.data.length != 0) {
  544. this.getRowList = res.data.filter((e) => e.checked == 0);
  545. this.setRowList = res.data;
  546. this.setRowList = this.setRowList.reduce((res, item) => {
  547. res.push({
  548. surface: item.surface,
  549. label: item.label,
  550. name: item.name,
  551. checked: item.checked,
  552. width: item.width,
  553. fixed: item.fixed,
  554. });
  555. return res;
  556. }, []);
  557. }
  558. });
  559. },
  560. //重置列表
  561. delRow() {
  562. this.data = {
  563. tableName: "我的审核",
  564. userId: Cookies.get("userName"),
  565. };
  566. resetModule(this.data).then((res) => {
  567. if (res.code == 200) {
  568. this.showSetting = false;
  569. this.setRowList = this.tableDate;
  570. this.getRowList = this.tableDate;
  571. }
  572. });
  573. },
  574. //保存列设置
  575. save() {
  576. this.showSetting = false;
  577. this.data = {
  578. tableName: "我的审核",
  579. userId: Cookies.get("userName"),
  580. sysTableSetList: this.setRowList,
  581. };
  582. addSet(this.data).then((res) => {
  583. if (res.code == 200) {
  584. this.showSetting = false;
  585. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  586. }
  587. });
  588. },
  589. //开始拖拽事件
  590. onStart() {
  591. this.drag = true;
  592. },
  593. //拖拽结束事件
  594. onEnd() {
  595. this.drag = false;
  596. },
  597. /** 搜索按钮操作 */
  598. handleQuery() {
  599. this.queryParams.pageNum = 1;
  600. this.getList(this.queryParams);
  601. },
  602. /** 重置按钮操作 */
  603. resetQuery() {
  604. this.resetForm("queryForm");
  605. this.handleQuery();
  606. },
  607. getList() {
  608. this.loading = true;
  609. selectAuditItems(this.queryParams).then((response) => {
  610. response.rows.map((e) => {
  611. if (e.sendTime) {
  612. e.sendTime = e.sendTime.slice(0, 10);
  613. }
  614. if (e.refno2) {
  615. switch (e.refno2) {
  616. case "SJRK": {
  617. e.refno2 = "入库";
  618. break;
  619. }
  620. case "SJCK": {
  621. e.refno2 = "出库";
  622. break;
  623. }
  624. case "HQZY": {
  625. e.refno2 = "货转";
  626. break;
  627. }
  628. case "CKDB": {
  629. e.refno2 = "调拨";
  630. break;
  631. }
  632. case "HWTG": {
  633. e.refno2 = "货物通关";
  634. break;
  635. }
  636. case "JSCCF": {
  637. e.refno2 = "计算仓储费";
  638. break;
  639. }
  640. case "CCF": {
  641. e.refno2 = "仓储费";
  642. break;
  643. }
  644. case "ZYF": {
  645. e.refno2 = "作业费";
  646. break;
  647. }
  648. case "SF": {
  649. e.refno2 = "收费";
  650. break;
  651. }
  652. case "DZ": {
  653. e.refno2 = "对账";
  654. break;
  655. }
  656. case "FF": {
  657. e.refno2 = "付费";
  658. break;
  659. }
  660. case "SE": {
  661. e.refno2 = "下单配船";
  662. break;
  663. }
  664. case "ApplyFP": {
  665. e.refno2 = "凯和开票申请";
  666. break;
  667. }
  668. case "KHDZ": {
  669. e.refno2 = "凯和对账";
  670. break;
  671. }
  672. case "KHSF": {
  673. e.refno2 = "凯和收费";
  674. break;
  675. }
  676. case "KHFF": {
  677. e.refno2 = "凯和付费";
  678. break;
  679. }
  680. case "KHDD": {
  681. e.refno2 = "凯和订单";
  682. break;
  683. }
  684. case "SJRKITEM": {
  685. e.refno2 = "入库明细审批";
  686. break;
  687. }
  688. case "SJCKITEM": {
  689. e.refno2 = "出库明细审批";
  690. break;
  691. }
  692. case "XGDD": {
  693. e.refno2 = "申请变更";
  694. break;
  695. }
  696. case "XGTJ": {
  697. e.refno2 = "提交变更";
  698. break;
  699. }
  700. case "DDSC": {
  701. e.refno2 = "申请删单";
  702. break;
  703. }
  704. default: {
  705. return this.$message.error("未知错误,无状态");
  706. }
  707. }
  708. }
  709. });
  710. this.selectAuditList = response.rows;
  711. this.total = response.total;
  712. this.loading = false;
  713. });
  714. },
  715. approval(row) {
  716. switch (row.refno4) {
  717. case "SJRK": {
  718. this.$router.push({
  719. path: "/business/inStock",
  720. query: { id: row.billId},
  721. });
  722. break;
  723. }
  724. case "SJCK": {
  725. this.$router.push({
  726. path: "/business/outStock",
  727. query: { id: row.billId},
  728. });
  729. break;
  730. }
  731. case "HQZY": {
  732. this.$router.push({
  733. path: "/business/goodsTransfer",
  734. query: { id: row.billId},
  735. });
  736. break;
  737. }
  738. case "CKDB": {
  739. this.$router.push({
  740. path: "/business/stockTransfer",
  741. query: { id: row.billId},
  742. });
  743. break;
  744. }
  745. case "HWTG": {
  746. this.$router.push({
  747. path: "/business/cargoClearance",
  748. query: { id: row.billId},
  749. });
  750. break;
  751. }
  752. case "JSCCF": {
  753. this.$router.push({
  754. path: "/business/agreement",
  755. query: { data: JSON.stringify(row) },
  756. });
  757. break;
  758. }
  759. case "CCF": {
  760. this.$router.push({
  761. path: "/agreement/agreementStorage",
  762. query: { data: JSON.stringify(row) },
  763. });
  764. break;
  765. }
  766. case "ZYF": {
  767. this.$router.push({
  768. path: "/agreement/agreementTask",
  769. query: { data: JSON.stringify(row) },
  770. });
  771. break;
  772. }
  773. case "SF": {
  774. this.$router.push({
  775. path: "/finance/charge",
  776. query: { data: JSON.stringify(row) },
  777. });
  778. break;
  779. }
  780. case "DZ": {
  781. this.$router.push({
  782. path: "/finance/contrast",
  783. query: { data: JSON.stringify(row) },
  784. });
  785. break;
  786. }
  787. case "FF": {
  788. this.$router.push({
  789. path: "/finance/payment",
  790. query: { data: JSON.stringify(row) },
  791. });
  792. break;
  793. }
  794. case "KHDD": {
  795. this.$router.push({
  796. path: "/domesticTrade/orderInformation",
  797. query: { list: JSON.stringify(row) },
  798. });
  799. break;
  800. }
  801. case "ApplyFP": {
  802. this.$router.push({
  803. path: "/finance/chargeInvoice",
  804. query: { data: JSON.stringify(row) },
  805. });
  806. break;
  807. }
  808. case "KHDZ": {
  809. this.$router.push({
  810. path: "/finance/contrast",
  811. query: { data: JSON.stringify(row) },
  812. });
  813. break;
  814. }
  815. case "KHSF": {
  816. this.$router.push({
  817. path: "/finance/charge",
  818. query: { data: JSON.stringify(row) },
  819. });
  820. break;
  821. }
  822. case "KHFF": {
  823. this.$router.push({
  824. path: "/finance/payment",
  825. query: { data: JSON.stringify(row) },
  826. });
  827. break;
  828. }
  829. case "SJRKITEM": {
  830. this.$router.push({
  831. path: "/business/inStock",
  832. query: { id: row.billId},
  833. });
  834. break;
  835. }
  836. case "SJCKITEM": {
  837. this.$router.push({
  838. path: "/business/outStock",
  839. query: { id: row.billId},
  840. });
  841. break;
  842. }
  843. case "XGDD": {
  844. this.$router.push({
  845. path: "/domesticTrade/orderInformation",
  846. query: {testing:JSON.stringify(row)},
  847. });
  848. break;
  849. }
  850. case "XGTJ": {
  851. this.$router.push({
  852. path: "/domesticTrade/orderInformation",
  853. query: {testing:JSON.stringify(row)},
  854. });
  855. break;
  856. }
  857. case "DDSC": {
  858. this.$router.push({
  859. path: "/domesticTrade/orderInformation",
  860. query: {testing:JSON.stringify(row)},
  861. });
  862. break;
  863. }
  864. default: {
  865. console.log(row);
  866. return this.$message.error("未知错误,无状态");
  867. }
  868. }
  869. },
  870. querytoDo(res) {
  871. this.dialogVisible = true;
  872. this.text = res;
  873. },
  874. handleClose(done) {
  875. this.dialogVisible = false;
  876. },
  877. },
  878. };
  879. </script>
  880. <style lang="scss" scoped>
  881. .tabSetting {
  882. display: flex;
  883. justify-content: flex-end;
  884. }
  885. .listStyle {
  886. display: flex;
  887. border-top: 1px solid #dcdfe6;
  888. border-left: 1px solid #dcdfe6;
  889. border-right: 1px solid #dcdfe6;
  890. }
  891. .listStyle:last-child {
  892. border-bottom: 1px solid #dcdfe6;
  893. }
  894. .progress {
  895. display: flex;
  896. align-items: center;
  897. padding: 2px;
  898. background-color: rgba(0, 0, 0, 0.05);
  899. height: 100%;
  900. }
  901. </style>