popup.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  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.val)"></image>
  11. <image :src="stepb" v-else-if="stepval==ite.val"></image>
  12. <image :src="stepc" v-else></image>
  13. </view>
  14. <view class="listr">
  15. <view class="ltit" :class="stepval==ite.val?'act':''">{{ite.tit}}</view>
  16. <view class="ltxt">{{ite.time}}</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;" placeholder="若不同意进入初审,请填写理由…"></textarea>
  33. </view>
  34. <view class="mb16">
  35. <view class="ttxt mb18">分配A角</view>
  36. <uni-data-select v-model="mycdtxt" placeholder="请选择A角" :localdata="mycdlist" ></uni-data-select>
  37. </view>
  38. <view class="mb16">
  39. <view class="ttxt mb18">分配B角</view>
  40. <uni-data-select v-model="mycdtxt" placeholder="请选择B角" :localdata="mycdlist" ></uni-data-select>
  41. </view>
  42. <view class="btns">确认并生成担保意向函</view>
  43. </view>
  44. <!-- a,b角色审核 -->
  45. <view class="fixbox" v-if="type=='ajssh'||type=='bjssh'">
  46. <view class="cloimg" @click="getClose">
  47. <image :src="closeimg"></image>
  48. </view>
  49. <view class="ttit">担保初审</view>
  50. <view class="mb16">
  51. <view class="ttxt mb18">是否通过</view>
  52. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tyList" />
  53. </view>
  54. <view class="">
  55. <view class="ttxt mb18">审核意见</view>
  56. <textarea class="textar" style="height: 156rpx;" placeholder="若资料不予通过,请填写理由…"></textarea>
  57. </view>
  58. <view class="btns" @click="getupSubmit">确认</view>
  59. <view class="shtips" v-if="type=='ajssh'">* 提交后将交由B角复核,误操可撤回</view>
  60. <view class="shtips" v-if="type=='bjssh'">* 提交后将交由风险部进行风险审核,误操可撤回</view>
  61. </view>
  62. <!-- 风险审核-->
  63. <view class="fixbox" v-if="type=='fxbmsh'">
  64. <view class="cloimg" @click="getClose">
  65. <image :src="closeimg"></image>
  66. </view>
  67. <view class="ttit">风险审核</view>
  68. <view class="mb16">
  69. <view class="ttxt mb18">是否通过</view>
  70. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tyList" />
  71. </view>
  72. <view class="mb16">
  73. <view class="ttxt mb18 flexcj">附件信息
  74. <lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  75. @progress="" @uploadEnd="onuploadEnd" >
  76. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  77. </lsj-upload>
  78. </view>
  79. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  80. <view class="flext" @click="getDown(fite.url)">
  81. <view class="imgl"><image :src="filico" ></image></view>
  82. <view class="tit">{{fite.name}}</view>
  83. </view>
  84. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  85. <image :src="fdelimg"></image>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="btns" @click="getupSubmit">确认</view>
  90. </view>
  91. <!-- 上会管理员审核 shsh -->
  92. <view class="fixbox" v-if="type=='shsh'">
  93. <view class="cloimg" @click="getClose">
  94. <image :src="closeimg"></image>
  95. </view>
  96. <view class="ttit">上会审核</view>
  97. <view class="mb16">
  98. <view class="ttxt mb18">是否同意上评审会</view>
  99. <uni-data-checkbox :selectedColor="actcolor" v-model="isty" :localdata="tyList" />
  100. </view>
  101. <view class="mb16">
  102. <view class="ttxt mb18">评审会日期</view>
  103. <picker mode="date" @change='bindDateChangea'>
  104. <view class="chekt">
  105. <view :class="jtri?'':'coa'">{{jtri|| "请选择具体日期"}}</view>
  106. <image :src="upimg"></image>
  107. </view>
  108. </picker>
  109. </view>
  110. <view class="mb16">
  111. <view class="ttxt mb18">审核意见</view>
  112. <textarea class="textar" style="height: 156rpx;" placeholder="若不同意上会,请填写理由…"></textarea>
  113. </view>
  114. <view class="mb16">
  115. <view class="ttxt mb18 flexcj">上会人员
  116. <view class="addsh">
  117. <image :src="addpeimg"></image>添加上会人员
  118. </view>
  119. </view>
  120. <view class="peolists">
  121. <view class="plist">
  122. <view class="flex1 over">周大吉</view>
  123. <image :src="fdelimg"></image>
  124. </view>
  125. <view class="plist">
  126. <view class="flex1 over">周大吉</view>
  127. <image :src="fdelimg"></image>
  128. </view>
  129. <view class="plist">
  130. <view class="flex1 over">周大吉</view>
  131. <image :src="fdelimg"></image>
  132. </view>
  133. <view class="plist">
  134. <view class="flex1 over">周大吉</view>
  135. <image :src="fdelimg"></image>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="shshtips">* 确认上会后,即出具评审意见签批表、股东会决议</view>
  140. <view class="btns" style="margin-top: 18rpx;" @click="getupSubmit">确认</view>
  141. </view>
  142. <!-- 上会上传附件 -->
  143. <view class="fixbox" v-if="type=='shhj'">
  144. <view class="cloimg" @click="getClose">
  145. <image :src="closeimg"></image>
  146. </view>
  147. <view class="ttit">上传附件</view>
  148. <view class="mb16">
  149. <view class="ttxt mb18 flexcj">附件信息
  150. <lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  151. @progress="" @uploadEnd="onuploadEnd" >
  152. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  153. </lsj-upload>
  154. </view>
  155. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  156. <view class="flext" @click="getDown(fite.url)">
  157. <view class="imgl"><image :src="filico" ></image></view>
  158. <view class="tit">{{fite.name}}</view>
  159. </view>
  160. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  161. <image :src="fdelimg"></image>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="conbtns flexcj">
  166. <!-- <view class="cbtns bga">暂存</view> -->
  167. <view class="cbtns bgb">确认</view>
  168. </view>
  169. </view>
  170. <!-- 审核结果二次确认弹窗 -->
  171. <view class="fixbox con" v-if="type=='confirm'">
  172. <view class="cloimg" @click="getClose">
  173. <image :src="closeimg"></image>
  174. </view>
  175. <view class="ttit">确认提交审核意见</view>
  176. <view class="conttxt">请您二次确认对该项目资料提交 “<text>通过</text>”的审核意见吗?</view>
  177. <view class="conbtns flexcj">
  178. <view class="cbtns bga" @click="getClose">取消</view>
  179. <view class="cbtns bgb">确认</view>
  180. </view>
  181. </view>
  182. <!-- 尽职调查反馈 -->
  183. <view class="fixbox" v-if="type=='jztcsh'">
  184. <view class="cloimg" @click="getClose">
  185. <image :src="closeimg"></image>
  186. </view>
  187. <view class="ttit">业务审核</view>
  188. <view class="mb16">
  189. <view class="ttxt mb18">上传照片</view>
  190. <view class="addpbox">
  191. <view class="plist addpimg" @click="getaddImage">
  192. <image :src="addpimg"></image>
  193. </view>
  194. <view class="plist">
  195. <image :src="addpimg" class="img"></image>
  196. <image :src="fdelimg" class="del"></image>
  197. </view>
  198. <view class="plist">
  199. <image :src="addpimg" class="img"></image>
  200. <image :src="fdelimg" class="del"></image>
  201. </view>
  202. <view class="plist">
  203. <image :src="addpimg" class="img"></image>
  204. <image :src="fdelimg" class="del"></image>
  205. </view>
  206. </view>
  207. </view>
  208. <view class="ptips">* 点击添加照片可实时拍摄照片上传,也可由手 机相册中上传</view>
  209. <view class="mb16">
  210. <view class="ttxt mb18 flexcj">附件信息
  211. <lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  212. @progress="" @uploadEnd="onuploadEnd" >
  213. <view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
  214. </lsj-upload>
  215. </view>
  216. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  217. <view class="flext" @click="getDown(fite.url)">
  218. <view class="imgl"><image :src="filico" ></image></view>
  219. <view class="tit">{{fite.name}}</view>
  220. </view>
  221. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  222. <image :src="fdelimg"></image>
  223. </view>
  224. </view>
  225. </view>
  226. <view class="conbtns flexcj">
  227. <view class="cbtns bga" @click="getClose">取消</view>
  228. <view class="cbtns bgb">确认</view>
  229. </view>
  230. </view>
  231. </view>
  232. </template>
  233. <script>
  234. import config from '@/config'
  235. const baseUrl = config.baseUrl
  236. import { getToken } from '@/utils/auth'
  237. import {uploadmore} from '@/utils/common.js'
  238. export default{
  239. props:{
  240. type: {
  241. type: String,
  242. default () {
  243. return ''
  244. }
  245. },
  246. stepList:{
  247. type: Array,
  248. default () {
  249. return []
  250. }
  251. },
  252. stepval:{
  253. type: [Number,String],
  254. default () {
  255. return 0
  256. }
  257. }
  258. },
  259. data(){
  260. return{
  261. //附件
  262. option: {
  263. // 上传服务器地址,需要替换为你的接口地址
  264. url: baseUrl+'/common/upload', // 该地址非真实路径,需替换为你项目自己的接口地址
  265. // 上传附件的key
  266. name: 'file',
  267. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  268. header: {
  269. // 示例参数可删除
  270. 'Authorization': 'Bearer ' + getToken(),
  271. },
  272. // 根据你接口需求自定义body参数
  273. formData: {}
  274. },
  275. // 选择文件后是否立即自动上传,true=选择后立即上传
  276. instantly: true,
  277. // 必传宽高且宽高应与slot宽高保持一致
  278. width: '',
  279. height: '40rpx',
  280. // 限制允许上传的格式,空串=不限制,默认为空
  281. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,zip,rar,word,png,jpg,jpeg',
  282. // 文件上传大小限制
  283. size: 100,
  284. // 文件数量限制 默认10
  285. count: 5,
  286. // 文件回显列表
  287. files: new Map(),
  288. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  289. wxFiles: [],
  290. // 是否打印日志
  291. debug: false,
  292. filelist:[{name:'安徽嘉欣医疗用品有…调查报告.pdf',url:''}],
  293. stepa:require('@/work/static/images/busin/stepa.png'),
  294. stepb:require('@/work/static/images/busin/stepb.png'),
  295. stepc:require('@/work/static/images/busin/stepc.png'),
  296. closeimg:require('@/work/static/images/close.png'),
  297. filico:require('@/work/static/images/filico.png'),
  298. fdelimg:require('@/work/static/images/del.png'),
  299. addpimg:require('@/work/static/images/addp.png'),
  300. upimg:require('@/work/static/images/aup.png'),
  301. addpeimg:require('@/work/static/images/aap.png'),
  302. actcolor:'#00A9F0',
  303. tyList:[{text: '同意',value: '0'},{text: '不同意',value: '1'}],
  304. mycdlist:[{text: 'a',value: '0'},{text: 'b',value: '1'}],
  305. isty:'0',
  306. mycdtxt:'',
  307. jtri:'',//具体日期
  308. }
  309. },
  310. methods:{
  311. getClose(){
  312. this.$emit('getClose')
  313. },
  314. getupSubmit(){
  315. this.$emit('getupSubmit')
  316. },
  317. bindDateChangea(e){
  318. var val=e.detail.value;
  319. this.jtri=val;
  320. },
  321. // 上传图片
  322. getaddImage(e){
  323. let that = this;
  324. let file =[],count=9
  325. // if(e=='zj'){
  326. // file = that.zjfile;
  327. // count=9
  328. // }else{
  329. // file = that.mjfile;
  330. // count=9
  331. // }
  332. uni.chooseImage({
  333. count: 1,
  334. success:function(res){
  335. let img= res.tempFilePaths;
  336. if(img.length + file.length > count){
  337. uni.showToast({
  338. title: '最多上传'+count+'张图片',
  339. icon: 'none',
  340. duration: 2000
  341. })
  342. }else{
  343. let imglen = res.tempFilePaths.length;
  344. var fuwufile = [];
  345. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  346. if(e=='zj'){
  347. that.zjfile = that.zjfile.concat(rs);
  348. that.datainfo.identificationPhoto=that.zjfile.join(',')
  349. }
  350. })
  351. }
  352. }
  353. });
  354. },
  355. onuploadEnd(item) {
  356. var newobj={}
  357. var responseText=JSON.parse(item.responseText)
  358. newobj.name=responseText.originalFilename;
  359. newobj.url=responseText.fileName;
  360. this.filelist.push(newobj)
  361. // this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  362. },
  363. getDelFj(idx){
  364. var that=this;
  365. uni.showModal({
  366. title: '确认删除',
  367. content: "是否确认删除",
  368. cancelText: '取消',
  369. confirmText: '确认',
  370. success: function(res) {
  371. if (res.confirm) {
  372. that.filelist.splice(idx,1)
  373. // that.datainfo.zsyzFjList=JSON.parse(JSON.stringify(that.filelist))
  374. } else if (res.cancel) {
  375. }
  376. }
  377. });
  378. },
  379. getDown(e){
  380. uni.showLoading({
  381. title: '加载中'
  382. });
  383. var url=baseUrl+e;
  384. uni.downloadFile({
  385. url: url,//文件的下载路径
  386. success(result) {
  387. uni.hideLoading()
  388. var filePath = result.tempFilePath;
  389. uni.openDocument({
  390. filePath: filePath,
  391. showMenu: true,
  392. success: function (res) {
  393. // console.log('打开文档成功');
  394. }
  395. });
  396. },
  397. fail(res) {uni.hideLoading()}
  398. })
  399. },
  400. }
  401. }
  402. </script>
  403. <style lang="scss" scoped>
  404. // 进度
  405. .speedbox{background: #FFFFFF;box-shadow: 0px 0px 14rpx 0px rgba(184,184,184,0.76);border-radius: 20rpx;padding: 44rpx 40rpx 0;
  406. position: fixed;z-index: 10;left: 220rpx;top: 50%;transform: translateY(-50%);max-height: calc(100vh - 200rpx);overflow: auto;
  407. .tit{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 36rpx;}
  408. .lists{display: flex;align-items: flex-start;position: relative;padding-bottom: 52rpx;
  409. &::after{content: '';width: 2rpx;position: absolute;left: 15rpx;top: 56rpx;bottom: 56rpx;height: 60rpx;background: #E6E6E6;}
  410. &:last-child{
  411. &::after{display: none;}
  412. // .ltit{color: #01A9F0 !important;}
  413. }
  414. .listl{width: 32rpx;height: 32rpx;margin-right: 22rpx;display: flex;align-items: center;justify-content: center;
  415. image{width: 32rpx;height: 32rpx;
  416. &.imga{width: 30rpx;height: 30rpx;}
  417. }
  418. }
  419. .listr{
  420. .ltit{font-weight: 500;font-size: 26rpx;color: #222327;margin-bottom: 22rpx;
  421. &.act{color: #01A9F0;}
  422. }
  423. .ltxt{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  424. }
  425. }
  426. }
  427. .fixbox /deep/ .uni-select{border: none;background-color: #EEEEEE;height: 88rpx;}
  428. .fixbox /deep/ .uni-select__input-placeholder{font-size: 30rpx;color: #AAAAAA;}
  429. .fixbox /deep/ .uni-textarea-placeholder{font-size: 26rpx;color: #AAAAAA;}
  430. .textar{width: 100%;border-radius: 10rpx;padding: 26rpx 30rpx;font-size: 26rpx;color: #222327;height: 400rpx;background: #EEEEEE;
  431. &.texthe{height: 190rpx;}
  432. }
  433. .fixbox{position: fixed;left: 56rpx;right: 56rpx;background: #FFFFFF;max-height: calc(100vh - 200rpx);overflow: auto;
  434. border-radius: 20rpx;z-index: 10;top: 50%;transform: translateY(-50%);padding: 40rpx 48rpx 52rpx;
  435. .cloimg{display: flex;align-items: center;justify-content: center;position: absolute;width: 40rpx;height: 40rpx;
  436. top: 40rpx;left: 40rpx;
  437. image{width: 22rpx;height: 22rpx;}
  438. }
  439. .ttit{font-weight: bold;text-align: center;font-size: 30rpx;color: #222327;margin-bottom:50rpx;}
  440. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;}
  441. .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;}
  442. .shtips{font-weight: 500;text-align: center;margin-top: 36rpx;font-size: 24rpx;color: #FF6969;padding-bottom: 20rpx;}
  443. //按钮
  444. .conbtns{margin-top: 66rpx;
  445. .cbtns{flex:1;display: flex;align-items: center;justify-content: center;box-sizing: border-box;height: 88rpx;font-weight: 500;
  446. font-size: 30rpx;background: #FFFFFF;border-radius: 10rpx;
  447. &.bga{border: 1px solid #00A9F0;background: #FFFFFF;color: #01A9F0;margin-right: 24rpx;}
  448. &.bgb{background: #00A9F0;color: #FFFFFF;}
  449. }
  450. }
  451. // 二次确认弹窗
  452. &.con{
  453. left: 80rpx;right: 80rpx;padding-bottom: 60rpx;
  454. .conttxt{font-weight: bold;font-size: 30rpx;color: #222327;padding: 0 34rpx;text-align: center;
  455. padding-top: 36rpx;
  456. text{color: #00A9F0;}
  457. }
  458. }
  459. // 上传图片
  460. .addpbox{display: flex;flex-wrap: wrap;
  461. .plist{width: 160rpx;height: 160rpx;background: #FFFFFF;border-radius: 20rpx;position: relative;margin-bottom: 10rpx;
  462. margin-right: 30rpx;border: 2rpx dashed #CDCDCD;display: flex;align-items: center;justify-content: center;
  463. &:nth-of-type(3n){margin-right: 0;}
  464. &.addpimg{
  465. border: 0;
  466. image{width: 100%;height: 100%;}
  467. }
  468. .img{width: 150rpx;height: 150rpx;}
  469. .del{width: 24rpx;height: 24rpx;position: absolute;right: -6rpx;top: -6rpx;}
  470. }
  471. }
  472. // 选择日期
  473. .chekt{
  474. background-color: #EEEEEE;height: 88rpx;border-radius: 8rpx;display: flex;align-items: center;padding: 0 40rpx 0 24rpx;
  475. view{font-size: 30rpx;flex: 1;}
  476. image{width: 16rpx;height: 10rpx;flex: 0 0 auto;margin-left: 12rpx;}
  477. }
  478. // 上会人员添加
  479. .shshtips{font-weight: 500;padding-top: 14rpx;font-size: 24rpx;color: #FF6969;}
  480. .addsh{font-weight: 500;flex:0 0 auto; font-size: 30rpx;color: #00A9F0;display: flex;align-items: center;
  481. image{width: 24rpx;height: 24rpx;margin-right: 8rpx;}
  482. }
  483. .peolists{
  484. display: flex;flex-wrap: wrap;
  485. .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;
  486. color: #666666;overflow: hidden;
  487. &:nth-of-type(3n){margin-right: 0;}
  488. image{width: 26rpx;height: 26rpx;}
  489. }
  490. }
  491. .ptips{font-weight: 500;font-size: 26rpx;color: #FF6969;margin-bottom: 40rpx;}
  492. // 附件
  493. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 20rpx;
  494. &:last-child{margin-bottom: 0;}
  495. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  496. image{width: 26rpx;height: 24rpx;}
  497. }
  498. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
  499. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  500. image{width: 24rpx;height: 24rpx;}
  501. }
  502. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;}
  503. }
  504. }
  505. </style>