DesignChangesAdd.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. <template>
  2. <view>
  3. <uni-forms ref="form" labelPosition="left" labelAlign="left" @submit="submitForm">
  4. <view class="uni-form-item uni-column">
  5. <view class="title"><text class="uni-form-item__title">设计变更名称</text></view>
  6. <view class="uni-input-wrapper">
  7. <input class="uni-input" focus placeholder="请填写设计变更名称" v-model="designChangesName" />
  8. </view>
  9. </view>
  10. <view class="uni-form-item uni-column">
  11. <view class="title"><text class="uni-form-item__title">申请单</text></view>
  12. <view class="uni-input-wrapper ">
  13. <input class="uni-input-small" v-model="requisitionName" />
  14. <a href='javascript:;' @click='getRequisition' class="uni-icon"><i class="fa fa-search" aria-hidden="true"></i></a>
  15. </view>
  16. </view>
  17. <view class="uni-form-item uni-column">
  18. <view class="title"><text class="uni-form-item__title">关联合同</text></view>
  19. <view class="uni-input-wrapper ">
  20. <input class="uni-input-small" disabled=true v-model="contractName" />
  21. <a href='javascript:;' @click='getRelationContract' class="uni-icon"><i class="fa fa-search" aria-hidden="true"></i></a>
  22. </view>
  23. </view>
  24. <view class="uni-form-item uni-column" v-show="contractName">
  25. <view class="title"><text class="uni-form-item__title">税率</text></view>
  26. <view class="uni-input-wrapper">
  27. {{contract.taxRate+'%'}}
  28. </view>
  29. </view>
  30. <view class="uni-form-item uni-column" v-show="contractName">
  31. <view class="title"><text class="uni-form-item__title">是否可抵扣</text></view>
  32. <view class="uni-input-wrapper" >
  33. {{contract.isDeduct==0?'否':'是'}}
  34. </view>
  35. </view>
  36. <view class="uni-form-item uni-column">
  37. <view class="title"><text class="uni-form-item__title">设计变更日期</text></view>
  38. <view class="uni-input-wrapper" style="justify-content: left;">
  39. <picker mode="date" @change="bindDateChange" v-model="designChangesDate" style="width: 100%;">
  40. <view class="uni-input">{{designChangesDate}}</view>
  41. </picker>
  42. </view>
  43. </view>
  44. <view class="uni-form-item uni-column">
  45. <view class="title"><text class="uni-form-item__title">设计变更类型</text></view>
  46. <view class="uni-input-wrapper" style="justify-content: left;">
  47. <picker mode="selector" :value="index" :range="array" range-key="name" @change="bindPickerChange" v-model="changeType" style="width: 100%;">
  48. <view class="uni-input">{{array.length>0?array[index]:''}}</view>
  49. </picker>
  50. </view>
  51. </view>
  52. <view class="uni-form-item uni-column">
  53. <view class="title"><text class="uni-form-item__title">暂估金额</text></view>
  54. <view class="uni-input-wrapper">
  55. <input class="uni-input" focus value="0" v-model="estimateCash" type="digit" />
  56. </view>
  57. </view>
  58. <view class="uni-form-item uni-column">
  59. <view class="title"><text class="uni-form-item__title">设计变更原因</text></view>
  60. <view class="uni-textarea">
  61. <textarea focus placeholder="请填写设计变更原因" v-model="designChangesReason" auto-height="true" />
  62. </view>
  63. </view>
  64. <view class="uni-form-item uni-column">
  65. <view class="title" style="background-color: #efefef;"><text class="uni-form-item__title">附件</text></view>
  66. <view class="content">
  67. <g-upfile ref='gUpfile' :mode="imgList" @chooseFile='chooseFile' @imgDelete='imgDelete' :control='control'
  68. :columnNum="columnNum" :maxCount="maxCount" @limitFileSizeList='limitFileSizeList' @limitFileTypeList='limitFileTypeList' :maxFileSize="20000"></g-upfile>
  69. </view>
  70. </view>
  71. <uni-section title="费用明细" type="line"></uni-section>
  72. <uni-list>
  73. <uni-list-item v-if="costList" v-for="(item, index) in costList" :key="index">
  74. <view slot="body" class="slot-box">
  75. <view class="row">
  76. <view class="column-left">费用项:</view>
  77. <view class="column-right">{{item.costCodeName}}</view>
  78. </view>
  79. <view class="row">
  80. <view class="column-left">含税金额</view>
  81. <view class="column-right">
  82. <input class="uni-input-small" type="digit" v-model="item.cash" style="width: 240px;text-align: left;" @blur='countTaxtCash(item,index)' />
  83. </view>
  84. </view>
  85. <view class="row">
  86. <view class="column-left">税额</view>
  87. <view class="column-right" >
  88. <input class="uni-input-small" type="digit" disabled="true" v-model="item.rateCash" style="width: 240px;text-align: left;" />
  89. </view>
  90. </view>
  91. <view class="row">
  92. <view class="column-left">金额</view>
  93. <view class="column-right">
  94. <input class="uni-input-small" type="digit" disabled="true" v-model="item.noRateCash" style="width: 240px;text-align: left;" />
  95. </view>
  96. </view>
  97. <view class="row">
  98. <view class="column-left">备注:</view>
  99. <view class="column-right">
  100. <textarea focus v-model="item.remark" auto-height="true" style="width: 240px;text-align: left;" />
  101. </view>
  102. </view>
  103. <view class="row">
  104. <view class="column-left">操作:</view>
  105. <view class="column-right">
  106. <i class="fa fa-window-close" aria-hidden="true" @click="delRow(index)" style="font-size:20px;cursor: pointer;color: #999;margin-left:15px;" title="删除"></i>
  107. </view>
  108. </view>
  109. </view>
  110. </uni-list-item>
  111. </uni-list>
  112. <view style="margin-bottom: 120px;">
  113. </view>
  114. <view class="uni-btn-v uni-column">
  115. <button type="primary" form-type="submit" style="border-radius: 15px;" >提交</button>
  116. </view>
  117. </uni-forms>
  118. <topicon class="topicon" :iconWidth="50" :iconHeight="50" :startPostion="3" iconPath="../../../static/zhiding.png"
  119. :marginBottom="20" :marginTop="60" :marginLeft="5" :marginRight="5" @tapIcon="tapIcon"
  120. ></topicon>
  121. </view>
  122. </template>
  123. <script>
  124. import {GetQianzhengDropDown} from "@/common/api/requisitionApi.js";
  125. import {GetContract} from "@/common/api/commonApi.js";
  126. import {GetContractCostDTOs} from "@/common/api/viseApi.js";
  127. import {InsertDesignChanges} from "@/common/api/DesignChanges.js";
  128. import {Decimal} from 'decimal.js'; //decimal计算
  129. import topicon from '@/components/gwh-backTopIcon/gwh-backTopIcon.vue'
  130. export default {
  131. components:{
  132. topicon
  133. },
  134. data() {
  135. return {
  136. needFormCach:false,
  137. designChangesName:'',
  138. requisitionCode:'', //申请单编号
  139. requisitionName:'', //申请单名称
  140. contractCode:'',
  141. contractName:'',
  142. contract:{}, //获取的关联合同信息
  143. designChangesDate:this.$util.getDate({
  144. format: true
  145. }),
  146. changeType:'',
  147. estimateCash:0.00,
  148. designChangesReason:'',
  149. remark:'',
  150. costList:[], //费用明细
  151. imageList: [],
  152. countIndex: 5,
  153. count: [1, 2, 3, 4, 5],
  154. title1: 'picker',
  155. array: [],
  156. index: 0,
  157. date: this.$util.getDate({
  158. format: true
  159. }),
  160. control: true,
  161. columnNum: 3,
  162. imgList: [],
  163. urlList:[],
  164. maxCount:5
  165. }
  166. },
  167. onLoad(){
  168. //console.info(page.path);
  169. console.info(uni.getStorageSync('storage_state'));
  170. //console.info(this);
  171. this.$util.persistLogin(this);
  172. //console.info(this.$store.state.user);
  173. },
  174. onUnload() {
  175. this.imageList = [],
  176. this.countIndex = 5;
  177. },
  178. created: function() {
  179. this.GetDropDown();
  180. },
  181. updated:function(){
  182. },
  183. methods: {
  184. /**
  185. * 手动提交
  186. * @param {Object} form
  187. */
  188. submitForm(e) {
  189. console.info('submitForm');
  190. let _this=this;
  191. if(this.designChangesName==='')
  192. {
  193. uni.showToast({
  194. icon:"none",
  195. title:"请填写设计变更名称",
  196. duration:3000
  197. });
  198. return;
  199. }
  200. if(this.designChangesName.length>50)
  201. {
  202. uni.showToast({
  203. icon:"none",
  204. title:"设计变更名称不能多于50字",
  205. duration:3000
  206. });
  207. return;
  208. }
  209. // if(this.requisitionCode===""){
  210. // uni.showToast({
  211. // icon:"none",
  212. // title:"请选择申请单",
  213. // duration:3000
  214. // });
  215. // return;
  216. // }
  217. if(this.contractCode===""){
  218. uni.showToast({
  219. icon:"none",
  220. title:"请选择关联合同号",
  221. duration:3000
  222. });
  223. return;
  224. }
  225. if(this.designChangesDate===""){
  226. uni.showToast({
  227. icon:"none",
  228. title:"请选择设计变更日期",
  229. duration:3000
  230. });
  231. return;
  232. }
  233. if(this.changeType===""){
  234. uni.showToast({
  235. icon:"none",
  236. title:"设计变更类型不能为空",
  237. duration:3000
  238. });
  239. return;
  240. }
  241. if(this.designChangesReason===""){
  242. uni.showToast({
  243. icon:"none",
  244. title:"设计变更原因不能为空",
  245. duration:3000
  246. });
  247. return;
  248. }
  249. if(this.designChangesReason!=""){
  250. if(this.designChangesReason.length>500){
  251. uni.showToast({
  252. icon:"none",
  253. title:"原因不能超过500字",
  254. duration:3000
  255. });
  256. return;
  257. }
  258. }
  259. if(this.costList.length<=0){
  260. uni.showToast({
  261. icon:"none",
  262. title:"费用明细不能为空",
  263. duration:3000
  264. });
  265. return;
  266. }
  267. let moneyType=this.contract.moneyType;
  268. let exchangeRate=this.contract.exchangeRate;
  269. let taxRate=this.contract.taxRate;
  270. let list1=this.costList; //费用明细
  271. let totalCash=0.00; //总含税金额
  272. let rateTotalCash=0.00; //税收总额
  273. let noRateTotalCash=0.00; //不含税总金额
  274. let designChangesCosts=[];
  275. list1.forEach(function(item,index,arr){
  276. totalCash+= item.cash-0.00;
  277. rateTotalCash+= item.rateCash;
  278. noRateTotalCash+= item.noRateCash;
  279. designChangesCosts.push({costCode:item.costCode,costBudgetSetCode:item.costBudgetSetCode,cash:item.cash-0.00,checkCash:item.cash-0.00,moneyType:moneyType,exchangeRate:exchangeRate,money:item.cash-0.00,checkMoney:item.cash-0.00,remark:item.remark,rate:taxRate-0.00,rateCash:item.rateCash-0.00,rateMoney:item.rateCash-0.00,noRateCash:item.noRateCash-0.00,noRateMoney:item.noRateCash-0.00});
  280. });
  281. //vise viseCosts
  282. var designChanges={designChangesName:this.designChangesName,changeType:this.changeType,person:this.$util.getState(this,'userCode'),unitCode:this.$store.state.departmentCode,designChangesDate:this.designChangesDate,designChangesReason:this.designChangesReason,projectCode:this.$store.state.projectCode,contractCode:this.contractCode,totalCash:totalCash-0.00,moneyType:moneyType,exchangeRate:exchangeRate,estimateCash:this.estimateCash-0.00,requisitionCode:this.requisitionCode,rate:taxRate-0.00,rateTotalCash:rateTotalCash-0.00,noRateTotalCash:noRateTotalCash-0.00 };
  283. var data={designChanges:designChanges,designChangesCosts:designChangesCosts};
  284. console.info('data:',data);
  285. //return;
  286. InsertDesignChanges(data).then((res)=>{
  287. console.info("提交应答");
  288. console.info(res);
  289. if(res){
  290. //上传图片
  291. _this.uploadFileToServe(res) ;
  292. uni.navigateTo({
  293. url:'/pages/template/GetDesignChangesList/GetDesignChangesList'
  294. })
  295. }
  296. else{
  297. uni.showToast({
  298. title:'添加失败,重新操作',
  299. icon:'none',
  300. duration:3000
  301. })
  302. }
  303. });
  304. },
  305. /*
  306. 获取申请单
  307. */
  308. getRequisition() {
  309. let _this = this;
  310. _this.saveTemp(_this);
  311. //创建名字为fire的监听器,监听子页面传值事件
  312. uni.$on('requisition', function(data) {
  313. console.info("监听getRequisition子页面的传值", data);
  314. //console.info('监听',_this);
  315. _this.getTemp(_this);
  316. _this.requisitionCode=data[0].requisitionCode;
  317. _this.requisitionName=data[0].requisitionName;
  318. uni.setStorage({
  319. key:'requisitionCode',
  320. data:_this.requisitionCode
  321. });
  322. uni.setStorage({
  323. key:'requisitionName',
  324. data:_this.requisitionName
  325. });
  326. //uni.setst
  327. /* _this.$nextTick(function(){
  328. //更新dom
  329. }); */
  330. _this.needFormCach=true;
  331. //接收一次监听,一旦监听到回传值,则清除监听事件,若不清除,会占用资源
  332. uni.$off("requisition");
  333. });
  334. uni.navigateTo({
  335. url: '/pages/template/SelectRelationRequision/SelectRelationRequision?type=1'
  336. });
  337. },
  338. /*
  339. 获取关联合同
  340. */
  341. getRelationContract() {
  342. let _this = this;
  343. _this.saveTemp(_this);
  344. //创建名字为fire的监听器,监听子页面传值事件
  345. uni.$on('contract', function(data) {
  346. console.info("监听getRelationContract子页面的传值", data);
  347. //console.info('监听',_this);
  348. _this.getTemp(_this);
  349. _this.contractCode=data[0].contractCode;
  350. _this.contractName=data[0].contractName;
  351. _this.contract=data[0].contract;
  352. _this.getCostList();
  353. //接收一次监听,一旦监听到回传值,则清除监听事件,若不清除,会占用资源
  354. uni.$off("contract");
  355. });
  356. /* let requisitionCode=_this.requisitionCode;
  357. if(requisitionCode==""){
  358. uni.showToast({
  359. title:'请先选择申请单',
  360. icon:'none',
  361. duration:3000
  362. });
  363. return;
  364. } */
  365. uni.navigateTo({
  366. url: '/pages/template/SelectRelationContract/SelectRelationContract'
  367. });
  368. },
  369. /*
  370. 获取费用明细
  371. */
  372. getCostList() {
  373. let _this = this;
  374. _this.saveTemp(_this);
  375. if(_this.contractCode){
  376. GetContractCostDTOs(_this.contractCode).then(res=>{
  377. console.info('GetContractCostDTOs',res);
  378. if(res.length>0){
  379. res.forEach(function(item,index,arr){
  380. item.cash=0.00;
  381. item.rateCash=0.00;
  382. item.noRateCash=0.00;
  383. _this.$set(_this.costList,index,item);
  384. });
  385. }
  386. });
  387. }
  388. },
  389. delRow: function(index) {
  390. console.info("删除");
  391. console.info(this.costList[index]);
  392. this.costList.splice(index, 1);
  393. },
  394. /* 计算该行的税额 */
  395. countTaxtCash:function(item,index){
  396. let _this=this;
  397. console.info("countTaxtCash",item);
  398. //console.info("countTaxtCash",index);
  399. //let value=event.detail.value;
  400. let taxRate=(_this.contract.taxRate-0.00)/100;
  401. console.info("taxRate",taxRate);
  402. item.rateCash=new Decimal(item.cash/(1+taxRate)*taxRate).toFixed(2); //计算,并保留两位小数
  403. item.noRateCash=item.cash;
  404. },
  405. bindPickerChange: function(e) {
  406. //console.log('picker发送选择改变,携带值为:' + e.detail.value);
  407. //console.info(e.detail);
  408. this.index = e.detail.value;
  409. this.changeType=this.array[this.index];
  410. console.info(this.changeType);
  411. },
  412. bindDateChange: function(e) {
  413. let date = e.detail.value;
  414. this.designChangesDate=date;
  415. console.info('bindDateChange',this.designChangesDate);
  416. },
  417. GetDropDown:function(){
  418. let that=this;
  419. GetQianzhengDropDown(1).then((res)=>{
  420. console.info('GetQianzhengDropDown:',res);
  421. res.forEach(function(item,index,array){
  422. that.$set(that.array,index,item);
  423. });
  424. //赋默认值
  425. that.changeType=that.array[0];
  426. console.info(that.changeType);
  427. if(that.needFormCach){
  428. that.getTemp(that);
  429. }
  430. });
  431. },
  432. /*
  433. 上传后返回的值:
  434. list:上传后图片数组
  435. v:返回当前上传图片的临时路径
  436. */
  437. chooseFile(list, v) {
  438. console.log("上传图片_list:", list)
  439. console.log("上传图片_v:", v);
  440. this.urlList=list;
  441. console.info("urlList",this.urlList);
  442. },
  443. /*
  444. 删除图片:
  445. list:删除返回删除后剩余的图片数组
  446. eq:返回删除的数组
  447. */
  448. imgDelete(list, eq) {
  449. console.log("删除图片_list:", list);
  450. console.log("删除图片_eq:", eq);
  451. this.urlList=list;
  452. console.info("urlList",this.urlList);
  453. },
  454. /*限制文件大小列表*/
  455. limitFileSizeList(list){
  456. console.info('limitFileSizeList:',list);
  457. if(list){
  458. if(list.length>0){
  459. uni.showModal({
  460. title:'警告',
  461. content: list.join()+' 文件大小超过2000KB',
  462. showCancel:false
  463. });
  464. }
  465. }
  466. },
  467. /*限制文件类型列表*/
  468. limitFileTypeList(list,allowFileType){
  469. console.info('limitFileTypeList:',list);
  470. console.info('limitFileTypeList:',allowFileType);
  471. if(list){
  472. if(list.length>0){
  473. uni.showModal({
  474. title:'警告',
  475. content: list.join()+' 文件类型必须是'+allowFileType.join(),
  476. showCancel:false
  477. });
  478. }
  479. }
  480. },
  481. /*
  482. 执行上传服务:
  483. urlList:要上传的图片:数组类型
  484. */
  485. uploadFileToServe(masterCode) {
  486. let _this=this;
  487. var urlList=_this.urlList;
  488. if (!urlList || urlList.length <= 0) {
  489. return;
  490. };
  491. //console.info(urlList);
  492. //return;
  493. for (let i = 0; i < urlList.length; i++) {
  494. uni.uploadFile({
  495. url: '/api/Common/UploadImage',
  496. filePath: urlList[i],
  497. name: 'file',
  498. formData: {
  499. createPerson:_this.$store.state.user.userCode,
  500. masterCode:masterCode,
  501. attachMentType:'DesignChanges'
  502. },
  503. headers: {
  504. 'Content-Type': 'multipart/form-data; boundary = ' + new Date().getTime()
  505. //这里要把content-type设置为multipard/form-data,同时还要设置boundary
  506. },
  507. success: (uploadFileRes) => {
  508. console.log("图片上传:",uploadFileRes.data);
  509. }
  510. });
  511. }
  512. },
  513. saveTemp(_this){ //临时存
  514. uni.setStorage({
  515. key:'designChangesName',
  516. data:_this.designChangesName
  517. });
  518. uni.setStorage({
  519. key:'requisitionCode',
  520. data:_this.requisitionCode
  521. });
  522. uni.setStorage({
  523. key:'requisitionName',
  524. data:_this.requisitionName
  525. });
  526. uni.setStorage({
  527. key:'contractName',
  528. data:_this.contractName
  529. });
  530. uni.setStorage({
  531. key:'contractCode',
  532. data:_this.contractCode
  533. });
  534. uni.setStorage({
  535. key:'designChangesDate',
  536. data:_this.designChangesDate
  537. });
  538. uni.setStorage({
  539. key:'changeType',
  540. data:_this.changeType
  541. });
  542. uni.setStorage({
  543. key:'estimateCash',
  544. data:_this.estimateCash
  545. });
  546. uni.setStorage({
  547. key:'designChangesReason',
  548. data:_this.designChangesReason
  549. });
  550. },
  551. getTemp(_this){ //获取缓存,重新给表单赋值
  552. _this.designChangesName=uni.getStorageSync('designChangesName');
  553. _this.requisitionCode=uni.getStorageSync('requisitionCode');
  554. _this.requisitionName=uni.getStorageSync('requisitionName');
  555. _this.contractName=uni.getStorageSync('contractName');
  556. _this.contractCode=uni.getStorageSync('contractCode');
  557. _this.designChangesDate=uni.getStorageSync('designChangesDate');
  558. _this.changeType=uni.getStorageSync('changeType');
  559. _this.estimateCash=uni.getStorageSync('estimateCash');
  560. _this.designChangesReason=uni.getStorageSync('designChangesReason');
  561. },
  562. tapIcon(e){
  563. console.log('you tap icon');
  564. document.documentElement.scrollTop = document.body.scrollTop = 0;
  565. }
  566. }
  567. }
  568. </script>
  569. <style scoped>
  570. /* 头条小程序组件内不能引入字体 */
  571. /* #ifdef MP-TOUTIAO */
  572. @font-face {
  573. font-family: uniicons;
  574. font-weight: normal;
  575. font-style: normal;
  576. src: url("~@/static/uni.ttf") format("truetype");
  577. }
  578. /* #endif */
  579. page {
  580. display: flex;
  581. flex-direction: column;
  582. box-sizing: border-box;
  583. background-color: #efeff4;
  584. min-height: 100%;
  585. height: auto;
  586. }
  587. view {
  588. font-size: 14px;
  589. line-height: inherit;
  590. }
  591. .uni-form-item__title {
  592. font-size: 16px;
  593. line-height: 24px;
  594. }
  595. .uni-input-wrapper {
  596. /* #ifndef APP-NVUE */
  597. display: flex;
  598. /* #endif */
  599. padding: 8px 13px;
  600. flex-direction: row;
  601. flex-wrap: nowrap;
  602. background-color: #FFFFFF;
  603. }
  604. .title{
  605. background-color: #efefef;
  606. }
  607. .uni-input {
  608. height: 28px;
  609. line-height: 28px;
  610. font-size: 15px;
  611. padding: 0px;
  612. flex: 1;
  613. background-color: #FFFFFF;
  614. }
  615. .uni-icon {
  616. font-family: uniicons;
  617. font-size: 24px;
  618. font-weight: normal;
  619. font-style: normal;
  620. width: 24px;
  621. height: 24px;
  622. line-height: 24px;
  623. margin-left:15px;
  624. color: #999999;
  625. }
  626. .uni-eye-active {
  627. color: #007AFF;
  628. }
  629. .uni-btn-v{
  630. position: fixed;
  631. bottom: 0;
  632. width:100%;
  633. }
  634. .header-slot-box {
  635. font-size:15px;
  636. margin: 5px 5px;
  637. width:20%;
  638. justify-content: center;
  639. }
  640. .body-slot-box {
  641. font-size:15px;
  642. margin: 5px 5px;
  643. width:40%;
  644. justify-content: center;
  645. }
  646. .footer-slot-box {
  647. font-size:15px;
  648. margin: 5px 5px;
  649. width:40%;
  650. justify-content: center;
  651. }
  652. .uni-textarea textarea{
  653. font-size:15px;
  654. }
  655. .content {
  656. padding: 40rpx;
  657. background-color: #fff;
  658. }
  659. /* 上传控件 */
  660. .uploadControl {
  661. border: 1rpx solid #eee;
  662. border-radius: 10rpx;
  663. width: 130rpx;
  664. display: block;
  665. height: 130rpx;
  666. text-align: center;
  667. line-height: 130rpx;
  668. font-size: 30rpx;
  669. color: #888;
  670. background-color: #eeeeee;
  671. }
  672. .topicon >>> .icon{
  673. border: #4CD964 2upx solid;
  674. }
  675. </style>