Issueandreceipt_task_approval.vue 45 KB

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