add.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  1. <template>
  2. <view>
  3. <u-navbar :titleLong="fieldInfo.title">
  4. </u-navbar>
  5. <view class="businessMain" :style="'font-size:'+fieldInfo.fontsize+'rpx'">
  6. <view class="businessTitle" v-if="false">{{fieldInfo.title}}</view>
  7. <view v-for="(item,i) in fieldList" :key="i"
  8. class="oawork-item" :class="getClass(item)">
  9. <template v-if="item.type.indexOf('uview')>-1">
  10. <view v-if="item.type.indexOf('divider')>-1">
  11. <u-divider bg-color="#fff" border-color="#6d6d6d">{{item.text}}</u-divider>
  12. </view>
  13. </template>
  14. <template v-else>
  15. <view class="oawork-item1">
  16. <view class="oawork-item1_a" v-if="item.text">{{item.serial}}{{item.text}}<span v-if="item.isrequset" style="color:red">*</span>
  17. </view>
  18. <view class="oawork-item1_b" v-if="item.role==null||item.role.indexOf('0')>-1||item.role.indexOf('0')>-1">
  19. <template v-if="item.view">
  20. {{formData[item.key]?formData[item.key]:getViewItem(item)}}
  21. </template>
  22. <template v-else>
  23. <template v-if="item.type.indexOf('text')>-1">
  24. <u-input v-model="formData[item.key]" :placeholder="'请输入'+item.text"
  25. :placeholderStyle="placeholderStyle" class="oawork-line"
  26. :customStyle="{textAlign: 'right1'}" />
  27. </template>
  28. <template v-if="item.type.indexOf('textnumber')>-1">
  29. <u-input v-model="formData[item.key]" type="number" maxlength="10" :placeholder="'请输入'+item.text"
  30. :placeholderStyle="placeholderStyle" class="oawork-line"
  31. :customStyle="{textAlign: 'right1'}" />
  32. </template>
  33. <template v-if="item.type.indexOf('radio')>-1">
  34. <u-radio-group v-model="formData[item.key]">
  35. <u-radio v-for="(item, index) in item.list?item.list:radioListDefault"
  36. :key="index" :name="item.value">
  37. {{item.name}}
  38. </u-radio>
  39. </u-radio-group>
  40. </template>
  41. <template v-if="item.type.indexOf('selecttime')>-1">
  42. <u-calendar max-date="2060-01-01" v-model="showCalendar" mode="date"
  43. @change="changeCalendar"></u-calendar>
  44. <view @click="showCalendar = true,keyCalendar=item">
  45. {{formData[item.key]?formData[item.key]:getViewItem(item)}}</view>
  46. </template>
  47. <template v-if="item.type.indexOf('selecttime2')>-1">
  48. <u-calendar max-date="2060-01-01" v-model="showCalendar" mode="range"
  49. @change="changeCalendar2"></u-calendar>
  50. <view @click="showCalendar = true,keyCalendar=item" v-show="formData[item.key]">
  51. {{formData[item.key]?formData[item.key]:''}}至{{formData[item.key2]?formData[item.key2]:''}}
  52. </view>
  53. <view @click="showCalendar = true,keyCalendar=item" v-show="!formData[item.key]">
  54. 请选择{{item.text}}
  55. </view>
  56. </template>
  57. </template>
  58. </view>
  59. <view class="oawork-item1_c" v-if="item.type.indexOf('unit')>-1">
  60. {{item.unit}}
  61. </view>
  62. </view>
  63. <view class="oawork-item2" v-if="item.role==null||item.role.indexOf('0')>-1||item.role.indexOf('0')>-1" >
  64. <template v-if="item.type.indexOf('textlong')>-1">
  65. <u-input v-model="formData[item.key]" :placeholder="'请输入'+item.text"
  66. :placeholderStyle="placeholderStyle" class="oawork-line" type="textarea" />
  67. </template>
  68. <template v-if="item.type.indexOf('upload')>-1">
  69. <view class="upload">
  70. <u-upload-file-all ref="uUpload" :action="action" :max-size="50 * 1024 * 1024"
  71. :file-max-size="50 * 1024 * 1024" :maxCount="9" :form-data="uploadData"
  72. :header="header" :file-list="fileList"></u-upload-file-all>
  73. </view>
  74. </template>
  75. <template v-if="item.type.indexOf('texteditor')>-1">
  76. <view class="container">
  77. <view class="page-body">
  78. <view class='wrapper'>
  79. <view class='toolbar' @tap="format" style="overflow-y: auto;">
  80. <view :class="formats.bold ? 'ql-active' : ''"
  81. class="iconfont icon-zitijiacu" data-name="bold"></view>
  82. <view :class="formats.italic ? 'ql-active' : ''"
  83. class="iconfont icon-zitixieti" data-name="italic"></view>
  84. <view :class="formats.underline ? 'ql-active' : ''"
  85. class="iconfont icon-zitixiahuaxian" data-name="underline"></view>
  86. <view :class="formats.strike ? 'ql-active' : ''"
  87. class="iconfont icon-zitishanchuxian" data-name="strike"></view>
  88. <view :class="formats.align === 'center' ? 'ql-active' : ''"
  89. class="iconfont icon-juzhongduiqi" data-name="align"
  90. data-value="center"></view>
  91. <view :class="formats.align === 'right' ? 'ql-active' : ''"
  92. class="iconfont icon-youduiqi" data-name="align" data-value="right">
  93. </view>
  94. <view :class="formats.align === 'justify' ? 'ql-active' : ''"
  95. class="iconfont icon-zuoyouduiqi" data-name="align"
  96. data-value="justify"></view>
  97. <view class="iconfont icon-clearedformat" @tap="removeFormat"></view>
  98. <view :class="formats.color === '#0000ff' ? 'ql-active' : ''"
  99. class="iconfont icon-text_color" data-name="color" data-value="#0000ff">
  100. </view>
  101. <view :class="formats.backgroundColor === '#00ff00' ? 'ql-active' : ''"
  102. class="iconfont icon-fontbgcolor" data-name="backgroundColor"
  103. data-value="#00ff00"></view>
  104. <view class="iconfont icon-date" @tap="insertDate"></view>
  105. <view class="iconfont icon--checklist" data-name="list" data-value="check">
  106. </view>
  107. <view :class="formats.list === 'ordered' ? 'ql-active' : ''"
  108. class="iconfont icon-youxupailie" data-name="list" data-value="ordered">
  109. </view>
  110. <view :class="formats.list === 'bullet' ? 'ql-active' : ''"
  111. class="iconfont icon-wuxupailie" data-name="list" data-value="bullet">
  112. </view>
  113. <view class="iconfont icon-undo" @tap="undo"></view>
  114. <view class="iconfont icon-redo" @tap="redo"></view>
  115. <view class="iconfont icon-outdent" data-name="indent" data-value="-1">
  116. </view>
  117. <view class="iconfont icon-indent" data-name="indent" data-value="+1">
  118. </view>
  119. <view class="iconfont icon-fengexian" @tap="insertDivider"></view>
  120. <view class="iconfont icon-charutupian" @tap="insertImage"></view>
  121. <view :class="formats.header === 1 ? 'ql-active' : ''"
  122. class="iconfont icon-format-header-1" data-name="header"
  123. :data-value="1"></view>
  124. <view :class="formats.script === 'sub' ? 'ql-active' : ''"
  125. class="iconfont icon-zitixiabiao" data-name="script" data-value="sub">
  126. </view>
  127. <view :class="formats.script === 'super' ? 'ql-active' : ''"
  128. class="iconfont icon-zitishangbiao" data-name="script"
  129. data-value="super"></view>
  130. <view class="iconfont icon-shanchu" @tap="clear"></view>
  131. <view :class="formats.direction === 'rtl' ? 'ql-active' : ''"
  132. class="iconfont icon-direction-rtl" data-name="direction"
  133. data-value="rtl"></view>
  134. </view>
  135. <view class="editor-wrapper">
  136. <editor id="editor" class="ql-container"
  137. placeholder="开始输入..." show-img-size
  138. show-img-toolbar show-img-resize @statuschange="onStatusChange"
  139. :read-only="readOnly" @ready="onEditorReady">
  140. </editor>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. </template>
  146. </view>
  147. </template>
  148. </view>
  149. <view class="submitBtn" >
  150. <u-button type="info" :class="{
  151. submitBtn30:isReady,
  152. submitBtn100:!isReady
  153. }" @click="submit(0)">保存</u-button>
  154. <u-button type="primary" v-if="isReady" class="submitBtn60" @click="submit(1)">提交</u-button>
  155. </view>
  156. </view>
  157. <approve-view :activityList="activityList" :initStart="false" :skip="fieldInfo.skip" ></approve-view>
  158. </view>
  159. </template>
  160. <script>
  161. import {
  162. dataJsGetInfo
  163. } from '../data.js'
  164. import * as API from '@/apis/pagejs/oa.js'
  165. import approveView from '@/components/ApproveView.vue'
  166. import {
  167. currentTimeStamp,
  168. parseUnixTime,
  169. } from '@/apis/utils'
  170. export default {
  171. components: {
  172. approveView
  173. },
  174. data() {
  175. return {
  176. //editor
  177. readOnly: false,
  178. formats: {},
  179. editorCtx:"",
  180. //editor
  181. oatype: "",
  182. showCalendar: false,
  183. keyCalendar: {},
  184. placeholderStyle: "font-size: 24rpx",
  185. radioListDefault: [{
  186. name: '是',
  187. value: '1'
  188. }, {
  189. name: '否',
  190. value: '0'
  191. }, ],
  192. fieldInfo: {},
  193. fieldList: [],
  194. activityList: [
  195. ],
  196. action: "",
  197. formData: {},
  198. personInfo: {},
  199. createTime: "",
  200. createTime2: "",
  201. uploadData: {},
  202. fileList: [],
  203. header: {
  204. },
  205. id: "",
  206. placeholder: '开始输入...',
  207. isReady:true,
  208. themeWordKey:"",
  209. }
  210. },
  211. onLoad(op) {
  212. this.oatype = op.oatype
  213. if (op.id) {
  214. this.id = op.id
  215. }
  216. this.fieldInfo = dataJsGetInfo(op.oatype)
  217. this.fieldList = this.fieldInfo.list;
  218. this.getProcessDetails();
  219. },
  220. methods: {
  221. inspect(){
  222. // if (!this.form.verifyCode) {
  223. // uni.showToast({
  224. // title: "请输入验证码",
  225. // icon: "none"
  226. // })
  227. // return
  228. // }
  229. for(var i in this.fieldList){
  230. var item=this.fieldList[i]
  231. if(item.isrequset){
  232. //(item)
  233. var key=this.formData[item.key]
  234. if(!key){
  235. uni.showToast({
  236. title: "请输入"+item.text,
  237. icon: "none"
  238. })
  239. return false
  240. }
  241. }
  242. }
  243. return true
  244. },
  245. submit(draftStatus) {
  246. if(this.editorCtx){
  247. var _this=this
  248. this.formData[this.themeWordKey]=this.editorCtx.getContents({
  249. success(obj){
  250. if(obj.html){
  251. _this.formData[_this.themeWordKey]=obj.html
  252. }else{
  253. _this.formData[_this.themeWordKey]=""
  254. }
  255. console.log(obj.html)
  256. _this.submitApi(draftStatus);
  257. }
  258. })
  259. }else{
  260. this.submitApi(draftStatus);
  261. }
  262. },
  263. submitApi(draftStatus) {
  264. var activityData=[];
  265. for(var i in this.activityList){
  266. var item=this.activityList[i]
  267. if(item.checked){
  268. continue
  269. }
  270. var sppush=false;
  271. var activityObj={
  272. activityId:item.id,
  273. userData:[]
  274. }
  275. if(item.wfProcinstActRegUserList&&item.wfProcinstActRegUserList.length){
  276. for(var j in item.wfProcinstActRegUserList){
  277. var obj=item.wfProcinstActRegUserList[j]
  278. //obj.checked=true
  279. if(obj.checked){
  280. activityObj.userData.push({
  281. userId:obj.id,
  282. processType:obj.processType
  283. })
  284. if(obj.processType==1){
  285. sppush=true//至少有1人是审批角色
  286. }
  287. }
  288. }
  289. }
  290. //[{activityId:1,userData:[{userId:1,processType:1},{userId:2,processType:2}]},{activityId:2,userData:[{userId:3,processType:1},{userId:4,processType:2}]}]
  291. if(!sppush){
  292. uni.showToast({
  293. title: "流程配置["+item.activityName+"]请至少勾选1人审批",
  294. icon: "none"
  295. })
  296. return false
  297. }
  298. activityData.push(activityObj);
  299. }
  300. if(activityData.length==0){
  301. uni.showToast({
  302. title: "流程配置为空",
  303. icon: "none"
  304. })
  305. return false
  306. }
  307. if(draftStatus){
  308. var c=this.inspect()
  309. if(!c){
  310. return
  311. }
  312. }
  313. uni.showLoading({
  314. title: "加载中",
  315. mask: true,
  316. })
  317. this.formData.draftStatus = draftStatus
  318. this.formData.formId = this.oatype
  319. this.formData.activityData=JSON.stringify(activityData)
  320. if(this.$refs.uUpload){
  321. var list=this.$refs.uUpload[0].lists.filter(val => {
  322. return val.progress == 100;
  323. })
  324. if(list.length){
  325. var str =list.map(item=>{
  326. //(item)
  327. return JSON.stringify( {
  328. name:item.file?item.file.name:item.name,
  329. url:item.response?item.response.data.fileUrl:item.url
  330. })
  331. })
  332. this.formData.annexFile=JSON.stringify(str)
  333. }
  334. }
  335. API.application(this.fieldInfo.url, this.formData).then((res) => {
  336. uni.hideLoading();
  337. const eventChannel = this.getOpenerEventChannel();
  338. eventChannel.emit('refreshData');
  339. uni.showModal({
  340. title:"提示",
  341. showCancel:false,
  342. content:"操作成功!",
  343. success() {
  344. uni.navigateBack()
  345. }
  346. })
  347. ////(this.formData.maintenanceDescription,res.data.applyContent.maintenanceDescription)
  348. }).catch(error => {
  349. uni.showToast({
  350. title: error,
  351. icon: "none"
  352. })
  353. })
  354. },
  355. getProcessDetails() {
  356. uni.showLoading({
  357. title: "加载中",
  358. mask: true,
  359. })
  360. API.processDetails({
  361. formId: this.oatype,
  362. id: this.id
  363. }).then((res) => {
  364. uni.hideLoading();
  365. this.activityList = res.data.activityList
  366. if(this.activityList.length==0){
  367. this.isReady=false;
  368. uni.showToast({
  369. title: "未配置审批流程,请联系管理员",
  370. icon: "none"
  371. })
  372. }else{
  373. this.isReady=true;
  374. for(var i in this.activityList){
  375. var item=this.activityList[i]
  376. if(item.wfProcinstActRegUserList&&item.wfProcinstActRegUserList.length){
  377. for(var j in item.wfProcinstActRegUserList){
  378. var obj=item.wfProcinstActRegUserList[j]
  379. if(item.wfProcinstActRegUserList.length==1){
  380. obj.checked=true
  381. }else{
  382. obj.checked=false
  383. }
  384. if(item.isAlterChecker){
  385. obj.checked=true
  386. }
  387. }
  388. }
  389. if(item.wfProcinstActRegUserList&&item.wfProcinstActRegUserList.length==0){
  390. this.isReady=false;
  391. uni.showToast({
  392. title: "未找到相应审批人,请联系管理员",
  393. icon: "none"
  394. })
  395. }
  396. }
  397. }
  398. var applyContent = res.data.applyContent
  399. this.init()
  400. if(applyContent){
  401. this.formData.id=applyContent.id
  402. for (var i in this.fieldList) {
  403. var obj = this.fieldList[i];
  404. //(this.formData[obj.key], applyContent[obj.key])
  405. var data=applyContent[obj.key];
  406. if(data==null){
  407. continue
  408. }
  409. if (obj.type.indexOf("upload") > -1) {
  410. if(data){
  411. var sz=JSON.parse(data).map(str=>{
  412. var item=JSON.parse(str)
  413. return {
  414. url:item.url,name:item.name,view:1
  415. }
  416. })
  417. this.fileList=sz//data.split(",").map(item=>{return {url:item,item.name=,view:1}})
  418. }
  419. }
  420. this.formData[obj.key] = applyContent[obj.key]
  421. }
  422. if(this.editorCtx){
  423. var _this=this
  424. //console.log(_this.formData.themeWord)
  425. this.editorCtx.setContents({
  426. html:_this.formData[_this.themeWordKey]
  427. })
  428. }
  429. }
  430. //console.log("formData",this.formData)
  431. ////(this.formData.maintenanceDescription,res.data.applyContent.maintenanceDescription)
  432. }).catch(error => {
  433. this.isReady=false;
  434. if(!error){
  435. error="未配置审批流程,请联系管理员"
  436. }
  437. uni.showToast({
  438. title: error,
  439. icon: "none"
  440. })
  441. })
  442. },
  443. saveStorage() {
  444. },
  445. gotoSelectPerson(item) {
  446. this.saveStorage();
  447. uni.navigateTo({
  448. url: "/pages/oawork/business/select"
  449. })
  450. },
  451. changeCalendar(e) {
  452. this.formData[this.keyCalendar.key] = e.result;
  453. },
  454. changeCalendar2(e) {
  455. this.formData[this.keyCalendar.key] = e.startDate;
  456. this.formData[this.keyCalendar.key2] = e.endDate;
  457. },
  458. init() {
  459. this.personInfo = this.carhelp.getPersonInfo()
  460. this.createTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}');
  461. this.createTime2 = parseUnixTime(currentTimeStamp());
  462. for (var i in this.fieldList) {
  463. var obj = this.fieldList[i];
  464. this.formData[obj.key] = ""
  465. if(obj.type.indexOf('texteditor')>-1){
  466. this.themeWordKey=obj.key
  467. console.log("this.themeWordKey",this.themeWordKey)
  468. }
  469. }
  470. this.action = process.car.BASE_URL + "uploadPicture"
  471. this.uploadData.subFolder = "oawork11" + this.oatype;
  472. //接口应该免登陆
  473. var token = this.carhelp.getToken()
  474. this.header = {
  475. 'Authorization': token
  476. }
  477. },
  478. getViewItem(item) {
  479. //(item)
  480. if (item.sql) {
  481. var obj = this;
  482. for (var i in item.sql) {
  483. var k = item.sql[i];
  484. obj = obj[k]
  485. this.formData[item.key]=obj
  486. }
  487. return obj;
  488. }
  489. },
  490. getClass(item) {
  491. if (item) {
  492. var list = item.type.map(it => {
  493. return 'oawork-' + it
  494. })
  495. return list.join(' ')
  496. }
  497. },
  498. //editor
  499. readOnlyChange() {
  500. this.readOnly = !this.readOnly
  501. },
  502. onEditorReady() {
  503. // #ifdef MP-BAIDU
  504. this.editorCtx = requireDynamicLib('editorLib').createEditorContext('editor');
  505. // #endif
  506. // #ifdef APP-PLUS || MP-WEIXIN || H5
  507. uni.createSelectorQuery().select('#editor').context((res) => {
  508. this.editorCtx = res.context
  509. if(this.editorCtx){
  510. var _this=this
  511. //console.log(_this.formData.themeWord)
  512. this.editorCtx.setContents({
  513. html:_this.formData[_this.themeWordKey]
  514. })
  515. }
  516. }).exec()
  517. // #endif
  518. },
  519. undo() {
  520. this.editorCtx.undo()
  521. },
  522. redo() {
  523. this.editorCtx.redo()
  524. },
  525. format(e) {
  526. let {
  527. name,
  528. value
  529. } = e.target.dataset
  530. if (!name) return
  531. // //('format', name, value)
  532. this.editorCtx.format(name, value)
  533. },
  534. onStatusChange(e) {
  535. const formats = e.detail
  536. this.formats = formats
  537. },
  538. insertDivider() {
  539. this.editorCtx.insertDivider({
  540. success: function() {
  541. //('insert divider success')
  542. }
  543. })
  544. },
  545. clear() {
  546. uni.showModal({
  547. title: '清空编辑器',
  548. content: '确定清空编辑器全部内容?',
  549. success: res => {
  550. if (res.confirm) {
  551. this.editorCtx.clear({
  552. success: function(res) {
  553. //("clear success")
  554. }
  555. })
  556. }
  557. }
  558. })
  559. },
  560. removeFormat() {
  561. this.editorCtx.removeFormat()
  562. },
  563. insertDate() {
  564. const date = new Date()
  565. const formatDate = `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`
  566. this.editorCtx.insertText({
  567. text: formatDate
  568. })
  569. },
  570. insertImage() {
  571. uni.chooseImage({
  572. count: 1,
  573. success: (res) => {
  574. this.editorCtx.insertImage({
  575. src: res.tempFilePaths[0],
  576. alt: '图像',
  577. success: function() {
  578. //('insert image success')
  579. }
  580. })
  581. }
  582. })
  583. },
  584. //editor
  585. }
  586. }
  587. </script>
  588. <style scoped lang="scss">
  589. .oawork-line {
  590. border-bottom: 1px solid #c8c8c8;
  591. }
  592. .oawork-paddingTop {
  593. padding-top: 40rpx !important;
  594. }
  595. .approveMain_text {
  596. font-weight: bold;
  597. color: rgba(51, 51, 51, 1);
  598. font-size: 32rpx;
  599. padding-bottom: 20rpx;
  600. padding-left: 32rpx;
  601. border-bottom: 1px solid #C8C8C8;
  602. margin-bottom: 16rpx;
  603. // padding-top: 32rpx;
  604. }
  605. .businessMain {
  606. /deep/.uni-input-input {
  607. font-size: 24rpx;
  608. }
  609. font-size: 32rpx;
  610. background: #fff;
  611. padding-top: 10rpx;
  612. padding-bottom: 50rpx;
  613. margin-bottom: 40rpx;
  614. display: flex;
  615. flex-wrap: wrap;
  616. .oawork-item {
  617. padding: 4rpx 16rpx 4rpx 16rpx;
  618. width: 100%;
  619. .oawork-item1 {
  620. display: flex;
  621. align-items: center;
  622. .oawork-item1_a {
  623. min-width: 160rpx;
  624. font-weight: bold;
  625. }
  626. .oawork-item1_b {
  627. color: #777777;
  628. width: 100%;
  629. text-align: right;
  630. }
  631. .oawork-item1_c {
  632. padding-left: 16rpx;
  633. }
  634. }
  635. }
  636. .oawork-selecttime,
  637. .oawork-selecttime2 {
  638. margin: 10rpx 0;
  639. display: flex;
  640. .oawork-item1 {
  641. width: 100%;
  642. }
  643. .oawork-item1_b {
  644. display: flex;
  645. align-items: center;
  646. justify-content: flex-end;
  647. height: 100%;
  648. border-bottom: 1px solid #c8c8c8;
  649. }
  650. }
  651. .oawork-itemrow {
  652. .oawork-item1_a {
  653. font-weight: 400 !important;
  654. width: 200%;
  655. }
  656. }
  657. // .oawork-itemline {
  658. // .oawork-item1_a {
  659. // width: 100%;
  660. // }
  661. // }
  662. .oawork-texteditor{
  663. margin-top: 10px;
  664. }
  665. .oawork-textlong,.oawork-itemline {
  666. .oawork-item1_a {
  667. width: 100%;
  668. }
  669. }
  670. .oawork-title {
  671. padding: 20rpx 0px 4rpx 20rpx;
  672. .oawork-item1_a {
  673. width: 100%;
  674. font-size: 32rpx;
  675. }
  676. }
  677. .width200 {
  678. // padding:20rpx 0px 4rpx 20rpx;
  679. .oawork-item1_a {}
  680. }
  681. /deep/.oawork-width49 {
  682. padding: 4rpx 0px 4rpx 10rpx;
  683. width: 49%;
  684. .oawork-item1_a {
  685. font-size: 28rpx;
  686. min-width: 140rpx !important;
  687. }
  688. }
  689. }
  690. .approveMain {
  691. background: #fff;
  692. padding-bottom: 180rpx;
  693. padding-top: 20rpx;
  694. .approveItem_main {
  695. display: flex;
  696. justify-content: space-between;
  697. margin-bottom: 30rpx;
  698. margin-right: 32rpx;
  699. .approveItem_a1 {
  700. .approveItem_a1_text1 {
  701. color: rgba(16, 16, 16, 1);
  702. font-size: 32rpx;
  703. }
  704. .approveItem_a1_text2 {
  705. margin-bottom: 16rpx;
  706. color: rgba(119, 119, 119, 1);
  707. font-size: 24rpx;
  708. }
  709. .approveItem_a1_text3 {
  710. color: rgba(51, 51, 51, 1);
  711. font-size: 24rpx;
  712. display: flex;
  713. flex-direction: row;
  714. flex-wrap: wrap;
  715. .approveItem_a1_text3Img {
  716. margin-right: 40rpx;
  717. margin-top: 10rpx;
  718. /deep/.u-badge {
  719. position: relative !important;
  720. top: -40rpx !important;
  721. right: 10rpx !important;
  722. }
  723. }
  724. }
  725. }
  726. .approveItem_a2 {
  727. .a2_span {
  728. border-radius: 4px;
  729. text-align: center;
  730. border: 1px solid rgba(227, 227, 227, 1);
  731. width: 72rpx;
  732. height: 72rpx;
  733. line-height: 60rpx;
  734. font-size: 48rpx;
  735. color: #9F9F9F;
  736. }
  737. .a2_span_2 {
  738. position: relative;
  739. top: -84rpx;
  740. left: 60rpx;
  741. color: red;
  742. }
  743. }
  744. }
  745. }
  746. .u-node {
  747. width: 18rpx;
  748. height: 18rpx;
  749. border-radius: 100rpx !important;
  750. display: flex;
  751. justify-content: center;
  752. align-items: center;
  753. background: #d0d0d0;
  754. }
  755. .submitBtn {
  756. bottom: 0;
  757. position: fixed;
  758. width: 100%;
  759. padding: 20rpx 40rpx;
  760. background-color: #fff;
  761. border-top: 3px solid #f3f4f4;
  762. z-index: 99;
  763. display: flex;
  764. .submitBtn30 {
  765. width: 30%;
  766. }
  767. .submitBtn100 {
  768. width: 100%;
  769. }
  770. .submitBtn60 {
  771. width: 60%;
  772. }
  773. }
  774. @import "../data/editor-icon.css";
  775. </style>