index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  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. <!--&lt;!&ndash; <el-col :span="6">&ndash;&gt;-->
  29. <!--&lt;!&ndash; <el-form-item label-width="100px" label="业务类型" prop="rbillId">&ndash;&gt;-->
  30. <!--&lt;!&ndash; <el-select&ndash;&gt;-->
  31. <!--&lt;!&ndash; v-model="queryParams.rbillId"&ndash;&gt;-->
  32. <!--&lt;!&ndash; placeholder="请选择业务类型"&ndash;&gt;-->
  33. <!--&lt;!&ndash; clearable&ndash;&gt;-->
  34. <!--&lt;!&ndash; size="small"&ndash;&gt;-->
  35. <!--&lt;!&ndash; multiple&ndash;&gt;-->
  36. <!--&lt;!&ndash; >&ndash;&gt;-->
  37. <!--&lt;!&ndash; </el-select>&ndash;&gt;-->
  38. <!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
  39. <!--&lt;!&ndash; </el-col>&ndash;&gt;-->
  40. <!-- <el-col :span="6">-->
  41. <!-- <el-form-item label-width="100px" label="提单号" prop="refno3">-->
  42. <!-- <el-input-->
  43. <!-- v-model="queryParams.refno3"-->
  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('S')">待审业务</el-button></el-col
  166. >
  167. <el-col :span="1.5">
  168. <el-button size="mini" @click="handleQuery('N')">审核中</el-button></el-col
  169. >
  170. <el-col :span="1.5">
  171. <el-button size="mini" @click="handleQuery('A')">审核通过</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. <!-- </div>-->
  199. <!-- <right-toolbar-->
  200. <!-- :showSearch.sync="showSearch"-->
  201. <!-- @queryTable="getList"-->
  202. <!-- ></right-toolbar>-->
  203. <div style="margin: 0 12px">
  204. <el-tooltip
  205. class="item"
  206. effect="dark"
  207. content="列设置"
  208. placement="top"
  209. >
  210. <el-button
  211. icon="el-icon-setting"
  212. size="mini"
  213. circle
  214. @click="showSetting = !showSetting"
  215. ></el-button>
  216. </el-tooltip>
  217. </div>
  218. </div>
  219. </el-row>
  220. <el-dialog title="自定义列显示" :visible.sync="showSetting" width="700px">
  221. <div>配置排序列数据(拖动调整顺序)</div>
  222. <div style="margin-left: 17px">
  223. <el-checkbox
  224. v-model="allCheck"
  225. label="全选"
  226. @change="allChecked"
  227. ></el-checkbox>
  228. </div>
  229. <div style="padding: 4px; display: flex; justify-content: center">
  230. <draggable
  231. v-model="setRowList"
  232. group="site"
  233. animation="300"
  234. @start="onStart"
  235. @end="onEnd"
  236. handle=".indraggable"
  237. >
  238. <transition-group>
  239. <div
  240. v-for="item in setRowList"
  241. :key="item.surface"
  242. class="listStyle"
  243. >
  244. <div style="width: 500px" class="indraggable">
  245. <div class="progress" :style="{ width: item.width + 'px' }">
  246. <el-checkbox
  247. :label="item.name"
  248. v-model="item.checked"
  249. :true-label="0"
  250. :false-label="1"
  251. >{{ item.name }}
  252. </el-checkbox>
  253. </div>
  254. </div>
  255. <el-input-number
  256. v-model.number="item.width"
  257. controls-position="right"
  258. :min="1"
  259. :max="500"
  260. size="mini"
  261. ></el-input-number>
  262. </div>
  263. </transition-group>
  264. </draggable>
  265. </div>
  266. <span slot="footer" class="dialog-footer">
  267. <el-button @click="showSetting = false">取 消</el-button>
  268. <el-button @click="delRow" type="danger">重 置</el-button>
  269. <el-button type="primary" @click="save()">确 定</el-button>
  270. </span>
  271. </el-dialog>
  272. <el-table
  273. v-loading="loading"
  274. :data="selectAuditList"
  275. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  276. >
  277. <el-table-column
  278. v-for="(item, index) in getRowList"
  279. :key="index"
  280. :label="item.name"
  281. :width="item.width"
  282. :prop="item.label"
  283. align="center"
  284. :fixed="item.fixed"
  285. :show-overflow-tooltip="true"
  286. sortable
  287. >
  288. <template slot-scope="scope">
  289. <span v-if="item.label == 'refno3'">{{
  290. scope.row.refno3 ? scope.row.refno3 : scope.row.billNo
  291. }}</span>
  292. <span v-else-if="item.label == 'auditOpTime'">{{ scope.row.auditOpTime?(scope.row.auditOpTime).slice(0, 10): '' }}</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. refno3: null,
  415. rbillId: null,
  416. billNo: null,
  417. sendUserId: null,
  418. auditUserId: null,
  419. actId: null,
  420. sendTime: null,
  421. billTime: null,
  422. auditOpTime: null,
  423. },
  424. show: false,
  425. showSearch: true,
  426. factIdOptions: [],
  427. showSetting: false,
  428. drag: false,
  429. setRowList: [],
  430. getRowList: [],
  431. tableDate: [
  432. {
  433. surface: "1",
  434. label: "refno1",
  435. name: "委托方",
  436. checked: 0,
  437. width: 100,
  438. },
  439. {
  440. surface: "2",
  441. label: Cookies.get("sysType") == 3 ? "sendTime" : "billTime",
  442. name: "日期",
  443. checked: 0,
  444. width: 120,
  445. },
  446. {
  447. surface: "3",
  448. label: "refno3",
  449. name: "提单号",
  450. checked: 0,
  451. width: 120,
  452. },
  453. {
  454. surface: "4",
  455. label: "refno2",
  456. name: "业务类型",
  457. checked: 0,
  458. width: 120,
  459. },
  460. {
  461. surface: "5",
  462. label: "fAmount",
  463. name: "出入库费",
  464. checked: 0,
  465. width: 120,
  466. },
  467. {
  468. surface: "6",
  469. label: "billNo",
  470. name: "系统编号",
  471. checked: 0,
  472. width: 120,
  473. },
  474. {
  475. surface: "7",
  476. label: "audit",
  477. name: "审核状态",
  478. checked: 0,
  479. width: 120,
  480. },
  481. {
  482. surface: "8",
  483. label: "auditUserName",
  484. name: "审核人",
  485. checked: 0,
  486. width: 120,
  487. },
  488. {
  489. surface: "9",
  490. label: "auditOpTime",
  491. name: "审核日期",
  492. checked: 0,
  493. width: 150,
  494. },
  495. {
  496. surface: "10",
  497. label: "isAccountPeriod",
  498. name: "提交人",
  499. checked: 0,
  500. width: 150,
  501. },
  502. {
  503. surface: "11",
  504. label: "sendTime",
  505. name: "提交日期",
  506. checked: 0,
  507. width: 150,
  508. },
  509. ],
  510. allCheck: false,
  511. };
  512. },
  513. created() {
  514. this.setRowList = this.tableDate;
  515. this.getRowList = this.tableDate;
  516. listCorps().then((response) => {
  517. this.factIdOptions = response.rows;
  518. });
  519. this.getList();
  520. this.getRow();
  521. console.log(Cookies.get("sysType"))
  522. },
  523. methods: {
  524. //列设置全选
  525. allChecked() {
  526. if (this.allCheck == true) {
  527. this.setRowList.map((e) => {
  528. return (e.checked = 0);
  529. });
  530. } else {
  531. this.setRowList.map((e) => {
  532. return (e.checked = 1);
  533. });
  534. }
  535. },
  536. //查询列数据
  537. getRow() {
  538. let that = this;
  539. this.data = {
  540. tableName: "我的审核",
  541. userId: Cookies.get("userName"),
  542. };
  543. select(this.data).then((res) => {
  544. if (res.data.length != 0) {
  545. this.getRowList = res.data.filter((e) => e.checked == 0);
  546. this.setRowList = res.data;
  547. this.setRowList = this.setRowList.reduce((res, item) => {
  548. res.push({
  549. surface: item.surface,
  550. label: item.label,
  551. name: item.name,
  552. checked: item.checked,
  553. width: item.width,
  554. fixed: item.fixed,
  555. });
  556. return res;
  557. }, []);
  558. }
  559. });
  560. },
  561. //重置列表
  562. delRow() {
  563. this.data = {
  564. tableName: "我的审核",
  565. userId: Cookies.get("userName"),
  566. };
  567. resetModule(this.data).then((res) => {
  568. if (res.code == 200) {
  569. this.showSetting = false;
  570. this.setRowList = this.tableDate;
  571. this.getRowList = this.tableDate;
  572. }
  573. });
  574. },
  575. //保存列设置
  576. save() {
  577. this.showSetting = false;
  578. this.data = {
  579. tableName: "我的审核",
  580. userId: Cookies.get("userName"),
  581. sysTableSetList: this.setRowList,
  582. };
  583. addSet(this.data).then((res) => {
  584. if (res.code == 200) {
  585. this.showSetting = false;
  586. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  587. }
  588. });
  589. },
  590. //开始拖拽事件
  591. onStart() {
  592. this.drag = true;
  593. },
  594. //拖拽结束事件
  595. onEnd() {
  596. this.drag = false;
  597. },
  598. /** 搜索按钮操作 */
  599. handleQuery(audit) {
  600. if (audit) {
  601. this.queryParams.auditStatus = audit
  602. } else {
  603. this.queryParams.auditStatus = null
  604. }
  605. this.queryParams.pageNum = 1;
  606. this.getList(this.queryParams);
  607. },
  608. /** 重置按钮操作 */
  609. resetQuery() {
  610. this.resetForm("queryForm");
  611. this.queryParams = {
  612. pageNum: 1,
  613. pageSize: 10,
  614. refno1: null,
  615. refno3: null,
  616. rbillId: null,
  617. billNo: null,
  618. sendUserId: null,
  619. auditUserId: null,
  620. actId: null,
  621. sendTime: null,
  622. billTime: null,
  623. auditOpTime: null,
  624. }
  625. this.handleQuery();
  626. },
  627. getList() {
  628. this.loading = true;
  629. selectAuditItems(this.queryParams).then((response) => {
  630. response.rows.map((e) => {
  631. if (e.sendTime) {
  632. e.sendTime = e.sendTime.slice(0, 10);
  633. }
  634. if (e.refno2) {
  635. switch (e.refno2) {
  636. case "FYBG": {
  637. e.refno2 = "费用变更";
  638. break;
  639. }
  640. case "CDZZ": {
  641. e.refno2 = "场地直装";
  642. break;
  643. }
  644. case "SJRK": {
  645. e.refno2 = "入库";
  646. break;
  647. }
  648. case "SJCK": {
  649. e.refno2 = "出库";
  650. break;
  651. }
  652. case "HQZY": {
  653. e.refno2 = "货转";
  654. break;
  655. }
  656. case "CKDB": {
  657. e.refno2 = "调拨";
  658. break;
  659. }
  660. case "HWTG": {
  661. e.refno2 = "货物通关";
  662. break;
  663. }
  664. case "JSCCF": {
  665. e.refno2 = "计算仓储费";
  666. break;
  667. }
  668. case "CCF": {
  669. e.refno2 = "仓储费";
  670. break;
  671. }
  672. case "ZYF": {
  673. e.refno2 = "作业费";
  674. break;
  675. }
  676. case "SF": {
  677. e.refno2 = "收费";
  678. break;
  679. }
  680. case "DZ": {
  681. e.refno2 = "对账";
  682. break;
  683. }
  684. case "FF": {
  685. e.refno2 = "付费";
  686. break;
  687. }
  688. case "SE": {
  689. e.refno2 = "下单配船";
  690. break;
  691. }
  692. case "ApplyFP": {
  693. e.refno2 = "凯和开票申请";
  694. break;
  695. }
  696. case "KHDZ": {
  697. e.refno2 = "凯和对账";
  698. break;
  699. }
  700. case "KHSF": {
  701. e.refno2 = "凯和收费";
  702. break;
  703. }
  704. case "KHFF": {
  705. e.refno2 = "凯和付费";
  706. break;
  707. }
  708. case "KHDD": {
  709. e.refno2 = "凯和订单";
  710. break;
  711. }
  712. case "SJRKITEM": {
  713. e.refno2 = "入库明细审批";
  714. break;
  715. }
  716. case "SJCKITEM": {
  717. e.refno2 = "出库明细审批";
  718. break;
  719. }
  720. case "XGDD": {
  721. e.refno2 = "申请变更";
  722. break;
  723. }
  724. case "XGTJ": {
  725. e.refno2 = "提交变更";
  726. break;
  727. }
  728. case "DDSC": {
  729. e.refno2 = "申请删单";
  730. break;
  731. }
  732. default: {
  733. return this.$message.error("未知错误,无状态");
  734. }
  735. }
  736. }
  737. });
  738. this.selectAuditList = response.rows;
  739. this.total = response.total;
  740. this.loading = false;
  741. });
  742. },
  743. approval(row) {
  744. switch (row.refno4) {
  745. case "CDZZ": {
  746. this.$router.push({
  747. path: "/business/inAndOutStock",
  748. query: { id: row.billId }
  749. })
  750. break;
  751. }
  752. case "FYBG": {
  753. this.$router.push({
  754. path: "/business/costModify",
  755. query: { id: row.billId }
  756. });
  757. break;
  758. }
  759. case "SJRK": {
  760. this.$router.push({
  761. path: "/business/inStock",
  762. query: { id: row.billId},
  763. });
  764. break;
  765. }
  766. case "SJCK": {
  767. this.$router.push({
  768. path: "/business/outStock",
  769. query: { id: row.billId},
  770. });
  771. break;
  772. }
  773. case "HQZY": {
  774. this.$router.push({
  775. path: "/business/goodsTransfer",
  776. query: { id: row.billId},
  777. });
  778. break;
  779. }
  780. case "CKDB": {
  781. this.$router.push({
  782. path: "/business/stockTransfer",
  783. query: { id: row.billId},
  784. });
  785. break;
  786. }
  787. case "HWTG": {
  788. this.$router.push({
  789. path: "/business/cargoClearance",
  790. query: { id: row.billId},
  791. });
  792. break;
  793. }
  794. case "JSCCF": {
  795. this.$router.push({
  796. path: "/business/agreement",
  797. query: { data: JSON.stringify(row) },
  798. });
  799. break;
  800. }
  801. case "CCF": {
  802. this.$router.push({
  803. path: "/agreement/agreementStorage",
  804. query: { data: JSON.stringify(row) },
  805. });
  806. break;
  807. }
  808. case "ZYF": {
  809. this.$router.push({
  810. path: "/agreement/agreementTask",
  811. query: { data: JSON.stringify(row) },
  812. });
  813. break;
  814. }
  815. case "SF": {
  816. this.$router.push({
  817. path: "/finance/charge",
  818. query: { data: JSON.stringify(row) },
  819. });
  820. break;
  821. }
  822. case "DZ": {
  823. this.$router.push({
  824. path: "/finance/contrast",
  825. query: { data: JSON.stringify(row) },
  826. });
  827. break;
  828. }
  829. case "FF": {
  830. this.$router.push({
  831. path: "/finance/payment",
  832. query: { data: JSON.stringify(row) },
  833. });
  834. break;
  835. }
  836. case "KHDD": {
  837. this.$router.push({
  838. path: "/domesticTrade/orderInformation",
  839. query: { list: JSON.stringify(row) },
  840. });
  841. break;
  842. }
  843. case "ApplyFP": {
  844. this.$router.push({
  845. path: "/finance/chargeInvoice",
  846. query: { data: JSON.stringify(row) },
  847. });
  848. break;
  849. }
  850. case "KHDZ": {
  851. this.$router.push({
  852. path: "/finance/contrast",
  853. query: { data: JSON.stringify(row) },
  854. });
  855. break;
  856. }
  857. case "KHSF": {
  858. this.$router.push({
  859. path: "/finance/charge",
  860. query: { data: JSON.stringify(row) },
  861. });
  862. break;
  863. }
  864. case "KHFF": {
  865. this.$router.push({
  866. path: "/finance/payment",
  867. query: { data: JSON.stringify(row) },
  868. });
  869. break;
  870. }
  871. case "SJRKITEM": {
  872. this.$router.push({
  873. path: "/business/inStock",
  874. query: { id: row.billId},
  875. });
  876. break;
  877. }
  878. case "SJCKITEM": {
  879. this.$router.push({
  880. path: "/business/outStock",
  881. query: { id: row.billId},
  882. });
  883. break;
  884. }
  885. case "XGDD": {
  886. this.$router.push({
  887. path: "/domesticTrade/orderInformation",
  888. query: {testing:JSON.stringify(row)},
  889. });
  890. break;
  891. }
  892. case "XGTJ": {
  893. this.$router.push({
  894. path: "/domesticTrade/orderInformation",
  895. query: {testing:JSON.stringify(row)},
  896. });
  897. break;
  898. }
  899. case "DDSC": {
  900. this.$router.push({
  901. path: "/domesticTrade/orderInformation",
  902. query: {testing:JSON.stringify(row)},
  903. });
  904. break;
  905. }
  906. default: {
  907. console.log(row);
  908. return this.$message.error("未知错误,无状态");
  909. }
  910. }
  911. },
  912. querytoDo(res) {
  913. this.dialogVisible = true;
  914. this.text = res;
  915. },
  916. handleClose(done) {
  917. this.dialogVisible = false;
  918. },
  919. },
  920. };
  921. </script>
  922. <style lang="scss" scoped>
  923. .tabSetting {
  924. display: flex;
  925. justify-content: flex-end;
  926. }
  927. .listStyle {
  928. display: flex;
  929. border-top: 1px solid #dcdfe6;
  930. border-left: 1px solid #dcdfe6;
  931. border-right: 1px solid #dcdfe6;
  932. }
  933. .listStyle:last-child {
  934. border-bottom: 1px solid #dcdfe6;
  935. }
  936. .progress {
  937. display: flex;
  938. align-items: center;
  939. padding: 2px;
  940. background-color: rgba(0, 0, 0, 0.05);
  941. height: 100%;
  942. }
  943. </style>