Issueandreceipt_task_approval.vue 44 KB

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