supplierManageCheck.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. <!--资格申请-添加-->
  2. <template>
  3. <div class="addPage">
  4. <div class="addPage_title">
  5. <p v-if="type==1">审核供应商</p>
  6. <p v-if="type==2">审核车辆</p>
  7. <p v-if="type==3">审核人员</p>
  8. <P></P>
  9. <p class="button-p reset-button-one" @click="backPage">返回</p>
  10. </div>
  11. <div class="addPage_b">
  12. <!--申请3-->
  13. <div v-if="pageType==1" class="apply_tree">
  14. <div class="apply_tree_t" v-if="type==1">
  15. <img src="@/assets/ZDimages/gasManage3_0/icon_sml_lxr.png"/>
  16. <i>请认真核对供应商信息后填写审核说明,审核通过可选填审核说明,审核未通过则必须填写审核说明。</i>
  17. </div>
  18. <div class="apply_tree_t" v-if="type==2">
  19. <img src="@/assets/ZDimages/gasManage3_0/icon_sml_lxr.png"/>
  20. <i> 请认真核对车辆信息后填写审核说明,审核通过可选填审核说明,审核未通过则必须填写审核说明。</i>
  21. </div>
  22. <div class="apply_tree_t" v-if="type==3">
  23. <img src="@/assets/ZDimages/gasManage3_0/icon_sml_lxr.png"/>
  24. <i> 请认真核对人员信息后填写审核说明,审核通过可选填审核说明,审核未通过则必须填写审核说明。。</i>
  25. </div>
  26. <!-- 供应商-->
  27. <div class="apply_tree_m" v-if="type==1">
  28. <li>
  29. <img src="@/assets/ZDimages/gasManage3_0/icon_xxjl_gs.png"/>
  30. <div class="apply_tree_m_r">
  31. <i>供应商名称:</i>
  32. <p>{{form.companyName}}</p>
  33. <i>经营地址:</i>
  34. <p>{{form.businessAddress}}</p>
  35. </div>
  36. </li>
  37. <i></i>
  38. <li>
  39. <img src="@/assets/ZDimages/gasManage3_0/icon_xxjl_lxr.png"/>
  40. <div class="apply_tree_m_r">
  41. <i>联系人:</i>
  42. <p>{{form.contacts}}</p>
  43. <i>联系方式:</i>
  44. <p>{{form.phone}}</p>
  45. </div>
  46. </li>
  47. </div>
  48. <!-- 车辆-->
  49. <div class="apply_tree_m1" v-if="type==2">
  50. <li><i>车辆号牌:</i><i style="width: 180px">{{form.carCode}}</i></li>
  51. <li><i>所属供应商:</i><i>{{form.companyName}}</i></li>
  52. </div>
  53. <!-- 人员-->
  54. <div class="apply_tree_m1" v-if="type==3">
  55. <li><i>姓名:</i><i style="width: 220px">{{form.userName}}</i></li>
  56. <li><i>所属供应商:</i><i style="width: 200px">{{form.companyName}}</i></li>
  57. <li><i>联系方式:</i><i>{{form.phone}}</i></li>
  58. </div>
  59. <!-- 供应商-->
  60. <div class="apply_tree_b" v-if="type==1">
  61. <li v-for="(item2,index2) in form.qpSupplierCredentialsVos">
  62. <div class="apply_tree_b_t">{{item2.naturalName}}:</div>
  63. <div class="apply_tree_b_m"><img :src="item2.naturalUrl"/></div>
  64. <div class="apply_tree_b_b"><i style="color: #333">有效期:</i>{{item2.startTime}}至{{item2.endTime}}</div>
  65. </li>
  66. </div>
  67. <!-- 车辆-->
  68. <div class="apply_tree_b" v-if="type==2">
  69. <li v-for="(item2,index2) in form.carCredentialsVos">
  70. <div class="apply_tree_b_t">{{item2.naturalName}}:</div>
  71. <div class="apply_tree_b_m"><img :src="item2.naturalUrl"/></div>
  72. <div class="apply_tree_b_b"><i style="color: #333">有效期:</i>{{item2.startTime}}至{{item2.endTime}}</div>
  73. </li>
  74. </div>
  75. <!-- 人员-->
  76. <div class="apply_tree_b" v-if="type==3">
  77. <li v-for="(item2,index2) in form.userCredentialsVos">
  78. <div class="apply_tree_b_t">{{item2.naturalName}}:</div>
  79. <div class="apply_tree_b_m"><img :src="item2.naturalUrl"/></div>
  80. <div class="apply_tree_b_b"><i style="color: #333"><i style="color: #333">有效期:</i></i>{{item2.startTime}}至{{item2.endTime}}</div>
  81. </li>
  82. </div>
  83. <el-input type="textarea" class="apply_tree_b2" v-model="queryParamsCheck.auditContent" placeholder="请输入审核说明" maxlength="50" />
  84. <div class="sub_btn">
  85. <p class="reset-button-one" style="width:150px;margin-right: 30px" @click="handleClick('','','reject')">审核驳回</p>
  86. <p class="inquire-button-one" style="width:150px;" @click="handleClick('','','pass')">审核通过</p>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="record">
  91. <div class="record_title">审核记录</div>
  92. <el-table border v-loading="loading" :data="tableData" height="300">
  93. <el-table-column label="审核人" align="left" prop="auditUser"/>
  94. <el-table-column label="审核时间" align="left" prop="auditTime"></el-table-column>
  95. <el-table-column label="审核操作" align="left" prop="status">
  96. <template slot-scope="scope">
  97. <span v-if="scope.row.status == 0">待审核</span>
  98. <span v-if="scope.row.status == 1">通过</span>
  99. <span v-if="scope.row.status == 2">驳回</span>
  100. </template>
  101. </el-table-column>
  102. <el-table-column label="审核说明" align="left" prop="auditContent"></el-table-column>
  103. </el-table>
  104. <pagination
  105. :total="total"
  106. layout="total, prev, pager, next, sizes, jumper"
  107. :page.sync="queryParams.pageNum"
  108. :limit.sync="queryParams.pageSize"
  109. @pagination="getList"
  110. />
  111. </div>
  112. </div>
  113. </template>
  114. <script>
  115. import { getToken } from "@/utils/auth";
  116. import {
  117. carCheckRecordList, carDetail,
  118. CheckRecordList,
  119. subjectList,
  120. supplierCheck,
  121. supplierDetail, userDetail
  122. } from '@/api/gasManage3_0/gasManage'
  123. export default {
  124. name: "addPage",
  125. props:{
  126. pageData2: {},
  127. },
  128. data() {
  129. return {
  130. pageType:1,
  131. uploadImgUrl: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/base/upload", // 上传的图片服务器地址
  132. headers: {
  133. Authorization: "Bearer " + getToken(),
  134. },
  135. loading:false,
  136. form:{
  137. },
  138. dateRange:[],
  139. // 查询参数
  140. queryParams: {
  141. pageNum: 1,
  142. pageSize:20,
  143. },
  144. // 供应商审核参数
  145. queryParamsCheck: {
  146. auditType: 1,//审核类型 (1:供应商,2:人员,3:车辆)
  147. syntheticalId:'',
  148. status:1,//1通过2驳回
  149. auditContent:'',// 审核内容
  150. },
  151. // 供应商审核列表参数
  152. queryParamsCheckList: {
  153. auditType: 1,//审核类型 (1:供应商,2:人员,3:车辆)
  154. syntheticalId:'',
  155. },
  156. total:0,
  157. tableData:[{
  158. num:0,
  159. }],
  160. dialogVisible:false,
  161. type:null,//1供应商2车辆3人员
  162. };
  163. },
  164. created() {
  165. },
  166. methods: {
  167. handleClick(index,row,doType){
  168. let _this=this;
  169. if(doType=='reject'){//驳回
  170. _this.queryParamsCheck.status=2;
  171. if(_this.queryParamsCheck.auditContent){
  172. _this.checkFun();
  173. }else{
  174. this.$message({
  175. type: 'error',
  176. message:'请输入审核说明!',
  177. duration:2000,
  178. });
  179. }
  180. }else if(doType=='pass'){//通过
  181. _this.queryParamsCheck.status=1;
  182. _this.checkFun();
  183. }
  184. },
  185. /* 供应商详情 */
  186. getSupplierInfo(id){
  187. let _this=this;
  188. supplierDetail(id).then( response => {
  189. let res=response.data;
  190. if(response.code==200){
  191. _this.form=res;
  192. let arr=[];
  193. _this.form.qpSupplierCredentialsVos.forEach(function(item,idnex) {
  194. if(item.naturalUrl && item.startTime && item.endTime){
  195. arr.push(item)
  196. }
  197. })
  198. _this.form.qpSupplierCredentialsVos=arr
  199. }
  200. });
  201. },
  202. /* 运输车辆详情 */
  203. getCarInfo(id){
  204. let _this=this;
  205. carDetail(id).then( response => {
  206. let res=response.data;
  207. if(response.code==200){
  208. _this.form=res;
  209. let arr=[];
  210. _this.form.carCredentialsVos.forEach(function(item,idnex) {
  211. if(item.naturalUrl && item.startTime && item.endTime){
  212. arr.push(item)
  213. }
  214. })
  215. _this.form.carCredentialsVos=arr
  216. }
  217. });
  218. },
  219. /* 运输人员详情 */
  220. getUserInfo(id){
  221. let _this=this;
  222. userDetail(id).then( response => {
  223. let res=response.data;
  224. if(response.code==200){
  225. _this.form=res;
  226. let arr=[];
  227. _this.form.userCredentialsVos.forEach(function(item,idnex) {
  228. if(item.naturalUrl && item.startTime && item.endTime){
  229. arr.push(item)
  230. }
  231. })
  232. _this.form.userCredentialsVos=arr
  233. }
  234. });
  235. },
  236. //审核记录列表
  237. checkRecordList(){
  238. let _this=this;
  239. CheckRecordList(this.queryParamsCheckList).then( response => {
  240. let res=response.rows;
  241. _this.tableData=res;
  242. });
  243. },
  244. //审核按钮
  245. checkFun(){
  246. let _this=this;
  247. supplierCheck(this.queryParamsCheck).then( response => {
  248. if(response.code==200){
  249. this.$message({
  250. type: 'success',
  251. message:response.msg,
  252. duration:2000,
  253. onClose:function(){
  254. _this.backPage();
  255. _this.loading = false;
  256. }
  257. });
  258. }
  259. });
  260. },
  261. //返回
  262. backPage(){
  263. this.$parent.handleClick('','','back');
  264. this.$parent.getList();
  265. this.$parent.getList2();
  266. this.$parent.getList3();
  267. },
  268. getList(){
  269. },
  270. },
  271. mounted() {
  272. this.queryParamsCheck.syntheticalId=this.pageData2.id;
  273. this.queryParamsCheckList.syntheticalId=this.pageData2.id;
  274. this.type=this.pageData2.type
  275. if(this.pageData2.type==1){//供应商详情
  276. this.queryParamsCheck.auditType=1;
  277. this.queryParamsCheckList.auditType=1;
  278. this.getSupplierInfo(this.pageData2.id);
  279. }else if(this.pageData2.type==2){//运输车辆详情
  280. this.queryParamsCheck.auditType=3;
  281. this.queryParamsCheckList.auditType=3;
  282. this.getCarInfo(this.pageData2.id);
  283. }else if(this.pageData2.type==3){//运输人员详情
  284. this.queryParamsCheck.auditType=2;
  285. this.queryParamsCheckList.auditType=2;
  286. this.getUserInfo(this.pageData2.id);
  287. }
  288. this.checkRecordList()
  289. }
  290. };
  291. </script>
  292. <style scoped lang="scss">
  293. .addPage {
  294. flex:1;
  295. display: flex!important;
  296. flex-direction: column;
  297. box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  298. border-radius:10px;
  299. /*顶部*/
  300. .addPage_title{
  301. display: flex;
  302. align-items: center;
  303. border-bottom: 1px solid #E0E0E0;
  304. padding-top:20px;
  305. p:nth-child(1){
  306. line-height:60px;
  307. color: #0045AF;
  308. font-size:18px;
  309. margin:0 12px 0 20px;
  310. }
  311. p:nth-child(2){
  312. font-size: 14px;
  313. font-family: Source Han Sans CN;
  314. font-weight: 400;
  315. color: #999999;
  316. flex: 1;
  317. }
  318. p:nth-child(3){
  319. margin-right:20px;
  320. }
  321. }
  322. .addPage_b{
  323. flex: 1;
  324. display: flex!important;
  325. flex-direction: column;
  326. /*申请三*/
  327. .apply_tree{
  328. width: 900px;
  329. margin: 0 auto;
  330. .apply_tree_t{
  331. display: flex;
  332. justify-content: center;
  333. margin-top: 50px;
  334. >img{
  335. width: 16px;
  336. height: 16px;
  337. margin-right: 10px;
  338. }
  339. >i{
  340. font-size: 16px;
  341. font-family: Microsoft YaHei;
  342. font-weight: 400;
  343. color: #FA8801;
  344. line-height: 16px;
  345. font-style: normal;
  346. }
  347. }
  348. .apply_tree_m{
  349. display: flex;
  350. justify-content: center;
  351. align-items: center;
  352. margin-top: 50px;
  353. >li{
  354. display: flex;
  355. justify-content: flex-start;
  356. >img{
  357. width: 102px;
  358. height: 122px;
  359. margin-right: 28px;
  360. }
  361. .apply_tree_m_r{
  362. >i{
  363. display: block;
  364. font-size: 16px;
  365. font-family: Microsoft YaHei;
  366. font-weight: 400;
  367. color: #999999;
  368. line-height: 16px;
  369. font-style: normal;
  370. }
  371. >p{
  372. font-size: 16px;
  373. font-family: Microsoft YaHei;
  374. font-weight: 400;
  375. color: #333333;
  376. line-height: 16px;
  377. margin-top: 20px;
  378. }
  379. }
  380. }
  381. >i{
  382. width: 2px;
  383. height: 100px;
  384. background: #E0E0E0;
  385. margin: 0 66px;
  386. }
  387. }
  388. .apply_tree_b{
  389. display: flex;
  390. justify-content: flex-start;
  391. align-items: center;
  392. flex-wrap: wrap;
  393. margin-top: 50px;
  394. >li{
  395. list-style-type: none;
  396. margin-left: 64px;
  397. .apply_tree_b_t{
  398. font-size: 16px;
  399. font-family: Microsoft YaHei;
  400. font-weight: 400;
  401. color: #333333;
  402. line-height: 16px;
  403. margin-bottom: 20px;
  404. }
  405. .apply_tree_b_m{
  406. width: 230px;
  407. height: 150px;
  408. border: 1px solid #E0E0E0;
  409. >img{
  410. width: 190px;
  411. height: 138px;
  412. margin: 6px 20px;
  413. }
  414. }
  415. .apply_tree_b_b{
  416. font-size: 12px;
  417. font-family: Microsoft YaHei;
  418. font-weight: 400;
  419. color: #999;
  420. line-height: 24px;
  421. margin-top: 24px;
  422. >i{
  423. font-style: normal;
  424. }
  425. }
  426. }
  427. }
  428. .apply_tree_m1{
  429. display: flex;
  430. justify-content: flex-start;
  431. margin-left: 70px;
  432. >li{
  433. list-style-type: none;
  434. margin-right: 20px;
  435. >i{
  436. font-style: normal;
  437. display: inline-block;
  438. }
  439. >i:nth-of-type(1){
  440. font-size: 16px;
  441. font-family: Microsoft YaHei;
  442. font-weight: 400;
  443. color: #999999;
  444. line-height: 70px;
  445. }
  446. >i:nth-of-type(2){
  447. font-size: 16px;
  448. font-family: Microsoft YaHei;
  449. font-weight: 400;
  450. color: #333333;
  451. line-height: 70px;
  452. }
  453. }
  454. }
  455. .apply_tree_b2{
  456. width: 800px;
  457. margin: 46px 0 38px 70px;
  458. }
  459. .sub_btn{
  460. display: flex;
  461. justify-content: center;
  462. margin: 30px 0;
  463. }
  464. }
  465. }
  466. /*审核记录*/
  467. .record{
  468. margin: 20px;
  469. .record_title{
  470. font-size: 16px;
  471. font-family: Microsoft YaHei;
  472. font-weight: bold;
  473. color: #333333;
  474. line-height: 16px;
  475. margin-bottom: 20px;
  476. }
  477. }
  478. }
  479. </style>