popup.vue 48 KB

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