popup.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558
  1. <template>
  2. <view>
  3. <!-- 弹窗 -->
  4. <view class="bgbox" @click="getClose" v-if="type"></view>
  5. <!-- 弹窗 -->
  6. <!-- 推荐优秀 -->
  7. <view class="fixedbox" v-if="type=='tjyx'||type=='tjzd'">
  8. <view class="ttit">推荐为{{type=='tjyx'?'优秀':"重点"}}</view>
  9. <view class="boxs">
  10. <view class="flexcj mb14">
  11. <view class="ttxt"><text class="cof0">*</text>推荐意见</view>
  12. <view class="flexcc speech" @click="getSeep">
  13. <image :src="speechimgs"></image>
  14. <view>语音输入</view>
  15. </view>
  16. </view>
  17. <textarea class="textar mb25" @blur="getBlur" v-model="content" placeholder="请输入推荐意见,也可点击右上角进行 语音输入…" maxlength="1000" ></textarea>
  18. </view>
  19. <view class="fixedbtn flexcj">
  20. <view class="btns btn1" @click="getClose">取消</view>
  21. <view class="btns btn2" @click="getupSubmit">提交</view>
  22. </view>
  23. </view>
  24. <!-- 质量评议 -->
  25. <view class="fixedbox" v-if="type=='zlpy'">
  26. <view class="ttit">办理质量评议</view>
  27. <view class="boxs">
  28. <view class="mb20">
  29. <view class="ttxt mb18"><text class="cof0">*</text> 推荐意见</view>
  30. <uni-section title="本地数据" type="line">
  31. <uni-data-select
  32. v-model="value"
  33. :localdata="range"
  34. @change="change"
  35. ></uni-data-select>
  36. </uni-section>
  37. </view>
  38. <view class="flexcj mb14">
  39. <view class="ttxt"><text class="cof0">*</text>推荐意见</view>
  40. <view class="flexcc speech" @click="getSeep">
  41. <image :src="speechimgs"></image>
  42. <view>语音输入</view>
  43. </view>
  44. </view>
  45. <textarea class="textar mb25" @blur="getBlur" v-model="yxly" placeholder="请对办理情况进行评价,也可点击右上 角进行语音输入…" maxlength="1000" ></textarea>
  46. </view>
  47. <view class="fixedbtn flexcj">
  48. <view class="btns btn1" @click="getClose">取消</view>
  49. <view class="btns btn2" @click="getyjSubmit">提交</view>
  50. </view>
  51. </view>
  52. <!-- 提案并案 -->
  53. <view class="fixedbox" v-if="type=='taba'">
  54. <view class="ttit">提案并案</view>
  55. <view class="boxs">
  56. <view class="mb16">
  57. <view class="ttxt mb18"><text class="cof0">*</text>是否并案</view>
  58. <uni-section title="本地数据" type="line">
  59. <uni-data-select
  60. v-model="value"
  61. :localdata="sfrange"
  62. @change="change"
  63. ></uni-data-select>
  64. </uni-section>
  65. </view>
  66. <view class="mb16">
  67. <view class="ttxt mb18"><text class="cof0">*</text>并案后标题</view>
  68. <input class="input" placeholder="请输入并案后的标题"/>
  69. </view>
  70. <view class="mb16">
  71. <view class="ttxt mb18"><text class="cof0">*</text>并案后理由</view>
  72. <textarea class="textar " style="height: 186rpx;" @blur="getBlur" v-model="yxly" placeholder="请输入并案理由" maxlength="1000" ></textarea>
  73. </view>
  74. <view class="mb16">
  75. <view class="flexcj mb10">
  76. <view class="ttxt"><text class="cof0">*</text>添加附件</view>
  77. <view class="fjadd"><lsj-upload
  78. ref="lsjUpload"
  79. childId="upload1"
  80. :width="width"
  81. :height="height"
  82. :option="option"
  83. :size="size"
  84. :formats="formats"
  85. :debug="debug"
  86. :instantly="instantly"
  87. @progress=""
  88. @uploadEnd="onuploadEnd" >
  89. <view class="btn" :style="{width: width,height: height}">上传附件</view>
  90. </lsj-upload>
  91. </view>
  92. </view>
  93. <view class="ptb2" v-if="filelist&&filelist.length">
  94. <view class="fjlists" v-for="(ite,idx) in filelist" :key='idx'>
  95. <view class="flext f15 c6" @click="getDown(ite.url)">
  96. <view class="imgl"><image :src="fjimg" ></image></view>
  97. <view class="tit">{{ite.name}}</view>
  98. </view>
  99. <!-- 删除 -->
  100. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  101. <image :src="delimg"></image>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="fixedbtn flexcj">
  108. <view class="btns btn1" @click="getClose">取消</view>
  109. <view class="btns btn2" @click="getyjSubmit">提交</view>
  110. </view>
  111. </view>
  112. <!-- 暂存发布的弹窗 -->
  113. <view class="fixedbox" v-if="type=='zcfb'">
  114. <view class="ttit">提示</view>
  115. <view class="boxs">
  116. <view class="ztit">您有一条暂存通知还未发布</view>
  117. <view class="ztit">是否继续编辑?</view>
  118. <view class="ztit mb32">查看<text @click="getFaFn('old')">暂存通知</text></view>
  119. </view>
  120. <view class="fixedbtn flexcj">
  121. <view class="btns btn1" @click="getFaFn('new')">重新发布</view>
  122. <view class="btns btn2" @click="getFaFn('old')">继续发布</view>
  123. </view>
  124. </view>
  125. <!-- 联名提案弹窗 -->
  126. <view class="fixedbox" v-if="type=='lmta'">
  127. <view class="ttit">提示</view>
  128. <view class="boxs">
  129. <view class="ztit">您有<text class="co0b">1</text>条联名提案邀请 请前往确认</view>
  130. <view class="ztit">请前往确认</view>
  131. </view>
  132. <view class="fixedbtn flexcj">
  133. <view class="btns btn1" @click="getFaFn('new')">稍后再说</view>
  134. <view class="btns btn2" @click="getFaFn('old')">立即确认</view>
  135. </view>
  136. </view>
  137. <!-- 暂存提案的弹窗 -->
  138. <view class="fixedbox" v-if="type=='zcta'||type=='zchy'">
  139. <view class="ttit">提示</view>
  140. <view class="boxs">
  141. <view class="ztit">您有一条暂存信息还未提交</view>
  142. <view class="ztit">是否继续编辑?</view>
  143. <view class="ztit mb32">查看<text @click="getFaFn('old',type)">暂存提案</text></view>
  144. </view>
  145. <view class="fixedbtn flexcj">
  146. <view class="btns btn1" @click="getFaFn('new',type)">重新发布</view>
  147. <view class="btns btn2" @click="getFaFn('old',type)">继续发布</view>
  148. </view>
  149. </view>
  150. <!-- 2审查反馈 -->
  151. <view class="fixedbox" v-if="type=='scfk'">
  152. <view class="ttit">审查反馈</view>
  153. <view class="boxs">
  154. <view class="mb16">
  155. <!-- @change="change" -->
  156. <view class="ttxt mb18"><text class="cof0">*</text>是否立案</view>
  157. <uni-data-select
  158. v-model="isRecord"
  159. placeholder="请选择立案/不予立案"
  160. :localdata="larange"
  161. ></uni-data-select>
  162. </view>
  163. <!-- 提案号 -->
  164. <view class="mb16">
  165. <view class="ttxt mb18"><text class="cof0">*</text>提案号</view>
  166. <input class="input" v-model="txtnumber" placeholder="请输入提案号"/>
  167. </view>
  168. <view class="mb16" >
  169. <view class="ttxt mb18"><text class="cof0">*</text>答复单位</view>
  170. <view @click="getRecorddwFn" class="chosebox flexc">
  171. <view class="tit" :class="recorddw?'':'coa'">{{recorddw||'若选择不予立案,请指定答复单位'}}</view>
  172. </view>
  173. </view>
  174. </view>
  175. <view class="fixedbtn flexcj">
  176. <view class="btns btn1" @click="getClose">取消</view>
  177. <view class="btns btn2" @click="getupSubmit">提交</view>
  178. </view>
  179. </view>
  180. <!-- 3提案交办 -->
  181. <view class="fixedbox" v-if="type=='tajb'">
  182. <view class="ttit">提案交办</view>
  183. <view class="boxs">
  184. <view class="mb16" >
  185. <view class="ttxt mb18"><text class="cof0">*</text>主办单位</view>
  186. <view @click="getRecorddwFn" class="chosebox flexc">
  187. <view class="tit" :class="recorddw?'':'coa'">{{recorddw||'请选择主办单位'}}</view>
  188. </view>
  189. </view>
  190. <view class="mb16" >
  191. <view class="ttxt mb18"><text class="cof0">*</text>协办单位</view>
  192. <view @click="getRecorddwMoreFn" class="chosebox flexc">
  193. <view class="tit" :class="recorddwm?'':'coa'">{{recorddwm||'请选择协办单位'}}</view>
  194. </view>
  195. </view>
  196. </view>
  197. <view class="fixedbtn flexcj">
  198. <view class="btns btn1" @click="getClose">取消</view>
  199. <view class="btns btn2" @click="getupSubmit">提交</view>
  200. </view>
  201. </view>
  202. <!-- 4,办理方式 -->
  203. <view class="fixedbox" v-if="type=='dffk'">
  204. <view class="ttit">答复反馈</view>
  205. <view class="boxs">
  206. <view class="mb16" >
  207. <view class="ttxt mb18"><text class="cof0">*</text>办理方式</view>
  208. <view @click="getBlfsMoreFn" class="chosebox flexc">
  209. <view class="tit" :class="handling?'':'coa'">{{handling||'请选择办理方式'}}</view>
  210. </view>
  211. </view>
  212. <view class="mb16">
  213. <!-- @change="change" -->
  214. <view class="ttxt mb18"><text class="cof0">*</text>办理程度</view>
  215. <uni-data-select
  216. v-model="degree"
  217. placeholder="请选择办理程度"
  218. :localdata="blcdlist"
  219. ></uni-data-select>
  220. </view>
  221. <view class="mb16">
  222. <!-- @change="change" -->
  223. <view class="ttxt mb18"><text class="cof0">*</text>答复内容</view>
  224. <textarea class="textar texthe mb25" @blur="getBlur" v-model="content" placeholder="请输入答复内容" maxlength="1000" ></textarea>
  225. </view>
  226. <view class="mb16">
  227. <view class="flexcj mb10">
  228. <view class="ttxt">添加附件</view>
  229. <view class="fjadd"><lsj-upload
  230. ref="lsjUpload"
  231. childId="upload1"
  232. :width="width"
  233. :height="height"
  234. :option="option"
  235. :size="size"
  236. :formats="formats"
  237. :debug="debug"
  238. :instantly="instantly"
  239. @progress=""
  240. @uploadEnd="onuploadEnd" >
  241. <view class="btn" :style="{width: width,height: height}">上传附件</view>
  242. </lsj-upload>
  243. </view>
  244. </view>
  245. <view class="ptb2" v-if="filelist&&filelist.length">
  246. <view class="fjlists" v-for="(ite,idx) in filelist" :key='idx'>
  247. <view class="flext f15 c6" @click="getDown(ite.url)">
  248. <view class="imgl"><image :src="fjimg" ></image></view>
  249. <view class="tit">{{ite.name}}</view>
  250. </view>
  251. <!-- 删除 -->
  252. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  253. <image :src="delimg"></image>
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <view class="fixedbtn flexcj">
  260. <view class="btns btn1" @click="getClose">取消</view>
  261. <view class="btns btn2" @click="getupSubmit">提交</view>
  262. </view>
  263. </view>
  264. <!-- 5,交办审核 -->
  265. <view class="fixedbox" v-if="type=='jbsh'">
  266. <view class="ttit">审核</view>
  267. <view class="boxs">
  268. <view class="mb16">
  269. <!-- @change="change" -->
  270. <view class="ttxt mb18"><text class="cof0">*</text>是否通过</view>
  271. <uni-data-select
  272. v-model="jbshtxt"
  273. placeholder="通过/不通过"
  274. :localdata="jbsharange"
  275. ></uni-data-select>
  276. </view>
  277. <view class="mb16">
  278. <!-- @change="change" -->
  279. <view class="ttxt mb18"><text class="cof0">*</text>反馈理由</view>
  280. <textarea class="textar mb25" @blur="getBlur" v-model="content" placeholder="选择不通过必须填写反馈意见,限1000 字内…" maxlength="1000" ></textarea>
  281. </view>
  282. </view>
  283. <view class="fixedbtn flexcj">
  284. <view class="btns btn1" @click="getClose">取消</view>
  285. <view class="btns btn2" @click="getupSubmit">提交</view>
  286. </view>
  287. </view>
  288. <!-- 5提案办理 承办答复 -->
  289. <view class="fixedbox" v-if="type=='dwdf'">
  290. <view class="ttit">答复反馈</view>
  291. <view class="boxs">
  292. <view class="mb16">
  293. <!-- @change="change" -->
  294. <view class="ttxt mb18"><text class="cof0">*</text>答复内容</view>
  295. <textarea class="textar mb25" @blur="getBlur" v-model="content" placeholder="请输入答复内容" maxlength="1000" ></textarea>
  296. </view>
  297. <view class="mb16">
  298. <view class="flexcj mb10">
  299. <view class="ttxt">添加附件</view>
  300. <view class="fjadd"><lsj-upload
  301. ref="lsjUpload"
  302. childId="upload1"
  303. :width="width"
  304. :height="height"
  305. :option="option"
  306. :size="size"
  307. :formats="formats"
  308. :debug="debug"
  309. :instantly="instantly"
  310. @progress=""
  311. @uploadEnd="onuploadEnd" >
  312. <view class="btn" :style="{width: width,height: height}">上传附件</view>
  313. </lsj-upload>
  314. </view>
  315. </view>
  316. <view class="ptb2" v-if="filelist&&filelist.length">
  317. <view class="fjlists" v-for="(ite,idx) in filelist" :key='idx'>
  318. <view class="flext f15 c6" @click="getDown(ite.url)">
  319. <view class="imgl"><image :src="fjimg" ></image></view>
  320. <view class="tit">{{ite.name}}</view>
  321. </view>
  322. <!-- 删除 -->
  323. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  324. <image :src="delimg"></image>
  325. </view>
  326. </view>
  327. </view>
  328. </view>
  329. </view>
  330. <view class="fixedbtn flexcj">
  331. <view class="btns btn1" @click="getClose">取消</view>
  332. <view class="btns btn2" @click="getupSubmit">提交</view>
  333. </view>
  334. </view>
  335. <!-- 6满意反馈 -->
  336. <view class="fixedbox" v-if="type=='wymyfk'||type=='zxmyfk'">
  337. <view class="ttit">答复反馈</view>
  338. <view class="boxs">
  339. <!-- <view class="mb16">
  340. <view class="ttxt mb18"><text class="cof0">*</text>是否办结</view>
  341. <uni-data-select
  342. v-model="isRecord"
  343. placeholder="请选择办结/不予办结"
  344. :localdata="larange"
  345. ></uni-data-select>
  346. </view> -->
  347. <view class="mb16">
  348. <!-- @change="change" -->
  349. <view class="ttxt mb18"><text class="cof0">*</text>满意程度</view>
  350. <uni-data-select
  351. v-model="mycdtxt"
  352. placeholder="请选择满意程度"
  353. :localdata="mycdlist"
  354. ></uni-data-select>
  355. </view>
  356. <view class="mb16">
  357. <view class="ttxt mb18"><text class="cof0">*</text>评价</view>
  358. <textarea class="textar mb25" @blur="getBlur" v-model="content" placeholder="请输入评价内容…" maxlength="1000" ></textarea>
  359. </view>
  360. </view>
  361. <view class="fixedbtn flexcj">
  362. <view class="btns btn1" @click="getClose">取消</view>
  363. <view class="btns btn2" @click="getupSubmit">提交</view>
  364. </view>
  365. </view>
  366. <!-- 催办 -->
  367. <view class="fixedbox" v-if="type=='tacb'">
  368. <view class="ttit">催办</view>
  369. <view class="boxs">
  370. <view class="mb16">
  371. <view class="ttxt mb18"><text class="cof0">*</text>备注</view>
  372. <textarea class="textar mb25" @blur="getBlur" v-model="content" placeholder="请输入" maxlength="1000" ></textarea>
  373. </view>
  374. </view>
  375. <view class="fixedbtn flexcj">
  376. <view class="btns btn1" @click="getClose">取消</view>
  377. <view class="btns btn2" @click="getupSubmit">提交</view>
  378. </view>
  379. </view>
  380. <!-- 联名填 -->
  381. <view class="fixedbox" v-if="type=='lmta'">
  382. <view class="ttit">审核</view>
  383. <view class="boxs">
  384. <view class="mb16">
  385. <!-- @change="change" -->
  386. <view class="ttxt mb18"><text class="cof0">*</text>是否同意</view>
  387. <uni-data-select
  388. v-model="jbshtxt"
  389. placeholder="同意/不同意"
  390. :localdata="agreelist"
  391. ></uni-data-select>
  392. </view>
  393. <view class="mb16">
  394. <!-- @change="change" -->
  395. <view class="ttxt mb18"><text class="cof0">*</text>反馈理由</view>
  396. <textarea class="textar mb25" @blur="getBlur" v-model="content" placeholder="选择不通过必须填写反馈意见,限1000 字内…" maxlength="1000" ></textarea>
  397. </view>
  398. </view>
  399. <view class="fixedbtn flexcj">
  400. <view class="btns btn1" @click="getClose">取消</view>
  401. <view class="btns btn2" @click="getupSubmit">提交</view>
  402. </view>
  403. </view>
  404. <!-- 办理方式 -->
  405. <view class="bgbox" style="z-index: 15;" @click="ftype=''" v-if="ftype=='blfs'"></view>
  406. <view class="fixefbox" v-if="ftype=='blfs'">
  407. <view class="closebox" @click="ftype=''">
  408. <image :src="closeimg"></image>
  409. </view>
  410. <view class="tit">办理方式(可多选)</view>
  411. <view class="bllist">
  412. <view :class="cheklist.indexOf(ite.label)!=-1?'act':''" @click="getCheck(ite)" v-for="(ite,idx) in blfsList" :key='idx'>{{ite.label}}</view>
  413. </view>
  414. </view>
  415. <!-- 参会答复 -->
  416. <view class="fixedbox" v-if="type=='chdf'">
  417. <view class="ttit">参会答复</view>
  418. <view class="boxs">
  419. <view class="mb16">
  420. <view class="ttxt mb18"><text class="cof0">*</text>是否参会</view>
  421. <uni-data-select
  422. v-model="isJoin"
  423. :localdata="joinlist"
  424. @change="change"
  425. ></uni-data-select>
  426. <view class="ptips">* 若选择否,请务必填写请假事由并提交</view>
  427. </view>
  428. <view class="mb16">
  429. <!-- @change="change" -->
  430. <view class="ttxt mb18"><text class="cof0"></text>请假类型</view>
  431. <uni-data-select
  432. v-model="qjlxtxt"
  433. placeholder="请选择请假类型"
  434. :localdata="qjlxlist"
  435. ></uni-data-select>
  436. </view>
  437. <view class="mb16">
  438. <view class="ttxt mb18"><text class="cof0"></text>请假事由</view>
  439. <textarea class="textar " style="height: 186rpx;" @blur="getBlur" v-model="content" placeholder="请输入请假事由" maxlength="1000" ></textarea>
  440. </view>
  441. </view>
  442. <view class="fixedbtn flexcj">
  443. <view class="btns btn1" @click="getClose">取消</view>
  444. <view class="btns btn2" @click="getupSubmit">提交</view>
  445. </view>
  446. </view>
  447. <!-- 会议签到二维码 -->
  448. <view class="fixedbox" v-if="type=='qdm'">
  449. <view class="ttit" style="margin-bottom: 80rpx;">会议签到二维码</view>
  450. <image :src="baseUrl+codeQr" class="codeimg"></image>
  451. <view class="fixedbtn flexcj">
  452. <view class="btns btn1" @click="getClose">取消</view>
  453. <view class="btns btn2" @click="getcodeDown">
  454. <image :src="downimg" class="down"></image>
  455. 保存至手机</view>
  456. </view>
  457. </view>
  458. <selectnore-more-picker
  459. ref="dfdwpicker"
  460. :title="dfdwpicker.title"
  461. :layer="dfdwpicker.layer"
  462. :titflag='dfdwpicker.titflag'
  463. :data="deptTree"
  464. @callback="dfdwpickerCallback"
  465. ></selectnore-more-picker>
  466. <!-- 协办单位 -->
  467. <batree-pickerfixed deptType='3' ref="treePickerxtdw" :multiple='true' @select-change="selectChangextdw" title="选择协办单位"
  468. :localdata="deptTree" valueKey="id" textKey="label" childrenKey="children"></batree-pickerfixed>
  469. <!-- 语音识别 -->
  470. <view class="bgbox bgvoice" v-if="voiceflag" @click="getClosevoice"></view>
  471. <view class="voice" v-if="voiceflag">
  472. <!-- <image :src="closeimg" class="choseimg" @click="getClosevoice"></image> -->
  473. <view v-if="isShow">
  474. <view v-if="sendLock" class="tip">
  475. <view class="txt">试试这样说</view>
  476. <view class="txt-bt">科技项目</view>
  477. </view>
  478. <view v-else>
  479. <!-- @click="resultClick" -->
  480. <view class="res-txt" >
  481. <!-- 实时翻译 -->
  482. <text :style="{
  483. color: (resultText == '正在识别中2<strong>.</strong>..' || resultText == '未检测到语音,请重试') ?
  484. '#919098' :
  485. '#2979ff'}">
  486. {{resultText}}
  487. </text>
  488. <!-- <image v-if="resultText != '正在识别中.1..' && resultText != '未检测到语音,请重试'"
  489. src="/static/img/xiaoshou.png" mode="widthFix"></image> -->
  490. </view>
  491. </view>
  492. </view>
  493. <view v-else class="tip">
  494. <view v-if="!sendLock" class="tipbox">{{voicetext}}</view>
  495. <view v-html="text" class="txt" style="color: #8e8d9a;"></view>
  496. <view v-if="!sendLock" class="prompt-loader">
  497. <view class="em" :style="randomRgb()" v-for="(item,index) in 30" :key="index"></view>
  498. </view>
  499. <view v-else class="prompt-loader"></view>
  500. </view>
  501. <view class="btn" @longpress="handleRecordStart" @touchmove="handleTouchMove" @touchend="handleRecordStop">
  502. <view class="btn-cont">
  503. 长按开始语音搜索
  504. </view>
  505. </view>
  506. </view>
  507. </view>
  508. </template>
  509. <script>
  510. import selectnoreMorePicker from "@/components/ba-tree-picker/selectnoreMorePicker.vue"
  511. import batreePickerfixed from "@/components/ba-tree-picker/ba-tree-pickerfixed.vue"
  512. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  513. const recorderManager = uni.getRecorderManager();
  514. //播放录音
  515. const innerAudioContext = uni.createInnerAudioContext();
  516. innerAudioContext.autoplay = true;
  517. import config from '@/config'
  518. const baseUrl = config.baseUrl
  519. import { getToken } from '@/utils/auth'
  520. export default{
  521. components:{selectnoreMorePicker,batreePickerfixed},
  522. props:{
  523. type: {
  524. type: String,
  525. default () {
  526. return ''
  527. }
  528. },
  529. status:{
  530. type: String,
  531. default () {
  532. return 'add'
  533. }
  534. },
  535. codeQr:{
  536. type: String,
  537. default () {
  538. return ''
  539. }
  540. },
  541. iteminfo:{},
  542. xmjzinfo:{},
  543. dataTree:{
  544. type: Array,
  545. default () {
  546. return []
  547. }
  548. },
  549. blfsList:{
  550. type: Array,
  551. default () {
  552. return []
  553. }
  554. },
  555. blcdlist:{
  556. type: Array,
  557. default () {
  558. return []
  559. }
  560. },
  561. mycdlist:{
  562. type: Array,
  563. default () {
  564. return []
  565. }
  566. },
  567. qjlxlist:{
  568. type: Array,
  569. default () {
  570. return []
  571. }
  572. }
  573. },
  574. data(){
  575. return{
  576. deptTree:[],//答复单位
  577. dfdwpicker: {
  578. title: '选择所属产业',
  579. layer: null,
  580. titflag:true,
  581. data: []
  582. },
  583. //附件
  584. option: {
  585. // 上传服务器地址,需要替换为你的接口地址
  586. url: baseUrl+'/common/upload', // 该地址非真实路径,需替换为你项目自己的接口地址
  587. // 上传附件的key
  588. name: 'file',
  589. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  590. header: {
  591. // 示例参数可删除
  592. 'Authorization': 'Bearer ' + getToken(),
  593. },
  594. // 根据你接口需求自定义body参数
  595. formData: {}
  596. },
  597. // 选择文件后是否立即自动上传,true=选择后立即上传
  598. instantly: true,
  599. // 必传宽高且宽高应与slot宽高保持一致
  600. width: '',
  601. height: '48rpx',
  602. // 限制允许上传的格式,空串=不限制,默认为空
  603. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,zip,rar,word',
  604. // 文件上传大小限制
  605. size: 100,
  606. // 文件数量限制 默认10
  607. count: 5,
  608. // 文件回显列表
  609. files: new Map(),
  610. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  611. wxFiles: [],
  612. // 是否打印日志
  613. debug: false,
  614. filelist:[],
  615. fjimg:require("@/work/static/images/fjimg.png"),
  616. delimg:require("@/work/static/images/delimg.png"),
  617. codeimg:require("@/work/static/images/meeting/code.png"),
  618. downimg:require("@/work/static/images/meeting/down.png"),
  619. closeimg:require("@/work/static/images/close.png"),
  620. speechimgs:require('@/work/static/images/voice.png'),
  621. range: [{ value: 0, text: "满意" },{ value: 1, text: "不满意" },],
  622. sfrange: [{ value: 0, text: "是" },{ value: 1, text: "否" },],
  623. larange:[{ value: 0, text: "立案" },{ value: 1, text: "不立案" }],
  624. jbsharange:[{ value: 6, text: "不通过" },{ value: 7, text: "通过" }],
  625. agreelist:[{ value: 1, text: "同意" },{ value: 2, text: "不同意" }],
  626. joinlist:[{ value: 'Y', text: "是" },{ value: 'N', text: "否" }],
  627. value: 0,
  628. isRecord:'',//是否立案
  629. jbshtxt:'',//审核通过不通过
  630. handling:'',//办理方式
  631. degree:'',//办理程度
  632. mycdtxt:'',//满意程度
  633. isJoin:'',//是否参会
  634. qjlxtxt:'',//请假类型
  635. recorddw:'',
  636. recorddwm:'',//协办单位
  637. recorddwlist:[],
  638. recorddwmlist:[],//协办单位
  639. content:'',//文本输入
  640. txtnumber:'',//提案号
  641. ftype:'',//二层弹窗
  642. blfsval:'',//办理方式
  643. cheklist:[],
  644. baseUrl:'',
  645. voiceflag:false,
  646. voiceToken: '',
  647. timer: null,
  648. text: '',
  649. resultText: '正在识别中...',
  650. startPoint: {},
  651. sendLock: true,
  652. isShow: true,
  653. voicetext:'',
  654. options: {}, // 语音转文字的设置
  655. partialResult:'',//临时语音
  656. }
  657. },
  658. watch:{
  659. // iteminfo(val){
  660. // var that=this;
  661. // that.psnr='';
  662. // // console.log(val,0)
  663. // if(val.zcpsnr){
  664. // that.psnr=val.zcpsnr;
  665. // }else if(val.psnr){
  666. // that.psnr=val.psnr;
  667. // }
  668. // },
  669. sendLock(newVal, oldVal) {
  670. var that=this;
  671. recorderManager.onStop(res => {
  672. if (newVal) return //上锁不发送
  673. //解锁发送网络请求
  674. setTimeout(function(res){
  675. if(!that.voicetext&&!that.partialResult){
  676. that.resultText='未检测到语音,请重试'
  677. }else{
  678. that.resultText=that.voicetext||that.partialResult;
  679. var cursor=that.cursor;
  680. if(cursor==0){
  681. if(that.seeptype=='sgll'){
  682. that.sgll=that.sgll+that.resultText;
  683. }else{
  684. that.psnr=that.psnr+that.resultText;
  685. }
  686. }else{
  687. if(that.seeptype=='sgll'){
  688. that.sgll=that.sgll.slice(0,cursor)+that.resultText+that.sgll.slice(cursor);
  689. }else{
  690. that.psnr=that.psnr.slice(0,cursor)+that.resultText+that.psnr.slice(cursor);
  691. }
  692. }
  693. that.voiceflag=false;
  694. }
  695. that.sendLock=true;
  696. },1000)
  697. // console.log(res.tempFilePath, '获取录音文件')
  698. });
  699. },
  700. },
  701. onShow() {
  702. },
  703. mounted() {
  704. this.baseUrl=baseUrl;
  705. var that=this;
  706. // #ifdef APP-PLUS
  707. // 监听语音识别事件
  708. plus.speech.addEventListener('recognizing', this.onRecognizing, false);
  709. // #endif
  710. recorderManager.onStop(function(res) {
  711. //录音后的回调函数
  712. if(!this.sendLock){
  713. console.log(that.voicetext,that.partialResult)
  714. }
  715. console.log('recorder stop' + JSON.stringify(res));
  716. });
  717. },
  718. methods:{
  719. checkPermi, checkRole,
  720. getRecorddwFn(){
  721. console.log(this.dataTree)
  722. this.deptTree=this.dataTree
  723. this.$refs.dfdwpicker.open(0).then(function() {
  724. });
  725. },
  726. getRecorddwMoreFn(){
  727. this.$refs.treePickerxtdw._show();
  728. },
  729. getBlfsMoreFn(){
  730. this.ftype='blfs'
  731. },
  732. getCheck(ite){
  733. var idx=this.cheklist.findIndex(item=>item==ite.label)
  734. if(idx!=-1){
  735. this.cheklist.splice(idx,1)
  736. }else{
  737. this.cheklist.push(ite.label)
  738. }
  739. this.handling=this.cheklist.join(',')
  740. },
  741. change(){
  742. },
  743. getcodeDown(){
  744. // #ifdef H5
  745. // 将base64格式的图片转换成Blob对象
  746. var arr = this.yycode.split(","),
  747. mime = arr[0].match(/:(.*?);/)[1],
  748. bstr = atob(arr[1]),
  749. n = bstr.length,
  750. u8arr = new Uint8Array(n);
  751. while (n--) {
  752. u8arr[n] = bstr.charCodeAt(n);
  753. }
  754. // 将Blob对象转换成文件并下载到本地
  755. var blob = new Blob([u8arr], {
  756. type: mime
  757. });
  758. var a = document.createElement('a');
  759. a.download = 'qrcode';
  760. a.href = URL.createObjectURL(blob);
  761. a.click();
  762. // #endif
  763. // #ifndef H5
  764. uni.getSetting({//获取用户的当前设置
  765. success:(res)=> {
  766. if(res.authSetting['scope.writePhotosAlbum']){//验证用户是否授权可以访问相册
  767. this.saveImageToPhotosAlbum();
  768. }else{
  769. uni.authorize({//如果没有授权,向用户发起请求
  770. scope: 'scope.writePhotosAlbum',
  771. success:()=> {
  772. this.saveImageToPhotosAlbum();
  773. },
  774. fail:()=>{
  775. uni.showToast({
  776. title:"请打开保存相册权限,再点击保存相册分享",
  777. icon:"none",
  778. duration:3000
  779. });
  780. setTimeout(()=>{
  781. uni.openSetting({//调起客户端小程序设置界面,让用户开启访问相册
  782. success:(res2)=> {
  783. // console.log(res2.authSetting)
  784. }
  785. });
  786. },3000);
  787. }
  788. })
  789. }
  790. }
  791. })
  792. // #endif
  793. },
  794. saveImageToPhotosAlbum(){
  795. let base64=this.yycode.replace(/^data:image\/\w+;base64,/, "");//去掉data:image/png;base64,
  796. let filePath=wx.env.USER_DATA_PATH + '/qrcode.png';
  797. uni.getFileSystemManager().writeFile({
  798. filePath:filePath , //创建一个临时文件名
  799. data: base64, //写入的文本或二进制数据
  800. encoding: 'base64', //写入当前文件的字符编码
  801. success: res => {
  802. uni.saveImageToPhotosAlbum({
  803. filePath: filePath,
  804. success: function(res2) {
  805. uni.showToast({
  806. title: '保存成功,请从相册选择再分享',
  807. icon:"none",
  808. duration:5000
  809. })
  810. },
  811. fail: function(err) {
  812. // console.log(err.errMsg);
  813. }
  814. })
  815. },
  816. fail: err => {
  817. //console.log(err)
  818. }
  819. })
  820. },
  821. selectChangextdw(e){
  822. if(e.length){
  823. var newArr=[]
  824. e.forEach(ite=>{
  825. newArr.push(ite.deptName)
  826. })
  827. this.recorddwm=newArr.join('/')
  828. }
  829. this.recorddwmlist=JSON.parse(JSON.stringify(e))
  830. },
  831. dfdwpickerCallback(e){
  832. var newArr=e.data;
  833. var dwList=[]
  834. var len=Number(newArr.length)-1;
  835. var obj={
  836. deptId:newArr[len].id,
  837. deptName:newArr[len].label,
  838. }
  839. if(this.type=='tajb'){
  840. obj.type=2
  841. }else if(this.type=='scfk'){
  842. obj.type=1
  843. }
  844. // dwList.push(obj)
  845. this.recorddwlist=obj;
  846. this.recorddw=newArr[len].label;
  847. },
  848. getupSubmit(){
  849. var type=this.type;
  850. if(type=='scfk'){
  851. var isRecord=this.isRecord;
  852. if(isRecord===''){
  853. this.$toast('请选择会否立案')
  854. return
  855. }
  856. var obj={
  857. isRecord:this.isRecord
  858. }
  859. if(this.isRecord==0&&!this.txtnumber){
  860. this.$toast('请输入提案号')
  861. return
  862. }
  863. if(this.isRecord==1&&!this.recorddw){
  864. this.$toast('请选择答复单位')
  865. return
  866. }
  867. if(this.isRecord==0){
  868. obj.proposalNumber=this.txtnumber
  869. obj.sqmyNumber=this.txtnumber
  870. }
  871. if(this.isRecord==1){
  872. var nobj=this.recorddwlist;
  873. var newArr=[];
  874. newArr.push(nobj)
  875. obj.proposalUnitReplyList=newArr
  876. obj.sqmyUnitReplyList=newArr
  877. }
  878. this.$emit('getupSubmit',obj)
  879. }else if(type=='tajb'){
  880. var newArr=this.recorddwlist;
  881. var xbdwList=this.recorddwmlist;
  882. if(!newArr){
  883. this.$toast('请选择主办单位')
  884. return
  885. }
  886. if(xbdwList.length<1){
  887. this.$toast('请选择协办单位')
  888. return
  889. }
  890. var obj={
  891. proposalUnitReplyList:xbdwList,
  892. zbUnitReply:newArr
  893. }
  894. this.$emit('getupSubmit',obj)
  895. }else if(type=='dffk'){
  896. if(!this.handling){
  897. this.$toast('请选择处理方式')
  898. return
  899. }
  900. if(!this.degree){
  901. this.$toast('请选择办理程度')
  902. return
  903. }
  904. if(!this.content){
  905. this.$toast('请输入答复内容')
  906. return
  907. }
  908. var obj={
  909. content:this.content,
  910. handling:this.handling,
  911. degree:this.degree
  912. }
  913. if(this.filelist.length){
  914. obj.zxFjList=this.filelist
  915. }
  916. this.$emit('getupSubmit',obj)
  917. }else if(type=='jbsh'){
  918. if(!this.jbshtxt){
  919. this.$toast('请选择是否通过')
  920. return
  921. }
  922. var obj={
  923. proposalProgress:this.jbshtxt,
  924. sqmyProgress:this.jbshtxt,
  925. }
  926. this.$emit('getupSubmit',obj)
  927. }else if(type=='dwdf'){
  928. if(!this.content){
  929. this.$toast('请输入答复反馈')
  930. return
  931. }
  932. var obj={
  933. content:this.content,
  934. }
  935. if(this.filelist.length){
  936. obj.zxFjList=this.filelist
  937. }
  938. this.$emit('getupSubmit',obj)
  939. }else if(type=='wymyfk'){
  940. if(!this.mycdtxt){
  941. this.$toast('请选择满意程度')
  942. return
  943. }
  944. var obj={
  945. membersOpinion:this.content,
  946. satisfaction:this.mycdtxt
  947. }
  948. if(this.filelist.length){
  949. obj.zxFjList=this.filelist
  950. }
  951. this.$emit('getupSubmit',obj)
  952. }else if(type=='zxmyfk'){
  953. if(!this.mycdtxt){
  954. this.$toast('请选择满意程度')
  955. return
  956. }
  957. var obj={
  958. zxOpinion:this.content,
  959. zxSatisfaction:this.mycdtxt
  960. }
  961. if(this.filelist.length){
  962. obj.zxFjList=this.filelist
  963. }
  964. this.$emit('getupSubmit',obj)
  965. }else if(type=='tacb'){
  966. // if(!this.content){
  967. // this.$toast('请输入催办内容')
  968. // return
  969. // }
  970. var obj={
  971. urgeContent:this.content,
  972. // urgeType:1
  973. }
  974. this.$emit('getupSubmit',obj)
  975. }else if(type=='tjyx'){
  976. // if(!this.content){
  977. // this.$toast('请输入催办内容')
  978. // return
  979. // }
  980. var obj={
  981. outstandingArgument:this.content,
  982. isOutstanding:0
  983. }
  984. this.$emit('getupSubmit',obj)
  985. }else if(type=='tjzd'){
  986. // if(!this.content){
  987. // this.$toast('请输入催办内容')
  988. // return
  989. // }
  990. var obj={
  991. keyPointArgument:this.content,
  992. isKeyPoint:0
  993. }
  994. this.$emit('getupSubmit',obj)
  995. }else if(type=='lmta'){
  996. if(!this.jbshtxt){
  997. this.$toast('请选择是否同意')
  998. return
  999. }
  1000. var obj={
  1001. isAgree:this.jbshtxt,
  1002. }
  1003. this.$emit('getupSubmit',obj)
  1004. }else if(type=='chdf'){
  1005. if(!this.isJoin){
  1006. this.$toast('请选择是否参会')
  1007. return
  1008. }
  1009. if(this.isJoin=='N'&&this.qjlxtxt==''){
  1010. this.$toast('请选择请假类型')
  1011. return
  1012. }
  1013. if(this.isJoin=='N'&&!this.content){
  1014. this.$toast('请输入请假事由')
  1015. return
  1016. }
  1017. var obj={
  1018. isJoin:this.isJoin,
  1019. leaveType:this.qjlxtxt,
  1020. leaveReason:this.content,
  1021. }
  1022. this.$emit('getupSubmit',obj)
  1023. }
  1024. },
  1025. onuploadEnd(item) {
  1026. var newobj={}
  1027. var responseText=JSON.parse(item.responseText)
  1028. newobj.name=responseText.originalFilename;
  1029. newobj.url=responseText.fileName;
  1030. this.filelist.push(newobj)
  1031. this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  1032. },
  1033. getDelFj(idx){
  1034. var that=this;
  1035. uni.showModal({
  1036. title: '确认删除',
  1037. content: "是否确认删除",
  1038. cancelText: '取消',
  1039. confirmText: '确认',
  1040. success: function(res) {
  1041. if (res.confirm) {
  1042. that.filelist.splice(idx,1)
  1043. that.datainfo.zsyzFjList=JSON.parse(JSON.stringify(that.filelist))
  1044. } else if (res.cancel) {
  1045. }
  1046. }
  1047. });
  1048. },
  1049. getDown(e){
  1050. uni.showLoading({
  1051. title: '加载中'
  1052. });
  1053. var url=baseUrl+e;
  1054. uni.downloadFile({
  1055. url: url,//文件的下载路径
  1056. success(result) {
  1057. uni.hideLoading()
  1058. var filePath = result.tempFilePath;
  1059. uni.openDocument({
  1060. filePath: filePath,
  1061. showMenu: true,
  1062. success: function (res) {
  1063. // console.log('打开文档成功');
  1064. }
  1065. });
  1066. },
  1067. fail(res) {uni.hideLoading()}
  1068. })
  1069. },
  1070. getBlur(e){
  1071. this.cursor=e.detail.cursor;
  1072. },
  1073. // 语音转文字
  1074. getClosevoice(){
  1075. this.voiceflag=false
  1076. },
  1077. onRecognizing(e){
  1078. this.partialResult=e.partialResult;
  1079. },
  1080. // 录音转文字
  1081. handleVoice() {
  1082. // console.log('语音输入')
  1083. let _this = this;
  1084. // _this.psnr = '';
  1085. this.options.engine = 'baidu'
  1086. // this.options.timeout = 60 * 1000; //超时时间
  1087. this.options.continue = true;//语音识别是否采用持续模式
  1088. this.options.punctuation = true; // 是否需要标点符号
  1089. this.options.userInterface = false; // 是否显示语音界面
  1090. plus.speech.startRecognize(this.options, (s) => {
  1091. _this.voicetext+=s;
  1092. console.log(s,9)
  1093. // plus.speech.stopRecognize(); // 关
  1094. });
  1095. },
  1096. //长按录音方法
  1097. handleRecordStart(e) {
  1098. this.voicetext='';
  1099. this.partialResult='';
  1100. this.startPoint = e.touches[0]; //记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  1101. recorderManager.start({duration: 60000}); //开始录音
  1102. this.handleVoice()
  1103. this.text = `<text style="color:#333">上划取消搜索</text>`;
  1104. this.sendLock = false; //长按时不上锁。
  1105. this.isShow = false;
  1106. this.resultText = '正在识别中...';
  1107. // 按钮
  1108. // console.log(67)
  1109. },
  1110. //结束录音 (手指松开)时触发
  1111. handleRecordStop(e) {
  1112. var that=this;
  1113. this.isShow = true;
  1114. setTimeout(function(){
  1115. plus.speech.stopRecognize();
  1116. recorderManager.stop(); //结束录音
  1117. },1300)
  1118. },
  1119. //上划取消搜索
  1120. handleTouchMove(e) {
  1121. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY;
  1122. if (Math.abs(moveLenght) > 50) {
  1123. this.text = `松开手指,<text style="color:#333">取消搜索</text>`;
  1124. this.sendLock = true; //触发了上滑取消搜索,上锁
  1125. this.isShow = false;
  1126. } else {
  1127. this.text = `<text style="color:#333">上划取消搜索</text>`;
  1128. this.sendLock = false; //上划距离不足,可以搜索,不上锁
  1129. this.isShow = false;
  1130. }
  1131. },
  1132. //获取录音结果子传父
  1133. resultClick() {
  1134. if (this.resultText == '正在识别中...' || this.resultText == '未检测到语音,请重试') return;
  1135. this.$emit('voiceResult', this.resultText)
  1136. },
  1137. //弹窗关闭之后的操作,点击遮罩层或关闭按钮
  1138. // afterHide() {
  1139. // this.sendLock = true;
  1140. // this.$emit('closePopup');
  1141. // clearInterval(this.timer);
  1142. // this.resultText = '正在识别中...';
  1143. // },
  1144. randomRgb() {
  1145. let R = Math.floor(Math.random() * 130 + 110);
  1146. let G = Math.floor(Math.random() * 130 + 110);
  1147. let B = Math.floor(Math.random() * 130 + 110);
  1148. return {
  1149. background: `rgb(${R},${G},${B}, 1)`
  1150. };
  1151. },
  1152. // 语音转文字
  1153. getSeep(e){
  1154. this.seeptype=e||'';
  1155. this.voicetext='';
  1156. this.partialResult='';
  1157. this.voiceflag=true;
  1158. },
  1159. ontStart() {
  1160. // recorderManager.start();
  1161. console.log('startRecognize');
  1162. },
  1163. onEnd() {
  1164. // recorderManager.stop();
  1165. console.log('endRecognize');
  1166. },
  1167. getFaFn(type,ptype){
  1168. this.$emit('getFaFn',type,ptype)
  1169. },
  1170. getClose(){
  1171. this.$emit("getClose")
  1172. },
  1173. // 意见
  1174. getyjSubmit(){
  1175. var data={};
  1176. var that=this;
  1177. var str=""
  1178. if(!this.shenflag){
  1179. data.shjg='3';
  1180. str='不通过'
  1181. if(!this.psnr){
  1182. this.$toast('请输入反馈意见')
  1183. return
  1184. }else{
  1185. data.shyj=this.psnr
  1186. }
  1187. }else{
  1188. str='通过'
  1189. data.shjg='2',
  1190. data.shyj=this.psnr
  1191. }
  1192. // 确认框
  1193. uni.showModal({
  1194. title: '确认审核',
  1195. content: "是否确认"+str+'审核',
  1196. cancelText: '取消',
  1197. confirmText: '确认',
  1198. success: function(res) {
  1199. if (res.confirm) {
  1200. that.$emit("getyjSubmit",data)
  1201. } else if (res.cancel) {
  1202. // console.log('用户点击取消');
  1203. }
  1204. }
  1205. });
  1206. },
  1207. }
  1208. }
  1209. </script>
  1210. <style lang="scss" scoped>
  1211. // 弹窗
  1212. // .choseimg{width: 34rpx;height: 34rpx;position: absolute;left: 36rpx;top: 54rpx;z-index: 22;}
  1213. // .uni-stat__select{background-color: #EEEEEE;}
  1214. .fixedbox /deep/ .uni-select{border: none;background-color: #EEEEEE;height: 88rpx;}
  1215. .fixedbox /deep/ .uni-select__input-placeholder{font-size: 30rpx;color: #AAAAAA;}
  1216. .fixedbox /deep/ .uni-textarea-placeholder{font-size: 30rpx;color: #AAAAAA;}
  1217. .fixedbox{position: fixed;left: 48rpx;right: 48rpx;background: #fff;border-radius: 10rpx;min-height: 468rpx;top: 50%;transform: translateY(-50%);z-index: 10;padding: 32rpx 40rpx 50rpx;max-height: calc(100vh - 300rpx);overflow: auto;box-sizing: border-box;
  1218. .ttit{position: relative;text-align: center;font-weight: bold;font-size: 36rpx;color: #222327;margin-bottom: 34rpx;}
  1219. .boxs{
  1220. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;
  1221. text{margin-right: 6rpx;}
  1222. }
  1223. .ztit{font-weight: 500;font-size: 26rpx;color: #222327;text-align: center;line-height: 56rpx;text-align: center;
  1224. text{color: #1D64E2;text-decoration: underline;margin: 0 6rpx;}
  1225. }
  1226. .chosebox{width: 100%;height: 88rpx;background: #EEEEEE;border-radius: 10rpx;padding: 0 10rpx;box-sizing: border-box;padding-left: 20rpx;
  1227. .tit{color: #333;font-size: 30rpx;
  1228. &.coa{color: #AAAAAA;}
  1229. }
  1230. }
  1231. .ptips{font-weight: 500;font-size: 13px;color: #FF0000;text-align: right;margin-top: 16rpx;}
  1232. // 语音按钮
  1233. .speech{
  1234. width: 190rpx;height:56rpx;background: linear-gradient(180deg, #4480EB 0%, #1D64E2 100%);border-radius: 28rpx;
  1235. image{width: 20rpx;height: 26rpx;margin-right: 12rpx;}
  1236. view{font-size: 26rpx;font-weight: 500;color: #ffffff;}
  1237. }
  1238. .input{height: 88rpx;width: 100%;background: #EEEEEE;border-radius: 10rpx;font-size: 30rpx;font-weight: 500;color: #222327;padding: 0 24rpx;}
  1239. .textar{width: 100%;border-radius: 10rpx;padding: 26rpx 30rpx;font-size: 30rpx;color: #222327;height: 400rpx;background: #EEEEEE;
  1240. &.texthe{height: 190rpx;}
  1241. }
  1242. }
  1243. .codeimg{width: 384rpx;height: 384rpx;margin: 0 auto 88rpx;}
  1244. .fixedbtn{padding-top: 18rpx;
  1245. .btns{width: 254rpx;height: 80rpx;border-radius: 40rpx;font-weight: bold;
  1246. font-size: 30rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;
  1247. &.btn1{color: #1D64E2;border: 2rpx solid #1D64E2;}
  1248. &.btn2{color: #ffffff;background: #1D64E2;}
  1249. .down{width: 26rpx;height: 26rpx;margin-right: 6rpx;flex: 0 0 auto;}
  1250. }
  1251. }
  1252. }
  1253. .fixefbox{background-color: #fff;padding: 36rpx 0;position: fixed;left:0;right: 0;bottom: 0;z-index: 20;
  1254. .tit{font-weight: bold;font-size: 30rpx;color: #222327;padding: 0 80rpx;text-align: center;
  1255. text{font-size: 26rpx;color: #AAAAAA;}
  1256. }
  1257. .closebox{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;
  1258. position: absolute;left:28rpx;top: 36rpx;
  1259. image{width: 24rpx;height: 22rpx;}
  1260. }
  1261. .bllist{padding: 0 12rpx;display: flex;flex-wrap: wrap;
  1262. view{min-width: 194rpx;height: 70rpx;background: #F5F5F5;border-radius: 36rpx;margin: 30rpx 24rpx 0;line-height: 70rpx;text-align: center;padding: 0 24rpx;box-sizing: border-box;
  1263. &.act{background: #DFEBFF;color: #1D64E2;}
  1264. }
  1265. }
  1266. }
  1267. // 附件
  1268. .fjadd{
  1269. .btn{font-weight: bold;font-size: 30rpx;color: #1D64E2;margin: 0;display: flex;align-items: center;}
  1270. }
  1271. // 附件
  1272. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  1273. image{margin-right: 18rpx;flex: 0 0 auto;}
  1274. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 16rpx;
  1275. image{width: 26rpx;height: 24rpx;}
  1276. }
  1277. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;}
  1278. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;
  1279. image{width: 26rpx;height: 26rpx;}
  1280. }
  1281. }
  1282. // 语音识别
  1283. .bgvoice{z-index: 1900;}
  1284. .voice {
  1285. min-height: 500rpx;
  1286. padding: 100rpx 60rpx 0 60rpx;
  1287. position: relative;
  1288. background-color: #fff;
  1289. position: fixed;
  1290. left:0;right:0;bottom:0;z-index: 2000;
  1291. padding-bottom: 180rpx;
  1292. .res-txt {
  1293. text-align: center;
  1294. margin-top: 40rpx;
  1295. font-size: 36rpx;
  1296. color: #919098;
  1297. image {
  1298. display: block;
  1299. margin: auto;
  1300. margin-top: 10rpx;
  1301. width: 60rpx;
  1302. animation: bounce-down 2.6s linear infinite;
  1303. }
  1304. }
  1305. .tip {
  1306. margin-top: 15rpx;
  1307. text-align: center;
  1308. .txt {
  1309. font-size: 36rpx;
  1310. color: #151823;
  1311. }
  1312. .txt-bt {
  1313. margin-top: 20rpx;
  1314. color: #919098;
  1315. }
  1316. }
  1317. .btn {
  1318. width: 50%;
  1319. height: 80rpx;
  1320. display: flex;
  1321. align-items: center;
  1322. justify-content: center;
  1323. color: #fff;
  1324. border-radius: 50rpx;
  1325. background: #3484fd;
  1326. position: absolute;
  1327. bottom: 80rpx;
  1328. left: 50%;
  1329. transform: translateX(-50%);
  1330. .btn-cont {
  1331. display: flex;
  1332. align-items: center;
  1333. }
  1334. }
  1335. }
  1336. @-webkit-keyframes bounce-down {
  1337. 25% {
  1338. -webkit-transform: translateY(-10px);
  1339. }
  1340. 50%,
  1341. 100% {
  1342. -webkit-transform: translateY(0);
  1343. }
  1344. 75% {
  1345. -webkit-transform: translateY(13px);
  1346. }
  1347. }
  1348. .content{background-color: #f5f5f5;position: fixed;left: 0;right: 0;bottom: 0;z-index: 10000;height: 500rpx;}
  1349. /* 语音动画 */
  1350. .prompt-loader {
  1351. width: 100%;
  1352. height: 35px;
  1353. display: flex;
  1354. align-items: center;
  1355. justify-content: space-between;
  1356. margin: 30rpx auto;
  1357. }
  1358. .prompt-loader .em {
  1359. height: 15%;
  1360. width: 2px;
  1361. float: left;
  1362. display: block;
  1363. background: #333333;
  1364. }
  1365. .prompt-loader .em:last-child {
  1366. margin-right: 0px;
  1367. }
  1368. .prompt-loader .em:nth-child(1) {
  1369. animation: load 1.3s 0.4s infinite linear;
  1370. }
  1371. .prompt-loader .em:nth-child(2) {
  1372. animation: load 1.3s 0.2s infinite linear;
  1373. }
  1374. .prompt-loader .em:nth-child(3) {
  1375. animation: load 1.3s 0.6s infinite linear;
  1376. }
  1377. .prompt-loader .em:nth-child(4) {
  1378. animation: load 1.3s 0.8s infinite linear;
  1379. }
  1380. .prompt-loader .em:nth-child(5) {
  1381. animation: load 1.3s 0.6s infinite linear;
  1382. }
  1383. .prompt-loader .em:nth-child(6) {
  1384. animation: load 1.3s 0.4s infinite linear;
  1385. }
  1386. .prompt-loader .em:nth-child(7) {
  1387. animation: load 1.3s 0.2s infinite linear;
  1388. }
  1389. .prompt-loader .em:nth-child(8) {
  1390. animation: load 1.3s 0.6s infinite linear;
  1391. }
  1392. .prompt-loader .em:nth-child(9) {
  1393. animation: load 1.3s 0.2s infinite linear;
  1394. }
  1395. .prompt-loader .em:nth-child(10) {
  1396. animation: load 1.3s 0.4s infinite linear;
  1397. }
  1398. .prompt-loader .em:nth-child(11) {
  1399. animation: load 1.3s 0.6s infinite linear;
  1400. }
  1401. .prompt-loader .em:nth-child(12) {
  1402. animation: load 1.3s 0.8s infinite linear;
  1403. }
  1404. .prompt-loader .em:nth-child(13) {
  1405. animation: load 1.3s 1s infinite linear;
  1406. }
  1407. .prompt-loader .em:nth-child(14) {
  1408. animation: load 1.3s 0.2s infinite linear;
  1409. }
  1410. .prompt-loader .em:nth-child(15) {
  1411. animation: load 1.3s 0.6s infinite linear;
  1412. }
  1413. .prompt-loader .em:nth-child(16) {
  1414. animation: load 1.3s 0.6s infinite linear;
  1415. }
  1416. .prompt-loader .em:nth-child(17) {
  1417. animation: load 1.3s 0.8s infinite linear;
  1418. }
  1419. .prompt-loader .em:nth-child(18) {
  1420. animation: load 1.3s 0.2s infinite linear;
  1421. }
  1422. .prompt-loader .em:nth-child(19) {
  1423. animation: load 1.3s 0.4s infinite linear;
  1424. }
  1425. .prompt-loader .em:nth-child(20) {
  1426. animation: load 1.3s 0.6s infinite linear;
  1427. }
  1428. .prompt-loader .em:nth-child(21) {
  1429. animation: load 1.3s 0.5s infinite linear;
  1430. }
  1431. .prompt-loader .em:nth-child(22) {
  1432. animation: load 1.3s 0.2s infinite linear;
  1433. }
  1434. .prompt-loader .em:nth-child(23) {
  1435. animation: load 1.3s 0.4s infinite linear;
  1436. }
  1437. .prompt-loader .em:nth-child(24) {
  1438. animation: load 1.3s 0.6s infinite linear;
  1439. }
  1440. .prompt-loader .em:nth-child(25) {
  1441. animation: load 1.3s 0.8s infinite linear;
  1442. }
  1443. .prompt-loader .em:nth-child(26) {
  1444. animation: load 1.3s 0.2s infinite linear;
  1445. }
  1446. .prompt-loader .em:nth-child(27) {
  1447. animation: load 1.3s 0.4s infinite linear;
  1448. }
  1449. .prompt-loader .em:nth-child(28) {
  1450. animation: load 1.3s 0.1s infinite linear;
  1451. }
  1452. .prompt-loader .em:nth-child(29) {
  1453. animation: load 1.3s 0.3s infinite linear;
  1454. }
  1455. .prompt-loader .em:nth-child(30) {
  1456. animation: load 1.3s 0.6s infinite linear;
  1457. }
  1458. @keyframes load {
  1459. 0% {
  1460. height: 15%;
  1461. }
  1462. 50% {
  1463. height: 100%;
  1464. }
  1465. 100% {
  1466. height: 15%;
  1467. }
  1468. }
  1469. </style>