popup.vue 30 KB

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