popup.vue 53 KB

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