Issueandreceipt_task_approval.vue 46 KB

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