MaterialOutEdit.vue 22 KB

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