popup.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565
  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" v-if="progress!=7">
  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. progress:{
  574. type: [String,Number],
  575. default () {
  576. return ''
  577. }
  578. }
  579. },
  580. data(){
  581. return{
  582. deptTree:[],//答复单位
  583. dfdwpicker: {
  584. title: '选择所属产业',
  585. layer: null,
  586. titflag:true,
  587. data: []
  588. },
  589. //附件
  590. option: {
  591. // 上传服务器地址,需要替换为你的接口地址
  592. url: baseUrl+'/common/upload', // 该地址非真实路径,需替换为你项目自己的接口地址
  593. // 上传附件的key
  594. name: 'file',
  595. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  596. header: {
  597. // 示例参数可删除
  598. 'Authorization': 'Bearer ' + getToken(),
  599. },
  600. // 根据你接口需求自定义body参数
  601. formData: {}
  602. },
  603. // 选择文件后是否立即自动上传,true=选择后立即上传
  604. instantly: true,
  605. // 必传宽高且宽高应与slot宽高保持一致
  606. width: '',
  607. height: '48rpx',
  608. // 限制允许上传的格式,空串=不限制,默认为空
  609. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,zip,rar,word,png,jpg,jpeg',
  610. // 文件上传大小限制
  611. size: 100,
  612. // 文件数量限制 默认10
  613. count: 5,
  614. // 文件回显列表
  615. files: new Map(),
  616. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  617. wxFiles: [],
  618. // 是否打印日志
  619. debug: false,
  620. filelist:[],
  621. fjimg:require("@/work/static/images/fjimg.png"),
  622. delimg:require("@/work/static/images/delimg.png"),
  623. codeimg:require("@/work/static/images/meeting/code.png"),
  624. downimg:require("@/work/static/images/meeting/down.png"),
  625. closeimg:require("@/work/static/images/close.png"),
  626. speechimgs:require('@/work/static/images/voice.png'),
  627. range: [{ value: 0, text: "满意" },{ value: 1, text: "不满意" },],
  628. sfrange: [{ value: 0, text: "是" },{ value: 1, text: "否" },],
  629. larange:[{ value: 0, text: "立案" },{ value: 1, text: "不立案" }],
  630. jbsharange:[{ value: 6, text: "不通过" },{ value: 7, text: "通过" }],
  631. agreelist:[{ value: 1, text: "同意" },{ value: 2, text: "不同意" }],
  632. joinlist:[{ value: 'Y', text: "是" },{ value: 'N', text: "否" }],
  633. value: 0,
  634. isRecord:'',//是否立案
  635. jbshtxt:'',//审核通过不通过
  636. handling:'',//办理方式
  637. degree:'',//办理程度
  638. mycdtxt:'',//满意程度
  639. isJoin:'',//是否参会
  640. qjlxtxt:'',//请假类型
  641. recorddw:'',
  642. recorddwm:'',//协办单位
  643. recorddwlist:[],
  644. recorddwmlist:[],//协办单位
  645. content:'',//文本输入
  646. txtnumber:'',//提案号
  647. ftype:'',//二层弹窗
  648. blfsval:'',//办理方式
  649. cheklist:[],
  650. baseUrl:'',
  651. voiceflag:false,
  652. voiceToken: '',
  653. timer: null,
  654. text: '',
  655. resultText: '正在识别中...',
  656. startPoint: {},
  657. sendLock: true,
  658. isShow: true,
  659. voicetext:'',
  660. options: {}, // 语音转文字的设置
  661. partialResult:'',//临时语音
  662. }
  663. },
  664. watch:{
  665. // iteminfo(val){
  666. // var that=this;
  667. // that.psnr='';
  668. // // console.log(val,0)
  669. // if(val.zcpsnr){
  670. // that.psnr=val.zcpsnr;
  671. // }else if(val.psnr){
  672. // that.psnr=val.psnr;
  673. // }
  674. // },
  675. sendLock(newVal, oldVal) {
  676. var that=this;
  677. recorderManager.onStop(res => {
  678. if (newVal) return //上锁不发送
  679. //解锁发送网络请求
  680. setTimeout(function(res){
  681. if(!that.voicetext&&!that.partialResult){
  682. that.resultText='未检测到语音,请重试'
  683. }else{
  684. that.resultText=that.voicetext||that.partialResult;
  685. var cursor=that.cursor;
  686. if(cursor==0){
  687. if(that.seeptype=='sgll'){
  688. that.sgll=that.sgll+that.resultText;
  689. }else{
  690. that.psnr=that.psnr+that.resultText;
  691. }
  692. }else{
  693. if(that.seeptype=='sgll'){
  694. that.sgll=that.sgll.slice(0,cursor)+that.resultText+that.sgll.slice(cursor);
  695. }else{
  696. that.psnr=that.psnr.slice(0,cursor)+that.resultText+that.psnr.slice(cursor);
  697. }
  698. }
  699. that.voiceflag=false;
  700. }
  701. that.sendLock=true;
  702. },1000)
  703. // console.log(res.tempFilePath, '获取录音文件')
  704. });
  705. },
  706. },
  707. onShow() {
  708. },
  709. mounted() {
  710. this.baseUrl=baseUrl;
  711. // var that=this;
  712. // // #ifdef APP-PLUS
  713. // // 监听语音识别事件
  714. // plus.speech.addEventListener('recognizing', this.onRecognizing, false);
  715. // // #endif
  716. // recorderManager.onStop(function(res) {
  717. // //录音后的回调函数
  718. // if(!this.sendLock){
  719. // console.log(that.voicetext,that.partialResult)
  720. // }
  721. // console.log('recorder stop' + JSON.stringify(res));
  722. // });
  723. },
  724. methods:{
  725. checkPermi, checkRole,
  726. getRecorddwFn(){
  727. console.log(this.dataTree)
  728. this.deptTree=this.dataTree
  729. this.$refs.dfdwpicker.open(0).then(function() {
  730. });
  731. },
  732. getRecorddwMoreFn(){
  733. this.$refs.treePickerxtdw._show();
  734. },
  735. getBlfsMoreFn(){
  736. this.ftype='blfs'
  737. },
  738. getCheck(ite){
  739. var idx=this.cheklist.findIndex(item=>item==ite.label)
  740. if(idx!=-1){
  741. this.cheklist.splice(idx,1)
  742. }else{
  743. this.cheklist.push(ite.label)
  744. }
  745. this.handling=this.cheklist.join(',')
  746. },
  747. change(){
  748. },
  749. getcodeDown(){
  750. // #ifdef H5
  751. // 将base64格式的图片转换成Blob对象
  752. var arr = this.yycode.split(","),
  753. mime = arr[0].match(/:(.*?);/)[1],
  754. bstr = atob(arr[1]),
  755. n = bstr.length,
  756. u8arr = new Uint8Array(n);
  757. while (n--) {
  758. u8arr[n] = bstr.charCodeAt(n);
  759. }
  760. // 将Blob对象转换成文件并下载到本地
  761. var blob = new Blob([u8arr], {
  762. type: mime
  763. });
  764. var a = document.createElement('a');
  765. a.download = 'qrcode';
  766. a.href = URL.createObjectURL(blob);
  767. a.click();
  768. // #endif
  769. // #ifndef H5
  770. uni.getSetting({//获取用户的当前设置
  771. success:(res)=> {
  772. if(res.authSetting['scope.writePhotosAlbum']){//验证用户是否授权可以访问相册
  773. this.saveImageToPhotosAlbum();
  774. }else{
  775. uni.authorize({//如果没有授权,向用户发起请求
  776. scope: 'scope.writePhotosAlbum',
  777. success:()=> {
  778. this.saveImageToPhotosAlbum();
  779. },
  780. fail:()=>{
  781. uni.showToast({
  782. title:"请打开保存相册权限,再点击保存相册分享",
  783. icon:"none",
  784. duration:3000
  785. });
  786. setTimeout(()=>{
  787. uni.openSetting({//调起客户端小程序设置界面,让用户开启访问相册
  788. success:(res2)=> {
  789. // console.log(res2.authSetting)
  790. }
  791. });
  792. },3000);
  793. }
  794. })
  795. }
  796. }
  797. })
  798. // #endif
  799. },
  800. saveImageToPhotosAlbum(){
  801. let base64=this.yycode.replace(/^data:image\/\w+;base64,/, "");//去掉data:image/png;base64,
  802. let filePath=wx.env.USER_DATA_PATH + '/qrcode.png';
  803. uni.getFileSystemManager().writeFile({
  804. filePath:filePath , //创建一个临时文件名
  805. data: base64, //写入的文本或二进制数据
  806. encoding: 'base64', //写入当前文件的字符编码
  807. success: res => {
  808. uni.saveImageToPhotosAlbum({
  809. filePath: filePath,
  810. success: function(res2) {
  811. uni.showToast({
  812. title: '保存成功,请从相册选择再分享',
  813. icon:"none",
  814. duration:5000
  815. })
  816. },
  817. fail: function(err) {
  818. // console.log(err.errMsg);
  819. }
  820. })
  821. },
  822. fail: err => {
  823. //console.log(err)
  824. }
  825. })
  826. },
  827. selectChangextdw(e){
  828. if(e.length){
  829. var newArr=[]
  830. e.forEach(ite=>{
  831. newArr.push(ite.deptName)
  832. })
  833. this.recorddwm=newArr.join('/')
  834. }
  835. this.recorddwmlist=JSON.parse(JSON.stringify(e))
  836. },
  837. dfdwpickerCallback(e){
  838. var newArr=e.data;
  839. var dwList=[]
  840. var len=Number(newArr.length)-1;
  841. var obj={
  842. deptId:newArr[len].id,
  843. deptName:newArr[len].label,
  844. }
  845. if(this.type=='tajb'){
  846. obj.type=2
  847. }else if(this.type=='scfk'){
  848. obj.type=1
  849. }
  850. // dwList.push(obj)
  851. this.recorddwlist=obj;
  852. this.recorddw=newArr[len].label;
  853. },
  854. getupSubmit(){
  855. var type=this.type;
  856. if(type=='scfk'){
  857. var isRecord=this.isRecord;
  858. if(isRecord===''){
  859. this.$toast('请选择会否立案')
  860. return
  861. }
  862. var obj={
  863. isRecord:this.isRecord
  864. }
  865. if(this.isRecord==0&&!this.txtnumber){
  866. this.$toast('请输入提案号')
  867. return
  868. }
  869. if(this.isRecord==1&&!this.recorddw){
  870. this.$toast('请选择答复单位')
  871. return
  872. }
  873. if(this.isRecord==0){
  874. obj.proposalNumber=this.txtnumber
  875. obj.sqmyNumber=this.txtnumber
  876. }
  877. if(this.isRecord==1){
  878. var nobj=this.recorddwlist;
  879. var newArr=[];
  880. newArr.push(nobj)
  881. obj.proposalUnitReplyList=newArr
  882. obj.sqmyUnitReplyList=newArr
  883. }
  884. this.$emit('getupSubmit',obj)
  885. }else if(type=='tajb'){
  886. var newArr=this.recorddwlist;
  887. var xbdwList=this.recorddwmlist;
  888. if(!newArr||newArr.length<1){
  889. this.$toast('请选择主办单位')
  890. return
  891. }
  892. if(xbdwList.length<1){
  893. this.$toast('请选择协办单位')
  894. return
  895. }
  896. var obj={
  897. proposalUnitReplyList:xbdwList,
  898. sqmyUnitReplyList:xbdwList,
  899. zbUnitReply:newArr
  900. }
  901. this.$emit('getupSubmit',obj)
  902. }else if(type=='dffk'){
  903. if(!this.handling){
  904. this.$toast('请选择办理方式')
  905. return
  906. }
  907. if(!this.degree){
  908. this.$toast('请选择办理程度')
  909. return
  910. }
  911. if(!this.content){
  912. this.$toast('请输入答复内容')
  913. return
  914. }
  915. var obj={
  916. content:this.content,
  917. handling:this.handling,
  918. degree:this.degree
  919. }
  920. if(this.filelist.length){
  921. obj.zxFjList=this.filelist
  922. }
  923. this.$emit('getupSubmit',obj)
  924. }else if(type=='jbsh'){
  925. if(!this.jbshtxt){
  926. this.$toast('请选择是否通过')
  927. return
  928. }
  929. var obj={
  930. proposalProgress:this.jbshtxt,
  931. sqmyProgress:this.jbshtxt,
  932. }
  933. this.$emit('getupSubmit',obj)
  934. }else if(type=='dwdf'){
  935. if(!this.content){
  936. this.$toast('请输入答复反馈')
  937. return
  938. }
  939. var obj={
  940. content:this.content,
  941. }
  942. if(this.filelist.length){
  943. obj.zxFjList=this.filelist
  944. }
  945. this.$emit('getupSubmit',obj)
  946. }else if(type=='wymyfk'){
  947. if(!this.mycdtxt){
  948. this.$toast('请选择满意程度')
  949. return
  950. }
  951. var obj={
  952. membersOpinion:this.content,
  953. satisfaction:this.mycdtxt
  954. }
  955. if(this.filelist.length){
  956. obj.zxFjList=this.filelist
  957. }
  958. this.$emit('getupSubmit',obj)
  959. }else if(type=='zxmyfk'){
  960. if(!this.mycdtxt){
  961. this.$toast('请选择满意程度')
  962. return
  963. }
  964. var obj={
  965. zxOpinion:this.content,
  966. zxSatisfaction:this.mycdtxt
  967. }
  968. if(this.filelist.length){
  969. obj.zxFjList=this.filelist
  970. }
  971. this.$emit('getupSubmit',obj)
  972. }else if(type=='tacb'){
  973. // if(!this.content){
  974. // this.$toast('请输入催办内容')
  975. // return
  976. // }
  977. var obj={
  978. urgeContent:this.content,
  979. // urgeType:1
  980. }
  981. this.$emit('getupSubmit',obj)
  982. }else if(type=='tjyx'){
  983. // if(!this.content){
  984. // this.$toast('请输入催办内容')
  985. // return
  986. // }
  987. var obj={
  988. outstandingArgument:this.content,
  989. isOutstanding:0
  990. }
  991. this.$emit('getupSubmit',obj)
  992. }else if(type=='tjzd'){
  993. // if(!this.content){
  994. // this.$toast('请输入催办内容')
  995. // return
  996. // }
  997. var obj={
  998. keyPointArgument:this.content,
  999. isKeyPoint:0
  1000. }
  1001. this.$emit('getupSubmit',obj)
  1002. }else if(type=='lmta'){
  1003. if(!this.jbshtxt){
  1004. this.$toast('请选择是否同意')
  1005. return
  1006. }
  1007. var obj={
  1008. isAgree:this.jbshtxt,
  1009. }
  1010. this.$emit('getupSubmit',obj)
  1011. }else if(type=='chdf'){
  1012. if(!this.isJoin){
  1013. this.$toast('请选择是否参会')
  1014. return
  1015. }
  1016. if(this.isJoin=='N'&&this.qjlxtxt==''){
  1017. this.$toast('请选择请假类型')
  1018. return
  1019. }
  1020. if(this.isJoin=='N'&&!this.content){
  1021. this.$toast('请输入请假事由')
  1022. return
  1023. }
  1024. var obj={
  1025. isJoin:this.isJoin,
  1026. leaveType:this.qjlxtxt,
  1027. leaveReason:this.content,
  1028. }
  1029. this.$emit('getupSubmit',obj)
  1030. }
  1031. },
  1032. onuploadEnd(item) {
  1033. var newobj={}
  1034. var responseText=JSON.parse(item.responseText)
  1035. newobj.name=responseText.originalFilename;
  1036. newobj.url=responseText.fileName;
  1037. this.filelist.push(newobj)
  1038. // this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  1039. },
  1040. getDelFj(idx){
  1041. var that=this;
  1042. uni.showModal({
  1043. title: '确认删除',
  1044. content: "是否确认删除",
  1045. cancelText: '取消',
  1046. confirmText: '确认',
  1047. success: function(res) {
  1048. if (res.confirm) {
  1049. that.filelist.splice(idx,1)
  1050. // that.datainfo.zsyzFjList=JSON.parse(JSON.stringify(that.filelist))
  1051. } else if (res.cancel) {
  1052. }
  1053. }
  1054. });
  1055. },
  1056. getDown(e){
  1057. uni.showLoading({
  1058. title: '加载中'
  1059. });
  1060. var url=baseUrl+e;
  1061. uni.downloadFile({
  1062. url: url,//文件的下载路径
  1063. success(result) {
  1064. uni.hideLoading()
  1065. var filePath = result.tempFilePath;
  1066. uni.openDocument({
  1067. filePath: filePath,
  1068. showMenu: true,
  1069. success: function (res) {
  1070. // console.log('打开文档成功');
  1071. }
  1072. });
  1073. },
  1074. fail(res) {uni.hideLoading()}
  1075. })
  1076. },
  1077. getBlur(e){
  1078. this.cursor=e.detail.cursor;
  1079. },
  1080. // 语音转文字
  1081. getClosevoice(){
  1082. this.voiceflag=false
  1083. },
  1084. onRecognizing(e){
  1085. this.partialResult=e.partialResult;
  1086. },
  1087. // 录音转文字
  1088. handleVoice() {
  1089. // console.log('语音输入')
  1090. let _this = this;
  1091. // _this.psnr = '';
  1092. this.options.engine = 'baidu'
  1093. // this.options.timeout = 60 * 1000; //超时时间
  1094. this.options.continue = true;//语音识别是否采用持续模式
  1095. this.options.punctuation = true; // 是否需要标点符号
  1096. this.options.userInterface = false; // 是否显示语音界面
  1097. plus.speech.startRecognize(this.options, (s) => {
  1098. _this.voicetext+=s;
  1099. console.log(s,9)
  1100. // plus.speech.stopRecognize(); // 关
  1101. });
  1102. },
  1103. //长按录音方法
  1104. handleRecordStart(e) {
  1105. this.voicetext='';
  1106. this.partialResult='';
  1107. this.startPoint = e.touches[0]; //记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  1108. recorderManager.start({duration: 60000}); //开始录音
  1109. this.handleVoice()
  1110. this.text = `<text style="color:#333">上划取消搜索</text>`;
  1111. this.sendLock = false; //长按时不上锁。
  1112. this.isShow = false;
  1113. this.resultText = '正在识别中...';
  1114. // 按钮
  1115. // console.log(67)
  1116. },
  1117. //结束录音 (手指松开)时触发
  1118. handleRecordStop(e) {
  1119. var that=this;
  1120. this.isShow = true;
  1121. setTimeout(function(){
  1122. plus.speech.stopRecognize();
  1123. recorderManager.stop(); //结束录音
  1124. },1300)
  1125. },
  1126. //上划取消搜索
  1127. handleTouchMove(e) {
  1128. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY;
  1129. if (Math.abs(moveLenght) > 50) {
  1130. this.text = `松开手指,<text style="color:#333">取消搜索</text>`;
  1131. this.sendLock = true; //触发了上滑取消搜索,上锁
  1132. this.isShow = false;
  1133. } else {
  1134. this.text = `<text style="color:#333">上划取消搜索</text>`;
  1135. this.sendLock = false; //上划距离不足,可以搜索,不上锁
  1136. this.isShow = false;
  1137. }
  1138. },
  1139. //获取录音结果子传父
  1140. resultClick() {
  1141. if (this.resultText == '正在识别中...' || this.resultText == '未检测到语音,请重试') return;
  1142. this.$emit('voiceResult', this.resultText)
  1143. },
  1144. //弹窗关闭之后的操作,点击遮罩层或关闭按钮
  1145. // afterHide() {
  1146. // this.sendLock = true;
  1147. // this.$emit('closePopup');
  1148. // clearInterval(this.timer);
  1149. // this.resultText = '正在识别中...';
  1150. // },
  1151. randomRgb() {
  1152. let R = Math.floor(Math.random() * 130 + 110);
  1153. let G = Math.floor(Math.random() * 130 + 110);
  1154. let B = Math.floor(Math.random() * 130 + 110);
  1155. return {
  1156. background: `rgb(${R},${G},${B}, 1)`
  1157. };
  1158. },
  1159. // 语音转文字
  1160. getSeep(e){
  1161. this.seeptype=e||'';
  1162. this.voicetext='';
  1163. this.partialResult='';
  1164. this.voiceflag=true;
  1165. },
  1166. ontStart() {
  1167. // recorderManager.start();
  1168. console.log('startRecognize');
  1169. },
  1170. onEnd() {
  1171. // recorderManager.stop();
  1172. console.log('endRecognize');
  1173. },
  1174. getFaFn(type,ptype){
  1175. this.$emit('getFaFn',type,ptype)
  1176. },
  1177. getClose(){
  1178. this.$emit("getClose")
  1179. },
  1180. // 意见
  1181. getyjSubmit(){
  1182. var data={};
  1183. var that=this;
  1184. var str=""
  1185. if(!this.shenflag){
  1186. data.shjg='3';
  1187. str='不通过'
  1188. if(!this.psnr){
  1189. this.$toast('请输入反馈意见')
  1190. return
  1191. }else{
  1192. data.shyj=this.psnr
  1193. }
  1194. }else{
  1195. str='通过'
  1196. data.shjg='2',
  1197. data.shyj=this.psnr
  1198. }
  1199. // 确认框
  1200. uni.showModal({
  1201. title: '确认审核',
  1202. content: "是否确认"+str+'审核',
  1203. cancelText: '取消',
  1204. confirmText: '确认',
  1205. success: function(res) {
  1206. if (res.confirm) {
  1207. that.$emit("getyjSubmit",data)
  1208. } else if (res.cancel) {
  1209. // console.log('用户点击取消');
  1210. }
  1211. }
  1212. });
  1213. },
  1214. }
  1215. }
  1216. </script>
  1217. <style lang="scss" scoped>
  1218. // 弹窗
  1219. // .choseimg{width: 34rpx;height: 34rpx;position: absolute;left: 36rpx;top: 54rpx;z-index: 22;}
  1220. // .uni-stat__select{background-color: #EEEEEE;}
  1221. .fixedbox /deep/ .uni-select{border: none;background-color: #EEEEEE;height: 88rpx;}
  1222. .fixedbox /deep/ .uni-select__input-placeholder{font-size: 30rpx;color: #AAAAAA;}
  1223. .fixedbox /deep/ .uni-textarea-placeholder{font-size: 30rpx;color: #AAAAAA;}
  1224. .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;
  1225. .ttit{position: relative;text-align: center;font-weight: bold;font-size: 36rpx;color: #222327;margin-bottom: 34rpx;}
  1226. .boxs{
  1227. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;
  1228. text{margin-right: 6rpx;}
  1229. }
  1230. .ztit{font-weight: 500;font-size: 26rpx;color: #222327;text-align: center;line-height: 56rpx;text-align: center;
  1231. text{color: #1D64E2;text-decoration: underline;margin: 0 6rpx;}
  1232. }
  1233. .chosebox{width: 100%;height: 88rpx;background: #EEEEEE;border-radius: 10rpx;padding: 0 10rpx;box-sizing: border-box;padding-left: 20rpx;
  1234. .tit{color: #333;font-size: 30rpx;
  1235. &.coa{color: #AAAAAA;}
  1236. }
  1237. }
  1238. .ptips{font-weight: 500;font-size: 13px;color: #FF0000;text-align: right;margin-top: 16rpx;}
  1239. // 语音按钮
  1240. .speech{
  1241. width: 190rpx;height:56rpx;background: linear-gradient(180deg, #4480EB 0%, #1D64E2 100%);border-radius: 28rpx;
  1242. image{width: 20rpx;height: 26rpx;margin-right: 12rpx;}
  1243. view{font-size: 26rpx;font-weight: 500;color: #ffffff;}
  1244. }
  1245. .input{height: 88rpx;width: 100%;background: #EEEEEE;border-radius: 10rpx;font-size: 30rpx;font-weight: 500;color: #222327;padding: 0 24rpx;}
  1246. .textar{width: 100%;border-radius: 10rpx;padding: 26rpx 30rpx;font-size: 30rpx;color: #222327;height: 400rpx;background: #EEEEEE;
  1247. &.texthe{height: 190rpx;}
  1248. }
  1249. }
  1250. .codeimg{width: 384rpx;height: 384rpx;margin: 0 auto 88rpx;}
  1251. .fixedbtn{padding-top: 18rpx;
  1252. .btns{width: 254rpx;height: 80rpx;border-radius: 40rpx;font-weight: bold;
  1253. font-size: 30rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;
  1254. &.btn1{color: #1D64E2;border: 2rpx solid #1D64E2;}
  1255. &.btn2{color: #ffffff;background: #1D64E2;}
  1256. .down{width: 26rpx;height: 26rpx;margin-right: 6rpx;flex: 0 0 auto;}
  1257. }
  1258. }
  1259. }
  1260. .fixefbox{background-color: #fff;padding: 36rpx 0;position: fixed;left:0;right: 0;bottom: 0;z-index: 20;
  1261. .tit{font-weight: bold;font-size: 30rpx;color: #222327;padding: 0 80rpx;text-align: center;
  1262. text{font-size: 26rpx;color: #AAAAAA;}
  1263. }
  1264. .closebox{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;
  1265. position: absolute;left:28rpx;top: 36rpx;
  1266. image{width: 24rpx;height: 22rpx;}
  1267. }
  1268. .bllist{padding: 0 12rpx;display: flex;flex-wrap: wrap;
  1269. 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;
  1270. &.act{background: #DFEBFF;color: #1D64E2;}
  1271. }
  1272. }
  1273. }
  1274. // 附件
  1275. .fjadd{
  1276. .btn{font-weight: bold;font-size: 30rpx;color: #1D64E2;margin: 0;display: flex;align-items: center;}
  1277. }
  1278. // 附件
  1279. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  1280. image{margin-right: 18rpx;flex: 0 0 auto;}
  1281. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 16rpx;
  1282. image{width: 26rpx;height: 24rpx;}
  1283. }
  1284. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;}
  1285. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;
  1286. image{width: 26rpx;height: 26rpx;}
  1287. }
  1288. }
  1289. // 语音识别
  1290. .bgvoice{z-index: 1900;}
  1291. .voice {
  1292. min-height: 500rpx;
  1293. padding: 100rpx 60rpx 0 60rpx;
  1294. position: relative;
  1295. background-color: #fff;
  1296. position: fixed;
  1297. left:0;right:0;bottom:0;z-index: 2000;
  1298. padding-bottom: 180rpx;
  1299. .res-txt {
  1300. text-align: center;
  1301. margin-top: 40rpx;
  1302. font-size: 36rpx;
  1303. color: #919098;
  1304. image {
  1305. display: block;
  1306. margin: auto;
  1307. margin-top: 10rpx;
  1308. width: 60rpx;
  1309. animation: bounce-down 2.6s linear infinite;
  1310. }
  1311. }
  1312. .tip {
  1313. margin-top: 15rpx;
  1314. text-align: center;
  1315. .txt {
  1316. font-size: 36rpx;
  1317. color: #151823;
  1318. }
  1319. .txt-bt {
  1320. margin-top: 20rpx;
  1321. color: #919098;
  1322. }
  1323. }
  1324. .btn {
  1325. width: 50%;
  1326. height: 80rpx;
  1327. display: flex;
  1328. align-items: center;
  1329. justify-content: center;
  1330. color: #fff;
  1331. border-radius: 50rpx;
  1332. background: #3484fd;
  1333. position: absolute;
  1334. bottom: 80rpx;
  1335. left: 50%;
  1336. transform: translateX(-50%);
  1337. .btn-cont {
  1338. display: flex;
  1339. align-items: center;
  1340. }
  1341. }
  1342. }
  1343. @-webkit-keyframes bounce-down {
  1344. 25% {
  1345. -webkit-transform: translateY(-10px);
  1346. }
  1347. 50%,
  1348. 100% {
  1349. -webkit-transform: translateY(0);
  1350. }
  1351. 75% {
  1352. -webkit-transform: translateY(13px);
  1353. }
  1354. }
  1355. .content{background-color: #f5f5f5;position: fixed;left: 0;right: 0;bottom: 0;z-index: 10000;height: 500rpx;}
  1356. /* 语音动画 */
  1357. .prompt-loader {
  1358. width: 100%;
  1359. height: 35px;
  1360. display: flex;
  1361. align-items: center;
  1362. justify-content: space-between;
  1363. margin: 30rpx auto;
  1364. }
  1365. .prompt-loader .em {
  1366. height: 15%;
  1367. width: 2px;
  1368. float: left;
  1369. display: block;
  1370. background: #333333;
  1371. }
  1372. .prompt-loader .em:last-child {
  1373. margin-right: 0px;
  1374. }
  1375. .prompt-loader .em:nth-child(1) {
  1376. animation: load 1.3s 0.4s infinite linear;
  1377. }
  1378. .prompt-loader .em:nth-child(2) {
  1379. animation: load 1.3s 0.2s infinite linear;
  1380. }
  1381. .prompt-loader .em:nth-child(3) {
  1382. animation: load 1.3s 0.6s infinite linear;
  1383. }
  1384. .prompt-loader .em:nth-child(4) {
  1385. animation: load 1.3s 0.8s infinite linear;
  1386. }
  1387. .prompt-loader .em:nth-child(5) {
  1388. animation: load 1.3s 0.6s infinite linear;
  1389. }
  1390. .prompt-loader .em:nth-child(6) {
  1391. animation: load 1.3s 0.4s infinite linear;
  1392. }
  1393. .prompt-loader .em:nth-child(7) {
  1394. animation: load 1.3s 0.2s infinite linear;
  1395. }
  1396. .prompt-loader .em:nth-child(8) {
  1397. animation: load 1.3s 0.6s infinite linear;
  1398. }
  1399. .prompt-loader .em:nth-child(9) {
  1400. animation: load 1.3s 0.2s infinite linear;
  1401. }
  1402. .prompt-loader .em:nth-child(10) {
  1403. animation: load 1.3s 0.4s infinite linear;
  1404. }
  1405. .prompt-loader .em:nth-child(11) {
  1406. animation: load 1.3s 0.6s infinite linear;
  1407. }
  1408. .prompt-loader .em:nth-child(12) {
  1409. animation: load 1.3s 0.8s infinite linear;
  1410. }
  1411. .prompt-loader .em:nth-child(13) {
  1412. animation: load 1.3s 1s infinite linear;
  1413. }
  1414. .prompt-loader .em:nth-child(14) {
  1415. animation: load 1.3s 0.2s infinite linear;
  1416. }
  1417. .prompt-loader .em:nth-child(15) {
  1418. animation: load 1.3s 0.6s infinite linear;
  1419. }
  1420. .prompt-loader .em:nth-child(16) {
  1421. animation: load 1.3s 0.6s infinite linear;
  1422. }
  1423. .prompt-loader .em:nth-child(17) {
  1424. animation: load 1.3s 0.8s infinite linear;
  1425. }
  1426. .prompt-loader .em:nth-child(18) {
  1427. animation: load 1.3s 0.2s infinite linear;
  1428. }
  1429. .prompt-loader .em:nth-child(19) {
  1430. animation: load 1.3s 0.4s infinite linear;
  1431. }
  1432. .prompt-loader .em:nth-child(20) {
  1433. animation: load 1.3s 0.6s infinite linear;
  1434. }
  1435. .prompt-loader .em:nth-child(21) {
  1436. animation: load 1.3s 0.5s infinite linear;
  1437. }
  1438. .prompt-loader .em:nth-child(22) {
  1439. animation: load 1.3s 0.2s infinite linear;
  1440. }
  1441. .prompt-loader .em:nth-child(23) {
  1442. animation: load 1.3s 0.4s infinite linear;
  1443. }
  1444. .prompt-loader .em:nth-child(24) {
  1445. animation: load 1.3s 0.6s infinite linear;
  1446. }
  1447. .prompt-loader .em:nth-child(25) {
  1448. animation: load 1.3s 0.8s infinite linear;
  1449. }
  1450. .prompt-loader .em:nth-child(26) {
  1451. animation: load 1.3s 0.2s infinite linear;
  1452. }
  1453. .prompt-loader .em:nth-child(27) {
  1454. animation: load 1.3s 0.4s infinite linear;
  1455. }
  1456. .prompt-loader .em:nth-child(28) {
  1457. animation: load 1.3s 0.1s infinite linear;
  1458. }
  1459. .prompt-loader .em:nth-child(29) {
  1460. animation: load 1.3s 0.3s infinite linear;
  1461. }
  1462. .prompt-loader .em:nth-child(30) {
  1463. animation: load 1.3s 0.6s infinite linear;
  1464. }
  1465. @keyframes load {
  1466. 0% {
  1467. height: 15%;
  1468. }
  1469. 50% {
  1470. height: 100%;
  1471. }
  1472. 100% {
  1473. height: 15%;
  1474. }
  1475. }
  1476. </style>