Issueandreceipt_task_approval.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536
  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="aspectFill" 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" :width="150" ref="upload" :action="action" :max-size="maxSize" :max-count="99"
  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 class="audit_btn">
  353. <view @click='close()' class="cancel">取消</view>
  354. <view @click='passSubmit()' class="confirm">确定</view>
  355. </view>
  356. </view>
  357. </view>
  358. <u-toast ref="uToast" />
  359. <view style='padding:10px;' class='flex bottom-btn'>
  360. <u-button @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
  361. <u-button @click='pass' type="success" class="btn2">通过</u-button>
  362. </view>
  363. </view>
  364. </template>
  365. <script>
  366. import helper from '@/common/helper.js';
  367. import upload from '@/components/upload.vue';
  368. import {
  369. mapState
  370. } from 'vuex';
  371. export default {
  372. components: {
  373. upload,
  374. },
  375. data() {
  376. return {
  377. everyCheck: '',
  378. height: 200,
  379. autoHeight: true,
  380. border: false,
  381. id: "",
  382. OutList: {}, //出
  383. EnterList: {}, //入
  384. retreatList: {}, //退
  385. type: '移库',
  386. show: false,
  387. show1: false,
  388. auditList: [],
  389. list: {},
  390. auditMind: '',
  391. pjList: [{
  392. type: '一等品'
  393. },
  394. {
  395. type: '二等品'
  396. },
  397. {
  398. type: '三等品'
  399. },
  400. {
  401. type: '等外'
  402. }
  403. ],
  404. count: 0,
  405. // 上传附件、
  406. action: this.$uploadUrl,
  407. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  408. isAdd: true,
  409. fileUrl: []
  410. }
  411. },
  412. // onReady() {
  413. // this.$refs.uForm.setRules(this.rules);
  414. // },
  415. onBackPress(e) {
  416. if (this.everyCheck) {
  417. uni.navigateTo({
  418. url: "/pages/task/my_task"
  419. })
  420. return true;
  421. }
  422. },
  423. onLoad(options) {
  424. this.id = options.id
  425. this.everyCheck = uni.getStorageSync("everyTask")
  426. this.count = 0
  427. this.getList()
  428. },
  429. onShow() {
  430. },
  431. computed: {
  432. ...mapState(['hasLogin', 'userInfo']),
  433. },
  434. methods: {
  435. openDocument(src) {
  436. uni.downloadFile({
  437. url: src,
  438. success: function(res) {
  439. var filePath = res.tempFilePath;
  440. uni.openDocument({
  441. filePath: filePath,
  442. showMenu: true,
  443. success: function(res) {
  444. console.log('打开文档成功');
  445. }
  446. });
  447. }
  448. });
  449. },
  450. getImgUrl(res) {
  451. this.fileUrl.push(res)
  452. },
  453. onError(error) {
  454. alert(error)
  455. console.log('------------error-----------')
  456. console.log(error)
  457. },
  458. onProgress(e) {
  459. console.log(e)
  460. },
  461. onRemove(index) {
  462. this.fileUrl.splice(index, 1)
  463. },
  464. showcontent(item) {
  465. item.showflow = !item.showflow
  466. },
  467. filterFileType(index, lists) {
  468. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  469. lists.splice(index, 1);
  470. // 当前文件不支持
  471. uni.showModal({
  472. title: '暂不支持当前图片类型',
  473. showCancel: false
  474. });
  475. } else {
  476. this.isAdd = false;
  477. }
  478. },
  479. getList() {
  480. var that = this
  481. uni.showLoading({
  482. title: '加载中',
  483. mask: true,
  484. })
  485. this.$api.doRequest('get', '/inOutWarehouseTask/getTask', {
  486. id: this.id
  487. }).then(res => {
  488. if (res.data.code == 200) {
  489. this.list = res.data.data
  490. this.$api.doRequest('get', '/inOutWarehouseTask/getInOutWarehouseTask', {
  491. relevanceId: res.data.data.relevanceId
  492. }).then(res => {
  493. if (res.data.code == 200) {
  494. this.$api.doRequest('get', '/warehouseBaseInfo/selectContractNoList', {
  495. compId: uni.getStorageSync('pcUserInfo').compId
  496. }).then(res1 => {
  497. for (let i = 0; i < res.data.data.length; i++) {
  498. if (res.data.data[i].inOutType == "移库出库" || res.data.data[
  499. i]
  500. .inOutType == "贸易服务出库" || res.data.data[i].inOutType ==
  501. "销售出库" ||
  502. res.data.data[i].inOutType == "暂存出库") {
  503. this.OutList = res.data.data[i]
  504. this.OutList.judge = 1
  505. } else if (res.data.data[i].inOutType == "移库入库" || res.data
  506. .data[i]
  507. .inOutType == "暂存入库" || res.data.data[i]
  508. .inOutType == "收购入库" || res
  509. .data.data[i].inOutType == "采购入库" || res.data.data[i]
  510. .inOutType ==
  511. "贸易服务入库") {
  512. this.EnterList = res.data.data[i]
  513. this.EnterList.judge = 2
  514. } else if (res.data.data[i].inOutType == "退库") {
  515. this.retreatList = res.data.data[i]
  516. this.retreatList.judge = 3
  517. }
  518. }
  519. for (let i = 0; i < res1.data.data.length; i++) {
  520. if (res1.data.data[i].contractNo == this.EnterList
  521. .contractNo) {
  522. if (res1.data.data[i].priceType == '随行就市') {
  523. this.EnterList.status = true
  524. } else {
  525. this.EnterList.status = false
  526. }
  527. }
  528. if (res1.data.data[i].contractNo == this.retreatList
  529. .contractNo) {
  530. if (res1.data.data[i].priceType == '随行就市') {
  531. this.retreatList.status = true
  532. } else {
  533. this.retreatList.status = false
  534. }
  535. }
  536. }
  537. })
  538. }
  539. //审核流程
  540. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  541. businessCode: 'INOUTTASK-TASK-APPROVE',
  542. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  543. }).then(res1 => {
  544. this.$api.doRequest('get', '/commonUser/getHis', {
  545. workflowId: res1.data.data[0].id,
  546. businessKey: this.id,
  547. branch: that.list.jointVentureParties ? that.list
  548. .jointVentureParties : 'zt'
  549. }).then(response => {
  550. uni.hideLoading()
  551. for (let i = 0; i < response.data.data.length; i++) {
  552. this.$set(response.data.data[i], 'status',
  553. 'question')
  554. console.log(response.data.data[i]
  555. .workflowHistoricTasks, i)
  556. if (response.data.data[i].commonStaffs) {
  557. response.data.data[i].showflow = false
  558. response.data.data[i].operatorTitle = response
  559. .data.data[i].desc.substring(0, 2)
  560. response.data.data[i].operatorName = response
  561. .data.data[i].desc
  562. response.data.data[i].staffscontent = '共' +
  563. response.data.data[i].commonStaffs.length +
  564. '人,当前审核' + response.data.data[i]
  565. .workflowHistoricTasks.length + '人'
  566. if (response.data.data[i]
  567. .workflowHistoricTasks && response.data
  568. .data[i].workflowHistoricTasks.length > 0
  569. ) {
  570. if (response.data.data[i]
  571. .workflowHistoricTasks.length !=
  572. response.data.data[i].commonStaffs
  573. .length) {
  574. // response.data.data[i].status='question'
  575. this.$set(response.data.data[i],
  576. 'status', 'question')
  577. } else {
  578. this.$set(response.data.data[i],
  579. 'status', 'success')
  580. // response.data.data[i].status='success'
  581. }
  582. response.data.data[i].workflowlen =
  583. response.data.data[i]
  584. .workflowHistoricTasks.length
  585. var workflowdata = response.data.data[i]
  586. .workflowHistoricTasks
  587. var staffsdata = response.data.data[i]
  588. .commonStaffs
  589. for (let q = 0; q < staffsdata
  590. .length; q++) {
  591. staffsdata[q].status = false
  592. staffsdata[q].staffTitle = staffsdata[
  593. q].staffName
  594. for (let k = 0; k < workflowdata
  595. .length; k++) {
  596. if (staffsdata[q].staffId ==
  597. workflowdata[k].operatorId) {
  598. staffsdata[q].status = true
  599. }
  600. }
  601. }
  602. }
  603. response.data.data[i].commonStaffs1 = response
  604. .data.data[i].commonStaffs
  605. } else {
  606. if (response.data.data[i]
  607. .workflowHistoricTasks && response.data
  608. .data[i].workflowHistoricTasks.length > 0
  609. ) {
  610. var len = response.data.data[i]
  611. .workflowHistoricTasks.length - 1
  612. if (response.data.data[i]
  613. .workflowHistoricTasks[len].approved) {
  614. this.$set(response.data.data[i],
  615. 'status', 'success')
  616. } else {
  617. this.$set(response.data.data[i],
  618. 'status', 'error')
  619. }
  620. response.data.data[i].operatorTitle =
  621. response.data.data[i]
  622. .workflowHistoricTasks[len]
  623. .operatorName.substring(response.data
  624. .data[i].workflowHistoricTasks[0]
  625. .operatorName.length - 2)
  626. response.data.data[i].operatorName =
  627. response.data.data[i]
  628. .workflowHistoricTasks[len]
  629. .operatorName
  630. var time = new Date(response.data.data[i]
  631. .workflowHistoricTasks[len]
  632. .claimTime).getTime()
  633. response.data.data[i].updateDate = this.$u
  634. .timeFormat(time, 'mm.dd hh:MM')
  635. // 显示附件和审核意见
  636. if (response.data.data[i].workflowHistoricTasks[len].auditMind && response.data.data[i].workflowHistoricTasks[len].auditMind.indexOf("##") !=-1) {
  637. response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[0]
  638. response.data.data[i].fileUrl = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[1].split(",")
  639. }else{
  640. response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind
  641. }
  642. } else {
  643. this.$set(response.data.data[i], 'status',
  644. 'question')
  645. // response.data.data[i].status='question'
  646. if (response.data.data[i].desc ==
  647. '总经理助理审核') {
  648. response.data.data[i].operatorTitle =
  649. '总助'
  650. } else if (response.data.data[i].desc ==
  651. '杜大光审核') {
  652. response.data.data[i].operatorTitle =
  653. '大光'
  654. } else {
  655. response.data.data[i].operatorTitle =
  656. response.data.data[i].desc
  657. .substring(0, 2)
  658. }
  659. response.data.data[i].operatorName =
  660. response.data.data[i].desc
  661. var time1 = new Date(response.data.data[i]
  662. .updateDate).getTime()
  663. response.data.data[i].updateDate = this.$u
  664. .timeFormat(time1, 'mm.dd hh:MM')
  665. response.data.data[i].auditMind = ''
  666. }
  667. }
  668. }
  669. console.log(response.data.data)
  670. this.auditList = response.data.data
  671. var time2 = new Date(this.list.createDate).getTime()
  672. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  673. this.auditList.unshift({
  674. operatorTitle: this.list.creater.substring(
  675. 0, 2),
  676. operatorName: this.list.creater,
  677. updateDate: time3,
  678. auditMind: '',
  679. desc: '发起申请',
  680. showflow: false,
  681. commonStaffs1: null,
  682. commonStaffs: null,
  683. workflowHistoricTasks: [],
  684. status: 'success'
  685. })
  686. })
  687. })
  688. })
  689. }
  690. })
  691. },
  692. pjPicker(e) {
  693. this.OutList.grade = this.pjList[e[0]].type
  694. this.OutList.gradeKey = e[0] + 1
  695. },
  696. pjPicker1(e) {
  697. this.EnterList.grade = this.pjList[e[0]].type
  698. this.EnterList.gradeKey = e[0] + 1
  699. },
  700. close() {
  701. this.show1 = false
  702. },
  703. pass() {
  704. this.show1 = true
  705. this.title = '审核意见(通过)'
  706. },
  707. reject() {
  708. this.show1 = true
  709. this.title = '驳回原因(驳回)'
  710. },
  711. passSubmit() {
  712. var that = this
  713. if (this.title == '驳回原因(驳回)') {
  714. this.rejectSubmit()
  715. } else {
  716. let that = this
  717. that.show = false
  718. uni.showModal({
  719. content: "是否确定通过?",
  720. showCancel: true,
  721. confirmText: '确定',
  722. success: function(res) {
  723. if (res.confirm) {
  724. uni.showLoading({
  725. title: "审核中",
  726. mask:true
  727. })
  728. console.log(that.OutList,that.EnterList)
  729. that.OutList.inOutFlag = 1
  730. that.EnterList.inOutFlag = 2
  731. if (that.OutList.taskTypeKey == 1) {
  732. that.requestadd(that.OutList)
  733. } else if (that.EnterList.taskTypeKey == 2) {
  734. that.requestadd(that.EnterList)
  735. } else if (
  736. that.OutList.taskTypeKey == 3 ||
  737. that.OutList.taskTypeKey == 4
  738. ) {
  739. that.requestadd(that.OutList, 'repetition')
  740. if (!that.deletetask) {
  741. that.requestadd(that.EnterList, 'repetition')
  742. }
  743. }
  744. if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
  745. that.requestadd(that.retreatList)
  746. } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
  747. 4) {
  748. that.requestadd(that.retreatList, 'repetition')
  749. }
  750. }
  751. }
  752. })
  753. }
  754. },
  755. rejectSubmit() {
  756. // (1出库2入库3移库4退库并出库)
  757. if (!this.auditMind) {
  758. this.$api.msg('驳回原因不能为空!')
  759. } else {
  760. this.show = false
  761. let that = this
  762. uni.showModal({
  763. content: "是否确定驳回?",
  764. showCancel: true,
  765. confirmText: '确定',
  766. success: function(res) {
  767. if (res.confirm) {
  768. uni.showLoading({
  769. title: "审核中",
  770. mask:true
  771. })
  772. if (that.OutList.taskTypeKey == 1) {
  773. that.requestaudit(that.OutList)
  774. } else if (that.OutList.taskTypeKey == 2) {
  775. that.requestaudit(that.OutList)
  776. } else if (
  777. that.OutList.taskTypeKey == 3 ||
  778. that.OutList.taskTypeKey == 4
  779. ) {
  780. that.requestaudit(that.OutList, 'repetition')
  781. if (!that.deletetask) {
  782. that.requestaudit(that.OutList, 'repetition')
  783. }
  784. }
  785. if (that.EnterList.taskTypeKey) {
  786. if (that.EnterList.taskTypeKey == 1 || that.EnterList.taskTypeKey == 2) {
  787. that.requestaudit(that.EnterList)
  788. } else if (that.EnterList.taskTypeKey == 3 || that.EnterList.taskTypeKey ==
  789. 4) {
  790. that.requestaudit(that.EnterList, 'repetition')
  791. }
  792. }
  793. if (that.retreatList.taskTypeKey) {
  794. if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey ==
  795. 2) {
  796. that.requestaudit(that.retreatList)
  797. } else if (that.retreatList.taskTypeKey == 3 || that.retreatList
  798. .taskTypeKey == 4) {
  799. that.requestaudit(that.retreatList, 'repetition')
  800. }
  801. }
  802. }
  803. }
  804. })
  805. }
  806. },
  807. requestadd(list, status) {
  808. let that = this
  809. uni.getStorage({
  810. key: 'pcUserInfo',
  811. success(e) {
  812. list.compId = e.data.compId //这就是你想要取的token
  813. that.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(
  814. res => {
  815. if (res.data.code == 200) {
  816. var info = that.auditMind
  817. if (that.fileUrl.length > 0) {
  818. info = that.auditMind + "##" + that.fileUrl.toString()
  819. }
  820. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  821. taskId: list.taskId,
  822. approved: true,
  823. auditMind: info ? info : "",
  824. needReapply: false
  825. }).then(res => {
  826. if (res.data.code == 200) {
  827. that.$api.msg('审核成功!')
  828. that.count++
  829. if (that.everyCheck) {
  830. helper.setAudit(that.list)
  831. }
  832. } else {
  833. that.show1=true
  834. that.$api.msg('审核失败!')
  835. }
  836. if (list.taskTypeKey == '3' || list.taskTypeKey == '4') {
  837. if (that.count == 2) {
  838. setTimeout(function() {
  839. uni.hideLoading()
  840. uni.navigateBack()
  841. }, 1000);
  842. }
  843. } else {
  844. setTimeout(function() {
  845. uni.hideLoading()
  846. uni.navigateBack()
  847. }, 1000);
  848. }
  849. }).catch(res => {
  850. uni.hideLoading()
  851. if (res.message) {
  852. uni.showToast({
  853. title: res.message,
  854. icon: 'none',
  855. duration: 2000
  856. })
  857. } else {
  858. uni.showToast({
  859. title: "系统异常,请联系管理员",
  860. icon: 'none',
  861. duration: 2000
  862. })
  863. }
  864. })
  865. } else {
  866. that.$api.msg('审核失败!')
  867. }
  868. }).catch(res => {
  869. uni.hideLoading()
  870. if (res.message) {
  871. uni.showToast({
  872. title: res.message,
  873. icon: 'none',
  874. duration: 2000
  875. })
  876. } else {
  877. uni.showToast({
  878. title: "系统异常,请联系管理员",
  879. icon: 'none',
  880. duration: 2000
  881. })
  882. }
  883. })
  884. }
  885. })
  886. // list.publisher = this.userInfo.userName
  887. },
  888. requestaudit(list, status) {
  889. let pcUserInfo = uni.getStorageSync('pcUserInfo')
  890. if(pcUserInfo){
  891. list.compId = pcUserInfo.compId
  892. }
  893. else{
  894. list.compId = '2710b21efc1e4393930c5dc800010dc4'
  895. }
  896. // list.publisher = this.userInfo.userName
  897. this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
  898. if (res.data.code == 200) {
  899. var info = this.auditMind
  900. if (this.fileUrl.length > 0) {
  901. info = this.auditMind + "##" + this.fileUrl.toString()
  902. }
  903. this.$api.doRequest('post', '/newWorkflow/api/handle', {
  904. taskId: list.taskId,
  905. approved: false,
  906. auditMind: info ? info : "",
  907. needReapply: true
  908. }).then(res => {
  909. if (res.data.code == 200) {
  910. this.$api.msg('驳回成功!')
  911. this.count++
  912. if (this.everyCheck) {
  913. helper.setAudit(this.list)
  914. }
  915. uni.hideLoading()
  916. if (list.taskTypeKey == '3' || list.taskTypeKey == '4') {
  917. if (this.count == 2) {
  918. setTimeout(function() {
  919. uni.hideLoading()
  920. uni.navigateBack()
  921. }, 1000);
  922. }
  923. } else {
  924. setTimeout(function() {
  925. uni.hideLoading()
  926. uni.navigateBack()
  927. }, 1000);
  928. }
  929. } else {
  930. this.$api.msg('驳回失败!')
  931. }
  932. })
  933. }
  934. })
  935. },
  936. check() {
  937. // (1出库2入库3移库4退库并出库)taskTypeKey
  938. if (this.OutList.taskTypeKey == 1 || this.OutList.taskTypeKey == 3) {
  939. if (!this.OutList.grade) {
  940. this.$api.msg('品级不能为空')
  941. return
  942. }
  943. if (!this.OutList.bulkDensity) {
  944. this.$api.msg('容重不能为空')
  945. return
  946. }
  947. if (this.OutList.bulkDensity < 500 || this.OutList.bulkDensity > 1000) {
  948. this.$api.msg('容重输入错误')
  949. return
  950. }
  951. if (String(this.OutList.bulkDensity).indexOf('.') != -1 && String(this.OutList.bulkDensity).length - (
  952. String(this.OutList.bulkDensity).indexOf('.') + 1) > 0) {
  953. this.$api.msg('容重输入错误')
  954. return
  955. }
  956. if (!this.OutList.waterContent) {
  957. this.$api.msg('水分不能为空')
  958. return
  959. }
  960. if (isNaN(this.OutList.waterContent) ||
  961. (String(this.OutList.waterContent).indexOf('.') != -1 &&
  962. String(this.OutList.waterContent).length -
  963. (String(this.OutList.waterContent).indexOf('.') + 1) >
  964. 2) ||
  965. this.OutList.waterContent < 1 ||
  966. this.OutList.waterContent > 40
  967. ) {
  968. this.$api.msg('水分输入错误!')
  969. return
  970. }
  971. if (!this.OutList.unitPrice) {
  972. this.$api.msg('单价不能为空')
  973. return
  974. }
  975. if (isNaN(this.OutList.unitPrice) ||
  976. (String(this.OutList.unitPrice).indexOf('.') != -1 &&
  977. String(this.OutList.unitPrice).length -
  978. (String(this.OutList.unitPrice).indexOf('.') + 1) >
  979. 2) ||
  980. this.OutList.unitPrice < 1 ||
  981. this.OutList.unitPrice > 10000
  982. ) {
  983. this.$api.msg('单价输入错误!')
  984. return
  985. }
  986. }
  987. if (this.OutList.taskTypeKey == 1) {
  988. if (!this.OutList.businessDescribe) {
  989. this.$api.msg('业务描述不能为空')
  990. return
  991. }
  992. if (this.OutList.businessDescribe.length > 150) {
  993. this.$api.msg('业务描述长度错误')
  994. return
  995. }
  996. }
  997. if (this.EnterList.taskTypeKey == 2 && this.EnterList.judge) {
  998. if (!this.EnterList.grade) {
  999. this.$api.msg('品级不能为空')
  1000. return
  1001. }
  1002. if (!this.EnterList.bulkDensity) {
  1003. this.$api.msg('容重不能为空')
  1004. return
  1005. }
  1006. if (this.EnterList.bulkDensity < 500 || this.EnterList.bulkDensity > 1000) {
  1007. this.$api.msg('容重输入错误')
  1008. return
  1009. }
  1010. if (String(this.EnterList.bulkDensity).indexOf('.') != -1 && String(this.EnterList.bulkDensity)
  1011. .length - (
  1012. String(this.EnterList.bulkDensity).indexOf('.') + 1) > 0) {
  1013. this.$api.msg('容重输入错误')
  1014. return
  1015. }
  1016. if (!this.EnterList.waterContent) {
  1017. this.$api.msg('水分不能为空')
  1018. return
  1019. }
  1020. if (isNaN(this.EnterList.waterContent) ||
  1021. (String(this.EnterList.waterContent).indexOf('.') != -1 &&
  1022. String(this.EnterList.waterContent).length -
  1023. (String(this.EnterList.waterContent).indexOf('.') + 1) >
  1024. 2) ||
  1025. this.EnterList.waterContent < 1 ||
  1026. this.EnterList.waterContent > 40
  1027. ) {
  1028. this.$api.msg('水分输入错误!')
  1029. return
  1030. }
  1031. if (!this.EnterList.unitPrice) {
  1032. this.$api.msg('单价不能为空')
  1033. return
  1034. }
  1035. if (isNaN(this.EnterList.unitPrice) ||
  1036. (String(this.EnterList.unitPrice).indexOf('.') != -1 &&
  1037. String(this.EnterList.unitPrice).length -
  1038. (String(this.EnterList.unitPrice).indexOf('.') + 1) >
  1039. 2) ||
  1040. this.EnterList.unitPrice < 1 ||
  1041. this.EnterList.unitPrice > 10000
  1042. ) {
  1043. this.$api.msg('单价输入错误!')
  1044. return
  1045. }
  1046. if (!this.EnterList.businessDescribe) {
  1047. this.$api.msg('业务描述不能为空')
  1048. return
  1049. }
  1050. if (this.EnterList.businessDescribe.length > 150) {
  1051. this.$api.msg('业务描述长度错误')
  1052. return
  1053. }
  1054. }
  1055. if (this.OutList.taskTypeKey == 3) {
  1056. if (!this.EnterList.businessDescribe) {
  1057. this.$api.msg('业务描述不能为空')
  1058. return
  1059. }
  1060. if (this.EnterList.businessDescribe.length > 150) {
  1061. this.$api.msg('业务描述长度错误')
  1062. return
  1063. }
  1064. }
  1065. if (this.retreatList.taskTypeKey == 4 && this.retreatList.judge) {
  1066. if (!this.retreatList.grade) {
  1067. this.$api.msg('品级不能为空')
  1068. return
  1069. }
  1070. if (!this.retreatList.bulkDensity) {
  1071. this.$api.msg('容重不能为空')
  1072. return
  1073. }
  1074. if (this.retreatList.bulkDensity < 500 || this.retreatList.bulkDensity > 1000) {
  1075. this.$api.msg('容重输入错误')
  1076. return
  1077. }
  1078. if (String(this.retreatList.bulkDensity).indexOf('.') != -1 && String(this.retreatList.bulkDensity)
  1079. .length - (
  1080. String(this.retreatList.bulkDensity).indexOf('.') + 1) > 0) {
  1081. this.$api.msg('容重输入错误')
  1082. return
  1083. }
  1084. if (!this.retreatList.waterContent) {
  1085. this.$api.msg('水分不能为空')
  1086. return
  1087. }
  1088. if (isNaN(this.retreatList.waterContent) ||
  1089. (String(this.retreatList.waterContent).indexOf('.') != -1 &&
  1090. String(this.retreatList.waterContent).length -
  1091. (String(this.retreatList.waterContent).indexOf('.') + 1) >
  1092. 2) ||
  1093. this.retreatList.waterContent < 1 ||
  1094. this.retreatList.waterContent > 40
  1095. ) {
  1096. this.$api.msg('水分输入错误!')
  1097. return
  1098. }
  1099. if (!this.retreatList.unitPrice) {
  1100. this.$api.msg('单价不能为空')
  1101. return
  1102. }
  1103. if (isNaN(this.retreatList.unitPrice) ||
  1104. (String(this.retreatList.unitPrice).indexOf('.') != -1 &&
  1105. String(this.retreatList.unitPrice).length -
  1106. (String(this.retreatList.unitPrice).indexOf('.') + 1) >
  1107. 2) ||
  1108. this.retreatList.unitPrice < 1 ||
  1109. this.retreatList.unitPrice > 10000
  1110. ) {
  1111. this.$api.msg('单价输入错误!')
  1112. return
  1113. }
  1114. if (!this.EnterList.businessDescribe) {
  1115. this.$api.msg('业务描述不能为空')
  1116. return
  1117. }
  1118. if (this.EnterList.businessDescribe.length > 150) {
  1119. this.$api.msg('业务描述长度错误')
  1120. return
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. </script>
  1127. <style scoped lang="scss">
  1128. .content1 {
  1129. margin: 10rpx;
  1130. padding-bottom: 224rpx;
  1131. .title {
  1132. height: 70rpx;
  1133. line-height: 60rpx;
  1134. font-size: 32rpx;
  1135. font-weight: 600;
  1136. color: #333333;
  1137. border-bottom: 2rpx solid #EEEEEE;
  1138. }
  1139. }
  1140. .uForm {
  1141. padding: 0 40rpx;
  1142. }
  1143. .u-form-item {
  1144. padding: 0;
  1145. }
  1146. .bottom-btn {
  1147. width: 100%;
  1148. position: fixed;
  1149. bottom: 0;
  1150. display: flex;
  1151. z-index: 2;
  1152. left: 0;
  1153. background-color: #f8f8f8;
  1154. flex-direction: column;
  1155. .btn1,
  1156. .btn2 {
  1157. width: 100%;
  1158. margin-bottom: 26rpx;
  1159. border-radius: 90rpx;
  1160. }
  1161. .btn1 {
  1162. background: white;
  1163. color: #00C265;
  1164. }
  1165. }
  1166. .submit {
  1167. width: 50%;
  1168. background: #22C572;
  1169. border-radius: 10rpx;
  1170. }
  1171. .part2 {
  1172. margin-top: 20rpx;
  1173. }
  1174. .textarea {
  1175. border: 1px solid #ccc;
  1176. border-radius: 10rpx;
  1177. background-color: #F9F9FA;
  1178. height: 100px;
  1179. }
  1180. .row {
  1181. display: flex;
  1182. justify-content: space-between;
  1183. // border-bottom: 1px solid #EEEEEE;
  1184. padding: 21rpx 0;
  1185. .right,
  1186. input {
  1187. font-size: 28rpx;
  1188. color: #333333;
  1189. }
  1190. }
  1191. //弹出框
  1192. // .popup {
  1193. // padding: 30rpx;
  1194. // border-radius: 20rpx;
  1195. // }
  1196. // .rejectInfoCss {
  1197. // border: 1px solid #ccc;
  1198. // border-radius: 10rpx;
  1199. // background-color: #F9F9FA;
  1200. // margin: 30rpx;
  1201. // overflow-y: auto;
  1202. // // height: 300rpx;
  1203. // background: red;
  1204. // }
  1205. .uForm_item {
  1206. padding: 20rpx;
  1207. background-color: #FFFFFF;
  1208. margin: 20rpx;
  1209. border-radius: 20rpx;
  1210. }
  1211. .rejectText {
  1212. text-align: center;
  1213. }
  1214. .topInfo {
  1215. height: 210rpx;
  1216. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  1217. padding: 30rpx;
  1218. .topInfo-item {
  1219. height: 150rpx;
  1220. background-color: #FFFFFF;
  1221. border-radius: 20rpx;
  1222. padding: 40rpx;
  1223. .logo {
  1224. width: 40rpx;
  1225. height: 40rpx;
  1226. margin-top: 8rpx;
  1227. }
  1228. .infoText {
  1229. font-size: 36rpx;
  1230. font-weight: 600;
  1231. margin-left: 20rpx;
  1232. }
  1233. .infoData {
  1234. color: #878C9C;
  1235. font-size: 26rpx;
  1236. margin-top: 10rpx;
  1237. }
  1238. }
  1239. }
  1240. .shade {
  1241. position: fixed;
  1242. top: 0;
  1243. left: 0;
  1244. height: 100%;
  1245. width: 100%;
  1246. background: rgba(0, 0, 0, 0.4);
  1247. z-index: 3;
  1248. overflow-y: scroll;
  1249. .wrap {
  1250. position: absolute;
  1251. left: 0;
  1252. top: 0;
  1253. right: 0;
  1254. bottom: 0;
  1255. margin: auto;
  1256. background: #fff;
  1257. width: calc(100% - 198rpx);
  1258. height: 770rpx;
  1259. overflow-y: scroll;
  1260. // overflow: hidden;
  1261. border-radius: 20rpx;
  1262. .alert-top {
  1263. padding: 33rpx;
  1264. display: flex;
  1265. justify-content: center;
  1266. align-items: center;
  1267. position: relative;
  1268. }
  1269. .title {
  1270. font-size: 32rpx;
  1271. font-weight: 600;
  1272. color: #333333;
  1273. }
  1274. .close {
  1275. position: absolute;
  1276. right: 33rpx;
  1277. }
  1278. .upload_css {
  1279. margin-left: 20rpx;
  1280. .upload {
  1281. // width: 80px;
  1282. // height: 80px;
  1283. }
  1284. }
  1285. }
  1286. }
  1287. .audit_btn {
  1288. display: flex;
  1289. top: 0px;
  1290. }
  1291. .cancel,
  1292. .confirm {
  1293. // position: absolute;
  1294. // display: inline-block;
  1295. width: 50%;
  1296. text-align: center;
  1297. // bottom: 0;
  1298. padding: 10px;
  1299. border-top: 1px solid #eee;
  1300. font-size: 34rpx;
  1301. margin: auto;
  1302. }
  1303. .cancel {
  1304. left: 0;
  1305. border-right: 1px solid #eee;
  1306. color: #AFB3BF;
  1307. }
  1308. .confirm {
  1309. right: 0;
  1310. color: #22C572;
  1311. }
  1312. .u-textarea-style {
  1313. margin: 20rpx;
  1314. background: #F9F9FA;
  1315. border-radius: 10px;
  1316. border: 1px solid #EEEEEE;
  1317. padding: 10rpx 20rpx;
  1318. position: relative;
  1319. overflow-y: scroll;
  1320. .right-bottom {
  1321. position: absolute;
  1322. right: 20rpx;
  1323. bottom: 20rpx;
  1324. color: #AFB3BF;
  1325. }
  1326. }
  1327. /deep/.u-input__textarea {
  1328. height: 300rpx !important;
  1329. }
  1330. .content2 {
  1331. background: white;
  1332. margin: 20rpx 0;
  1333. border-radius: 20rpx;
  1334. padding: 20rpx;
  1335. .row {
  1336. display: flex;
  1337. .left {
  1338. display: flex;
  1339. align-items: center;
  1340. .item1 {
  1341. position: relative;
  1342. .item-content {
  1343. background: #617AE0;
  1344. width: 44px;
  1345. height: 44px;
  1346. border-radius: 22px;
  1347. line-height: 44px;
  1348. text-align: center;
  1349. font-size: 15px;
  1350. color: #fff;
  1351. }
  1352. .status {
  1353. position: absolute;
  1354. border-radius: 50%;
  1355. padding: 0px 2px;
  1356. right: -3px;
  1357. bottom: -3px;
  1358. background: #fff;
  1359. }
  1360. .status.success {
  1361. border: 1px solid rgb(60, 156, 255);
  1362. }
  1363. .status.error {
  1364. border: 1px solid rgb(245, 108, 108);
  1365. }
  1366. .status.question {
  1367. border: 1px solid #f9ae3d;
  1368. }
  1369. }
  1370. }
  1371. .right {
  1372. width: 80%;
  1373. // color: #B0B1B5;
  1374. margin-top: 10px;
  1375. .right-content {
  1376. background: #F2F3F7;
  1377. margin-left: 10px;
  1378. margin-top: 10px;
  1379. padding: 10px;
  1380. border-radius: 5px;
  1381. color: #B0B1B5;
  1382. }
  1383. .right-item {
  1384. display: flex;
  1385. justify-content: space-between;
  1386. .time {
  1387. color: #999;
  1388. }
  1389. .item2 {
  1390. margin-left: 20rpx;
  1391. margin-top: -7px;
  1392. .name {
  1393. font-size: 28rpx;
  1394. font-weight: 800;
  1395. margin-bottom: 4px;
  1396. }
  1397. .status.success {
  1398. color: #6CC48C;
  1399. }
  1400. .status.error {
  1401. color: rgb(245, 108, 108);
  1402. }
  1403. .status.question {
  1404. color: #f9ae3d;
  1405. }
  1406. }
  1407. }
  1408. .audit_img {
  1409. flex-wrap: wrap;
  1410. .url_css {
  1411. // border: 1px solid #999999;
  1412. border-radius: 10px;
  1413. margin-top: 10px;
  1414. margin-right: 10px;
  1415. .url_img {
  1416. width: 66px;
  1417. height: 66px;
  1418. border-radius: 10px;
  1419. }
  1420. }
  1421. }
  1422. }
  1423. }
  1424. .row2 {
  1425. display: flex;
  1426. .item-content {
  1427. background: #22C572;
  1428. width: 30px;
  1429. height: 30px;
  1430. border-radius: 50%;
  1431. line-height: 30px;
  1432. text-align: center;
  1433. font-size: 12px;
  1434. color: #fff;
  1435. padding: 0 2px;
  1436. margin: 0 auto;
  1437. }
  1438. .status {
  1439. position: absolute;
  1440. top: 0;
  1441. right: 0;
  1442. }
  1443. }
  1444. .row-line {
  1445. width: 1px;
  1446. height: 30px;
  1447. background: #F2F2F2;
  1448. margin: 10rpx 50rpx;
  1449. }
  1450. .audit {
  1451. margin-top: 20rpx;
  1452. }
  1453. }
  1454. </style>