Issueandreceipt_task_approval.vue 45 KB

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