popup.vue 27 KB

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