Issueandreceipt_task_approval.vue 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522
  1. <template>
  2. <view class="warp">
  3. <view class="topInfo" v-if='retreatList.inOutType!="退库"'>
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode=""
  8. v-if="OutList.taskStatus == '已驳回'||EnterList.taskStatus == '已驳回'" style="height: 40rpx;">
  9. </image><!-- 驳回 -->
  10. <image src="../../../static/img/tongguo.png" mode=""
  11. v-else-if="OutList.taskStatus == '已通过'||EnterList.taskStatus == '已通过'||OutList.taskStatus == '执行中'"
  12. style="height: 40rpx;"></image><!-- 通过 -->
  13. <image src="../../../static/img/daishenhe.png" mode=""
  14. v-else-if="OutList.taskStatus == '审核中'||OutList.taskStatus == '待审核'||EnterList.taskStatus == '待审核'"
  15. style="height: 40rpx;"></image><!-- 待审核 -->
  16. </view>
  17. <view class="infoText" v-if="OutList.taskStatus">
  18. {{OutList.approveStatus?OutList.approveStatus:OutList.taskStatus}}
  19. </view>
  20. <view class="infoText" v-else>
  21. {{EnterList.approveStatus?EnterList.approveStatus:EnterList.taskStatus}}
  22. </view>
  23. </view>
  24. <view class="infoData" v-if="OutList.updateDate">{{OutList.updateDate}}</view>
  25. <view class="infoData" v-else>{{EnterList.updateDate}}</view>
  26. </view>
  27. </view>
  28. <view class="content1">
  29. <u-form :model="OutList" ref="uForm">
  30. <u-form-item label="任务类型" prop="inOutType" label-width="140" class="uForm_item">
  31. <u-input v-model="OutList.inOutType" input-align="right" disabled v-if="OutList.inOutType" />
  32. <u-input v-model="retreatList.inOutType" input-align="right" disabled
  33. v-else-if="retreatList.inOutType" />
  34. <u-input v-model="EnterList.inOutType" input-align="right" disabled v-else />
  35. </u-form-item>
  36. <view v-if="retreatList.judge == 3">
  37. <!-- 退库 -->
  38. <view class="uForm_item">
  39. <view class="title part2">{{retreatList.inOutType}}</view>
  40. <view class='row'>
  41. <view class="left">编号</view>
  42. <view class="right">退库({{retreatList.inOutTaskNo}}}</view>
  43. </view>
  44. <view class='row'>
  45. <view class="left">仓库</view>
  46. <view class="right">{{retreatList.warehouseName}}</view>
  47. </view>
  48. <view class='row'>
  49. <view class="left">出库类型</view>
  50. <view class="right">{{retreatList.inOutType}}</view>
  51. </view>
  52. <view class='row' v-if="retreatList.inOutType == '移库出库'">
  53. <view class="left" style="width: 180rpx;">移库任务编号</view>
  54. <view class="right">{{retreatList.moveTaskNo}}</view>
  55. </view>
  56. <view class='row' v-if="retreatList.inOutType != '移库出库'">
  57. <view class="left">合同编号</view>
  58. <view class="right">{{retreatList.contractNo}}</view>
  59. </view>
  60. <view class='row'>
  61. <view class="left">货名</view>
  62. <view class="right">{{retreatList.goodsName}}</view>
  63. </view>
  64. <view class='row'>
  65. <view class="left">重量(吨)</view>
  66. <view class="right">{{retreatList.weight}}</view>
  67. </view>
  68. <view class='row'>
  69. <view class="left">预计出库日期</view>
  70. <view class="right">{{retreatList.predictDate}}</view>
  71. </view>
  72. <!-- <view class='row'>
  73. <view class="left">预估运费(元/吨)</view>
  74. <view class="right">{{retreatList.estimatedFreight}}</view>
  75. </view> -->
  76. <view class='row'>
  77. <view class="left">收货人</view>
  78. <view class="right">{{retreatList.agent}}</view>
  79. </view>
  80. </view>
  81. <view class="uForm_item">
  82. <u-form-item label="品级" prop="grade" label-width="150">
  83. <u-input v-model="retreatList.grade" input-align="right" placeholder="" @click='show=true'
  84. disabled />
  85. <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show"
  86. mode="selector">
  87. </u-picker>
  88. </u-form-item>
  89. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190">
  90. <u-input v-model="retreatList.bulkDensity" input-align="right" placeholder="" />
  91. </u-form-item>
  92. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160">
  93. <u-input v-model="retreatList.waterContent" input-align="right" placeholder="" />
  94. </u-form-item>
  95. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top">
  96. <u-input v-model="retreatList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  97. type="textarea" class="textarea" maxlength="150" disabled />
  98. </u-form-item>
  99. <u-form-item v-if='!retreatList.status' label="单价(元/吨)" prop="unitPrice" label-width="160">
  100. <u-input v-model="retreatList.unitPrice" input-align="right" placeholder="" />
  101. </u-form-item>
  102. </view>
  103. </view>
  104. <view v-if="OutList.judge == 1">
  105. <view class="uForm_item">
  106. <!-- 出库 -->
  107. <view class="title part2">{{OutList.inOutType}}</view>
  108. <view class='row'>
  109. <view class="left">编号</view>
  110. <view class="right">出库({{OutList.inOutTaskNo}})</view>
  111. </view>
  112. <view class='row'>
  113. <view class="left">仓库</view>
  114. <view class="right">{{OutList.warehouseName}}</view>
  115. </view>
  116. <view class='row'>
  117. <view class="left">出库类型</view>
  118. <view class="right">{{OutList.inOutType}}</view>
  119. </view>
  120. <view class='row' v-if="OutList.inOutType == '移库出库'">
  121. <view class="left" style="width: 180rpx;">移库任务编号</view>
  122. <view class="right">{{OutList.moveTaskNo}}</view>
  123. </view>
  124. <view class='row' v-if="OutList.inOutType != '移库出库'">
  125. <view class="left">合同编号</view>
  126. <view class="right">{{OutList.contractNo}}</view>
  127. </view>
  128. <view class='row'>
  129. <view class="left">货名</view>
  130. <view class="right">{{OutList.goodsName}}</view>
  131. </view>
  132. <view class='row'>
  133. <view class="left">重量(吨)</view>
  134. <view class="right">{{OutList.weight}}</view>
  135. </view>
  136. <view class='row'>
  137. <view class="left">预计出库日期</view>
  138. <view class="right">{{OutList.predictDate}}</view>
  139. </view>
  140. <!-- <view class='row'>
  141. <view class="left">预估运费(元/吨)</view>
  142. <view class="right">{{OutList.estimatedFreight}}</view>
  143. </view> -->
  144. <view class='row'>
  145. <view class="left">发货人</view>
  146. <view class="right">{{OutList.agent}}</view>
  147. </view>
  148. </view>
  149. <view class="uForm_item">
  150. <u-form-item label="品级" prop="grade" label-width="150" v-if="retreatList.inOutType != '退库'">
  151. <u-input v-model="OutList.grade" input-align="right" placeholder="" @click='show=true'
  152. disabled />
  153. <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show"
  154. mode="selector"></u-picker>
  155. </u-form-item>
  156. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
  157. v-if="retreatList.inOutType != '退库'">
  158. <u-input v-model="OutList.bulkDensity" input-align="right" placeholder="" />
  159. </u-form-item>
  160. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
  161. v-if="retreatList.inOutType != '退库'">
  162. <u-input v-model="OutList.waterContent" input-align="right" placeholder="" />
  163. </u-form-item>
  164. <u-form-item v-if='!retreatList.status&&retreatList.inOutType != "退库"' label="单价(元/吨)"
  165. prop="unitPrice" label-width="160">
  166. <u-input v-model="OutList.unitPrice" input-align="right" placeholder="" disabled />
  167. </u-form-item>
  168. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top"
  169. v-if="OutList.inOutType != '移库出库'">
  170. <u-input v-model="OutList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  171. type="textarea" class="textarea" maxlength="150" />
  172. </u-form-item>
  173. <u-form-item v-if="retreatList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber"
  174. label-width="170">
  175. <u-input v-model="OutList.binNumber" input-align="right" placeholder="未指定" />
  176. </u-form-item>
  177. </view>
  178. </view>
  179. <view v-if="EnterList.judge == 2">
  180. <view class="uForm_item">
  181. <!-- 入库 -->
  182. <view class="title part2">{{EnterList.inOutType}}</view>
  183. <view class='row'>
  184. <view class="left">编号</view>
  185. <view class="right">入库({{EnterList.inOutTaskNo}})</view>
  186. </view>
  187. <view class='row'>
  188. <view class="left">仓库</view>
  189. <view class="right">{{EnterList.warehouseName}}</view>
  190. </view>
  191. <view class='row'>
  192. <view class="left">入库类型</view>
  193. <view class="right">{{EnterList.inOutType}}</view>
  194. </view>
  195. <view class='row' v-if="EnterList.inOutType == '移库入库'">
  196. <view class="left" style="width: 180rpx;">移库任务编号</view>
  197. <view class="right">{{EnterList.moveTaskNo}}</view>
  198. </view>
  199. <view class='row' v-if="EnterList.inOutType != '移库入库'">
  200. <view class="left">合同编号</view>
  201. <view class="right">{{EnterList.contractNo}}</view>
  202. </view>
  203. <view class='row'>
  204. <view class="left">货名</view>
  205. <view class="right">{{EnterList.goodsName}}</view>
  206. </view>
  207. <view class='row'>
  208. <view class="left">重量(吨)</view>
  209. <view class="right">{{EnterList.weight}}</view>
  210. </view>
  211. <view class='row'>
  212. <view class="left">预计入库日期</view>
  213. <view class="right">{{EnterList.predictDate}}</view>
  214. </view>
  215. <!-- <view class='row'>
  216. <view class="left">预估运费(元/吨)</view>
  217. <view class="right">{{EnterList.estimatedFreight}}</view>
  218. </view> -->
  219. <view class='row'>
  220. <view class="left">收货人</view>
  221. <view class="right">{{EnterList.agent}}</view>
  222. </view>
  223. </view>
  224. <view class="uForm_item">
  225. <u-form-item label="品级" prop="grade" label-width="150" v-if="EnterList.inOutType != '移库入库' ">
  226. <u-input v-model="EnterList.grade" input-align="right" placeholder="请选择品级"
  227. @click='show=true' disabled />
  228. <u-picker :range="pjList" range-key="type" @confirm='pjPicker1($event)' v-model="show"
  229. mode="selector">
  230. </u-picker>
  231. </u-form-item>
  232. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
  233. v-if="EnterList.inOutType != '移库入库'">
  234. <u-input v-model="EnterList.bulkDensity" input-align="right" placeholder="请输入容重占比" />
  235. </u-form-item>
  236. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
  237. v-if="EnterList.inOutType != '移库入库'">
  238. <u-input v-model="EnterList.waterContent" input-align="right" placeholder="请输入水分占比" />
  239. </u-form-item>
  240. <u-form-item v-if='!EnterList.status&&EnterList.inOutType != "移库入库"' label="单价(元/吨)"
  241. prop="unitPrice" label-width="160">
  242. <u-input v-model="EnterList.unitPrice" input-align="right" placeholder="请输入单价" />
  243. </u-form-item>
  244. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top">
  245. <u-input v-model="EnterList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  246. type="textarea" class="textarea" maxlength="150" />
  247. </u-form-item>
  248. <u-form-item v-if="OutList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber" label-width="170">
  249. <u-input v-model="EnterList.binNumber" input-align="right" placeholder="未指定" />
  250. </u-form-item>
  251. </view>
  252. </view>
  253. <view class="content2">
  254. <view class="title row">
  255. 流程
  256. </view>
  257. <view v-for="(item,index) in auditList" :key='index' class="audit">
  258. <view class="row" v-if='item.desc!="_PLACEHOLDER_"'>
  259. <view class="left">
  260. <view class="item1">
  261. <view class="item-content">{{item.operatorTitle}}</view>
  262. <view v-if="item.status=='success'" class='status success'>
  263. <u-icon name="checkmark" color="#2979ff" size="24"></u-icon>
  264. </view>
  265. <view v-if="item.status=='error'" class='status error'>
  266. <u-icon name="close" color="rgb(245, 108, 108)" size="24"></u-icon>
  267. </view>
  268. <view v-if="item.status=='question'" class='status question'>
  269. <u-icon name="question" color="#f9ae3d" size="24"></u-icon>
  270. </view>
  271. </view>
  272. </view>
  273. <view class="right">
  274. <view class="right-item">
  275. <view class="item2">
  276. <view class="name">{{item.desc}}
  277. </view>
  278. <!-- <view class='time'>{{item.updateDate}}</view> -->
  279. <view v-if="item.status=='success'" class="status success">
  280. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  281. v-if='!item.commonStaffs1&&index!=0'>已审核</text>
  282. </view>
  283. <view v-if="item.status=='error'" class="status error">
  284. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  285. v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已驳回":''}}</text>
  286. </view>
  287. <view v-if="item.status=='question'" class="status question">
  288. {{item.commonStaffs1?item.staffscontent:''}}<text
  289. v-if='!item.commonStaffs1'>未审核</text>
  290. </view>
  291. <!-- <view class="status success">吕波(已审核)</view> -->
  292. </view>
  293. <view
  294. v-if='index==0||item.workflowHistoricTasks&&item.workflowHistoricTasks.length>0'
  295. class='time'>
  296. {{item.updateDate}}
  297. </view>
  298. </view>
  299. <view v-if='item.auditMind' class="right-content">
  300. {{item.auditMind}}
  301. </view>
  302. <view class="flex audit_img">
  303. <view v-for="(items,indexs) in item.fileUrl" class="url_css">
  304. <image :src="items" mode="" class="url_img" @click="openDocument(items)">
  305. </image>
  306. </view>
  307. </view>
  308. </view>
  309. <view v-if='item.commonStaffs1' class="right">
  310. <u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'"
  311. size="28"></u-icon>
  312. </view>
  313. </view>
  314. <view v-if='item.showflow' style='padding:10px 0 0 50px;'>
  315. <view class='row2'>
  316. <view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
  317. <view class="item-content">
  318. <u-icon v-if='item1.status' name="checkmark" color="#fff" size="14"></u-icon>
  319. <u-icon v-if='!item1.status' name="question" color="#f9ae3d" size="14"></u-icon>
  320. </view>
  321. <view class="name">{{item1.staffName}}</view>
  322. </view>
  323. </view>
  324. </view>
  325. <view class="row-line" :style='[{"height":item.auditMind?"80px":"40px"}]'
  326. v-if="index!= auditList.length - 1&&item.desc!='_PLACEHOLDER_'"></view>
  327. </view>
  328. </view>
  329. </u-form>
  330. </view>
  331. <view v-if='show1' class="shade">
  332. <view class="wrap">
  333. <view class="alert-top">
  334. <view class="title">
  335. {{title}}
  336. </view>
  337. <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
  338. </view>
  339. <view class="u-textarea-style">
  340. <view class="right-bottom">
  341. {{auditMind.length}}/1000个字
  342. </view>
  343. <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="250"
  344. maxlength="1000" />
  345. </view>
  346. <view class="upload_css">
  347. 上传附件
  348. <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="2"
  349. :size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
  350. @on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
  351. </view>
  352. <view @click='close()' class="cancel">取消</view>
  353. <view @click='passSubmit()' class="confirm">确定</view>
  354. </view>
  355. </view>
  356. <u-toast ref="uToast" />
  357. <view style='padding:10px;' class='flex bottom-btn'>
  358. <u-button @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
  359. <u-button @click='pass' type="success" class="btn2">通过</u-button>
  360. </view>
  361. </view>
  362. </template>
  363. <script>
  364. import helper from '@/common/helper.js';
  365. import upload from '@/components/upload.vue';
  366. import {
  367. mapState
  368. } from 'vuex';
  369. export default {
  370. components: {
  371. upload,
  372. },
  373. data() {
  374. return {
  375. everyCheck: '',
  376. height: 200,
  377. autoHeight: true,
  378. border: false,
  379. id: "",
  380. OutList: {}, //出
  381. EnterList: {}, //入
  382. retreatList: {}, //退
  383. type: '移库',
  384. show: false,
  385. show1: false,
  386. auditList: [],
  387. list: {},
  388. auditMind: '',
  389. pjList: [{
  390. type: '一等品'
  391. },
  392. {
  393. type: '二等品'
  394. },
  395. {
  396. type: '三等品'
  397. },
  398. {
  399. type: '等外'
  400. }
  401. ],
  402. count: 0,
  403. // 上传附件、
  404. action: this.$uploadUrl,
  405. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  406. isAdd: true,
  407. fileUrl: []
  408. }
  409. },
  410. // onReady() {
  411. // this.$refs.uForm.setRules(this.rules);
  412. // },
  413. onBackPress(e) {
  414. if (this.everyCheck) {
  415. uni.navigateTo({
  416. url: "/pages/task/my_task"
  417. })
  418. return true;
  419. }
  420. },
  421. onLoad(options) {
  422. this.id = options.id
  423. this.everyCheck = uni.getStorageSync("everyTask")
  424. this.count = 0
  425. this.getList()
  426. },
  427. onShow() {
  428. },
  429. computed: {
  430. ...mapState(['hasLogin', 'userInfo']),
  431. },
  432. methods: {
  433. openDocument(src) {
  434. uni.downloadFile({
  435. url: src,
  436. success: function(res) {
  437. var filePath = res.tempFilePath;
  438. uni.openDocument({
  439. filePath: filePath,
  440. showMenu: true,
  441. success: function(res) {
  442. console.log('打开文档成功');
  443. }
  444. });
  445. }
  446. });
  447. },
  448. getImgUrl(res) {
  449. this.fileUrl.push(res)
  450. },
  451. onError(error) {
  452. alert(error)
  453. console.log('------------error-----------')
  454. console.log(error)
  455. },
  456. onProgress(e) {
  457. console.log(e)
  458. },
  459. onRemove(index) {
  460. this.fileUrl.splice(index, 1)
  461. },
  462. showcontent(item) {
  463. item.showflow = !item.showflow
  464. },
  465. filterFileType(index, lists) {
  466. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  467. lists.splice(index, 1);
  468. // 当前文件不支持
  469. uni.showModal({
  470. title: '暂不支持当前图片类型',
  471. showCancel: false
  472. });
  473. } else {
  474. this.isAdd = false;
  475. }
  476. },
  477. getList() {
  478. var that = this
  479. uni.showLoading({
  480. title: '加载中',
  481. mask: true,
  482. })
  483. this.$api.doRequest('get', '/inOutWarehouseTask/getTask', {
  484. id: this.id
  485. }).then(res => {
  486. if (res.data.code == 200) {
  487. this.list = res.data.data
  488. this.$api.doRequest('get', '/inOutWarehouseTask/getInOutWarehouseTask', {
  489. relevanceId: res.data.data.relevanceId
  490. }).then(res => {
  491. if (res.data.code == 200) {
  492. this.$api.doRequest('get', '/warehouseBaseInfo/selectContractNoList', {
  493. compId: uni.getStorageSync('pcUserInfo').compId
  494. }).then(res1 => {
  495. for (let i = 0; i < res.data.data.length; i++) {
  496. if (res.data.data[i].inOutType == "移库出库" || res.data.data[
  497. i]
  498. .inOutType == "贸易服务出库" || res.data.data[i].inOutType ==
  499. "销售出库" ||
  500. res.data.data[i].inOutType == "暂存出库") {
  501. this.OutList = res.data.data[i]
  502. this.OutList.judge = 1
  503. } else if (res.data.data[i].inOutType == "移库入库" || res.data
  504. .data[i]
  505. .inOutType == "暂存入库" || res.data.data[i]
  506. .inOutType == "收购入库" || res
  507. .data.data[i].inOutType == "采购入库" || res.data.data[i]
  508. .inOutType ==
  509. "贸易服务入库") {
  510. this.EnterList = res.data.data[i]
  511. this.EnterList.judge = 2
  512. } else if (res.data.data[i].inOutType == "退库") {
  513. this.retreatList = res.data.data[i]
  514. this.retreatList.judge = 3
  515. }
  516. }
  517. for (let i = 0; i < res1.data.data.length; i++) {
  518. if (res1.data.data[i].contractNo == this.EnterList
  519. .contractNo) {
  520. if (res1.data.data[i].priceType == '随行就市') {
  521. this.EnterList.status = true
  522. } else {
  523. this.EnterList.status = false
  524. }
  525. }
  526. if (res1.data.data[i].contractNo == this.retreatList
  527. .contractNo) {
  528. if (res1.data.data[i].priceType == '随行就市') {
  529. this.retreatList.status = true
  530. } else {
  531. this.retreatList.status = false
  532. }
  533. }
  534. }
  535. })
  536. }
  537. //审核流程
  538. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  539. businessCode: 'INOUTTASK-TASK-APPROVE',
  540. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  541. }).then(res1 => {
  542. this.$api.doRequest('get', '/commonUser/getHis', {
  543. workflowId: res1.data.data[0].id,
  544. businessKey: this.id,
  545. branch: that.list.jointVentureParties ? that.list
  546. .jointVentureParties : 'zt'
  547. }).then(response => {
  548. uni.hideLoading()
  549. for (let i = 0; i < response.data.data.length; i++) {
  550. this.$set(response.data.data[i], 'status',
  551. 'question')
  552. console.log(response.data.data[i]
  553. .workflowHistoricTasks, i)
  554. if (response.data.data[i].commonStaffs) {
  555. response.data.data[i].showflow = false
  556. response.data.data[i].operatorTitle = response
  557. .data.data[i].desc.substring(0, 2)
  558. response.data.data[i].operatorName = response
  559. .data.data[i].desc
  560. response.data.data[i].staffscontent = '共' +
  561. response.data.data[i].commonStaffs.length +
  562. '人,当前审核' + response.data.data[i]
  563. .workflowHistoricTasks.length + '人'
  564. if (response.data.data[i]
  565. .workflowHistoricTasks && response.data
  566. .data[i].workflowHistoricTasks.length > 0
  567. ) {
  568. if (response.data.data[i]
  569. .workflowHistoricTasks.length !=
  570. response.data.data[i].commonStaffs
  571. .length) {
  572. // response.data.data[i].status='question'
  573. this.$set(response.data.data[i],
  574. 'status', 'question')
  575. } else {
  576. this.$set(response.data.data[i],
  577. 'status', 'success')
  578. // response.data.data[i].status='success'
  579. }
  580. response.data.data[i].workflowlen =
  581. response.data.data[i]
  582. .workflowHistoricTasks.length
  583. var workflowdata = response.data.data[i]
  584. .workflowHistoricTasks
  585. var staffsdata = response.data.data[i]
  586. .commonStaffs
  587. for (let q = 0; q < staffsdata
  588. .length; q++) {
  589. staffsdata[q].status = false
  590. staffsdata[q].staffTitle = staffsdata[
  591. q].staffName
  592. for (let k = 0; k < workflowdata
  593. .length; k++) {
  594. if (staffsdata[q].staffId ==
  595. workflowdata[k].operatorId) {
  596. staffsdata[q].status = true
  597. }
  598. }
  599. }
  600. }
  601. response.data.data[i].commonStaffs1 = response
  602. .data.data[i].commonStaffs
  603. } else {
  604. if (response.data.data[i]
  605. .workflowHistoricTasks && response.data
  606. .data[i].workflowHistoricTasks.length > 0
  607. ) {
  608. var len = response.data.data[i]
  609. .workflowHistoricTasks.length - 1
  610. if (response.data.data[i]
  611. .workflowHistoricTasks[len].approved) {
  612. this.$set(response.data.data[i],
  613. 'status', 'success')
  614. } else {
  615. this.$set(response.data.data[i],
  616. 'status', 'error')
  617. }
  618. response.data.data[i].operatorTitle =
  619. response.data.data[i]
  620. .workflowHistoricTasks[len]
  621. .operatorName.substring(response.data
  622. .data[i].workflowHistoricTasks[0]
  623. .operatorName.length - 2)
  624. response.data.data[i].operatorName =
  625. response.data.data[i]
  626. .workflowHistoricTasks[len]
  627. .operatorName
  628. var time = new Date(response.data.data[i]
  629. .workflowHistoricTasks[len]
  630. .claimTime).getTime()
  631. response.data.data[i].updateDate = this.$u
  632. .timeFormat(time, 'mm.dd hh:MM')
  633. // 显示附件和审核意见
  634. if (response.data.data[i].workflowHistoricTasks[len].auditMind && response.data.data[i].workflowHistoricTasks[len].auditMind.indexOf("##") !=-1) {
  635. response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[0]
  636. response.data.data[i].fileUrl = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[1].split(",")
  637. }else{
  638. response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind
  639. }
  640. } else {
  641. this.$set(response.data.data[i], 'status',
  642. 'question')
  643. // response.data.data[i].status='question'
  644. if (response.data.data[i].desc ==
  645. '总经理助理审核') {
  646. response.data.data[i].operatorTitle =
  647. '总助'
  648. } else if (response.data.data[i].desc ==
  649. '杜大光审核') {
  650. response.data.data[i].operatorTitle =
  651. '大光'
  652. } else {
  653. response.data.data[i].operatorTitle =
  654. response.data.data[i].desc
  655. .substring(0, 2)
  656. }
  657. response.data.data[i].operatorName =
  658. response.data.data[i].desc
  659. var time1 = new Date(response.data.data[i]
  660. .updateDate).getTime()
  661. response.data.data[i].updateDate = this.$u
  662. .timeFormat(time1, 'mm.dd hh:MM')
  663. response.data.data[i].auditMind = ''
  664. }
  665. }
  666. }
  667. console.log(response.data.data)
  668. this.auditList = response.data.data
  669. var time2 = new Date(this.list.createDate).getTime()
  670. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  671. this.auditList.unshift({
  672. operatorTitle: this.list.creater.substring(
  673. 0, 2),
  674. operatorName: this.list.creater,
  675. updateDate: time3,
  676. auditMind: '',
  677. desc: '发起申请',
  678. showflow: false,
  679. commonStaffs1: null,
  680. commonStaffs: null,
  681. workflowHistoricTasks: [],
  682. status: 'success'
  683. })
  684. })
  685. })
  686. })
  687. }
  688. })
  689. },
  690. pjPicker(e) {
  691. this.OutList.grade = this.pjList[e[0]].type
  692. this.OutList.gradeKey = e[0] + 1
  693. },
  694. pjPicker1(e) {
  695. this.EnterList.grade = this.pjList[e[0]].type
  696. this.EnterList.gradeKey = e[0] + 1
  697. },
  698. close() {
  699. this.show1 = false
  700. },
  701. pass() {
  702. this.show1 = true
  703. this.title = '审核意见(通过)'
  704. },
  705. reject() {
  706. this.show1 = true
  707. this.title = '驳回原因(驳回)'
  708. },
  709. passSubmit() {
  710. var that = this
  711. if (this.title == '驳回原因(驳回)') {
  712. this.rejectSubmit()
  713. } else {
  714. let that = this
  715. that.show = false
  716. uni.showModal({
  717. content: "是否确定通过?",
  718. showCancel: true,
  719. confirmText: '确定',
  720. success: function(res) {
  721. if (res.confirm) {
  722. uni.showLoading({
  723. title: "审核中",
  724. mask:true
  725. })
  726. console.log(that.OutList,that.EnterList)
  727. that.OutList.inOutFlag = 1
  728. that.EnterList.inOutFlag = 2
  729. if (that.OutList.taskTypeKey == 1) {
  730. that.requestadd(that.OutList)
  731. } else if (that.EnterList.taskTypeKey == 2) {
  732. that.requestadd(that.EnterList)
  733. } else if (
  734. that.OutList.taskTypeKey == 3 ||
  735. that.OutList.taskTypeKey == 4
  736. ) {
  737. that.requestadd(that.OutList, 'repetition')
  738. if (!that.deletetask) {
  739. that.requestadd(that.EnterList, 'repetition')
  740. }
  741. }
  742. if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
  743. that.requestadd(that.retreatList)
  744. } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
  745. 4) {
  746. that.requestadd(that.retreatList, 'repetition')
  747. }
  748. }
  749. }
  750. })
  751. }
  752. },
  753. rejectSubmit() {
  754. // (1出库2入库3移库4退库并出库)
  755. if (!this.auditMind) {
  756. this.$api.msg('驳回原因不能为空!')
  757. } else {
  758. this.show = false
  759. let that = this
  760. uni.showModal({
  761. content: "是否确定驳回?",
  762. showCancel: true,
  763. confirmText: '确定',
  764. success: function(res) {
  765. if (res.confirm) {
  766. uni.showLoading({
  767. title: "审核中",
  768. mask:true
  769. })
  770. if (that.OutList.taskTypeKey == 1) {
  771. that.requestaudit(that.OutList)
  772. } else if (that.OutList.taskTypeKey == 2) {
  773. that.requestaudit(that.OutList)
  774. } else if (
  775. that.OutList.taskTypeKey == 3 ||
  776. that.OutList.taskTypeKey == 4
  777. ) {
  778. that.requestaudit(that.OutList, 'repetition')
  779. if (!that.deletetask) {
  780. that.requestaudit(that.OutList, 'repetition')
  781. }
  782. }
  783. if (that.EnterList.taskTypeKey) {
  784. if (that.EnterList.taskTypeKey == 1 || that.EnterList.taskTypeKey == 2) {
  785. that.requestaudit(that.EnterList)
  786. } else if (that.EnterList.taskTypeKey == 3 || that.EnterList.taskTypeKey ==
  787. 4) {
  788. that.requestaudit(that.EnterList, 'repetition')
  789. }
  790. }
  791. if (that.retreatList.taskTypeKey) {
  792. if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey ==
  793. 2) {
  794. that.requestaudit(that.retreatList)
  795. } else if (that.retreatList.taskTypeKey == 3 || that.retreatList
  796. .taskTypeKey == 4) {
  797. that.requestaudit(that.retreatList, 'repetition')
  798. }
  799. }
  800. }
  801. }
  802. })
  803. }
  804. },
  805. requestadd(list, status) {
  806. let that = this
  807. uni.getStorage({
  808. key: 'pcUserInfo',
  809. success(e) {
  810. list.compId = e.data.compId //这就是你想要取的token
  811. that.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(
  812. res => {
  813. if (res.data.code == 200) {
  814. var info = that.auditMind
  815. if (that.fileUrl.length > 0) {
  816. info = that.auditMind + "##" + that.fileUrl.toString()
  817. }
  818. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  819. taskId: list.taskId,
  820. approved: true,
  821. auditMind: info ? info : "",
  822. needReapply: false
  823. }).then(res => {
  824. if (res.data.code == 200) {
  825. that.$api.msg('审核成功!')
  826. that.count++
  827. if (that.everyCheck) {
  828. helper.setAudit(that.list)
  829. }
  830. } else {
  831. that.show1=true
  832. that.$api.msg('审核失败!')
  833. }
  834. if (list.taskTypeKey == '3' || list.taskTypeKey == '4') {
  835. if (that.count == 2) {
  836. setTimeout(function() {
  837. uni.hideLoading()
  838. uni.navigateBack()
  839. }, 1000);
  840. }
  841. } else {
  842. setTimeout(function() {
  843. uni.hideLoading()
  844. uni.navigateBack()
  845. }, 1000);
  846. }
  847. }).catch(res => {
  848. uni.hideLoading()
  849. if (res.message) {
  850. uni.showToast({
  851. title: res.message,
  852. icon: 'none',
  853. duration: 2000
  854. })
  855. } else {
  856. uni.showToast({
  857. title: "系统异常,请联系管理员",
  858. icon: 'none',
  859. duration: 2000
  860. })
  861. }
  862. })
  863. } else {
  864. that.$api.msg('审核失败!')
  865. }
  866. }).catch(res => {
  867. uni.hideLoading()
  868. if (res.message) {
  869. uni.showToast({
  870. title: res.message,
  871. icon: 'none',
  872. duration: 2000
  873. })
  874. } else {
  875. uni.showToast({
  876. title: "系统异常,请联系管理员",
  877. icon: 'none',
  878. duration: 2000
  879. })
  880. }
  881. })
  882. }
  883. })
  884. // list.publisher = this.userInfo.userName
  885. },
  886. requestaudit(list, status) {
  887. let pcUserInfo = uni.getStorageSync('pcUserInfo')
  888. if(pcUserInfo){
  889. list.compId = pcUserInfo.compId
  890. }
  891. else{
  892. list.compId = '2710b21efc1e4393930c5dc800010dc4'
  893. }
  894. // list.publisher = this.userInfo.userName
  895. this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
  896. if (res.data.code == 200) {
  897. var info = this.auditMind
  898. if (this.fileUrl.length > 0) {
  899. info = this.auditMind + "##" + this.fileUrl.toString()
  900. }
  901. this.$api.doRequest('post', '/newWorkflow/api/handle', {
  902. taskId: list.taskId,
  903. approved: false,
  904. auditMind: info ? info : "",
  905. needReapply: true
  906. }).then(res => {
  907. if (res.data.code == 200) {
  908. this.$api.msg('驳回成功!')
  909. this.count++
  910. if (this.everyCheck) {
  911. helper.setAudit(this.list)
  912. }
  913. uni.hideLoading()
  914. if (list.taskTypeKey == '3' || list.taskTypeKey == '4') {
  915. if (this.count == 2) {
  916. setTimeout(function() {
  917. uni.hideLoading()
  918. uni.navigateBack()
  919. }, 1000);
  920. }
  921. } else {
  922. setTimeout(function() {
  923. uni.hideLoading()
  924. uni.navigateBack()
  925. }, 1000);
  926. }
  927. } else {
  928. this.$api.msg('驳回失败!')
  929. }
  930. })
  931. }
  932. })
  933. },
  934. check() {
  935. // (1出库2入库3移库4退库并出库)taskTypeKey
  936. if (this.OutList.taskTypeKey == 1 || this.OutList.taskTypeKey == 3) {
  937. if (!this.OutList.grade) {
  938. this.$api.msg('品级不能为空')
  939. return
  940. }
  941. if (!this.OutList.bulkDensity) {
  942. this.$api.msg('容重不能为空')
  943. return
  944. }
  945. if (this.OutList.bulkDensity < 500 || this.OutList.bulkDensity > 1000) {
  946. this.$api.msg('容重输入错误')
  947. return
  948. }
  949. if (String(this.OutList.bulkDensity).indexOf('.') != -1 && String(this.OutList.bulkDensity).length - (
  950. String(this.OutList.bulkDensity).indexOf('.') + 1) > 0) {
  951. this.$api.msg('容重输入错误')
  952. return
  953. }
  954. if (!this.OutList.waterContent) {
  955. this.$api.msg('水分不能为空')
  956. return
  957. }
  958. if (isNaN(this.OutList.waterContent) ||
  959. (String(this.OutList.waterContent).indexOf('.') != -1 &&
  960. String(this.OutList.waterContent).length -
  961. (String(this.OutList.waterContent).indexOf('.') + 1) >
  962. 2) ||
  963. this.OutList.waterContent < 1 ||
  964. this.OutList.waterContent > 40
  965. ) {
  966. this.$api.msg('水分输入错误!')
  967. return
  968. }
  969. if (!this.OutList.unitPrice) {
  970. this.$api.msg('单价不能为空')
  971. return
  972. }
  973. if (isNaN(this.OutList.unitPrice) ||
  974. (String(this.OutList.unitPrice).indexOf('.') != -1 &&
  975. String(this.OutList.unitPrice).length -
  976. (String(this.OutList.unitPrice).indexOf('.') + 1) >
  977. 2) ||
  978. this.OutList.unitPrice < 1 ||
  979. this.OutList.unitPrice > 10000
  980. ) {
  981. this.$api.msg('单价输入错误!')
  982. return
  983. }
  984. }
  985. if (this.OutList.taskTypeKey == 1) {
  986. if (!this.OutList.businessDescribe) {
  987. this.$api.msg('业务描述不能为空')
  988. return
  989. }
  990. if (this.OutList.businessDescribe.length > 150) {
  991. this.$api.msg('业务描述长度错误')
  992. return
  993. }
  994. }
  995. if (this.EnterList.taskTypeKey == 2 && this.EnterList.judge) {
  996. if (!this.EnterList.grade) {
  997. this.$api.msg('品级不能为空')
  998. return
  999. }
  1000. if (!this.EnterList.bulkDensity) {
  1001. this.$api.msg('容重不能为空')
  1002. return
  1003. }
  1004. if (this.EnterList.bulkDensity < 500 || this.EnterList.bulkDensity > 1000) {
  1005. this.$api.msg('容重输入错误')
  1006. return
  1007. }
  1008. if (String(this.EnterList.bulkDensity).indexOf('.') != -1 && String(this.EnterList.bulkDensity)
  1009. .length - (
  1010. String(this.EnterList.bulkDensity).indexOf('.') + 1) > 0) {
  1011. this.$api.msg('容重输入错误')
  1012. return
  1013. }
  1014. if (!this.EnterList.waterContent) {
  1015. this.$api.msg('水分不能为空')
  1016. return
  1017. }
  1018. if (isNaN(this.EnterList.waterContent) ||
  1019. (String(this.EnterList.waterContent).indexOf('.') != -1 &&
  1020. String(this.EnterList.waterContent).length -
  1021. (String(this.EnterList.waterContent).indexOf('.') + 1) >
  1022. 2) ||
  1023. this.EnterList.waterContent < 1 ||
  1024. this.EnterList.waterContent > 40
  1025. ) {
  1026. this.$api.msg('水分输入错误!')
  1027. return
  1028. }
  1029. if (!this.EnterList.unitPrice) {
  1030. this.$api.msg('单价不能为空')
  1031. return
  1032. }
  1033. if (isNaN(this.EnterList.unitPrice) ||
  1034. (String(this.EnterList.unitPrice).indexOf('.') != -1 &&
  1035. String(this.EnterList.unitPrice).length -
  1036. (String(this.EnterList.unitPrice).indexOf('.') + 1) >
  1037. 2) ||
  1038. this.EnterList.unitPrice < 1 ||
  1039. this.EnterList.unitPrice > 10000
  1040. ) {
  1041. this.$api.msg('单价输入错误!')
  1042. return
  1043. }
  1044. if (!this.EnterList.businessDescribe) {
  1045. this.$api.msg('业务描述不能为空')
  1046. return
  1047. }
  1048. if (this.EnterList.businessDescribe.length > 150) {
  1049. this.$api.msg('业务描述长度错误')
  1050. return
  1051. }
  1052. }
  1053. if (this.OutList.taskTypeKey == 3) {
  1054. if (!this.EnterList.businessDescribe) {
  1055. this.$api.msg('业务描述不能为空')
  1056. return
  1057. }
  1058. if (this.EnterList.businessDescribe.length > 150) {
  1059. this.$api.msg('业务描述长度错误')
  1060. return
  1061. }
  1062. }
  1063. if (this.retreatList.taskTypeKey == 4 && this.retreatList.judge) {
  1064. if (!this.retreatList.grade) {
  1065. this.$api.msg('品级不能为空')
  1066. return
  1067. }
  1068. if (!this.retreatList.bulkDensity) {
  1069. this.$api.msg('容重不能为空')
  1070. return
  1071. }
  1072. if (this.retreatList.bulkDensity < 500 || this.retreatList.bulkDensity > 1000) {
  1073. this.$api.msg('容重输入错误')
  1074. return
  1075. }
  1076. if (String(this.retreatList.bulkDensity).indexOf('.') != -1 && String(this.retreatList.bulkDensity)
  1077. .length - (
  1078. String(this.retreatList.bulkDensity).indexOf('.') + 1) > 0) {
  1079. this.$api.msg('容重输入错误')
  1080. return
  1081. }
  1082. if (!this.retreatList.waterContent) {
  1083. this.$api.msg('水分不能为空')
  1084. return
  1085. }
  1086. if (isNaN(this.retreatList.waterContent) ||
  1087. (String(this.retreatList.waterContent).indexOf('.') != -1 &&
  1088. String(this.retreatList.waterContent).length -
  1089. (String(this.retreatList.waterContent).indexOf('.') + 1) >
  1090. 2) ||
  1091. this.retreatList.waterContent < 1 ||
  1092. this.retreatList.waterContent > 40
  1093. ) {
  1094. this.$api.msg('水分输入错误!')
  1095. return
  1096. }
  1097. if (!this.retreatList.unitPrice) {
  1098. this.$api.msg('单价不能为空')
  1099. return
  1100. }
  1101. if (isNaN(this.retreatList.unitPrice) ||
  1102. (String(this.retreatList.unitPrice).indexOf('.') != -1 &&
  1103. String(this.retreatList.unitPrice).length -
  1104. (String(this.retreatList.unitPrice).indexOf('.') + 1) >
  1105. 2) ||
  1106. this.retreatList.unitPrice < 1 ||
  1107. this.retreatList.unitPrice > 10000
  1108. ) {
  1109. this.$api.msg('单价输入错误!')
  1110. return
  1111. }
  1112. if (!this.EnterList.businessDescribe) {
  1113. this.$api.msg('业务描述不能为空')
  1114. return
  1115. }
  1116. if (this.EnterList.businessDescribe.length > 150) {
  1117. this.$api.msg('业务描述长度错误')
  1118. return
  1119. }
  1120. }
  1121. }
  1122. }
  1123. }
  1124. </script>
  1125. <style scoped lang="scss">
  1126. .content1 {
  1127. margin: 10rpx;
  1128. padding-bottom: 224rpx;
  1129. .title {
  1130. height: 70rpx;
  1131. line-height: 60rpx;
  1132. font-size: 32rpx;
  1133. font-weight: 600;
  1134. color: #333333;
  1135. border-bottom: 2rpx solid #EEEEEE;
  1136. }
  1137. }
  1138. .uForm {
  1139. padding: 0 40rpx;
  1140. }
  1141. .u-form-item {
  1142. padding: 0;
  1143. }
  1144. .bottom-btn {
  1145. width: 100%;
  1146. position: fixed;
  1147. bottom: 0;
  1148. display: flex;
  1149. z-index: 2;
  1150. left: 0;
  1151. background-color: #f8f8f8;
  1152. flex-direction: column;
  1153. .btn1,
  1154. .btn2 {
  1155. width: 100%;
  1156. margin-bottom: 26rpx;
  1157. border-radius: 90rpx;
  1158. }
  1159. .btn1 {
  1160. background: white;
  1161. color: #00C265;
  1162. }
  1163. }
  1164. .submit {
  1165. width: 50%;
  1166. background: #22C572;
  1167. border-radius: 10rpx;
  1168. }
  1169. .part2 {
  1170. margin-top: 20rpx;
  1171. }
  1172. .textarea {
  1173. border: 1px solid #ccc;
  1174. border-radius: 10rpx;
  1175. background-color: #F9F9FA;
  1176. height: 100px;
  1177. }
  1178. .row {
  1179. display: flex;
  1180. justify-content: space-between;
  1181. // border-bottom: 1px solid #EEEEEE;
  1182. padding: 21rpx 0;
  1183. .right,
  1184. input {
  1185. font-size: 28rpx;
  1186. color: #333333;
  1187. }
  1188. }
  1189. //弹出框
  1190. // .popup {
  1191. // padding: 30rpx;
  1192. // border-radius: 20rpx;
  1193. // }
  1194. // .rejectInfoCss {
  1195. // border: 1px solid #ccc;
  1196. // border-radius: 10rpx;
  1197. // background-color: #F9F9FA;
  1198. // margin: 30rpx;
  1199. // overflow-y: auto;
  1200. // // height: 300rpx;
  1201. // background: red;
  1202. // }
  1203. .uForm_item {
  1204. padding: 20rpx;
  1205. background-color: #FFFFFF;
  1206. margin: 20rpx;
  1207. border-radius: 20rpx;
  1208. }
  1209. .rejectText {
  1210. text-align: center;
  1211. }
  1212. .topInfo {
  1213. height: 210rpx;
  1214. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  1215. padding: 30rpx;
  1216. .topInfo-item {
  1217. height: 150rpx;
  1218. background-color: #FFFFFF;
  1219. border-radius: 20rpx;
  1220. padding: 40rpx;
  1221. .logo {
  1222. width: 40rpx;
  1223. height: 40rpx;
  1224. margin-top: 8rpx;
  1225. }
  1226. .infoText {
  1227. font-size: 36rpx;
  1228. font-weight: 600;
  1229. margin-left: 20rpx;
  1230. }
  1231. .infoData {
  1232. color: #878C9C;
  1233. font-size: 26rpx;
  1234. margin-top: 10rpx;
  1235. }
  1236. }
  1237. }
  1238. .shade {
  1239. position: fixed;
  1240. top: 0;
  1241. left: 0;
  1242. height: 100%;
  1243. width: 100%;
  1244. background: rgba(0, 0, 0, 0.4);
  1245. z-index: 3;
  1246. .wrap {
  1247. position: absolute;
  1248. left: 0;
  1249. top: 0;
  1250. right: 0;
  1251. bottom: 0;
  1252. margin: auto;
  1253. background: #fff;
  1254. width: calc(100% - 198rpx);
  1255. height: 820rpx;
  1256. border-radius: 20rpx;
  1257. .alert-top {
  1258. padding: 33rpx;
  1259. display: flex;
  1260. justify-content: center;
  1261. align-items: center;
  1262. position: relative;
  1263. }
  1264. .title {
  1265. font-size: 32rpx;
  1266. font-weight: 600;
  1267. color: #333333;
  1268. }
  1269. .close {
  1270. position: absolute;
  1271. right: 33rpx;
  1272. }
  1273. .upload_css {
  1274. margin-left: 20rpx;
  1275. }
  1276. }
  1277. }
  1278. .cancel,
  1279. .confirm {
  1280. position: absolute;
  1281. display: inline-block;
  1282. width: 50%;
  1283. text-align: center;
  1284. bottom: 0;
  1285. padding: 10px;
  1286. border-top: 1px solid #eee;
  1287. font-size: 34rpx;
  1288. }
  1289. .cancel {
  1290. left: 0;
  1291. border-right: 1px solid #eee;
  1292. color: #AFB3BF;
  1293. }
  1294. .confirm {
  1295. right: 0;
  1296. color: #22C572;
  1297. }
  1298. .u-textarea-style {
  1299. margin: 20rpx;
  1300. background: #F9F9FA;
  1301. border-radius: 10px;
  1302. border: 1px solid #EEEEEE;
  1303. padding: 10rpx 20rpx;
  1304. position: relative;
  1305. overflow-y: scroll;
  1306. .right-bottom {
  1307. position: absolute;
  1308. right: 20rpx;
  1309. bottom: 20rpx;
  1310. color: #AFB3BF;
  1311. }
  1312. }
  1313. /deep/.u-input__textarea {
  1314. height: 300rpx !important;
  1315. }
  1316. .content2 {
  1317. background: white;
  1318. margin: 20rpx 0;
  1319. border-radius: 20rpx;
  1320. padding: 20rpx;
  1321. .row {
  1322. display: flex;
  1323. .left {
  1324. display: flex;
  1325. align-items: center;
  1326. .item1 {
  1327. position: relative;
  1328. .item-content {
  1329. background: #617AE0;
  1330. width: 44px;
  1331. height: 44px;
  1332. border-radius: 22px;
  1333. line-height: 44px;
  1334. text-align: center;
  1335. font-size: 15px;
  1336. color: #fff;
  1337. }
  1338. .status {
  1339. position: absolute;
  1340. border-radius: 50%;
  1341. padding: 0px 2px;
  1342. right: -3px;
  1343. bottom: -3px;
  1344. background: #fff;
  1345. }
  1346. .status.success {
  1347. border: 1px solid rgb(60, 156, 255);
  1348. }
  1349. .status.error {
  1350. border: 1px solid rgb(245, 108, 108);
  1351. }
  1352. .status.question {
  1353. border: 1px solid #f9ae3d;
  1354. }
  1355. }
  1356. }
  1357. .right {
  1358. width: 80%;
  1359. // color: #B0B1B5;
  1360. margin-top: 10px;
  1361. .right-content {
  1362. background: #F2F3F7;
  1363. margin-left: 10px;
  1364. margin-top: 10px;
  1365. padding: 10px;
  1366. border-radius: 5px;
  1367. color: #B0B1B5;
  1368. }
  1369. .right-item {
  1370. display: flex;
  1371. justify-content: space-between;
  1372. .time {
  1373. color: #999;
  1374. }
  1375. .item2 {
  1376. margin-left: 20rpx;
  1377. margin-top: -7px;
  1378. .name {
  1379. font-size: 28rpx;
  1380. font-weight: 800;
  1381. margin-bottom: 4px;
  1382. }
  1383. .status.success {
  1384. color: #6CC48C;
  1385. }
  1386. .status.error {
  1387. color: rgb(245, 108, 108);
  1388. }
  1389. .status.question {
  1390. color: #f9ae3d;
  1391. }
  1392. }
  1393. }
  1394. .audit_img {
  1395. flex-wrap: wrap;
  1396. .url_css {
  1397. border: 1px solid #999999;
  1398. border-radius: 10px;
  1399. margin-top: 10px;
  1400. margin-right: 10px;
  1401. .url_img {
  1402. width: 80px;
  1403. height: 80px;
  1404. border-radius: 10px;
  1405. }
  1406. }
  1407. }
  1408. }
  1409. }
  1410. .row2 {
  1411. display: flex;
  1412. .item-content {
  1413. background: #22C572;
  1414. width: 30px;
  1415. height: 30px;
  1416. border-radius: 50%;
  1417. line-height: 30px;
  1418. text-align: center;
  1419. font-size: 12px;
  1420. color: #fff;
  1421. padding: 0 2px;
  1422. margin: 0 auto;
  1423. }
  1424. .status {
  1425. position: absolute;
  1426. top: 0;
  1427. right: 0;
  1428. }
  1429. }
  1430. .row-line {
  1431. width: 1px;
  1432. height: 30px;
  1433. background: #F2F2F2;
  1434. margin: 10rpx 50rpx;
  1435. }
  1436. .audit {
  1437. margin-top: 20rpx;
  1438. }
  1439. }
  1440. </style>