popup.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. <template>
  2. <view>
  3. <!-- 弹窗 -->
  4. <view class="bgbox" @click="getClose" v-if="type"></view>
  5. <!-- 业务进度 -->
  6. <view class="speedbox" v-if="type=='ywjd'">
  7. <view class="tit">业务进度</view>
  8. <view class="lists" v-for="(ite,idx) in stepList" :key='idx'>
  9. <view class="listl">
  10. <image :src="stepa" class="imga" v-if="Number(stepval)>Number(ite.loanScheduleValue)"></image>
  11. <image :src="stepb" v-else-if="stepval==ite.loanScheduleValue"></image>
  12. <image :src="stepc" v-else></image>
  13. </view>
  14. <view class="listr">
  15. <view class="ltit" :class="stepval==ite.loanScheduleValue?'act':''">{{ite.loanScheduleName}}</view>
  16. <view class="ltxt">{{ite.loanScheduleTime}}</view>
  17. </view>
  18. </view>
  19. </view>
  20. <!-- 业务审核 -->
  21. <view class="fixbox" v-if="type=='sh'">
  22. <view class="cloimg" @click="getClose">
  23. <image :src="closeimg"></image>
  24. </view>
  25. <view class="ttit">业务审核</view>
  26. <view class="mb16">
  27. <view class="ttxt mb18">是否同意进入初审</view>
  28. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tyList" />
  29. </view>
  30. <view class="mb16">
  31. <view class="ttxt mb18">审核意见</view>
  32. <textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="若不同意进入初审,请填写理由…"></textarea>
  33. </view>
  34. <block v-if="isty!=3">
  35. <view class="mb16">
  36. <!-- :chosevalue="datainfo.name" -->
  37. <view class="ttxt mb18">分配A角</view>
  38. <w-select
  39. :list='userList'
  40. valueName='userName'
  41. keyName="userId"
  42. :filterable='filterable'
  43. width='100%'
  44. height="44px"
  45. @change='getchangea'
  46. >
  47. </w-select>
  48. </view>
  49. <view class="mb16">
  50. <view class="ttxt mb18">分配B角</view>
  51. <w-select
  52. :list='userList'
  53. valueName='userName'
  54. keyName="userId"
  55. :filterable='filterable'
  56. width='100%'
  57. height="44px"
  58. @change='getchangeb'
  59. >
  60. </w-select>
  61. <!-- <uni-data-select v-model="mycdtxt" placeholder="请选择B角" :localdata="mycdlist" ></uni-data-select> -->
  62. </view>
  63. </block>
  64. <view class="btns" @click="getupSubmit">确认<block v-if="isty!=3">并生成担保意向函</block></view>
  65. </view>
  66. <!-- a,b角色审核 -->
  67. <view class="fixbox" v-if="type=='ajssh'||type=='bjssh'">
  68. <view class="cloimg" @click="getClose">
  69. <image :src="closeimg"></image>
  70. </view>
  71. <view class="ttit">担保初审</view>
  72. <view class="mb16">
  73. <view class="ttxt mb18">是否通过</view>
  74. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tgList" />
  75. </view>
  76. <view >
  77. <view class="ttxt mb18">审核意见</view>
  78. <textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="若资料不予通过,请填写理由…"></textarea>
  79. </view>
  80. <view class="btns" @click="getupSubmit">确认</view>
  81. <view class="shtips" v-if="type=='ajssh'">* 提交后将交由B角复核,误操可撤回</view>
  82. <view class="shtips" v-if="type=='bjssh'">* 提交后将交由风险部进行风险审核,误操可撤回</view>
  83. </view>
  84. <!-- 风险部审核 fxsh-->
  85. <view class="fixbox" v-if="type=='fxsh'">
  86. <view class="cloimg" @click="getClose">
  87. <image :src="closeimg"></image>
  88. </view>
  89. <view class="ttit">风险审核</view>
  90. <view class="mb16">
  91. <view class="ttxt mb18">是否通过</view>
  92. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tgList" />
  93. </view>
  94. <view class="mb16">
  95. <view class="ttxt mb18">审核意见</view>
  96. <textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="若资料不予通过,请填写理由…"></textarea>
  97. </view>
  98. <view class="btns" @click="getupSubmit">确认</view>
  99. </view>
  100. <!-- 初审风险审核 -->
  101. <view class="fixbox" v-if="type=='fxbmsh'">
  102. <view class="cloimg" @click="getClose">
  103. <image :src="closeimg"></image>
  104. </view>
  105. <view class="ttit">风险审核</view>
  106. <view class="mb16">
  107. <view class="ttxt mb18">是否通过</view>
  108. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tgList" />
  109. </view>
  110. <view class="mb16">
  111. <view class="ttxt mb18">审核意见</view>
  112. <textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="若资料不予通过,请填写理由…"></textarea>
  113. </view>
  114. <view class="mb16">
  115. <!-- 担保项目合法合规表 -->
  116. <view class="ttxt mb18 flexcj">附件信息
  117. <lsj-upload ref="lsjUpload" childId="upload1" :loanApplicationId="loanApplicationId" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  118. @progress="" @uploadEnd="onuploadEnd" :fileName="wjcjobj.dbxmhfhgb" fileVal='dbxmhfhgb' bigType="c">
  119. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  120. </lsj-upload>
  121. </view>
  122. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  123. <view class="flext" @click="getDown(fite.url)">
  124. <view class="imgl"><image :src="filico" ></image></view>
  125. <view class="tit">{{fite.name}}</view>
  126. </view>
  127. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  128. <image :src="fdelimg"></image>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="btns" @click="getupSubmit">确认</view>
  133. </view>
  134. <!-- 上会管理员审核 shsh -->
  135. <view class="fixbox" v-if="type=='shsh'">
  136. <view class="cloimg" @click="getClose">
  137. <image :src="closeimg"></image>
  138. </view>
  139. <view class="ttit">上会审核</view>
  140. <view class="mb16">
  141. <view class="ttxt mb18">是否同意上评审会</view>
  142. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tyList" />
  143. </view>
  144. <view class="mb16" v-if="isty!=3">
  145. <view class="ttxt mb18">评审会日期</view>
  146. <picker mode="date" @change='bindDateChangea'>
  147. <view class="chekt">
  148. <view :class="jtri?'':'coa'">{{jtri|| "请选择具体日期"}}</view>
  149. <image :src="upimg"></image>
  150. </view>
  151. </picker>
  152. </view>
  153. <view class="mb16">
  154. <view class="ttxt mb18">审核意见</view>
  155. <textarea class="textar" v-model="shtext" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" placeholder="若不同意上会,请填写理由…"></textarea>
  156. </view>
  157. <view class="mb16" v-if="isty!=3">
  158. <view class="ttxt mb18 flexcj">上会人员
  159. <view class="addsh" @click="getAddFn" >
  160. <image :src="addpeimg"></image>添加上会人员
  161. </view>
  162. </view>
  163. <view class="peolists">
  164. <view class="plist" v-for="(ite,idx) in shrylist" :key="idx">
  165. <view class="flex1 over">{{ite.realName}}</view>
  166. <image :src="fdelimg" @click="getDelRy(idx)"></image>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="shshtips">* 确认上会后,即出具评审意见签批表、股东会决议</view>
  171. <view class="btns" style="margin-top: 18rpx;" @click="getupSubmit">确认</view>
  172. </view>
  173. <!-- 上会上传附件 -->
  174. <view class="fixbox" v-if="type=='shpsyj'||type=='shshjy'">
  175. <view class="cloimg" @click="getClose">
  176. <image :src="closeimg"></image>
  177. </view>
  178. <view class="ttit">上传附件</view>
  179. <view class="mb16">
  180. <!-- 评审意见签批表 -->
  181. <view class="ttxt mb18 flexcj" v-if="type=='shpsyj'">附件信息
  182. <lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  183. @progress="" @uploadEnd="onuploadEnd" :fileName="wjcjobj.psyjqpb" fileVal='psyjqpb' bigType="c">
  184. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  185. </lsj-upload>
  186. </view>
  187. <!-- 上会纪要 -->
  188. <view class="ttxt mb18 flexcj" v-if="type=='shshjy'">附件信息
  189. <lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  190. @progress="" @uploadEnd="onuploadEnd" :fileName="wjcjobj.gdhyjy" fileVal='gdhyjy' bigType="c">
  191. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  192. </lsj-upload>
  193. </view>
  194. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  195. <view class="flext" @click="getDown(fite.url)">
  196. <view class="imgl"><image :src="filico" ></image></view>
  197. <view class="tit">{{fite.name}}</view>
  198. </view>
  199. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  200. <image :src="fdelimg"></image>
  201. </view>
  202. </view>
  203. </view>
  204. <view class="conbtns flexcj">
  205. <!-- <view class="cbtns bga">暂存</view> -->
  206. <view class="cbtns bgb" @click="getfjAdd">确认</view>
  207. </view>
  208. </view>
  209. <!-- 上传附件 -->
  210. <view class="fixbox" v-if="type=='fjadd'">
  211. <view class="cloimg" @click="getClose">
  212. <image :src="closeimg"></image>
  213. </view>
  214. <view class="ttit">上传附件</view>
  215. <view class="mb16">
  216. <view class="ttxt mb18 flexcj" v-if="wjcjobj[fjval]">附件信息
  217. <lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  218. @progress="" @uploadEnd="onuploadEnd" :fileName="wjcjobj[fjval]" :fileVal='fjval' bigType="c">
  219. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  220. </lsj-upload>
  221. </view>
  222. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  223. <view class="flext" @click="getDown(fite.url)">
  224. <view class="imgl"><image :src="filico" ></image></view>
  225. <view class="tit">{{fite.name}}</view>
  226. </view>
  227. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  228. <image :src="fdelimg"></image>
  229. </view>
  230. </view>
  231. </view>
  232. <view class="conbtns flexcj">
  233. <!-- <view class="cbtns bga">暂存</view> -->
  234. <view class="cbtns bgb" @click="getfjAdd">确认</view>
  235. </view>
  236. </view>
  237. <!-- 其他附件 -->
  238. <view class="fixbox" v-if="type=='qtfjadd'">
  239. <view class="cloimg" @click="getClose">
  240. <image :src="closeimg"></image>
  241. </view>
  242. <view class="ttit">上传附件</view>
  243. <view class="mb16">
  244. <view class="ttxt mb18 flexcj" v-if="qtfjobj[fjval]">附件信息
  245. <lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  246. @progress="" @uploadEnd="onuploadEnd" :fileName="qtfjobj[fjval]" :fileVal='fjval' bigType="d">
  247. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  248. </lsj-upload>
  249. </view>
  250. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  251. <view class="flext" @click="getDown(fite.url)">
  252. <view class="imgl"><image :src="filico" ></image></view>
  253. <view class="tit">{{fite.name}}</view>
  254. </view>
  255. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  256. <image :src="fdelimg"></image>
  257. </view>
  258. </view>
  259. </view>
  260. <view class="conbtns flexcj">
  261. <!-- <view class="cbtns bga">暂存</view> -->
  262. <view class="cbtns bgb" @click="getfjAdd">确认</view>
  263. </view>
  264. </view>
  265. <!-- 审核结果二次确认弹窗 -->
  266. <view class="fixbox con" v-if="type=='confirm'">
  267. <view class="cloimg" @click="getClose">
  268. <image :src="closeimg"></image>
  269. </view>
  270. <view class="ttit">确认提交审核意见</view>
  271. <view class="conttxt">请您二次确认对该项目资料提交 “<text>
  272. {{shtg==3?'不通过':'通过'}}
  273. </text>”的审核意见吗?</view>
  274. <view class="conbtns flexcj">
  275. <view class="cbtns bga" @click="getClose">取消</view>
  276. <view class="cbtns bgb" @click="getSure">确认</view>
  277. </view>
  278. </view>
  279. <!-- 尽职调查反馈 -->
  280. <view class="fixbox" v-if="type=='jztcsh'">
  281. <view class="cloimg" @click="getClose">
  282. <image :src="closeimg"></image>
  283. </view>
  284. <view class="ttit">业务审核</view>
  285. <!-- <view class="mb16">
  286. <view class="ttxt mb18">是否通过</view>
  287. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tgList" />
  288. </view> -->
  289. <!-- <view class="mb16">
  290. <view class="ttxt mb18">审核意见</view>
  291. <textarea class="textar" v-model="shtext" style="height: 156rpx;" placeholder="若不同意,请填写理由…"></textarea>
  292. </view> -->
  293. <view class="mb16">
  294. <view class="ttxt mb18">上传照片</view>
  295. <view class="addpbox">
  296. <view class="plist addpimg" @click="getaddImage">
  297. <image :src="addpimg"></image>
  298. </view>
  299. <view class="plist" v-for="(ite,idx) in phofile" :key="idx">
  300. <image :src="baseUrl+ite" class="img"></image>
  301. <image :src="fdelimg" class="del" @click="getDelPh(idx)"></image>
  302. </view>
  303. </view>
  304. </view>
  305. <view class="ptips">* 点击添加照片可实时拍摄照片上传,也可由手 机相册中上传</view>
  306. <view class="mb16">
  307. <!-- 尽职调查报告 -->
  308. <view class="ttxt mb18 flexcj">附件信息
  309. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="wjcjobj.jzdcbg" fileVal='jzdcbg' bigType="c" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  310. @progress="" @uploadEnd="onuploadEnd" >
  311. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  312. </lsj-upload>
  313. </view>
  314. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  315. <view class="flext" @click="getDown(fite.url)">
  316. <view class="imgl"><image :src="filico" ></image></view>
  317. <view class="tit">{{fite.name}}</view>
  318. </view>
  319. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  320. <image :src="fdelimg"></image>
  321. </view>
  322. </view>
  323. </view>
  324. <view class="conbtns flexcj">
  325. <view class="cbtns bga" @click="getClose">取消</view>
  326. <view class="cbtns bgb" @click="getupSubmit">确认</view>
  327. </view>
  328. </view>
  329. <!-- 人员弹窗 -->
  330. <block v-if="addflag">
  331. <view class="addboxbg" @click="getCloseAdd"></view>
  332. <view class="addbox">
  333. <view class="cloimg" @click="getCloseAdd">
  334. <image :src="closeimg"></image>
  335. </view>
  336. <view class="ttit">添加人员</view>
  337. <view class="peolists">
  338. <view class="plist" :class="shrylist.findIndex(text => text.userId === ite.userId)!=-1?'act':''" v-for="(ite,idx) in userList" :key="idx">
  339. <view class="flex1" @click="getChose(ite)">{{ite.userName}}</view>
  340. </view>
  341. </view>
  342. </view>
  343. </block>
  344. <!-- 富文本弹窗 -->
  345. <view class="fixbox con" v-if="type=='fwb'">
  346. <view class="cloimg" @click="getClose">
  347. <image :src="closeimg"></image>
  348. </view>
  349. <view class="ttit">小微企业说明</view>
  350. <view class="conttxt">
  351. <block v-if="xwimgList&&xwimgList.length">
  352. <image :src="baseUrl+ite" v-for="(ite,idx) in xwimgList" :key="idx" class="imgs" @click="getPreviewImage(xwimgList,idx)"></image>
  353. </block>
  354. <rich-text :nodes="content" v-else></rich-text>
  355. </view>
  356. <view class="conbtns flexcj">
  357. <view class="cbtns bga" @click="getClose">取消</view>
  358. <!-- <view class="cbtns bgb">确认</view> -->
  359. </view>
  360. </view>
  361. <!-- 暂缓出具弹窗 -->
  362. <view class="fixbox" v-if="type=='zhfkhgb'">
  363. <view class="cloimg" @click="getClose">
  364. <image :src="closeimg"></image>
  365. </view>
  366. <view class="ttit">风险审核</view>
  367. <view class="mb16">
  368. <view class="ttxt mb18">暂缓原因</view>
  369. <textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="请填写理由…"></textarea>
  370. </view>
  371. <view class="btns" @click="getupSubmit">确认</view>
  372. </view>
  373. </view>
  374. </template>
  375. <script>
  376. import config from '@/config'
  377. const baseUrl = config.baseUrl
  378. import { getToken } from '@/utils/auth'
  379. import {uploadmore} from '@/utils/common.js'
  380. import wSelect from "@/work/components/w-select/w-select.vue"
  381. export default{
  382. components:{wSelect},
  383. props:{
  384. type: {
  385. type: String,
  386. default () {
  387. return ''
  388. }
  389. },
  390. stepList:{
  391. type: Array,
  392. default () {
  393. return []
  394. }
  395. },
  396. userList:{
  397. type: Array,
  398. default () {
  399. return []
  400. }
  401. },
  402. stepval:{
  403. type: [Number,String],
  404. default () {
  405. return 0
  406. }
  407. },
  408. content:{
  409. type: [Number,String],
  410. default () {
  411. return ''
  412. }
  413. },
  414. xwimgList:{
  415. type: Array,
  416. default () {
  417. return []
  418. }
  419. },
  420. shtg:{
  421. type: [Number,String],
  422. default () {
  423. return ''
  424. }
  425. },
  426. loanApplicationId:{
  427. type: [Number,String],
  428. default () {
  429. return ''
  430. }
  431. },
  432. loanApplicationNumber:{
  433. type: [Number,String],
  434. default () {
  435. return ''
  436. }
  437. },
  438. wjcjobj:{
  439. type: Object,
  440. default () {
  441. return {}
  442. }
  443. },
  444. qtfjobj:{
  445. type: Object,
  446. default () {
  447. return {}
  448. }
  449. },
  450. fjval:{
  451. type: String,
  452. default () {
  453. return ''
  454. }
  455. }
  456. },
  457. data(){
  458. return{
  459. //附件
  460. option: {
  461. // 上传服务器地址,需要替换为你的接口地址
  462. url: baseUrl+'/common/uploadNew', // 该地址非真实路径,需替换为你项目自己的接口地址
  463. // 上传附件的key
  464. name: 'file',
  465. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  466. header: {
  467. // 示例参数可删除
  468. 'Authorization': 'Bearer ' + getToken(),
  469. },
  470. // 根据你接口需求自定义body参数
  471. formData: {
  472. loanApplicationNumber:'',
  473. loanApplicationId:'',
  474. }
  475. },
  476. // 选择文件后是否立即自动上传,true=选择后立即上传
  477. instantly: true,
  478. // 必传宽高且宽高应与slot宽高保持一致
  479. width: '',
  480. height: '40rpx',
  481. // 限制允许上传的格式,空串=不限制,默认为空
  482. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,word',
  483. // 文件上传大小限制
  484. size: 100,
  485. // 文件数量限制 默认10
  486. count: 5,
  487. // 文件回显列表
  488. files: new Map(),
  489. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  490. wxFiles: [],
  491. // 是否打印日志
  492. debug: false,
  493. filelist:[],
  494. stepa:require('@/work/static/images/busin/stepa.png'),
  495. stepb:require('@/work/static/images/busin/stepb.png'),
  496. stepc:require('@/work/static/images/busin/stepc.png'),
  497. closeimg:require('@/work/static/images/close.png'),
  498. filico:require('@/work/static/images/filico.png'),
  499. fdelimg:require('@/work/static/images/del.png'),
  500. addpimg:require('@/work/static/images/addp.png'),
  501. upimg:require('@/work/static/images/aup.png'),
  502. addpeimg:require('@/work/static/images/aap.png'),
  503. actcolor:'#00A9F0',
  504. tyList:[{text: '同意',value: '2'},{text: '不同意',value: '3'}],
  505. tgList:[{text: '通过',value: '2'},{text: '不通过',value: '3'}],
  506. mycdlist:[{text: 'a',value: '0'},{text: 'b',value: '1'}],
  507. isty:'2',//同意
  508. shtext:'',//审核意见
  509. aUserId:'',//A角色用户ID
  510. aUserName:'',//A角色用户名称
  511. bUserId:'',//B角色用户ID
  512. bUserName:'',//B角色用户名称
  513. mycdtxt:'',
  514. jtri:'',//具体日期
  515. filterable:true,
  516. chooseValue:'',
  517. phofile:[],
  518. baseUrl:'',
  519. shrylist:[],//参会人员
  520. addflag:false,
  521. }
  522. },
  523. mounted() {
  524. this.baseUrl=baseUrl
  525. },
  526. watch:{
  527. loanApplicationNumber(val){
  528. this.option.formData.loanApplicationNumber=val
  529. },
  530. loanApplicationId(val){
  531. this.option.formData.loanApplicationId=val
  532. },
  533. type(val){
  534. this.filelist=[];
  535. this.shtext='';
  536. this.isty='2';
  537. this.phofile=[];
  538. }
  539. },
  540. methods:{
  541. getClose(){
  542. this.$emit('getClose')
  543. },
  544. getAddFn(){
  545. this.addflag=true;
  546. },
  547. getCloseAdd(){
  548. this.addflag=false;
  549. },
  550. getPreviewImage(arr,idx){
  551. var newArr=[];
  552. arr.forEach(ite=>{
  553. var ds=this.baseUrl+ite
  554. newArr.push(ds)
  555. })
  556. uni.previewImage({
  557. urls: newArr,
  558. current:idx,
  559. success: function(data) {
  560. },
  561. fail: function(err) {
  562. }
  563. });
  564. },
  565. getChose(ite,idx){
  566. const index = this.shrylist.findIndex(text => text.userId === ite.userId);
  567. var obj={
  568. userId:ite.userId,
  569. realName:ite.userName,
  570. loanApplicationId:this.loanApplicationId,
  571. }
  572. if(index!=-1){
  573. this.shrylist.splice(index,1)
  574. }else{
  575. this.shrylist.push(obj)
  576. }
  577. },
  578. getchangea(e){
  579. this.aUserId=e.userId;
  580. this.aUserName=e.userName;
  581. },
  582. getchangeb(e){
  583. this.bUserId=e.userId;
  584. this.bUserName=e.userName;
  585. },
  586. getupSubmit(){
  587. var type=this.type;
  588. var data={}
  589. if(type=='sh'){
  590. data={
  591. auditType:this.isty,
  592. auditView:this.shtext,
  593. }
  594. if(this.isty==3&&!this.shtext){
  595. this.$toast("请输入审核意见")
  596. return
  597. }
  598. if(this.isty!=3){
  599. if(!this.aUserName){
  600. this.$toast("请选择分配A角")
  601. return
  602. }
  603. if(!this.bUserName){
  604. this.$toast("请选择分配B角")
  605. return
  606. }
  607. data.aUserId=this.aUserId;
  608. data.aUserName=this.aUserName;
  609. data.bUserId=this.bUserId;
  610. data.bUserName=this.bUserName;
  611. }
  612. }else if(type=='ajssh'||type=='bjssh'||type=='fxsh'){
  613. data={
  614. auditType:this.isty,
  615. auditView:this.shtext,
  616. }
  617. if(this.isty==3&&!this.shtext){
  618. this.$toast("请输入审核意见")
  619. return
  620. }
  621. }else if(type=='fxbmsh'){
  622. data={
  623. auditType:this.isty,
  624. fjUrl:this.filelist,
  625. }
  626. if(this.isty==3&&!this.shtext){
  627. this.$toast("请输入审核意见")
  628. return
  629. }
  630. if(this.isty!=3&&(!this.filelist||this.filelist.length<1)){
  631. this.$toast("请上传附件")
  632. return
  633. }
  634. }else if(type=='jztcsh'){
  635. data={
  636. // auditType:this.isty,
  637. auditType:2,
  638. // auditView:this.shtext,
  639. fjUrl:this.filelist,
  640. imageUrl:this.phofile.join(',')
  641. }
  642. if(!this.phofile||this.phofile.length<1){
  643. this.$toast("请上传图片")
  644. return
  645. }
  646. if(!this.filelist||this.filelist.length<1){
  647. this.$toast("请上传附件")
  648. return
  649. }
  650. }else if(type=='shsh'){
  651. data={
  652. auditType:this.isty,
  653. auditView:this.shtext,
  654. }
  655. if(this.isty==3&&!this.shtext){
  656. this.$toast("请输入审核意见")
  657. return
  658. }
  659. if(this.isty!=3){
  660. if(!this.jtri){
  661. this.$toast("请选择评审会日期")
  662. return
  663. }
  664. if(this.shrylist.length<1){
  665. this.$toast("请选择上会人员")
  666. return
  667. }
  668. data.reviewTime=this.jtri;
  669. data.sysUserConferenceList=this.shrylist;
  670. }
  671. }else if(type=='zhfkhgb'){
  672. if(!this.shtext){
  673. this.$toast("请输入暂缓原因")
  674. return
  675. }
  676. data={
  677. remark:this.shtext,
  678. }
  679. }
  680. this.$emit('getupSubmit',data)
  681. },
  682. getfjAdd(){
  683. var type=this.type;
  684. if(this.filelist&&this.filelist.length>0){
  685. var data={
  686. fjUrl:this.filelist,
  687. }
  688. this.$emit('getfjAdd',data)
  689. }else{
  690. this.$toast("请上传附件")
  691. return
  692. }
  693. },
  694. bindDateChangea(e){
  695. var val=e.detail.value;
  696. this.jtri=val;
  697. },
  698. getSure(){
  699. this.$emit('getSure')
  700. },
  701. // 上传图片
  702. getaddImage(e){
  703. let that = this;
  704. let file =[],count=9
  705. // if(e=='zj'){
  706. // file = that.zjfile;
  707. // count=9
  708. // }else{
  709. // file = that.mjfile;
  710. // count=9
  711. // }
  712. uni.chooseImage({
  713. // count: 1,
  714. success:function(res){
  715. let img= res.tempFilePaths;
  716. if(img.length + file.length > count){
  717. uni.showToast({
  718. title: '最多上传'+count+'张图片',
  719. icon: 'none',
  720. duration: 2000
  721. })
  722. }else{
  723. let imglen = res.tempFilePaths.length;
  724. var fuwufile = [];
  725. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  726. that.phofile = that.phofile.concat(rs);
  727. // if(e=='zj'){
  728. // that.datainfo.identificationPhoto=that.zjfile.join(',')
  729. // }
  730. })
  731. }
  732. }
  733. });
  734. },
  735. onuploadEnd(item,fileVal,bigType) {
  736. var newobj={}
  737. var responseText=JSON.parse(item.responseText)
  738. newobj.name=responseText.newFileName;
  739. newobj.oldName=responseText.originalFilename;
  740. newobj.url=responseText.fileName;
  741. newobj.type=fileVal;
  742. newobj.bigType=bigType;
  743. newobj.loanApplicationId=this.loanApplicationId;
  744. newobj.loanApplicationNumber=this.loanApplicationNumber;
  745. this.filelist.push(newobj)
  746. },
  747. getDelFj(idx){
  748. var that=this;
  749. uni.showModal({
  750. title: '确认删除',
  751. content: "是否确认删除",
  752. cancelText: '取消',
  753. confirmText: '确认',
  754. success: function(res) {
  755. if (res.confirm) {
  756. that.filelist.splice(idx,1)
  757. } else if (res.cancel) {
  758. }
  759. }
  760. });
  761. },
  762. getDelPh(idx){
  763. this.phofile.splice(idx,1)
  764. },
  765. getDelRy(idx){
  766. this.shrylist.splice(idx,1)
  767. },
  768. getDown(e){
  769. uni.showLoading({
  770. title: '加载中'
  771. });
  772. var url=baseUrl+e;
  773. let index1 = e.lastIndexOf("."); // 得到一个索引值
  774. let index2 = e.length;
  775. let type = e.substring(index1, index2);
  776. if ((type.indexOf('jpg') > -1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
  777. uni.previewImage({
  778. current: 0,
  779. urls: [url],
  780. // background: '#ffffff'
  781. });
  782. uni.hideLoading();
  783. } else {
  784. uni.downloadFile({
  785. url: url,//文件的下载路径
  786. success(result) {
  787. uni.hideLoading()
  788. var filePath = result.tempFilePath;
  789. uni.openDocument({
  790. filePath: filePath,
  791. showMenu: true,
  792. success: function (res) {
  793. // console.log('打开文档成功');
  794. }
  795. });
  796. },
  797. fail(res) {uni.hideLoading()}
  798. })
  799. }
  800. },
  801. }
  802. }
  803. </script>
  804. <style lang="scss" scoped>
  805. // 进度
  806. .speedbox{background: #FFFFFF;box-shadow: 0px 0px 14rpx 0px rgba(184,184,184,0.76);border-radius: 20rpx;padding: 44rpx 40rpx 0;
  807. position: fixed;z-index: 10;left: 220rpx;top: 50%;transform: translateY(-50%);max-height: calc(100vh - 200rpx);overflow: auto;
  808. .tit{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 36rpx;}
  809. .lists{display: flex;align-items: flex-start;position: relative;padding-bottom: 52rpx;
  810. &::after{content: '';width: 2rpx;position: absolute;left: 15rpx;top: 56rpx;bottom: 56rpx;height: 60rpx;background: #E6E6E6;}
  811. &:last-child{
  812. &::after{display: none;}
  813. // .ltit{color: #01A9F0 !important;}
  814. }
  815. .listl{width: 32rpx;height: 32rpx;margin-right: 22rpx;display: flex;align-items: center;justify-content: center;
  816. image{width: 32rpx;height: 32rpx;
  817. &.imga{width: 30rpx;height: 30rpx;}
  818. }
  819. }
  820. .listr{
  821. .ltit{font-weight: 500;font-size: 26rpx;color: #222327;margin-bottom: 22rpx;
  822. &.act{color: #01A9F0;}
  823. }
  824. .ltxt{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  825. }
  826. }
  827. }
  828. .fixbox /deep/ .uni-select{border: none;background-color: #EEEEEE;height: 88rpx;}
  829. .fixbox /deep/ .uni-select__input-placeholder{font-size: 30rpx;color: #AAAAAA;}
  830. .fixbox /deep/ .uni-textarea-placeholder{font-size: 26rpx;color: #AAAAAA;}
  831. .textar{width: 100%;border-radius: 10rpx;padding: 26rpx 30rpx;font-size: 26rpx;color: #222327;height: 400rpx;background: #EEEEEE;
  832. &.texthe{height: 190rpx;}
  833. }
  834. .fixbox{position: fixed;left: 56rpx;right: 56rpx;background: #FFFFFF;max-height: calc(100vh - 200rpx);overflow: auto;
  835. border-radius: 20rpx;z-index: 10;top: 50%;transform: translateY(-50%);padding: 40rpx 48rpx 52rpx;
  836. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;}
  837. .btns{margin-top: 70rpx;width: 100%;background: #00A9F0;border-radius:10rpx;height: 88rpx;display: flex;align-items: center;justify-content: center;font-weight: 500;font-size: 30rpx;color: #FFFFFF;}
  838. .shtips{font-weight: 500;text-align: center;margin-top: 36rpx;font-size: 24rpx;color: #FF6969;padding-bottom: 20rpx;}
  839. //按钮
  840. .conbtns{margin-top: 66rpx;
  841. .cbtns{flex:1;display: flex;align-items: center;justify-content: center;box-sizing: border-box;height: 88rpx;font-weight: 500;
  842. font-size: 30rpx;background: #FFFFFF;border-radius: 10rpx;
  843. &.bga{border: 1px solid #00A9F0;background: #FFFFFF;color: #01A9F0;margin-right: 24rpx;}
  844. &.bgb{background: #00A9F0;color: #FFFFFF;}
  845. }
  846. }
  847. // 二次确认弹窗
  848. &.con{
  849. left: 80rpx;right: 80rpx;padding-bottom: 60rpx;
  850. .conttxt{font-weight: bold;font-size: 30rpx;color: #222327;padding: 0 34rpx;text-align: center;
  851. padding-top: 36rpx;
  852. text{color: #00A9F0;}
  853. .imgs{margin-bottom: 10rpx;}
  854. }
  855. }
  856. // 上传图片
  857. .addpbox{display: flex;flex-wrap: wrap;
  858. .plist{width: 160rpx;height: 160rpx;background: #FFFFFF;border-radius: 20rpx;position: relative;margin-bottom: 10rpx;
  859. margin-right: 30rpx;border: 2rpx dashed #CDCDCD;display: flex;align-items: center;justify-content: center;
  860. &:nth-of-type(3n){margin-right: 0;}
  861. &.addpimg{
  862. border: 0;
  863. image{width: 100%;height: 100%;}
  864. }
  865. .img{width: 150rpx;height: 150rpx;}
  866. .del{width: 24rpx;height: 24rpx;position: absolute;right: -6rpx;top: -6rpx;}
  867. }
  868. }
  869. // 选择日期
  870. .chekt{
  871. background-color: #EEEEEE;height: 88rpx;border-radius: 8rpx;display: flex;align-items: center;padding: 0 40rpx 0 24rpx;
  872. view{font-size: 30rpx;flex: 1;}
  873. image{width: 16rpx;height: 10rpx;flex: 0 0 auto;margin-left: 12rpx;}
  874. }
  875. // 上会人员添加
  876. .shshtips{font-weight: 500;padding-top: 14rpx;font-size: 24rpx;color: #FF6969;}
  877. .addsh{font-weight: 500;flex:0 0 auto; font-size: 30rpx;color: #00A9F0;display: flex;align-items: center;
  878. image{width: 24rpx;height: 24rpx;margin-right: 8rpx;}
  879. }
  880. .peolists{
  881. display: flex;flex-wrap: wrap;
  882. .plist{background-color: rgba(0, 169, 240, 0.1);font-weight: 500;font-size: 26rpx;border-radius:10rpx;width: 172rpx;margin: 0 12rpx 18rpx 0;display: flex;align-items: center;padding: 18rpx 16rpx;box-sizing: border-box;
  883. color: #666666;overflow: hidden;
  884. &:nth-of-type(3n){margin-right: 0;}
  885. image{width: 26rpx;height: 26rpx;}
  886. }
  887. }
  888. .ptips{font-weight: 500;font-size: 26rpx;color: #FF6969;margin-bottom: 40rpx;}
  889. // 附件
  890. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 20rpx;
  891. &:last-child{margin-bottom: 0;}
  892. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  893. image{width: 26rpx;height: 24rpx;}
  894. }
  895. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
  896. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  897. image{width: 24rpx;height: 24rpx;}
  898. }
  899. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;}
  900. }
  901. }
  902. .addboxbg{background-color: rgba(0, 0, 0, 0.5);position: fixed;left: 0;right: 0;top: 0;bottom: 0;z-index: 50;
  903. }
  904. .addbox{z-index: 55;width: 100%;position: fixed;left:0;right: 0;bottom: 0;max-height: calc(100vh - 400rpx);overflow: auto;
  905. padding: 40rpx 48rpx 52rpx;background-color: #FFFFFF;
  906. .peolists{display: flex;flex-wrap: wrap;
  907. .plist{width: auto !important;background: #FFFFFF;font-weight: 500;font-size: 26rpx;border-radius:10rpx;min-width: 172rpx;margin: 0 12rpx 18rpx 0;display: flex;align-items: center;padding: 18rpx 16rpx;box-sizing: border-box;
  908. color: #666666;overflow: hidden;text-align: center;border: 2rpx solid rgba(0, 169, 240, 0.1);
  909. &.act{
  910. background-color: rgba(0, 169, 240, 0.1);
  911. }
  912. }
  913. }
  914. }
  915. .cloimg{display: flex;align-items: center;justify-content: center;position: absolute;width: 40rpx;height: 40rpx;
  916. top: 40rpx;left: 40rpx;
  917. image{width: 22rpx;height: 22rpx;}
  918. }
  919. .ttit{font-weight: bold;text-align: center;font-size: 30rpx;color: #222327;margin-bottom:50rpx;}
  920. </style>