index.vue 29 KB

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