add.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. <template>
  2. <view >
  3. <view class="bgtop"></view>
  4. <uni-forms :modelValue="datainfo">
  5. <view class="addbox">
  6. <view class="boxs">
  7. <view class="tips">
  8. <image :src="tipimg"></image>
  9. <view>请于填写信息前认真核对提案者信息是否有误</view>
  10. </view>
  11. <view class="pdbox">
  12. <view class="titbox mb14">
  13. <view class="tit flexc">
  14. <image :src="titimg"></image>
  15. <view>提案者信息</view>
  16. </view>
  17. </view>
  18. <view class="titinf">
  19. <view class="txt"><text>提案者:</text>{{datainfo.proposalName}}</view>
  20. <view class="txt"><text>联系方式:</text>{{datainfo.proposalPhone}}</view>
  21. <view class="txt"><text>界别:</text>{{kayType(datainfo.boundary,jblist)}}</view>
  22. <!-- <view class="txt"><text>党派:</text>{{kayType(datainfo.partyAffiliation,dplist)}}</view> -->
  23. <view class="txt"><text>工作单位及职务:</text>{{datainfo.contactAddress}}</view>
  24. </view>
  25. <image :src="infobg" class="infobg"></image>
  26. </view>
  27. </view>
  28. <view class="boxs pdbox" style="padding-bottom: 2rpx;">
  29. <view class="titbox mb14">
  30. <view class="tit flexc">
  31. <image :src="titimg"></image>
  32. <view>基本详情</view>
  33. </view>
  34. </view>
  35. <view class="pb8">
  36. <uni-forms-item label="标题" name="title" required>
  37. <uni-easyinput :inputBorder="false" type="text" v-model="datainfo.title" placeholder="请输入标题" />
  38. <view class="edtip pa">* 标题前无须加关于,标题后无须加的建议,系统将自动填写</view>
  39. </uni-forms-item>
  40. </view>
  41. <!-- <uni-forms-item label="提案类别" name="categoryName" required>
  42. <view class="openbox" :class="datainfo.categoryName?'':'coa'" @click="gettalbFn">{{datainfo.categoryName||"请选择提案类别"}}</view>
  43. </uni-forms-item> -->
  44. <picker range-key='label' :value="talbidx" :range="talblist" @change='bindDateChangea'>
  45. <uni-forms-item label="提案类别" name="categoryName" required>
  46. <view class="lbtabp">
  47. <view :class="datainfo.categoryName?'':'coa'">{{datainfo.categoryName||"请选择提案类别"}}</view>
  48. </view>
  49. </uni-forms-item>
  50. </picker>
  51. <uni-forms-item label="提案类型" name="proposalType">
  52. <view class="checkbox">
  53. <uni-data-checkbox v-model="datainfo.proposalType" :localdata="typeList" />
  54. </view>
  55. </uni-forms-item>
  56. </view>
  57. <view class="boxs pdbox">
  58. <view class="titbox mb14 flexc">
  59. <view class="tit flexc flex1">
  60. <image :src="titimg"></image>
  61. <view>提案内容</view>
  62. </view>
  63. <view class="titr" @click="getPaiFn">一键排版</view>
  64. </view>
  65. <editor id="editor" :class="pbFlag?'pbbox':''" class="ql-container" placeholder="请输入提案内容" show-img-size show-img-toolbar
  66. show-img-resize @statuschange="onStatusChange" :read-only="readOnly" @ready="onEditorReady">
  67. </editor>
  68. <view class="edtip flext mb24 mt14"><text>*</text> 提案正文内容原则上不超过2000字,提案正文内容输入完毕后, 可点击右上角的“一键排版”按钮进行快速排版</view>
  69. </view>
  70. <view class="boxs pdbox">
  71. <view class="titbox mb14">
  72. <view class="tit flexc">
  73. <image :src="titimg"></image>
  74. <view>附件内容</view>
  75. </view>
  76. </view>
  77. <view class="flexcj mb10">
  78. <view class="fw f15 co34">添加附件</view>
  79. <view class="fjadd"><lsj-upload
  80. ref="lsjUpload"
  81. childId="upload1"
  82. :width="width"
  83. :height="height"
  84. :option="option"
  85. :size="size"
  86. :formats="formats"
  87. :debug="debug"
  88. :instantly="instantly"
  89. @progress=""
  90. @uploadEnd="onuploadEnd" >
  91. <view class="btn" :style="{width: width,height: height}">上传附件</view>
  92. </lsj-upload>
  93. </view>
  94. </view>
  95. <view class="ptb12" v-if="filelist&&filelist.length">
  96. <view class="fjlists" v-for="(ite,idx) in filelist" :key='idx'>
  97. <view class="flext" @click="getDown(ite.url)">
  98. <view class="imgl"><image :src="fjimg" ></image></view>
  99. <view class="tit">{{ite.name}}</view>
  100. </view>
  101. <!-- 删除 -->
  102. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  103. <image :src="delimg"></image>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="boxs pdbox" style="padding-bottom: 2rpx;">
  109. <view class="titbox mb14">
  110. <view class="tit flexc">
  111. <image :src="titimg"></image>
  112. <view>更多信息</view>
  113. </view>
  114. </view>
  115. <uni-forms-item label="联名提案" name="isJointly">
  116. <view class="checkbox">
  117. <uni-data-checkbox v-model="datainfo.isJointly" :localdata="sfList" />
  118. </view>
  119. </uni-forms-item>
  120. <uni-forms-item label="联名提案人员" name="proposalUserList" v-if="datainfo.isJointly=='是'">
  121. <view class="openbox" @click="getlmtaFn" :class="tary?'':'coa'">{{tary||"请选择联名提案人员"}}</view>
  122. </uni-forms-item>
  123. <!-- <uni-forms-item label="同意公开" name="isPublicity">
  124. <view class="checkbox">
  125. <uni-data-checkbox v-model="datainfo.isPublicity" :localdata="sfList" />
  126. </view>
  127. </uni-forms-item>
  128. <uni-forms-item label="内容公开" name="contentPublicity">
  129. <view class="checkbox">
  130. <uni-data-checkbox v-model="datainfo.contentPublicity" :localdata="sfList" />
  131. </view>
  132. </uni-forms-item>
  133. <uni-forms-item label="经过调研" name="isSurvey">
  134. <view class="checkbox">
  135. <uni-data-checkbox v-model="datainfo.isSurvey" :localdata="sfList" />
  136. </view>
  137. </uni-forms-item>
  138. <uni-forms-item label="第一次提出" name="isFirst">
  139. <view class="checkbox">
  140. <uni-data-checkbox v-model="datainfo.isFirst" :localdata="sfList" />
  141. </view>
  142. </uni-forms-item>
  143. <uni-forms-item label="由本人撰写" name="isPerson">
  144. <view class="checkbox">
  145. <uni-data-checkbox v-model="datainfo.isPerson" :localdata="sfList" />
  146. </view>
  147. </uni-forms-item> -->
  148. <uni-forms-item label="需要办理的协商方式" name="negotiateType">
  149. <view class="matab">
  150. <view class="list" :class="checkidx.indexOf(ite.label)!=-1?'act':''" v-for="(ite,idx) in matterlist" :key='idx' @click="getCheck(ite.label)">{{ite.label}}</view>
  151. </view>
  152. </uni-forms-item>
  153. <uni-forms-item label="建议承办的单位" name="proposedContractor">
  154. <uni-easyinput :inputBorder="false" type="text" v-model="datainfo.proposedContractor" placeholder="请输入单位名称" />
  155. </uni-forms-item>
  156. </view>
  157. <view class="addbtn">
  158. <view class="btn btn1" @click="getZanFnt">暂存</view>
  159. <view class="btn btn2" @click="getSubmit">提交</view>
  160. </view>
  161. </view>
  162. </uni-forms>
  163. </view>
  164. </template>
  165. <script>
  166. import config from '@/config'
  167. const baseUrl = config.baseUrl
  168. import { getToken } from '@/utils/auth'
  169. import { selectValue } from '@/utils/common.js';
  170. import {getCaseAddFn,getCaseDetailFn,getCaseEditFn,getCasetalbFn} from "@/api/mine/case.js"
  171. import {getDictionaryFn} from "@/api/mine/register.js"
  172. export default{
  173. data(){
  174. return{
  175. //附件
  176. option: {
  177. // 上传服务器地址,需要替换为你的接口地址
  178. url: baseUrl+'/common/upload', // 该地址非真实路径,需替换为你项目自己的接口地址
  179. // 上传附件的key
  180. name: 'file',
  181. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  182. header: {
  183. // 示例参数可删除
  184. 'Authorization': 'Bearer ' + getToken(),
  185. },
  186. // 根据你接口需求自定义body参数
  187. formData: {}
  188. },
  189. // 选择文件后是否立即自动上传,true=选择后立即上传
  190. instantly: true,
  191. // 必传宽高且宽高应与slot宽高保持一致
  192. width: '',
  193. height: '48rpx',
  194. // 限制允许上传的格式,空串=不限制,默认为空
  195. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,zip,rar,word,png,jpg,jpeg',
  196. // 文件上传大小限制
  197. size: 100,
  198. // 文件数量限制 默认10
  199. count: 5,
  200. // 文件回显列表
  201. files: new Map(),
  202. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  203. wxFiles: [],
  204. // 是否打印日志
  205. debug: false,
  206. filelist:[],
  207. pbFlag:false,
  208. readOnly:false,
  209. fjimg:require("@/work/static/images/fjimg.png"),
  210. delimg:require("@/work/static/images/delimg.png"),
  211. tipimg:require("@/work/static/images/tip.png"),
  212. titimg:require("@/work/static/images/titbg.png"),
  213. infobg:require("@/work/static/images/infobg.png"),
  214. datainfo:{
  215. "proposalUserId":this.$store.state.user.userId,//提案人ID
  216. "title":"",//标题
  217. "proposalName":this.$store.state.user.memberInfo.name,//提案人姓名
  218. "proposalPhone":this.$store.state.user.memberInfo.phonenumber,//提案人手机号码
  219. "boundary":this.$store.state.user.memberInfo.boundary,//界别
  220. "partyAffiliation":this.$store.state.user.memberInfo.partyAffiliation,//党派
  221. "contactAddress":this.$store.state.user.memberInfo.unit,//联系地址
  222. "categoryId":"",//提案类别id
  223. "categoryName":"",//提案类别
  224. "proposalType":'1',//提案类型(0大会提案 1平时提案)
  225. "proposalContent":"",//提案内容
  226. "isJointly":'否',//联名提案(0是 1否)
  227. "isPublicity":'是',//同意公开(0是 1否)
  228. "contentPublicity":'是',//内容公开(0是 1否)
  229. "isSurvey":'否',//经过调研(0是 1否)
  230. "isFirst":'否',//第一次提出(0是 1否)
  231. "isPerson":'否',//由本人撰写(0是 1否)
  232. "negotiateType":"",//需要办理的协商方式
  233. "proposedContractor":"",//建议承办单位
  234. "proposalUserList":[////提案人员
  235. ],
  236. "zxFjList":[//提案附件
  237. // { "name":"附件名称","url":"附件地址"},
  238. ],
  239. },
  240. typeList:[{text: '大会提案',value: '0'},{text: '平时提案',value: '1'}],
  241. sfList:[{text: '是',value: '是'},{text: '否',value: '否'}],
  242. matterlist:[],
  243. jblist:[],
  244. dplist:[],
  245. checkidx:[],
  246. editorCtx:'',
  247. tary:'',
  248. id:"",
  249. pagetype:'add',
  250. editinfo:'',
  251. talblist:[],
  252. talbidx:'',
  253. }
  254. },
  255. onUnload(){
  256. uni.$off('refreshtalb')
  257. uni.$off('refreshtary')
  258. },
  259. onLoad(e) {
  260. uni.$on('refreshtalb', (e) => {
  261. this.datainfo.categoryName=e.categoryName
  262. this.datainfo.categoryId=e.categoryId
  263. })
  264. uni.$on('refreshtary', (e) => {
  265. this.datainfo.proposalUserList=e.proposalUserList;
  266. this.tary=e.namelist.join('/')
  267. })
  268. this.init()
  269. this.getCasetalbFn()
  270. if(e.type=='edit'){
  271. this.id=e.id;
  272. this.pagetype='edit'
  273. this.getDetail()
  274. }
  275. if(e.type=='old'&&uni.getStorageSync('tjtaList')){
  276. var newObj=JSON.parse(JSON.stringify(uni.getStorageSync('tjtaList')))
  277. var params=newObj.params;
  278. this.datainfo=params;
  279. this.editinfo=params.proposalContent;
  280. if(params.zxFjList&&params.zxFjList.length){
  281. this.filelist=JSON.parse(JSON.stringify(params.zxFjList))
  282. }
  283. var taryList=params.proposalUserList;
  284. if(taryList&&taryList.length){
  285. var newArr=[]
  286. taryList.forEach(ite=>{
  287. newArr.push(ite.name)
  288. })
  289. this.tary=newArr.join('/')
  290. }
  291. this.checkidx=newObj.checkidx
  292. }
  293. },
  294. methods:{
  295. kayType(ite,list){
  296. return selectValue(list, ite);
  297. },
  298. //提案类别
  299. getCasetalbFn(){
  300. getCasetalbFn().then(res=>{
  301. if(res.code==200){
  302. this.talblist = res.data.map(v => {
  303. return {
  304. label: v.label,
  305. value: v.id
  306. }
  307. })
  308. }
  309. })
  310. },
  311. bindDateChangea(e){
  312. var val=e.detail.value;
  313. this.datainfo.categoryName=this.talblist[val].label;
  314. this.datainfo.categoryId=this.talblist[val].value;
  315. },
  316. init(){
  317. getDictionaryFn('negotiation_mode').then(res=>{
  318. if(res.code==200&&res.data.length){
  319. this.matterlist = res.data.map(v => {
  320. return {
  321. label: v.dictLabel,
  322. value: v.dictValue
  323. }
  324. })
  325. }
  326. })
  327. // 界别circles
  328. getDictionaryFn('circles').then(res=>{
  329. if(res.code==200&&res.data.length){
  330. this.jblist = res.data.map(v => {
  331. return {
  332. label: v.dictLabel,
  333. value: v.dictValue
  334. }
  335. })
  336. }
  337. })
  338. // 党派
  339. // getDictionaryFn('political_parties').then(res=>{
  340. // if(res.code==200&&res.data.length){
  341. // this.dplist = res.data.map(v => {
  342. // return {
  343. // label: v.dictLabel,
  344. // value: v.dictValue
  345. // }
  346. // })
  347. // }
  348. // })
  349. },
  350. getDetail(){
  351. var that=this;
  352. getCaseDetailFn(this.id).then(res=>{
  353. if(res.code==200){
  354. var data=res.data;
  355. this.datainfo=res.data;
  356. if(data.zxFjList&&data.zxFjList.length){
  357. this.filelist=JSON.parse(JSON.stringify(data.zxFjList))
  358. }
  359. this.editinfo=data.proposalContent;
  360. uni.createSelectorQuery().select('#editor').context(function(res) {
  361. that.editorCtx = res.context;
  362. that.editorCtx.setContents({
  363. html:data.proposalContent
  364. })
  365. }).exec();
  366. var taryList=data.proposalUserList;
  367. if(taryList&&taryList.length){
  368. var newArr=[]
  369. taryList.forEach(ite=>{
  370. newArr.push(ite.name)
  371. })
  372. this.tary=newArr.join('/')
  373. }
  374. that.checkidx=data.negotiateType.split(',')
  375. // this.dwdetList=res.data.proposalUnitReplyList;
  376. }
  377. })
  378. },
  379. getCheck(id){
  380. var idx=this.checkidx.indexOf(id)
  381. if(idx!=-1){
  382. this.checkidx.splice(idx,1)
  383. }else{
  384. this.checkidx.push(id)
  385. }
  386. },
  387. getPaiFn(){
  388. this.pbFlag=true;
  389. },
  390. gettalbFn(){
  391. var obj={
  392. id:this.datainfo.categoryId,
  393. name:this.datainfo.categoryName,
  394. }
  395. this.$tab.navigateTo('/work/pages/case/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  396. },
  397. getlmtaFn(){
  398. var obj={
  399. list:this.datainfo.proposalUserList
  400. }
  401. this.$tab.navigateTo('/work/pages/case/lmtapeople?data='+encodeURIComponent(JSON.stringify(obj)))
  402. },
  403. // 暂存
  404. getZanFnt(){
  405. var that=this;
  406. that.editorCtx.getContents({
  407. success: function(data) {
  408. // proposalContent=data.html;
  409. // that.datainfo.zxFjList=JSON.parse(JSON.stringify(that.filelist));
  410. var params=that.datainfo;
  411. params.proposalContent=data.html;
  412. if(that.checkidx&&that.checkidx.length>0){
  413. params.negotiateType=that.checkidx.join(',')
  414. }
  415. var obj={
  416. params:params,
  417. checkidx:that.checkidx
  418. }
  419. uni.setStorageSync('tjtaList', JSON.parse(JSON.stringify(obj)))
  420. that.$toast("暂存成功")
  421. }
  422. })
  423. },
  424. getSubmit(){
  425. var that=this;
  426. if(!this.datainfo.title){
  427. this.$toast("请输入标题")
  428. return
  429. }
  430. if(!this.datainfo.categoryName){
  431. this.$toast("请选择提案类别")
  432. return
  433. }
  434. if(this.datainfo.isJointly==0&&!this.tary){
  435. this.$toast("请选择联名提案人员")
  436. return
  437. }
  438. var proposalContent='';
  439. that.editorCtx.getContents({
  440. success: function(data) {
  441. var params=that.datainfo;
  442. params.proposalContent=data.html;
  443. if(that.checkidx&&that.checkidx.length>0){
  444. params.negotiateType=that.checkidx.join(',')
  445. }
  446. if(that.pagetype=='add'){
  447. getCaseAddFn(params).then(res=>{
  448. if(res.code==200){
  449. uni.removeStorageSync('tjtaList')
  450. that.$toast("提交成功")
  451. uni.$emit("refreshlist")
  452. setTimeout(function(){
  453. uni.navigateBack({
  454. delta: 1 //返回层数,2则上上页
  455. });
  456. },1200)
  457. }
  458. })
  459. }else{
  460. getCaseEditFn(params).then(res=>{
  461. if(res.code==200){
  462. that.$toast("修改成功")
  463. uni.$emit("refreshdetail")
  464. setTimeout(function(){
  465. uni.navigateBack({
  466. delta: 1 //返回层数,2则上上页
  467. });
  468. },1200)
  469. }
  470. })
  471. }
  472. }
  473. })
  474. },
  475. onuploadEnd(item) {
  476. var newobj={}
  477. var responseText=JSON.parse(item.responseText)
  478. newobj.name=responseText.originalFilename;
  479. newobj.url=responseText.fileName;
  480. this.filelist.push(newobj)
  481. this.datainfo.zxFjList=JSON.parse(JSON.stringify(this.filelist))
  482. },
  483. getDelFj(idx){
  484. var that=this;
  485. uni.showModal({
  486. title: '确认删除',
  487. content: "是否确认删除",
  488. cancelText: '取消',
  489. confirmText: '确认',
  490. success: function(res) {
  491. if (res.confirm) {
  492. that.filelist.splice(idx,1)
  493. that.datainfo.zxFjList=JSON.parse(JSON.stringify(that.filelist))
  494. } else if (res.cancel) {
  495. }
  496. }
  497. });
  498. },
  499. getDown(e){
  500. uni.showLoading({
  501. title: '加载中'
  502. });
  503. var url=baseUrl+e;
  504. uni.downloadFile({
  505. url: url,//文件的下载路径
  506. success(result) {
  507. uni.hideLoading()
  508. var filePath = result.tempFilePath;
  509. uni.openDocument({
  510. filePath: filePath,
  511. showMenu: true,
  512. success: function (res) {
  513. // console.log('打开文档成功');
  514. }
  515. });
  516. },
  517. fail(res) {uni.hideLoading()}
  518. })
  519. },
  520. onStatusChange(){
  521. },
  522. onEditorReady(){
  523. var that=this;
  524. uni.createSelectorQuery().select('#editor').context(function(res) {
  525. that.editorCtx = res.context;
  526. that.editorCtx.setContents({
  527. html:that.editinfo
  528. })
  529. }).exec();
  530. }
  531. }
  532. }
  533. </script>
  534. <style scoped lang="scss">
  535. .bgtop{height: 150rpx;background-color: $com-cd3;width: 100%;}
  536. .pdbox{padding: 34rpx 24rpx 16rpx;}
  537. .addbox /deep/ .uni-forms-item{margin-bottom:36rpx;}
  538. .addbox /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 30rpx;}
  539. .addbox /deep/ .uni-forms-item__label{font-weight: bold;font-size: 30rpx;color: #343434;width: 198rpx !important;padding-left:20rpx;}
  540. .addbox /deep/ .is-required{position: absolute;left: 0;top: 50%;margin-top: -10rpx;}
  541. .addbox /deep/ .uni-data-checklist{display: flex;align-items: center;justify-content: flex-end;}
  542. .addbox /deep/ .uni-easyinput__placeholder-class{font-weight: 500;font-size: 30rpx;color: #AAAAAA;}
  543. .addbox /deep/ .checklist-box{margin-right: 0 !important;margin-left: 40rpx !important;}
  544. .fjadd{
  545. .btn{font-weight: bold;font-size: 30rpx;color: #1D64E2;margin: 0;display: flex;align-items: center;}
  546. }
  547. .addbox{margin-top: -120rpx;
  548. padding: 0 24rpx 50rpx;
  549. .boxs{background: #FFFFFF;border-radius: 30rpx;margin-bottom: 24rpx;overflow: hidden;position: relative;
  550. .infobg{width: 102rpx;height: 106rpx;position: absolute;right: 26rpx;bottom: 22rpx;}
  551. .tips{background: #F1F6FF;padding: 18rpx 38rpx;display: flex;align-items: flex-start;
  552. image{width: 20rpx;height: 26rpx;margin-right: 16rpx;flex:0 0 auto;margin-top: 4rpx;}
  553. view{font-weight: 500;font-size: 26rpx;color: #1D64E2;}
  554. }
  555. .titbox{
  556. .tit{
  557. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  558. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  559. }
  560. .titr{width: 146rpx;height: 50rpx;background: #E4EEFF;border-radius: 26rpx;font-weight: 500;font-size: 24rpx;color: #1D64E2;text-align: center;line-height: 50rpx;}
  561. }
  562. .titinf{display: flex;flex-wrap: wrap;
  563. .txt{font-weight: 500;font-size: 28rpx;margin-bottom: 18rpx;flex:0 1 auto;min-width: 50%;display: flex;align-items: flex-start;color: #222327;
  564. text{flex: 0 0 auto;color: #9F9F9F;}
  565. }
  566. }
  567. .openbox{display: flex;align-items: center;justify-content: flex-end;font-weight: 500;
  568. font-size: 30rpx;height: 100%;color: #222327;
  569. }
  570. .edtip{font-weight: 500;font-size: 22rpx;color: #FF0000;
  571. text{margin: 4rpx 8rpx 0 0;}
  572. &.pa{position: absolute;right: 0;bottom: -15px;text-align: right;width: 702rpx;}
  573. }
  574. }
  575. }
  576. .matab{display: flex;align-items: center;flex-wrap: nowrap;overflow: auto;position: absolute;left: 0;right: -48rpx;
  577. .list{min-width:112rpx;height: 50rpx;background: #ffffff;border-radius: 25rpx;font-size: 30rpx;font-weight: 500;box-sizing: border-box;
  578. color: #AAAAAA;padding: 0 24rpx;box-sizing: border-box;margin-left:24rpx;flex: 0 0 auto;border: 2rpx solid #C1C1C1;display: flex;align-items: center;justify-content: center;
  579. &.act{background: #E4EEFF;color: #1D64E2;border: none;}
  580. }
  581. }
  582. // 附件
  583. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  584. image{margin-right: 18rpx;flex: 0 0 auto;}
  585. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 16rpx;
  586. image{width: 26rpx;height: 24rpx;}
  587. }
  588. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;}
  589. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;
  590. image{width: 26rpx;height: 26rpx;}
  591. }
  592. }
  593. // 按钮
  594. .addbtn{display: flex;align-items: center;justify-content: space-between;padding-top: 26rpx;
  595. .btn{width: 336rpx;height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;justify-content: center;
  596. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  597. &.btn2{background: #1D64E2;color: #ffffff;}
  598. }
  599. }
  600. .addbox /deep/ .pbbox .ql-editor p{text-indent: 2rem;}
  601. </style>