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="" />
  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. })
  725. console.log(that.OutList,that.EnterList)
  726. that.OutList.inOutFlag = 1
  727. that.EnterList.inOutFlag = 2
  728. if (that.OutList.taskTypeKey == 1) {
  729. that.requestadd(that.OutList)
  730. } else if (that.EnterList.taskTypeKey == 2) {
  731. that.requestadd(that.EnterList)
  732. } else if (
  733. that.OutList.taskTypeKey == 3 ||
  734. that.OutList.taskTypeKey == 4
  735. ) {
  736. that.requestadd(that.OutList, 'repetition')
  737. if (!that.deletetask) {
  738. that.requestadd(that.EnterList, 'repetition')
  739. }
  740. }
  741. if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
  742. that.requestadd(that.retreatList)
  743. } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
  744. 4) {
  745. that.requestadd(that.retreatList, 'repetition')
  746. }
  747. }
  748. }
  749. })
  750. }
  751. },
  752. rejectSubmit() {
  753. // (1出库2入库3移库4退库并出库)
  754. if (!this.auditMind) {
  755. this.$api.msg('驳回原因不能为空!')
  756. } else {
  757. this.show = false
  758. let that = this
  759. uni.showModal({
  760. content: "是否确定驳回?",
  761. showCancel: true,
  762. confirmText: '确定',
  763. success: function(res) {
  764. if (res.confirm) {
  765. uni.showLoading({
  766. title: "审核中"
  767. })
  768. if (that.OutList.taskTypeKey == 1) {
  769. that.requestaudit(that.OutList)
  770. } else if (that.OutList.taskTypeKey == 2) {
  771. that.requestaudit(that.OutList)
  772. } else if (
  773. that.OutList.taskTypeKey == 3 ||
  774. that.OutList.taskTypeKey == 4
  775. ) {
  776. that.requestaudit(that.OutList, 'repetition')
  777. if (!that.deletetask) {
  778. that.requestaudit(that.OutList, 'repetition')
  779. }
  780. }
  781. if (that.EnterList.taskTypeKey) {
  782. if (that.EnterList.taskTypeKey == 1 || that.EnterList.taskTypeKey == 2) {
  783. that.requestaudit(that.EnterList)
  784. } else if (that.EnterList.taskTypeKey == 3 || that.EnterList.taskTypeKey ==
  785. 4) {
  786. that.requestaudit(that.EnterList, 'repetition')
  787. }
  788. }
  789. if (that.retreatList.taskTypeKey) {
  790. if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey ==
  791. 2) {
  792. that.requestaudit(that.retreatList)
  793. } else if (that.retreatList.taskTypeKey == 3 || that.retreatList
  794. .taskTypeKey == 4) {
  795. that.requestaudit(that.retreatList, 'repetition')
  796. }
  797. }
  798. }
  799. }
  800. })
  801. }
  802. },
  803. requestadd(list, status) {
  804. let that = this
  805. uni.getStorage({
  806. key: 'pcUserInfo',
  807. success(e) {
  808. list.compId = e.data.compId //这就是你想要取的token
  809. that.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(
  810. res => {
  811. if (res.data.code == 200) {
  812. var info = that.auditMind
  813. if (that.fileUrl.length > 0) {
  814. info = that.auditMind + "##" + that.fileUrl.toString()
  815. }
  816. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  817. taskId: list.taskId,
  818. approved: true,
  819. auditMind: info ? info : "",
  820. needReapply: false
  821. }).then(res => {
  822. if (res.data.code == 200) {
  823. that.show1=true
  824. that.$api.msg('审核成功!')
  825. that.count++
  826. if (that.everyCheck) {
  827. helper.setAudit(that.list)
  828. }
  829. } else {
  830. that.$api.msg('审核失败!')
  831. }
  832. if (list.taskTypeKey == '3' || list.taskTypeKey == '4') {
  833. if (that.count == 2) {
  834. setTimeout(function() {
  835. uni.hideLoading()
  836. uni.navigateBack()
  837. }, 1000);
  838. }
  839. } else {
  840. setTimeout(function() {
  841. uni.hideLoading()
  842. uni.navigateBack()
  843. }, 1000);
  844. }
  845. }).catch(res => {
  846. uni.hideLoading()
  847. if (res.message) {
  848. uni.showToast({
  849. title: res.message,
  850. icon: 'none',
  851. duration: 2000
  852. })
  853. } else {
  854. uni.showToast({
  855. title: "系统异常,请联系管理员",
  856. icon: 'none',
  857. duration: 2000
  858. })
  859. }
  860. })
  861. } else {
  862. that.$api.msg('审核失败!')
  863. }
  864. }).catch(res => {
  865. uni.hideLoading()
  866. if (res.message) {
  867. uni.showToast({
  868. title: res.message,
  869. icon: 'none',
  870. duration: 2000
  871. })
  872. } else {
  873. uni.showToast({
  874. title: "系统异常,请联系管理员",
  875. icon: 'none',
  876. duration: 2000
  877. })
  878. }
  879. })
  880. }
  881. })
  882. // list.publisher = this.userInfo.userName
  883. },
  884. requestaudit(list, status) {
  885. uni.showLoading({
  886. title: "审核中"
  887. })
  888. let pcUserInfo = uni.getStorageSync('pcUserInfo')
  889. if(pcUserInfo){
  890. list.compId = pcUserInfo.compId
  891. }
  892. else{
  893. list.compId = '2710b21efc1e4393930c5dc800010dc4'
  894. }
  895. // list.publisher = this.userInfo.userName
  896. this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
  897. if (res.data.code == 200) {
  898. var info = this.auditMind
  899. if (this.fileUrl.length > 0) {
  900. info = this.auditMind + "##" + this.fileUrl.toString()
  901. }
  902. this.$api.doRequest('post', '/newWorkflow/api/handle', {
  903. taskId: list.taskId,
  904. approved: false,
  905. auditMind: info ? info : "",
  906. needReapply: true
  907. }).then(res => {
  908. if (res.data.code == 200) {
  909. this.$api.msg('驳回成功!')
  910. this.count++
  911. if (this.everyCheck) {
  912. helper.setAudit(this.list)
  913. }
  914. uni.hideLoading()
  915. if (list.taskTypeKey == '3' || list.taskTypeKey == '4') {
  916. if (this.count == 2) {
  917. setTimeout(function() {
  918. uni.hideLoading()
  919. uni.navigateBack()
  920. }, 1000);
  921. }
  922. } else {
  923. setTimeout(function() {
  924. uni.hideLoading()
  925. uni.navigateBack()
  926. }, 1000);
  927. }
  928. } else {
  929. this.$api.msg('驳回失败!')
  930. }
  931. })
  932. }
  933. })
  934. },
  935. check() {
  936. // (1出库2入库3移库4退库并出库)taskTypeKey
  937. if (this.OutList.taskTypeKey == 1 || this.OutList.taskTypeKey == 3) {
  938. if (!this.OutList.grade) {
  939. this.$api.msg('品级不能为空')
  940. return
  941. }
  942. if (!this.OutList.bulkDensity) {
  943. this.$api.msg('容重不能为空')
  944. return
  945. }
  946. if (this.OutList.bulkDensity < 500 || this.OutList.bulkDensity > 1000) {
  947. this.$api.msg('容重输入错误')
  948. return
  949. }
  950. if (String(this.OutList.bulkDensity).indexOf('.') != -1 && String(this.OutList.bulkDensity).length - (
  951. String(this.OutList.bulkDensity).indexOf('.') + 1) > 0) {
  952. this.$api.msg('容重输入错误')
  953. return
  954. }
  955. if (!this.OutList.waterContent) {
  956. this.$api.msg('水分不能为空')
  957. return
  958. }
  959. if (isNaN(this.OutList.waterContent) ||
  960. (String(this.OutList.waterContent).indexOf('.') != -1 &&
  961. String(this.OutList.waterContent).length -
  962. (String(this.OutList.waterContent).indexOf('.') + 1) >
  963. 2) ||
  964. this.OutList.waterContent < 1 ||
  965. this.OutList.waterContent > 40
  966. ) {
  967. this.$api.msg('水分输入错误!')
  968. return
  969. }
  970. if (!this.OutList.unitPrice) {
  971. this.$api.msg('单价不能为空')
  972. return
  973. }
  974. if (isNaN(this.OutList.unitPrice) ||
  975. (String(this.OutList.unitPrice).indexOf('.') != -1 &&
  976. String(this.OutList.unitPrice).length -
  977. (String(this.OutList.unitPrice).indexOf('.') + 1) >
  978. 2) ||
  979. this.OutList.unitPrice < 1 ||
  980. this.OutList.unitPrice > 10000
  981. ) {
  982. this.$api.msg('单价输入错误!')
  983. return
  984. }
  985. }
  986. if (this.OutList.taskTypeKey == 1) {
  987. if (!this.OutList.businessDescribe) {
  988. this.$api.msg('业务描述不能为空')
  989. return
  990. }
  991. if (this.OutList.businessDescribe.length > 150) {
  992. this.$api.msg('业务描述长度错误')
  993. return
  994. }
  995. }
  996. if (this.EnterList.taskTypeKey == 2 && this.EnterList.judge) {
  997. if (!this.EnterList.grade) {
  998. this.$api.msg('品级不能为空')
  999. return
  1000. }
  1001. if (!this.EnterList.bulkDensity) {
  1002. this.$api.msg('容重不能为空')
  1003. return
  1004. }
  1005. if (this.EnterList.bulkDensity < 500 || this.EnterList.bulkDensity > 1000) {
  1006. this.$api.msg('容重输入错误')
  1007. return
  1008. }
  1009. if (String(this.EnterList.bulkDensity).indexOf('.') != -1 && String(this.EnterList.bulkDensity)
  1010. .length - (
  1011. String(this.EnterList.bulkDensity).indexOf('.') + 1) > 0) {
  1012. this.$api.msg('容重输入错误')
  1013. return
  1014. }
  1015. if (!this.EnterList.waterContent) {
  1016. this.$api.msg('水分不能为空')
  1017. return
  1018. }
  1019. if (isNaN(this.EnterList.waterContent) ||
  1020. (String(this.EnterList.waterContent).indexOf('.') != -1 &&
  1021. String(this.EnterList.waterContent).length -
  1022. (String(this.EnterList.waterContent).indexOf('.') + 1) >
  1023. 2) ||
  1024. this.EnterList.waterContent < 1 ||
  1025. this.EnterList.waterContent > 40
  1026. ) {
  1027. this.$api.msg('水分输入错误!')
  1028. return
  1029. }
  1030. if (!this.EnterList.unitPrice) {
  1031. this.$api.msg('单价不能为空')
  1032. return
  1033. }
  1034. if (isNaN(this.EnterList.unitPrice) ||
  1035. (String(this.EnterList.unitPrice).indexOf('.') != -1 &&
  1036. String(this.EnterList.unitPrice).length -
  1037. (String(this.EnterList.unitPrice).indexOf('.') + 1) >
  1038. 2) ||
  1039. this.EnterList.unitPrice < 1 ||
  1040. this.EnterList.unitPrice > 10000
  1041. ) {
  1042. this.$api.msg('单价输入错误!')
  1043. return
  1044. }
  1045. if (!this.EnterList.businessDescribe) {
  1046. this.$api.msg('业务描述不能为空')
  1047. return
  1048. }
  1049. if (this.EnterList.businessDescribe.length > 150) {
  1050. this.$api.msg('业务描述长度错误')
  1051. return
  1052. }
  1053. }
  1054. if (this.OutList.taskTypeKey == 3) {
  1055. if (!this.EnterList.businessDescribe) {
  1056. this.$api.msg('业务描述不能为空')
  1057. return
  1058. }
  1059. if (this.EnterList.businessDescribe.length > 150) {
  1060. this.$api.msg('业务描述长度错误')
  1061. return
  1062. }
  1063. }
  1064. if (this.retreatList.taskTypeKey == 4 && this.retreatList.judge) {
  1065. if (!this.retreatList.grade) {
  1066. this.$api.msg('品级不能为空')
  1067. return
  1068. }
  1069. if (!this.retreatList.bulkDensity) {
  1070. this.$api.msg('容重不能为空')
  1071. return
  1072. }
  1073. if (this.retreatList.bulkDensity < 500 || this.retreatList.bulkDensity > 1000) {
  1074. this.$api.msg('容重输入错误')
  1075. return
  1076. }
  1077. if (String(this.retreatList.bulkDensity).indexOf('.') != -1 && String(this.retreatList.bulkDensity)
  1078. .length - (
  1079. String(this.retreatList.bulkDensity).indexOf('.') + 1) > 0) {
  1080. this.$api.msg('容重输入错误')
  1081. return
  1082. }
  1083. if (!this.retreatList.waterContent) {
  1084. this.$api.msg('水分不能为空')
  1085. return
  1086. }
  1087. if (isNaN(this.retreatList.waterContent) ||
  1088. (String(this.retreatList.waterContent).indexOf('.') != -1 &&
  1089. String(this.retreatList.waterContent).length -
  1090. (String(this.retreatList.waterContent).indexOf('.') + 1) >
  1091. 2) ||
  1092. this.retreatList.waterContent < 1 ||
  1093. this.retreatList.waterContent > 40
  1094. ) {
  1095. this.$api.msg('水分输入错误!')
  1096. return
  1097. }
  1098. if (!this.retreatList.unitPrice) {
  1099. this.$api.msg('单价不能为空')
  1100. return
  1101. }
  1102. if (isNaN(this.retreatList.unitPrice) ||
  1103. (String(this.retreatList.unitPrice).indexOf('.') != -1 &&
  1104. String(this.retreatList.unitPrice).length -
  1105. (String(this.retreatList.unitPrice).indexOf('.') + 1) >
  1106. 2) ||
  1107. this.retreatList.unitPrice < 1 ||
  1108. this.retreatList.unitPrice > 10000
  1109. ) {
  1110. this.$api.msg('单价输入错误!')
  1111. return
  1112. }
  1113. if (!this.EnterList.businessDescribe) {
  1114. this.$api.msg('业务描述不能为空')
  1115. return
  1116. }
  1117. if (this.EnterList.businessDescribe.length > 150) {
  1118. this.$api.msg('业务描述长度错误')
  1119. return
  1120. }
  1121. }
  1122. }
  1123. }
  1124. }
  1125. </script>
  1126. <style scoped lang="scss">
  1127. .content1 {
  1128. margin: 10rpx;
  1129. padding-bottom: 224rpx;
  1130. .title {
  1131. height: 70rpx;
  1132. line-height: 60rpx;
  1133. font-size: 32rpx;
  1134. font-weight: 600;
  1135. color: #333333;
  1136. border-bottom: 2rpx solid #EEEEEE;
  1137. }
  1138. }
  1139. .uForm {
  1140. padding: 0 40rpx;
  1141. }
  1142. .u-form-item {
  1143. padding: 0;
  1144. }
  1145. .bottom-btn {
  1146. width: 100%;
  1147. position: fixed;
  1148. bottom: 0;
  1149. display: flex;
  1150. z-index: 2;
  1151. left: 0;
  1152. background-color: #f8f8f8;
  1153. flex-direction: column;
  1154. .btn1,
  1155. .btn2 {
  1156. width: 100%;
  1157. margin-bottom: 26rpx;
  1158. border-radius: 90rpx;
  1159. }
  1160. .btn1 {
  1161. background: white;
  1162. color: #00C265;
  1163. }
  1164. }
  1165. .submit {
  1166. width: 50%;
  1167. background: #22C572;
  1168. border-radius: 10rpx;
  1169. }
  1170. .part2 {
  1171. margin-top: 20rpx;
  1172. }
  1173. .textarea {
  1174. border: 1px solid #ccc;
  1175. border-radius: 10rpx;
  1176. background-color: #F9F9FA;
  1177. height: 100px;
  1178. }
  1179. .row {
  1180. display: flex;
  1181. justify-content: space-between;
  1182. // border-bottom: 1px solid #EEEEEE;
  1183. padding: 21rpx 0;
  1184. .right,
  1185. input {
  1186. font-size: 28rpx;
  1187. color: #333333;
  1188. }
  1189. }
  1190. //弹出框
  1191. // .popup {
  1192. // padding: 30rpx;
  1193. // border-radius: 20rpx;
  1194. // }
  1195. // .rejectInfoCss {
  1196. // border: 1px solid #ccc;
  1197. // border-radius: 10rpx;
  1198. // background-color: #F9F9FA;
  1199. // margin: 30rpx;
  1200. // overflow-y: auto;
  1201. // // height: 300rpx;
  1202. // background: red;
  1203. // }
  1204. .uForm_item {
  1205. padding: 20rpx;
  1206. background-color: #FFFFFF;
  1207. margin: 20rpx;
  1208. border-radius: 20rpx;
  1209. }
  1210. .rejectText {
  1211. text-align: center;
  1212. }
  1213. .topInfo {
  1214. height: 210rpx;
  1215. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  1216. padding: 30rpx;
  1217. .topInfo-item {
  1218. height: 150rpx;
  1219. background-color: #FFFFFF;
  1220. border-radius: 20rpx;
  1221. padding: 40rpx;
  1222. .logo {
  1223. width: 40rpx;
  1224. height: 40rpx;
  1225. margin-top: 8rpx;
  1226. }
  1227. .infoText {
  1228. font-size: 36rpx;
  1229. font-weight: 600;
  1230. margin-left: 20rpx;
  1231. }
  1232. .infoData {
  1233. color: #878C9C;
  1234. font-size: 26rpx;
  1235. margin-top: 10rpx;
  1236. }
  1237. }
  1238. }
  1239. .shade {
  1240. position: fixed;
  1241. top: 0;
  1242. left: 0;
  1243. height: 100%;
  1244. width: 100%;
  1245. background: rgba(0, 0, 0, 0.4);
  1246. z-index: 3;
  1247. .wrap {
  1248. position: absolute;
  1249. left: 0;
  1250. top: 0;
  1251. right: 0;
  1252. bottom: 0;
  1253. margin: auto;
  1254. background: #fff;
  1255. width: calc(100% - 198rpx);
  1256. height: 820rpx;
  1257. border-radius: 20rpx;
  1258. .alert-top {
  1259. padding: 33rpx;
  1260. display: flex;
  1261. justify-content: center;
  1262. align-items: center;
  1263. position: relative;
  1264. }
  1265. .title {
  1266. font-size: 32rpx;
  1267. font-weight: 600;
  1268. color: #333333;
  1269. }
  1270. .close {
  1271. position: absolute;
  1272. right: 33rpx;
  1273. }
  1274. .upload_css {
  1275. margin-left: 20rpx;
  1276. }
  1277. }
  1278. }
  1279. .cancel,
  1280. .confirm {
  1281. position: absolute;
  1282. display: inline-block;
  1283. width: 50%;
  1284. text-align: center;
  1285. bottom: 0;
  1286. padding: 10px;
  1287. border-top: 1px solid #eee;
  1288. font-size: 34rpx;
  1289. }
  1290. .cancel {
  1291. left: 0;
  1292. border-right: 1px solid #eee;
  1293. color: #AFB3BF;
  1294. }
  1295. .confirm {
  1296. right: 0;
  1297. color: #22C572;
  1298. }
  1299. .u-textarea-style {
  1300. margin: 20rpx;
  1301. background: #F9F9FA;
  1302. border-radius: 10px;
  1303. border: 1px solid #EEEEEE;
  1304. padding: 10rpx 20rpx;
  1305. position: relative;
  1306. overflow-y: scroll;
  1307. .right-bottom {
  1308. position: absolute;
  1309. right: 20rpx;
  1310. bottom: 20rpx;
  1311. color: #AFB3BF;
  1312. }
  1313. }
  1314. /deep/.u-input__textarea {
  1315. height: 300rpx !important;
  1316. }
  1317. .content2 {
  1318. background: white;
  1319. margin: 20rpx 0;
  1320. border-radius: 20rpx;
  1321. padding: 20rpx;
  1322. .row {
  1323. display: flex;
  1324. .left {
  1325. display: flex;
  1326. align-items: center;
  1327. .item1 {
  1328. position: relative;
  1329. .item-content {
  1330. background: #617AE0;
  1331. width: 44px;
  1332. height: 44px;
  1333. border-radius: 22px;
  1334. line-height: 44px;
  1335. text-align: center;
  1336. font-size: 15px;
  1337. color: #fff;
  1338. }
  1339. .status {
  1340. position: absolute;
  1341. border-radius: 50%;
  1342. padding: 0px 2px;
  1343. right: -3px;
  1344. bottom: -3px;
  1345. background: #fff;
  1346. }
  1347. .status.success {
  1348. border: 1px solid rgb(60, 156, 255);
  1349. }
  1350. .status.error {
  1351. border: 1px solid rgb(245, 108, 108);
  1352. }
  1353. .status.question {
  1354. border: 1px solid #f9ae3d;
  1355. }
  1356. }
  1357. }
  1358. .right {
  1359. width: 80%;
  1360. // color: #B0B1B5;
  1361. margin-top: 10px;
  1362. .right-content {
  1363. background: #F2F3F7;
  1364. margin-left: 10px;
  1365. margin-top: 10px;
  1366. padding: 10px;
  1367. border-radius: 5px;
  1368. color: #B0B1B5;
  1369. }
  1370. .right-item {
  1371. display: flex;
  1372. justify-content: space-between;
  1373. .time {
  1374. color: #999;
  1375. }
  1376. .item2 {
  1377. margin-left: 20rpx;
  1378. margin-top: -7px;
  1379. .name {
  1380. font-size: 28rpx;
  1381. font-weight: 800;
  1382. margin-bottom: 4px;
  1383. }
  1384. .status.success {
  1385. color: #6CC48C;
  1386. }
  1387. .status.error {
  1388. color: rgb(245, 108, 108);
  1389. }
  1390. .status.question {
  1391. color: #f9ae3d;
  1392. }
  1393. }
  1394. }
  1395. .audit_img {
  1396. flex-wrap: wrap;
  1397. .url_css {
  1398. border: 1px solid #999999;
  1399. border-radius: 10px;
  1400. margin-top: 10px;
  1401. margin-right: 10px;
  1402. .url_img {
  1403. width: 80px;
  1404. height: 80px;
  1405. border-radius: 10px;
  1406. }
  1407. }
  1408. }
  1409. }
  1410. }
  1411. .row2 {
  1412. display: flex;
  1413. .item-content {
  1414. background: #22C572;
  1415. width: 30px;
  1416. height: 30px;
  1417. border-radius: 50%;
  1418. line-height: 30px;
  1419. text-align: center;
  1420. font-size: 12px;
  1421. color: #fff;
  1422. padding: 0 2px;
  1423. margin: 0 auto;
  1424. }
  1425. .status {
  1426. position: absolute;
  1427. top: 0;
  1428. right: 0;
  1429. }
  1430. }
  1431. .row-line {
  1432. width: 1px;
  1433. height: 30px;
  1434. background: #F2F2F2;
  1435. margin: 10rpx 50rpx;
  1436. }
  1437. .audit {
  1438. margin-top: 20rpx;
  1439. }
  1440. }
  1441. </style>