supplierWorkbench.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <!-- 整改列表 -->
  2. <template>
  3. <view class="supplier" style="display: flex;flex-direction: column;flex: 1;">
  4. <view v-if="pageType==0">
  5. <view class="supplier_h" @click="handleClick('mine')">
  6. <img :src="imagesUrl('supplier/img_gysglpt_bg.png')">
  7. <img :src="imagesUrl('supplier/img_gysglpt_icom.png')">
  8. <img :src="imagesUrl('supplier/icon_gyspt_gd.png')">
  9. <view>{{form.companyName}}</view>
  10. </view>
  11. <view class="supplier_tab">
  12. <view class="supplier_tab_li" @click="handleClick('people')">
  13. <text>{{form.peopleSum}}</text>
  14. <text>运输人员</text>
  15. </view>
  16. <view class="supplier_tab_line"></view>
  17. <view class="supplier_tab_li" @click="handleClick('car')">
  18. <text>{{form.carSum}}</text>
  19. <text>运输车辆</text>
  20. </view>
  21. <view class="supplier_tab_line"></view>
  22. <view class="supplier_tab_li" @click="handleClick('bottle')">
  23. <text>{{form.bottleSum}}</text>
  24. <text>气瓶管理</text>
  25. </view>
  26. </view>
  27. <scroll-view scroll-y @scrolltolower="scrollGet" class="for-max-box">
  28. <view class="for-big-box">
  29. <view class="backlog" @click="handleClick('backlog')">
  30. <img class="backlog_l" :src="imagesUrl('supplier/icon_glpt_dbqd.png')">
  31. <view class="backlog_c">待办清单</view>
  32. <img class="backlog_r" :src="imagesUrl('supplier/icon_wdwg_gd.png')">
  33. </view>
  34. <view class="for-box" @click="goInfo(item)" v-for="(item,index) in dataList" :key="index">
  35. <view class="for-title-box">
  36. <view v-if="item.remark=='gq'" class="viewColor1">供气</view>
  37. <view v-if="item.remark=='hs'" class="viewColor3">回收</view>
  38. <view v-if="item.remark=='wt'" class="viewColor2">问题</view>
  39. <view v-if="item.remark=='hs' || item.remark=='wt'">{{item.airName}}-{{item.configName}}</view>
  40. <view v-if="item.remark=='gq'" ><text v-for="(item2,index2) in item.detailListVO" :key="index2" v-if="index2<2">{{item2.airName}}-{{item2.configName}}*{{item2.bottleNumber}}<text>{{index2<1?' ':'...'}}</text></text></view>
  41. </view>
  42. <view class="for-address-box">
  43. <img :src="imagesUrl('supplier/icon_wtzg_xx.png')">
  44. <view >{{item.campus}}-{{item.building}}-{{item.room}}</view>
  45. </view>
  46. <view class="for-time-box">
  47. <img :src="imagesUrl('supplier/icon_wtzg_sj.png')">
  48. <view>{{item.createTime}}</view>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- <img class="null-img" v-if="!dataList[0]" :src="imagesUrl('supplier/null-data-1.png')"> -->
  53. </scroll-view>
  54. <img class="supernatant" @click="handleClick('recycle')" :src="imagesUrl('supplier/icon_glpt_gqhsjl.png')">
  55. </view>
  56. <view class="empty" v-if="emptyList==4 && pageType==0">
  57. <img class="for-back-img" :src="imagesUrl('supplier/img_ysrygl_zwsj.png')">
  58. <view>暂无数据</view>
  59. </view>
  60. <hasten-page v-if="pageType==1"></hasten-page>
  61. <reject-page v-if="pageType==2" :infoData="infoData"></reject-page>
  62. <forbidden-page v-if="pageType==3"></forbidden-page>
  63. </view>
  64. </template>
  65. <script>
  66. import { config } from '@/api/request/config.js'
  67. import { supplierDetail,storageListTaskIndex } from '@/pages/api/index.js'
  68. import { hastenPage } from './hasten.vue'
  69. import { rejectPage } from './reject.vue'
  70. import { forbiddenPage } from './forbidden.vue'
  71. export default {
  72. name: "rectifyList",
  73. components: {
  74. hastenPage,//供应商正在审核
  75. rejectPage,//供应商驳回
  76. forbiddenPage,//供应商停用
  77. },
  78. data() {
  79. return {
  80. emptyList:0,
  81. pageType:4,
  82. dataList:[],
  83. //列表请求参数
  84. getData:{
  85. pageNum:1,
  86. pageSize:5,
  87. },
  88. form:{
  89. companyName:'',//企业名称
  90. peopleSum:'0',//人员数量总数
  91. carSum:'0',//运输车辆总数
  92. bottleSum:'0',//气瓶数量总数
  93. },
  94. infoData:'',//驳回原因
  95. state:'',
  96. }
  97. },
  98. onLoad() {
  99. },
  100. onShow() {
  101. console.log('1');
  102. this.infoList=[];
  103. },
  104. mounted(){
  105. console.log('2');
  106. this.getInfo();
  107. this.getList();
  108. },
  109. methods: {
  110. //滚动加载事件
  111. scrollGet(){
  112. if(this.getData.getType){
  113. this.getData.page += 1;
  114. this.getList();
  115. }
  116. },
  117. goInfo(d){
  118. if(d.remark=='gq'){
  119. uni.navigateTo({
  120. url:'/pages_supplier/views/backlogManage/backlogManageAirDetail?item='+encodeURIComponent(JSON.stringify(d))
  121. });
  122. }else if(d.remark=='hs'){
  123. uni.navigateTo({
  124. url:'/pages_supplier/views/backlogManage/backlogManageRecycleDetail?item='+encodeURIComponent(JSON.stringify(d))
  125. });
  126. }else if(d.remark=='wt'){
  127. uni.navigateTo({
  128. url:'/pages_supplier/views/backlogManage/backlogManageIssueDetail?item='+encodeURIComponent(JSON.stringify(d))
  129. });
  130. }
  131. },
  132. handleClick(doType) {
  133. if(doType=='people'){
  134. uni.navigateTo({
  135. url:'/pages_supplier/views/transportPerson/transportPerson'
  136. });
  137. }else if(doType=='car'){
  138. uni.navigateTo({
  139. url:'/pages_supplier/views/transportCar/transportCar'
  140. });
  141. }else if(doType=='bottle'){
  142. uni.navigateTo({
  143. url:'/pages_supplier/views/gasManage/gasManage'
  144. });
  145. }else if(doType=='mine'){
  146. uni.navigateTo({
  147. url: '/pages_supplier/views/mine/mine?state='+this.state
  148. });
  149. }else if(doType=='backlog'){//待办清单
  150. uni.navigateTo({
  151. url:'/pages_supplier/views/backlogManage/backlogManage'
  152. });
  153. }else if(doType=='recycle'){//供气回收
  154. uni.navigateTo({
  155. url:'/pages_supplier/views/gasRecycle/gasRecycle'
  156. });
  157. }
  158. },
  159. //获取首页详情
  160. async getInfo(){
  161. let _this = this;
  162. const {data} = await supplierDetail()
  163. let res=data.data
  164. if(data.code==200){
  165. this.state=res.state;
  166. if(res.state==0){//审核状态(0:未审核,1:审核通过,2:审核未通过)
  167. this.pageType=1;
  168. }else if(res.state==1){
  169. this.pageType=0;
  170. }else if(res.state==2){
  171. this.pageType=2;
  172. this.infoData=res.audit.auditContent//驳回原因
  173. }
  174. this.form.companyName=res.companyName
  175. this.form.peopleSum=res.peopleSum
  176. this.form.carSum=res.carSum
  177. this.form.bottleSum=res.bottleSum
  178. }else if(data.code==500){//资格状态status(0:启用,1:停用)
  179. this.pageType=3;
  180. }
  181. },
  182. //获取列表数据
  183. async getList(){
  184. let _this = this;
  185. const {data} = await storageListTaskIndex(_this.getData);
  186. if(data.code==200){
  187. let res=data.data;
  188. _this.dataList=res;
  189. if(_this.dataList.length<=0){
  190. _this.emptyList=4
  191. }
  192. }
  193. },
  194. }
  195. }
  196. </script>
  197. <style lang="stylus" scoped>
  198. .empty{
  199. text-align: center;
  200. margin-top: 116rpx;
  201. >img{
  202. width: 336rpx;
  203. height: 222rpx;
  204. margin-left: 208rpx;
  205. }
  206. >view{
  207. font-size: 30rpx;
  208. font-family: PingFang SC;
  209. font-weight: 500;
  210. color: #E0E0E0;
  211. line-height: 30rpx;
  212. margin-top: 48rpx;
  213. }
  214. }
  215. .supplier{
  216. .supplier_h{
  217. width: 750rpx;
  218. height: 200rpx;
  219. position: relative;
  220. >img:nth-child(1){
  221. width: 750rpx;
  222. height: 200rpx;
  223. position: absolute;
  224. left: 0;
  225. top: 0;
  226. }
  227. >img:nth-child(2){
  228. width: 110rpx;
  229. height: 110rpx;
  230. position: absolute;
  231. left: 18rpx;
  232. top: 44rpx;
  233. }
  234. >img:nth-child(3){
  235. width: 12rpx;
  236. height: 24rpx;
  237. position: absolute;
  238. left: 716rpx;
  239. top: 92rpx;
  240. }
  241. >view{
  242. width: 550rpx;
  243. font-size: 30rpx;
  244. font-family: PingFang SC;
  245. font-weight: 500;
  246. color: #FFFFFF;
  247. line-height: 30rpx;
  248. position: absolute;
  249. left: 164rpx;
  250. top: 84rpx;
  251. }
  252. }
  253. .supplier_tab{
  254. width: 710rpx;
  255. height: 180rpx;
  256. background: #FFFFFF;
  257. border-radius: 10rpx;
  258. display: flex;
  259. justify-content: space-between;
  260. align-items: center;
  261. margin: 20rpx 20rpx 0;
  262. .supplier_tab_line{
  263. width: 2rpx;
  264. height: 30rpx;
  265. background: #E0E0E0;
  266. }
  267. .supplier_tab_li{
  268. flex: 1;
  269. text-align: center;
  270. >text{
  271. display: block;
  272. }
  273. >text:nth-child(1){
  274. font-size: 30rpx;
  275. font-family: PingFang SC;
  276. font-weight: 500;
  277. color: #0183FA;
  278. line-height: 30rpx;
  279. }
  280. >text:nth-child(2){
  281. font-size: 30rpx;
  282. font-family: PingFang SC;
  283. font-weight: 500;
  284. color: #333333;
  285. line-height: 30rpx;
  286. margin-top: 36rpx;
  287. }
  288. }
  289. }
  290. /* 列表 */
  291. .for-max-box{
  292. flex:1;
  293. overflow-y scroll;
  294. .for-big-box{
  295. background:#fff;
  296. border-radius:20rpx;
  297. margin:20rpx;
  298. .backlog{
  299. height: 100rpx;
  300. display: flex;
  301. justify-content: flex-start;
  302. align-items: center;
  303. .backlog_l{
  304. width: 34rpx;
  305. height: 32rpx;
  306. margin-left:20rpx;
  307. }
  308. .backlog_c{
  309. font-size: 30rpx;
  310. font-family: PingFang SC;
  311. font-weight: 500;
  312. color: #333333;
  313. line-height: 30rpx;
  314. margin-left:16rpx;
  315. }
  316. .backlog_r{
  317. width: 24rpx;
  318. height: 24rpx;
  319. margin-left:472rpx;
  320. }
  321. }
  322. .for-box:nth-child(1){
  323. .for-title-box{
  324. border:none;
  325. }
  326. }
  327. .for-box{
  328. overflow hidden
  329. .for-title-box{
  330. display:flex;
  331. margin:0 26rpx 0;
  332. border-top:1rpx solid #dedede;
  333. padding-top:45rpx;
  334. view:nth-child(1){
  335. width:98rpx;
  336. line-height:38rpx;
  337. height:38rpx;
  338. border-radius:6rpx;
  339. font-size:20rpx;
  340. text-align center;
  341. margin-right:10rpx;
  342. }
  343. view:nth-child(2){
  344. flex:1;
  345. font-size:30rpx;
  346. color:#333;
  347. height:36rpx;
  348. lin-height:36rpx;
  349. margin-right:10rpx;
  350. display:block;
  351. overflow:hidden;
  352. text-overflow:ellipsis;
  353. white-space:nowrap;
  354. }
  355. view:nth-child(3){
  356. font-size:30rpx;
  357. color:#333;
  358. height:36rpx;
  359. lin-height:36rpx;
  360. color:#D80000;
  361. }
  362. .viewColor1{
  363. background #ffe6e6;
  364. color:#ff5555;
  365. }
  366. .viewColor2{
  367. background #fef2dd;
  368. color:#f6a71d;
  369. }
  370. .viewColor3{
  371. background #e0f1e2;
  372. color:#30a23d;
  373. }
  374. .viewColor4{
  375. background #f2dddd;
  376. color:#a51919;
  377. }
  378. .viewColor5{
  379. background #e2f6f8;
  380. color:#3ac3d3;
  381. }
  382. .viewColor6{
  383. background #d9edfe;
  384. color:#0183fa;
  385. }
  386. }
  387. .for-address-box{
  388. display:flex;
  389. margin:33rpx 26rpx 0;
  390. img{
  391. width:28rpx;
  392. height:28rpx;
  393. margin-right:20rpx;
  394. }
  395. view{
  396. font-size:28rpx;
  397. line-height:28rpx;
  398. color:#666;
  399. }
  400. }
  401. .for-time-box{
  402. display:flex;
  403. margin:26rpx 26rpx 0;
  404. padding-bottom:32rpx;
  405. img{
  406. width:28rpx;
  407. height:28rpx;
  408. margin-right:20rpx;
  409. }
  410. view{
  411. font-size:28rpx;
  412. line-height:28rpx;
  413. color:#666;
  414. }
  415. }
  416. }
  417. }
  418. .null-img{
  419. display block
  420. width:276rpx;
  421. height:321rpx;
  422. position absolute
  423. top:100rpx;
  424. left:274rpx;
  425. }
  426. }
  427. /* 供求回收记录 */
  428. .supernatant{
  429. width: 152rpx;
  430. height: 152rpx;
  431. position: fixed;
  432. right: 0rpx;
  433. bottom: 60rpx;
  434. }
  435. }
  436. </style>