addPage.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <!-- 称重登记-新增 -->
  2. <template>
  3. <view class="weighingRegistrationAddPage">
  4. <view class="weighingRegistrationAddPage-center-box">
  5. <view class="text-title-p">基础信息</view>
  6. <view class="content-box" style="padding-bottom:20rpx;">
  7. <view class="sub-picker-box">
  8. <view class="title-box-1" style="width:220rpx;">报备单编号:</view>
  9. <view class="text-p-1">{{addForm.reportNo}}</view>
  10. </view>
  11. <view class="sub-picker-box">
  12. <view class="title-box-1" style="width:220rpx;">实验室:</view>
  13. <view class="text-p-1">{{addForm.subName}}({{addForm.roomNum}})</view>
  14. </view>
  15. <view class="sub-picker-box">
  16. <view class="title-box-1" style="width:220rpx;">上门回收日期:</view>
  17. <view class="text-p-1">{{addForm.expectTime}}({{addForm.expectWeek}})</view>
  18. </view>
  19. <view class="sub-picker-box">
  20. <view class="title-box-1" style="width:220rpx;">废物种类:</view>
  21. <view class="text-p-1">{{addForm.typeNum}}</view>
  22. </view>
  23. <view class="sub-picker-box">
  24. <view class="title-box-1" style="width:220rpx;">报备人:</view>
  25. <view class="text-p-1">{{addForm.reportName}}({{addForm.reportAccount}})</view>
  26. </view>
  27. <view class="sub-picker-box">
  28. <view class="title-box-1" style="width:220rpx;">报备时间:</view>
  29. <view class="text-p-1">{{addForm.reportTime}}</view>
  30. </view>
  31. </view>
  32. <view class="text-title-p">称重登记</view>
  33. <view class="content-box">
  34. <view class="for-content-box" v-for="(item,index) in addForm.formData4" :key="index">
  35. <view class="sub-picker-box">
  36. <view class="mark-box">*</view>
  37. <view class="title-box">类型:</view>
  38. <view class="picker-box">
  39. <picker @change="(val)=>forChange(index,val)" :value="item.forData3" :range="item.forList" :range-key="'wasteName'">
  40. <view class="picker-p" :class="item.forData1?'check-picker-p':''">{{item.forData1?item.forData2:'请选择危废类型'}}</view>
  41. </picker>
  42. </view>
  43. <img class="right-button" v-if="addForm.formData4[1]"
  44. @click="reductionItemButton(index)"
  45. :src="imagesUrl('commonality/icon_zgsq_jian.png')">
  46. </view>
  47. <view class="sub-picker-box" v-if="item.forData1&&item.forData4">
  48. <view class="mark-box">*</view>
  49. <view class="title-box">数量:</view>
  50. <view class="picker-text-box">{{item.forData4+item.forData5}}</view>
  51. </view>
  52. <view class="sub-picker-box">
  53. <view class="mark-box">*</view>
  54. <view class="title-box">称重:</view>
  55. <view class="reduction-button" @click="reductionAdd(1,index)">-</view>
  56. <input class="input-p" type="digit" maxlength="10" @input="(val)=>handleInput(index,val)" v-model="item.forData6">
  57. <view class="add-button" @click="reductionAdd(2,index)">+</view>
  58. <view class="unit-p">kg</view>
  59. </view>
  60. </view>
  61. <view class="add-item-button" v-if="this.addForm.formData4.length < this.dialogOptionForList.length"
  62. @click="addItemButton()">补充其他未报备类型</view>
  63. <view class="sub-picker-box">
  64. <view class="mark-box"></view>
  65. <view class="title-box">图片:</view>
  66. <view class="explain-box">可拍摄称重凭据或回收人员照片,最多可上传3张</view>
  67. </view>
  68. <view class="sub-picker-box">
  69. <view class="img-list-box" v-if="addForm.imgList[0]">
  70. <view class="for-img-box" v-for="(img,imgIndex) in addForm.imgList" :key="imgIndex" >
  71. <p @click="delImg(imgIndex)">x</p>
  72. <img :src="baseUrl+img">
  73. </view>
  74. </view>
  75. <view class="img-up-p" @click="selectImage()" v-if="!addForm.imgList[2]">+</view>
  76. </view>
  77. <view class="sub-picker-box" style="padding-bottom:50rpx;">
  78. </view>
  79. </view>
  80. <view class="submit-check-box" @click="buttonCheck()">
  81. <img v-if="!checkType" class="left-box" :src="imagesUrl('commonality/icon_12.png')">
  82. <img v-if="checkType" class="left-box" :src="imagesUrl('commonality/icon_13.png')">
  83. <view :class="checkType?'check-view':''">本人已认真核对本次危险废物的登记类别及重量信息,确认数据真实、准确、完整,并对其真实性依法承担相应责任。</view>
  84. </view>
  85. <view class="submit-button" :class="!checkType?'no-submit-button':''" @click="submitButton">登记完成,提交</view>
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. import {
  91. parseTime
  92. } from '@/component/public.js'
  93. import { config } from '@/api/request/config.js'
  94. import {
  95. hwmsAppWasteOrderList,
  96. hwmsAppWasteOrderWasteDetail,
  97. } from '@/pages_hazardousWasteRecycling/api/index.js'
  98. export default {
  99. data() {
  100. return {
  101. baseUrl:config.base_url,
  102. addForm:{
  103. expectTime: "",
  104. expectWeek: "",
  105. id: 0,
  106. subId: 0,
  107. reportAccount: "",
  108. reportName: "",
  109. reportNo: "",
  110. reportTime: "",
  111. roomNum: "",
  112. subName: "",
  113. typeNum: 0,
  114. formData4:[],
  115. imgList:[],
  116. },
  117. dialogOptionList:[],
  118. dialogOptionForList:[],
  119. checkType:false,
  120. }
  121. },
  122. onLoad(option) {
  123. this.hwmsAppWasteOrderList(option.id);
  124. },
  125. onShow() {
  126. },
  127. mounted() {
  128. },
  129. methods: {
  130. buttonCheck(){
  131. this.$set(this,'checkType',!this.checkType);
  132. },
  133. //提交按钮
  134. submitButton(){
  135. let self = this;
  136. if(!this.checkType){
  137. return
  138. }
  139. if(!this.addForm.formData4[0]){
  140. uni.showToast({
  141. title: '请添加危废类型',
  142. icon: "none",
  143. mask: true,
  144. duration: 2000
  145. });
  146. return
  147. }
  148. for(let i=0;i<self.addForm.formData4.length;i++){
  149. if(!self.addForm.formData4[i].forData1){
  150. uni.showToast({
  151. title: '第'+(i+1)+'个类型没有选择',
  152. icon: "none",
  153. mask: true,
  154. duration: 2000
  155. });
  156. return
  157. }
  158. if(self.addForm.formData4[i].forData6 == 0){
  159. uni.showToast({
  160. title: self.addForm.formData4[i].forData2+'没有填写数量',
  161. icon: "none",
  162. mask: true,
  163. duration: 2000
  164. });
  165. return
  166. }
  167. }
  168. let obj = {
  169. id:this.addForm.id,
  170. recycleTime:this.addForm.expectTime,
  171. subId:this.addForm.subId,
  172. registerOrderAddItemBos:[],
  173. images:self.addForm.imgList,
  174. };
  175. for(let i=0;i<self.addForm.formData4.length;i++){
  176. obj.registerOrderAddItemBos.push({
  177. typeId:self.addForm.formData4[i].forData1,
  178. weight:self.addForm.formData4[i].forData6,
  179. })
  180. }
  181. // uni.navigateTo({
  182. // url: "/pages_hazardousWasteRecycling/views/weighingRegistration/signatureComponent?data=" + encodeURIComponent(JSON.stringify(obj))
  183. // });
  184. let info = {
  185. reportNo:this.addForm.reportNo,
  186. subName:this.addForm.subName,
  187. roomNum:this.addForm.roomNum,
  188. expectTime:this.addForm.expectTime,
  189. expectWeek:this.addForm.expectWeek,
  190. reportName:this.addForm.reportName,
  191. reportAccount:this.addForm.reportAccount,
  192. reportTime:this.addForm.reportTime,
  193. details:[],
  194. images:self.addForm.imgList,
  195. }
  196. for(let i=0;i<self.addForm.formData4.length;i++){
  197. info.details.push({
  198. typeName:self.addForm.formData4[i].forData2,
  199. weight:self.addForm.formData4[i].forData6,
  200. })
  201. }
  202. uni.navigateTo({
  203. url: "/pages_hazardousWasteRecycling/views/weighingRegistration/confirmation?data=" + encodeURIComponent(JSON.stringify(obj))+'&info='+ encodeURIComponent(JSON.stringify(info))
  204. });
  205. },
  206. async hwmsAppWasteOrderList(id){
  207. const {
  208. data
  209. } = await hwmsAppWasteOrderList();
  210. if (data.code == 200) {
  211. this.$set(this,'dialogOptionForList',data.data.wasteOrder);
  212. this.hwmsAppWasteOrderWasteDetail(id);
  213. }
  214. },
  215. //详情
  216. async hwmsAppWasteOrderWasteDetail(id) {
  217. let self = this;
  218. const {
  219. data
  220. } = await hwmsAppWasteOrderWasteDetail({id:id});
  221. if (data.code == 200) {
  222. let list = [];
  223. for(let i=0;i<data.data.wasteOrderDetailItemVos.length;i++){
  224. for(let o=0;o<self.dialogOptionForList.length;o++){
  225. if(data.data.wasteOrderDetailItemVos[i].typeId == self.dialogOptionForList[o].id){
  226. let obj = {
  227. forData1:self.dialogOptionForList[o].id,
  228. forData2:self.dialogOptionForList[o].wasteName,
  229. forData3:o,
  230. forData4:data.data.wasteOrderDetailItemVos[i].quantity,
  231. forData5:self.dialogOptionForList[o].unit,
  232. forData6:data.data.wasteOrderDetailItemVos[i].weight?data.data.wasteOrderDetailItemVos[i].weight:0,
  233. forList:self.dialogOptionForList,
  234. }
  235. list.push(JSON.parse(JSON.stringify(obj)))
  236. }
  237. }
  238. }
  239. // item2.endDate = parseTime(item2.endDate, "{y}-{m}-{d}");
  240. this.$set(self.addForm,'expectTime',data.data.expectTime);
  241. this.$set(self.addForm,'expectWeek',data.data.expectWeek);
  242. this.$set(self.addForm,'id',data.data.id);
  243. this.$set(self.addForm,'subId',data.data.subId);
  244. this.$set(self.addForm,'reportAccount',data.data.reportAccount);
  245. this.$set(self.addForm,'reportName',data.data.reportName);
  246. this.$set(self.addForm,'reportNo',data.data.reportNo);
  247. this.$set(self.addForm,'reportTime',parseTime(data.data.reportTime, "{y}-{m}-{d} {h}:{i}:{s}"));
  248. this.$set(self.addForm,'roomNum',data.data.roomNum);
  249. this.$set(self.addForm,'subName',data.data.subName);
  250. this.$set(self.addForm,'typeNum',data.data.typeNum);
  251. this.$set(self.addForm,'formData4',list);
  252. this.filtrateList();
  253. }
  254. },
  255. //选中类型
  256. forChange(index,e){
  257. console.log('e',e);
  258. let self = this;
  259. if(self.addForm.formData4[index].forList[e.detail.value].remarkEnable){
  260. uni.showModal({
  261. title: '确认添加?',
  262. content: self.addForm.formData4[index].forList[e.detail.value].remark,
  263. cancelColor: "#999",
  264. confirmColor: "#0183FA",
  265. success: function(res) {
  266. if(res.confirm){
  267. self.$set(self.addForm.formData4[index],'forData1',self.addForm.formData4[index].forList[e.detail.value].id);
  268. self.$set(self.addForm.formData4[index],'forData2',self.addForm.formData4[index].forList[e.detail.value].wasteName);
  269. self.$set(self.addForm.formData4[index],'forData5',self.addForm.formData4[index].forList[e.detail.value].unit);
  270. self.$set(self.addForm.formData4[index],'forData3',e.detail.value);
  271. self.filtrateList();
  272. }
  273. }
  274. });
  275. }else{
  276. self.$set(self.addForm.formData4[index],'forData1',self.addForm.formData4[index].forList[e.detail.value].id);
  277. self.$set(self.addForm.formData4[index],'forData2',self.addForm.formData4[index].forList[e.detail.value].wasteName);
  278. self.$set(self.addForm.formData4[index],'forData5',self.addForm.formData4[index].forList[e.detail.value].unit);
  279. self.$set(self.addForm.formData4[index],'forData3',e.detail.value);
  280. self.filtrateList();
  281. }
  282. // this.$set(this.addForm.formData4[index],'forData1',this.addForm.formData4[index].forList[e.detail.value].id);
  283. // this.$set(this.addForm.formData4[index],'forData2',this.addForm.formData4[index].forList[e.detail.value].wasteName);
  284. // this.$set(this.addForm.formData4[index],'forData5',this.addForm.formData4[index].forList[e.detail.value].unit);
  285. // this.$set(this.addForm.formData4[index],'forData3',e.detail.value);
  286. // this.filtrateList();
  287. },
  288. //单位值加减
  289. reductionAdd(type,index){
  290. if(type == 1){
  291. //减
  292. if(this.addForm.formData4[index].forData6>=1){
  293. this.$set(this.addForm.formData4[index],'forData6',this.addForm.formData4[index].forData6-1);
  294. }
  295. }else if(type == 2){
  296. //加
  297. if(this.addForm.formData4[index].forData6<9999){
  298. this.$set(this.addForm.formData4[index],'forData6',this.addForm.formData4[index].forData6+1);
  299. }
  300. }
  301. },
  302. //添加类型
  303. addItemButton(){
  304. if(this.addForm.formData4.length>= this.dialogOptionForList.length){
  305. uni.showToast({
  306. title: '没有更多类型可添加',
  307. icon: "none",
  308. mask: true,
  309. duration: 2000
  310. });
  311. return
  312. }
  313. this.addForm.formData4.push({
  314. forData1:'',
  315. forData2:'',
  316. forData3:'',
  317. forData4:0,
  318. forData5:'',
  319. forData6:0,
  320. forList:[],
  321. })
  322. this.filtrateList();
  323. },
  324. //删除类型
  325. reductionItemButton(index){
  326. let self = this;
  327. let num = 0;
  328. for(let i=0;i<self.dialogOptionForList.length;i++){
  329. if(self.dialogOptionForList[i].id == this.addForm.formData4[index].forData1){
  330. if(self.dialogOptionForList[i].remarkEnable){
  331. num++
  332. uni.showModal({
  333. title: '确认删除?',
  334. content: self.dialogOptionForList[i].remark,
  335. cancelColor: "#999",
  336. confirmColor: "#0183FA",
  337. success: function(res) {
  338. if(res.confirm){
  339. self.addForm.formData4.splice(index,1);
  340. self.filtrateList();
  341. }
  342. }
  343. });
  344. }else{
  345. num++
  346. uni.showModal({
  347. content: '确认删除该类型?',
  348. cancelColor: "#999",
  349. confirmColor: "#0183FA",
  350. success: function(res) {
  351. if (res.confirm) {
  352. self.addForm.formData4.splice(index,1);
  353. self.filtrateList();
  354. } else if (res.cancel) {}
  355. }
  356. });
  357. }
  358. }
  359. }
  360. if(num == 0){
  361. self.addForm.formData4.splice(index,1);
  362. self.filtrateList();
  363. }
  364. },
  365. // 图片上传
  366. selectImage() {
  367. let self = this;
  368. wx.chooseImage({
  369. count: 1,
  370. sizeType: ["original", "compressed"],
  371. sourceType: ["album", "camera"],
  372. success: function(res) {
  373. let tempFilePaths = res.tempFilePaths[0];
  374. self.uploadImg(tempFilePaths);
  375. }
  376. });
  377. },
  378. async uploadImg(tempFilePaths){
  379. var self = this;
  380. uni.showLoading({
  381. title: '上传中',
  382. mask: true
  383. });
  384. uni.uploadFile({
  385. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  386. header:{'Authorization':uni.getStorageSync('token')},
  387. filePath: tempFilePaths,
  388. name: 'file',
  389. formData: {
  390. 'user': 'test'
  391. },
  392. success: (uploadFileRes) => {
  393. let res = JSON.parse(uploadFileRes.data);
  394. if(res.code == 200){
  395. self.addForm.imgList.push(res.data.url)
  396. }else{
  397. uni.showToast({
  398. title: res.msg,
  399. icon:"none",
  400. mask:true,
  401. duration: 2000
  402. });
  403. }
  404. },
  405. fail: err => {},
  406. complete: () => {
  407. uni.hideLoading()
  408. }
  409. });
  410. },
  411. //删除图片
  412. delImg(index){
  413. let self = this;
  414. uni.showModal({
  415. // title: '确认要退出吗?',
  416. content: '确认删除该图片?',
  417. cancelColor: "#999",
  418. confirmColor: "#0183FA",
  419. success: function(res) {
  420. if (res.confirm) {
  421. self.addForm.imgList.splice(index,1);
  422. } else if (res.cancel) {}
  423. }
  424. });
  425. },
  426. // 小数点后两位
  427. handleInput(index,e){
  428. // 一定要加nextTick,否则特殊情况的更改不生效【如:000时,更改为0】
  429. this.$nextTick(() => {
  430. let value = e.detail.value
  431. // 如果当前输入为空,直接允许清空
  432. if (!value) {
  433. this.addForm.formData4[index].forData6 = ''
  434. } else if (value?.charAt(0) === '0' && value.charAt(1) && value.charAt(1) !== '.') {
  435. // // 1. 当第一位为0时,只能输入小数点【第二位必须是小数点】
  436. value = '0'
  437. }
  438. value = value.replace(/[^\d.]/g, '') // 清除"数字"和"."以外的字符
  439. value = value.replace(/\.{2,}/g, '.') // 只保留第一个. 清除多余的
  440. value = value.match(/^\d*(\.?\d{0,3})/g)[0] || '' // 保留3位小数
  441. this.addForm.formData4[index].forData6 = value
  442. })
  443. },
  444. //匹配数据
  445. filtrateList(){
  446. let self = this;
  447. let forList = JSON.parse(JSON.stringify(this.dialogOptionForList));
  448. let newList = JSON.parse(JSON.stringify(this.dialogOptionForList));
  449. for(let i=0;i<forList.length;i++){
  450. let num = 0;
  451. for(let o=0;o<self.addForm.formData4.length;o++){
  452. if(forList[i].id == self.addForm.formData4[o].forData1){
  453. num++
  454. break
  455. }
  456. }
  457. if(num!=0){
  458. forList.splice(i,1);
  459. i--
  460. }
  461. }
  462. for(let i=0;i<self.addForm.formData4.length;i++){
  463. let list = [];
  464. if(self.addForm.formData4[i].forData1){
  465. for(let o=0;o<newList.length;o++){
  466. if(self.addForm.formData4[i].forData1 == newList[o].value){
  467. list.push(newList[o]);
  468. }
  469. }
  470. }
  471. list = list.concat(forList)
  472. self.$set(self.addForm.formData4[i],'forList',JSON.parse(JSON.stringify(list)));
  473. }
  474. },
  475. },
  476. }
  477. </script>
  478. <style lang="stylus" scoped>
  479. .weighingRegistrationAddPage{
  480. height: 100%;
  481. display flex;
  482. flex:1;
  483. flex-direction column;
  484. overflow: hidden;
  485. .weighingRegistrationAddPage-top-box{
  486. height:380rpx;
  487. }
  488. .weighingRegistrationAddPage-center-box{
  489. flex:1;
  490. overflow-y: scroll;
  491. overflow-x: hidden
  492. display flex;
  493. flex-direction column;
  494. }
  495. .text-title-p{
  496. font-size:32rpx;
  497. color:#0183FA;
  498. line-height:80rpx;
  499. margin:0 20rpx;
  500. }
  501. .content-box{
  502. margin:0 20rpx;
  503. background-color: #fff;
  504. border-radius:10rpx;
  505. padding:20rpx 20rpx 0 10rpx;
  506. .for-content-box:nth-child(1){
  507. padding-top:0;
  508. border-top:none;
  509. }
  510. .for-content-box{
  511. margin-bottom:20rpx;
  512. padding-top:30rpx;
  513. border-top:1px solid #dedede;
  514. .right-button{
  515. margin-top:8rpx;
  516. margin-left:20rpx;
  517. width:50rpx;
  518. height:50rpx;
  519. }
  520. }
  521. .sub-picker-box{
  522. display: flex;
  523. padding:10rpx;
  524. .mark-box{
  525. width:17rpx;
  526. color:red;
  527. margin-left:10rpx;
  528. height:60rpx;
  529. line-height:60rpx;
  530. margin-bottom:20rpx;
  531. }
  532. .title-box-1{
  533. width:100rpx;
  534. margin:0 10rpx;
  535. height:40rpx;
  536. line-height:40rpx;
  537. }
  538. .text-p-1{
  539. flex:1;
  540. height:40rpx;
  541. line-height:40rpx;
  542. display:block;
  543. overflow:hidden;
  544. text-overflow:ellipsis;
  545. white-space:nowrap;
  546. }
  547. .title-box{
  548. width:100rpx;
  549. margin:0 10rpx;
  550. height:60rpx;
  551. line-height:60rpx;
  552. }
  553. .text-p{
  554. flex:1;
  555. text-align: right;
  556. height:60rpx;
  557. line-height:60rpx;
  558. }
  559. .picker-box{
  560. height:60rpx;
  561. flex:1;
  562. border:1rpx solid #dedede;
  563. border-radius:10rpx;
  564. .picker-p{
  565. padding:0 20rpx;
  566. color:#666;
  567. line-height:60rpx;
  568. width:300rpx;
  569. display:block;
  570. overflow:hidden;
  571. text-overflow:ellipsis;
  572. white-space:nowrap;
  573. }
  574. .check-picker-p{
  575. }
  576. }
  577. .picker-text-box{
  578. width:400rpx;
  579. line-height:60rpx;
  580. }
  581. .reduction-button{
  582. width:60rpx;
  583. height:60rpx;
  584. border:1rpx solid #0183FA;
  585. color:#0183FA;
  586. text-align: center;
  587. font-size:30rpx;
  588. line-height:58rpx;
  589. border-radius:6rpx;
  590. font-size:34rpx;
  591. font-weight:700;
  592. }
  593. .input-p{
  594. width:140rpx;
  595. height:60rpx;
  596. height:60rpx;
  597. text-align: center;
  598. border:1rpx solid #dedede;
  599. border-radius:6rpx;
  600. margin:0 20rpx;
  601. }
  602. .add-button{
  603. width:60rpx;
  604. height:60rpx;
  605. border:1rpx solid #0183FA;
  606. color:#0183FA;
  607. text-align: center;
  608. font-size:30rpx;
  609. line-height:58rpx;
  610. border-radius:6rpx;
  611. font-size:34rpx;
  612. font-weight:700;
  613. }
  614. .unit-p{
  615. text-align: center;
  616. flex:1;
  617. height:62rpx;
  618. line-height:60rpx;
  619. font-size:30rpx;
  620. }
  621. .input-text-p{
  622. flex:1;
  623. height:185rpx;
  624. border:1rpx solid #dedede;
  625. border-radius:6rpx;
  626. padding:20rpx;
  627. margin-right:70rpx;
  628. margin-bottom:30rpx;
  629. }
  630. .explain-box{
  631. flex:1;
  632. height:32rpx;
  633. line-height:30rpx;
  634. font-size:28rpx;
  635. color:#999;
  636. }
  637. .img-list-box{
  638. display: flex;
  639. .for-img-box{
  640. position: relative;
  641. width:200rpx;
  642. height:200rpx;
  643. margin-left:18rpx;
  644. p{
  645. position: absolute;
  646. top:0;
  647. right:0;
  648. border-radius:50%;
  649. width:40rpx;
  650. height:40rpx;
  651. line-height:38rpx;
  652. text-align: center;
  653. color:#fff;
  654. background-color: #FF6A6A;
  655. }
  656. img{
  657. display: inline-block;
  658. width:200rpx;
  659. height:200rpx;
  660. }
  661. }
  662. }
  663. .img-up-p{
  664. width:200rpx;
  665. height:200rpx;
  666. margin-left:18rpx;
  667. line-height:200rpx;
  668. text-align: center;
  669. border:1rpx solid #999;
  670. border-radius:10rpx;
  671. color:#999;
  672. line-height:200rpx;
  673. font-size:50rpx;
  674. }
  675. }
  676. .add-item-button{
  677. width:588rpx;
  678. line-height:80rpx;
  679. height:80rpx;
  680. margin:0 50rpx 20rpx;
  681. background-color: #fff;
  682. border:1rpx solid #0183FA;
  683. color:#0183FA;
  684. font-size:30rpx;
  685. text-align: center;
  686. border-radius:6rpx;
  687. }
  688. }
  689. .submit-check-box{
  690. display: flex;
  691. padding:20rpx;
  692. img{
  693. width:40rpx;
  694. height:40rpx;
  695. margin:20rpx 20rpx 0 20rpx;
  696. }
  697. view{
  698. flex:1;
  699. line-height: 40rpx;
  700. color:#666;
  701. }
  702. .check-view{
  703. color:#0183FA !important;
  704. }
  705. }
  706. .submit-button{
  707. width:650rpx;
  708. line-height:80rpx;
  709. height:80rpx;
  710. margin:20rpx 50rpx 60rpx;
  711. background-color: #0183FA;
  712. color:#fff;
  713. font-size:30rpx;
  714. text-align: center;
  715. border-radius:6rpx;
  716. }
  717. .no-submit-button{
  718. background-color: #999 !important;
  719. }
  720. }
  721. </style>