MaterialOutAdd.vue 20 KB

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