supplierManageCheckList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. <!--供应商管理-审核-->
  2. <template>
  3. <div class="check">
  4. <div class="check_list" v-if="pageType==1">
  5. <div class="title-box">
  6. <div class="title-button-box">
  7. <div @click="handleTabClick(1)">
  8. <p :class="tableType == 1?'button-color-1':'button-color-2'">供应商</p>
  9. <p :class="tableType == 1?'button-back-1':''"></p>
  10. </div>
  11. <div @click="handleTabClick(2)">
  12. <p :class="tableType == 2?'button-color-1':'button-color-2'">运输车辆</p>
  13. <p :class="tableType == 2?'button-back-1':''"></p>
  14. </div>
  15. <div @click="handleTabClick(3)">
  16. <p :class="tableType == 3?'button-color-1':'button-color-2'">运输人员</p>
  17. <p :class="tableType == 3?'button-back-1':''"></p>
  18. </div>
  19. </div>
  20. <p class="reset-button-one out-p" @click="backPage"><i class="el-icon-arrow-left"></i>返回</p>
  21. </div>
  22. <div class="check_page_one" v-show="tableType == 1">
  23. <div class="check_page_one_min">
  24. <el-form :model="queryParams" ref="queryForm" style="margin-top:20px;" :inline="true" label-width="120">
  25. <el-form-item label="关键字" prop="searchValue">
  26. <el-input
  27. v-model="queryParams.searchValue"
  28. placeholder="名称/联系人/联系方式"
  29. clearable
  30. maxLength="30"
  31. size="small"
  32. @keyup.enter.native="handleQuery"
  33. />
  34. </el-form-item>
  35. <el-form-item>
  36. <p class="inquire-button-one" style="margin-right:10px;" @click="handleQuery(1)">查询</p>
  37. <p class="reset-button-one" @click="resetQuery(1)">重置</p>
  38. </el-form-item>
  39. <!--<el-form-item label="" prop="title" style="float: right">-->
  40. <!--<p class="reset-button-one" @click="backPage">返回</p>-->
  41. <!--</el-form-item>-->
  42. </el-form>
  43. <el-table border v-loading="loading" :data="tableData">
  44. <el-table-column label="供应商名称" align="left" prop="companyName"/>
  45. <el-table-column label="供应商简称" align="left" prop="companyShort"></el-table-column>
  46. <el-table-column label="联系人" align="left" prop="contacts"></el-table-column>
  47. <el-table-column label="联系方式" align="left" prop="phone"></el-table-column>
  48. <el-table-column label="提交时间" align="left" prop="createTime"></el-table-column>
  49. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
  50. <template slot-scope="scope">
  51. <div class="table-button-box">
  52. <p class="table-button-null"></p>
  53. <p class="table-button-p"
  54. @click="handleClick('1',scope.row,'audit')"
  55. v-hasPermi="['airbottle:supplier:query']"
  56. >审核</p>
  57. <p class="table-button-null"></p>
  58. </div>
  59. </template>
  60. </el-table-column>
  61. </el-table>
  62. <pagination
  63. :total="total"
  64. layout="total, prev, pager, next, sizes, jumper"
  65. :page.sync="queryParams.pageNum"
  66. :limit.sync="queryParams.pageSize"
  67. @pagination="getList"
  68. />
  69. </div>
  70. </div>
  71. <div class="check_page_one" v-show="tableType == 2">
  72. <div class="check_page_one_min">
  73. <el-form :model="queryParams2" ref="queryForm" style="margin-top:20px;" :inline="true" label-width="120">
  74. <el-form-item label="关键字" prop="name">
  75. <el-input
  76. v-model="queryParams2.searchValue"
  77. placeholder="车辆号牌/所属供应商"
  78. clearable
  79. maxLength="30"
  80. size="small"
  81. @keyup.enter.native="handleQuery"
  82. />
  83. </el-form-item>
  84. <el-form-item>
  85. <p class="inquire-button-one" style="margin-right:10px;" @click="handleQuery(2)">查询</p>
  86. <p class="reset-button-one" @click="resetQuery(2)">重置</p>
  87. </el-form-item>
  88. <!--<el-form-item label="" prop="title" style="float: right">-->
  89. <!--<p class="reset-button-one" @click="backPage">返回</p>-->
  90. <!--</el-form-item>-->
  91. </el-form>
  92. <el-table border v-loading="loading" :data="tableData2">
  93. <el-table-column label="车辆号牌" align="left" prop="carCode"/>
  94. <el-table-column label="所属供应商" align="left" prop="companyName"></el-table-column>
  95. <el-table-column label="提交时间" align="left" prop="createTime"></el-table-column>
  96. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
  97. <template slot-scope="scope">
  98. <div class="table-button-box">
  99. <p class="table-button-null"></p>
  100. <p class="table-button-p"
  101. @click="handleClick('2',scope.row,'audit')"
  102. v-hasPermi="['airbottle:supplier:query']"
  103. >审核</p>
  104. <p class="table-button-null"></p>
  105. </div>
  106. </template>
  107. </el-table-column>
  108. </el-table>
  109. <pagination
  110. :total="total2"
  111. layout="total, prev, pager, next, sizes, jumper"
  112. :page.sync="queryParams2.pageNum"
  113. :limit.sync="queryParams2.pageSize"
  114. @pagination="getList2"
  115. />
  116. </div>
  117. </div>
  118. <div class="check_page_one" v-show="tableType == 3">
  119. <div class="check_page_one_min">
  120. <el-form :model="queryParams3" ref="queryForm" style="margin-top:20px;" :inline="true" label-width="120">
  121. <el-form-item label="关键字" prop="name">
  122. <el-input
  123. v-model="queryParams3.searchValue"
  124. placeholder="姓名/所属供应商/联系方式"
  125. clearable
  126. maxLength="30"
  127. size="small"
  128. @keyup.enter.native="handleQuery"
  129. />
  130. </el-form-item>
  131. <el-form-item>
  132. <p class="inquire-button-one" style="margin-right:10px;" @click="handleQuery(3)">查询</p>
  133. <p class="reset-button-one" @click="resetQuery(3)">重置</p>
  134. </el-form-item>
  135. <!--<el-form-item label="" prop="title" style="float: right">-->
  136. <!--<p class="reset-button-one" @click="backPage">返回</p>-->
  137. <!--</el-form-item>-->
  138. </el-form>
  139. <el-table border v-loading="loading" :data="tableData3">
  140. <el-table-column label="姓名" align="left" prop="userName"/>
  141. <el-table-column label="所属供应商" align="left" prop="companyName"></el-table-column>
  142. <el-table-column label="联系方式" align="left" prop="phone"></el-table-column>
  143. <el-table-column label="提交时间" align="left" prop="createTime"></el-table-column>
  144. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
  145. <template slot-scope="scope">
  146. <div class="table-button-box">
  147. <p class="table-button-null"></p>
  148. <p class="table-button-p"
  149. @click="handleClick('3',scope.row,'audit')"
  150. v-hasPermi="['airbottle:supplier:query']"
  151. >审核</p>
  152. <p class="table-button-null"></p>
  153. </div>
  154. </template>
  155. </el-table-column>
  156. </el-table>
  157. <pagination
  158. :total="total3"
  159. layout="total, prev, pager, next, sizes, jumper"
  160. :page.sync="queryParams3.pageNum"
  161. :limit.sync="queryParams3.pageSize"
  162. @pagination="getList"
  163. />
  164. </div>
  165. </div>
  166. <!--<el-tabs v-model="activeName" @tab-click="handleTabClick">-->
  167. <!--<el-tab-pane label="供应商" name="1">-->
  168. <!--&lt;!&ndash; 供应商&ndash;&gt;-->
  169. <!--<div class="check_page_one" >-->
  170. <!--<el-form :model="queryParams" ref="queryForm" style="margin-top:20px;" :inline="true" label-width="120">-->
  171. <!--<el-form-item label="关键字" prop="searchValue">-->
  172. <!--<el-input-->
  173. <!--v-model="queryParams.searchValue"-->
  174. <!--placeholder="名称/联系人/联系方式"-->
  175. <!--clearable-->
  176. <!--maxLength="30"-->
  177. <!--size="small"-->
  178. <!--@keyup.enter.native="handleQuery"-->
  179. <!--/>-->
  180. <!--</el-form-item>-->
  181. <!--<el-form-item>-->
  182. <!--<p class="inquire-button-one" @click="handleQuery(1)">查询</p>-->
  183. <!--<p class="reset-button-one" @click="resetQuery(1)">重置</p>-->
  184. <!--</el-form-item>-->
  185. <!--<el-form-item label="" prop="title" style="float: right">-->
  186. <!--<p class="reset-button-one" @click="backPage">返回</p>-->
  187. <!--</el-form-item>-->
  188. <!--</el-form>-->
  189. <!--<el-table v-loading="loading" :data="tableData">-->
  190. <!--<el-table-column label="供应商名称" align="left" prop="companyName"/>-->
  191. <!--<el-table-column label="供应商简称" align="left" prop="companyShort"></el-table-column>-->
  192. <!--<el-table-column label="联系人" align="left" prop="contacts"></el-table-column>-->
  193. <!--<el-table-column label="联系方式" align="left" prop="phone"></el-table-column>-->
  194. <!--<el-table-column label="提交时间" align="left" prop="createTime"></el-table-column>-->
  195. <!--<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">-->
  196. <!--<template slot-scope="scope">-->
  197. <!--<div class="button-box">-->
  198. <!--<p class="table-button-one-90"-->
  199. <!--@click="handleClick('1',scope.row,'audit')"-->
  200. <!--v-hasPermi="['airbottle:supplier:query']"-->
  201. <!--&gt;审核</p>-->
  202. <!--</div>-->
  203. <!--</template>-->
  204. <!--</el-table-column>-->
  205. <!--</el-table>-->
  206. <!--<pagination-->
  207. <!--:total="total"-->
  208. <!--layout="total, prev, pager, next, sizes, jumper"-->
  209. <!--:page.sync="queryParams.pageNum"-->
  210. <!--:limit.sync="queryParams.pageSize"-->
  211. <!--@pagination="getList"-->
  212. <!--/>-->
  213. <!--</div>-->
  214. <!--</el-tab-pane>-->
  215. <!--<el-tab-pane label="运输车辆" name="2">-->
  216. <!--&lt;!&ndash; 运输车辆&ndash;&gt;-->
  217. <!--<div class="check_page_one" >-->
  218. <!--<el-form :model="queryParams2" ref="queryForm" style="margin-top:20px;" :inline="true" label-width="120">-->
  219. <!--<el-form-item label="关键字" prop="name">-->
  220. <!--<el-input-->
  221. <!--v-model="queryParams2.searchValue"-->
  222. <!--placeholder="车辆号牌/所属供应商"-->
  223. <!--clearable-->
  224. <!--maxLength="30"-->
  225. <!--size="small"-->
  226. <!--@keyup.enter.native="handleQuery"-->
  227. <!--/>-->
  228. <!--</el-form-item>-->
  229. <!--<el-form-item>-->
  230. <!--<p class="inquire-button-one" @click="handleQuery(2)">查询</p>-->
  231. <!--<p class="reset-button-one" @click="resetQuery(2)">重置</p>-->
  232. <!--</el-form-item>-->
  233. <!--<el-form-item label="" prop="title" style="float: right">-->
  234. <!--<p class="reset-button-one" @click="backPage">返回</p>-->
  235. <!--</el-form-item>-->
  236. <!--</el-form>-->
  237. <!--<el-table v-loading="loading" :data="tableData2">-->
  238. <!--<el-table-column label="车辆号牌" align="left" prop="carCode"/>-->
  239. <!--<el-table-column label="所属供应商" align="left" prop="companyName"></el-table-column>-->
  240. <!--<el-table-column label="提交时间" align="left" prop="createTime"></el-table-column>-->
  241. <!--<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">-->
  242. <!--<template slot-scope="scope">-->
  243. <!--<div class="button-box">-->
  244. <!--<p class="table-button-one-90"-->
  245. <!--@click="handleClick('2',scope.row,'audit')"-->
  246. <!--v-hasPermi="['airbottle:supplier:query']"-->
  247. <!--&gt;审核</p>-->
  248. <!--</div>-->
  249. <!--</template>-->
  250. <!--</el-table-column>-->
  251. <!--</el-table>-->
  252. <!--<pagination-->
  253. <!--:total="total2"-->
  254. <!--layout="total, prev, pager, next, sizes, jumper"-->
  255. <!--:page.sync="queryParams2.pageNum"-->
  256. <!--:limit.sync="queryParams2.pageSize"-->
  257. <!--@pagination="getList2"-->
  258. <!--/>-->
  259. <!--</div>-->
  260. <!--</el-tab-pane>-->
  261. <!--<el-tab-pane label="运输人员" name="3">-->
  262. <!--&lt;!&ndash; 运输人员&ndash;&gt;-->
  263. <!--<div class="check_page_one">-->
  264. <!--<el-form :model="queryParams3" ref="queryForm" style="margin-top:20px;" :inline="true" label-width="120">-->
  265. <!--<el-form-item label="关键字" prop="name">-->
  266. <!--<el-input-->
  267. <!--v-model="queryParams3.searchValue"-->
  268. <!--placeholder="姓名/所属供应商/联系方式"-->
  269. <!--clearable-->
  270. <!--maxLength="30"-->
  271. <!--size="small"-->
  272. <!--@keyup.enter.native="handleQuery"-->
  273. <!--/>-->
  274. <!--</el-form-item>-->
  275. <!--<el-form-item>-->
  276. <!--<p class="inquire-button-one" @click="handleQuery(3)">查询</p>-->
  277. <!--<p class="reset-button-one" @click="resetQuery(3)">重置</p>-->
  278. <!--</el-form-item>-->
  279. <!--<el-form-item label="" prop="title" style="float: right">-->
  280. <!--<p class="reset-button-one" @click="backPage">返回</p>-->
  281. <!--</el-form-item>-->
  282. <!--</el-form>-->
  283. <!--<el-table v-loading="loading" :data="tableData3">-->
  284. <!--<el-table-column label="姓名" align="left" prop="userName"/>-->
  285. <!--<el-table-column label="所属供应商" align="left" prop="companyName"></el-table-column>-->
  286. <!--<el-table-column label="联系方式" align="left" prop="phone"></el-table-column>-->
  287. <!--<el-table-column label="提交时间" align="left" prop="createTime"></el-table-column>-->
  288. <!--<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">-->
  289. <!--<template slot-scope="scope">-->
  290. <!--<div class="button-box">-->
  291. <!--<p class="table-button-one-90"-->
  292. <!--@click="handleClick('3',scope.row,'audit')"-->
  293. <!--v-hasPermi="['airbottle:supplier:query']"-->
  294. <!--&gt;审核</p>-->
  295. <!--</div>-->
  296. <!--</template>-->
  297. <!--</el-table-column>-->
  298. <!--</el-table>-->
  299. <!--<pagination-->
  300. <!--:total="total3"-->
  301. <!--layout="total, prev, pager, next, sizes, jumper"-->
  302. <!--:page.sync="queryParams3.pageNum"-->
  303. <!--:limit.sync="queryParams3.pageSize"-->
  304. <!--@pagination="getList"-->
  305. <!--/>-->
  306. <!--</div>-->
  307. <!--</el-tab-pane>-->
  308. <!--</el-tabs>-->
  309. </div>
  310. <check-page v-if="pageType==2" :pageData2="pageData2"></check-page>
  311. </div>
  312. </template>
  313. <script>
  314. import { updateEl_course } from '@/api/exam/el_course'
  315. import {
  316. carCheckRecordList,
  317. supplierCheck,
  318. supplierCheckList,
  319. supplierList,
  320. userCheckRecordList
  321. } from '@/api/gasManage3_0/gasManage'
  322. import { getToken } from "@/utils/auth";
  323. import checkPage from "./supplierManageCheck.vue"
  324. export default {
  325. name: "Approval",
  326. components: {
  327. checkPage,
  328. },
  329. data() {
  330. return {
  331. //table显示状态
  332. tableType:1,
  333. activeName:'1',
  334. //页面状态
  335. pageType:1,
  336. loading:false,
  337. headers: {
  338. Authorization: "Bearer " + getToken()
  339. },
  340. // 供应商查询参数
  341. queryParams: {
  342. pageNum: 1,
  343. pageSize:20,
  344. searchValue:'',
  345. },
  346. // 车辆查询参数
  347. queryParams2: {
  348. pageNum: 1,
  349. pageSize:20,
  350. isAudit:0,
  351. searchValue:'',
  352. },
  353. // 人员查询参数
  354. queryParams3: {
  355. pageNum: 1,
  356. pageSize:20,
  357. isAudit:0,
  358. searchValue:'',
  359. },
  360. total:0,
  361. total2:0,
  362. total3:0,
  363. tableData:[],
  364. tableData2:[],
  365. tableData3:[],
  366. dateRange:[],
  367. pageData2:{},
  368. };
  369. },
  370. methods: {
  371. handleTabClick(type, event){
  372. let _this=this;
  373. _this.tableData=[];
  374. _this.tableData2=[];
  375. _this.tableData3=[];
  376. if(type==1){
  377. _this.getList()
  378. }else if(type==2){
  379. _this.getList2()
  380. }else if(type==3){
  381. _this.getList3()
  382. }
  383. _this.tableType=type
  384. },
  385. handleClick(index,row,doType){
  386. let _this=this;
  387. if(doType=='audit'){//审核
  388. _this.pageData2.id=row.id;
  389. _this.pageData2.type=index;
  390. _this.pageType=2;
  391. }else if(doType=='back'){
  392. _this.pageType=1
  393. }
  394. },
  395. //返回
  396. backPage(){
  397. this.$parent.handleClick('','','back');
  398. this.$parent.getList();
  399. },
  400. /** 搜索按钮操作 */
  401. handleQuery(type) {
  402. if(type==1){
  403. this.queryParams.pageNum = 1;
  404. this.getList();
  405. }else if(type==2){
  406. this.queryParams2.pageNum = 1;
  407. this.getList2();
  408. }else if(type==3){
  409. this.queryParams3.pageNum = 1;
  410. this.getList3();
  411. }
  412. },
  413. /** 重置按钮操作 */
  414. resetQuery(type) {
  415. if(type==1){
  416. this.queryParams.searchValue = "";
  417. }else if(type==2){
  418. this.queryParams2.searchValue = "";
  419. }else if(type==3){
  420. this.queryParams3.searchValue = "";
  421. }
  422. this.handleQuery(type);
  423. },
  424. getList(){
  425. let _this=this;
  426. supplierCheckList(_this.queryParams).then( response => {
  427. let res=response.rows;
  428. _this.tableData=res;
  429. _this.total=response.total;
  430. });
  431. },
  432. getList2(){
  433. let _this=this;
  434. carCheckRecordList(_this.queryParams2).then( response => {
  435. let res=response.rows;
  436. _this.tableData2=res;
  437. _this.total2=response.total;
  438. });
  439. },
  440. getList3(){
  441. let _this=this;
  442. userCheckRecordList(_this.queryParams3).then( response => {
  443. let res=response.rows;
  444. _this.tableData3=res;
  445. _this.total3=response.total;
  446. });
  447. },
  448. },
  449. mounted() {
  450. this.getList()
  451. this.getList2()
  452. this.getList3()
  453. }
  454. };
  455. </script>
  456. <style scoped lang="scss">
  457. .check {
  458. flex: 1;
  459. display: flex!important;
  460. flex-direction: column;
  461. box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  462. p{
  463. margin:0;
  464. }
  465. /* padding:20px 20px 20px!important;
  466. border-radius:10px;*/
  467. .check_list{
  468. flex: 1;
  469. display: flex!important;
  470. flex-direction: column;
  471. .title-box{
  472. display: flex;
  473. border-bottom: 1px solid #D8D8D8;
  474. .title-button-box{
  475. display: flex;
  476. flex:1;
  477. div{
  478. width:150px;
  479. cursor: pointer;
  480. p:nth-child(1){
  481. line-height:80px;
  482. text-align: center;
  483. font-size:18px;
  484. font-weight:500;
  485. }
  486. p:nth-child(2){
  487. margin:0 auto;
  488. width:60px;
  489. height:5px;
  490. border-radius:4px;
  491. }
  492. .button-color-1{
  493. color:#0045AF;
  494. }
  495. .button-color-2{
  496. color:#333;
  497. }
  498. .button-back-1{
  499. background: #0045AF;
  500. }
  501. }
  502. }
  503. .out-p{
  504. margin:25px 25px 0 0;
  505. }
  506. }
  507. .check_page_one{
  508. /*display: flex!important;*/
  509. /*flex-direction: column;*/
  510. /*flex: 1;*/
  511. height:100%;
  512. margin:0 20px 20px!important;
  513. .check_page_one_min{
  514. height:100%;
  515. display: flex!important;
  516. flex-direction: column;
  517. flex: 1;
  518. }
  519. }
  520. .check_page_tow{
  521. display: flex!important;
  522. flex-direction: column;
  523. flex: 1;
  524. }
  525. .check_page_tree{
  526. display: flex!important;
  527. flex-direction: column;
  528. flex: 1;
  529. }
  530. }
  531. }
  532. </style>
  533. <style lang="scss">
  534. .check{
  535. .el-tabs{
  536. flex: 1;
  537. display: flex!important;
  538. flex-direction: column;
  539. overflow: hidden;
  540. .el-tabs__content{
  541. flex:1;
  542. display: flex!important;
  543. flex-direction: column;
  544. .el-tab-pane{
  545. flex:1;
  546. display: flex!important;
  547. flex-direction: column;
  548. .check_page_one{
  549. flex:1;
  550. }
  551. }
  552. }
  553. }
  554. }
  555. </style>