add_quality_testing.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. <template>
  2. <view>
  3. <view class='wrap'>
  4. <view class='title_b'>基本信息</view>
  5. <view class="c-row ">
  6. <view class="title">仓库</view>
  7. <view class="con-list">
  8. {{gridList.warehouseName}}
  9. </view>
  10. </view>
  11. <view class="c-row ">
  12. <view class="title">编号</view>
  13. <view class="con-list">
  14. {{gridList.qualityNo}}
  15. </view>
  16. </view>
  17. <view class="c-row ">
  18. <view class="title">客户</view>
  19. <view class="con-list">
  20. <view @click='gocustomer' v-if='gridList.customerName'>
  21. {{gridList.customerName}}({{gridList.customerPhone}})
  22. </view>
  23. <view @click='gocustomer' v-else>
  24. 选择客户
  25. </view>
  26. </view>
  27. </view>
  28. <view class="c-row ">
  29. <view class="title">车牌号</view>
  30. <view class="con-list">
  31. <input v-model='gridList.carNumber' placeholder="请输入车牌号"
  32. name="input"></input>
  33. </view>
  34. </view>
  35. <view v-if="gridList.paramType != '1'" class="c-row ">
  36. <view class="title">扣重比</view>
  37. <view class="con-list">
  38. <input v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比"
  39. name="input"></input>
  40. </view>
  41. </view>
  42. <view v-else class="c-row ">
  43. <view class="title">扣杂</view>
  44. <view class="con-list">
  45. <input v-model='gridList.buckleMiscellaneous' placeholder="初检扣杂" @input="waterContentChange"
  46. name="input"></input>
  47. <input v-model='gridList.reBuckleMiscellaneous' placeholder="复检扣杂" @input="waterContentChange"
  48. name="input"></input>
  49. </view>
  50. </view>
  51. <view class="c-row ">
  52. <view class="title">购粮性质</view>
  53. <view class="con-list">
  54. <input v-model='gridList.natureOfGrainPurchase' placeholder="请输入购粮性质"
  55. name="input"></input>
  56. </view>
  57. </view>
  58. <view class="c-row ">
  59. <view class="title">仓位号</view>
  60. <view class="con-list">
  61. <view @click='show=true'>{{gridList.binNumber?gridList.binNumber:'请选择仓位号'}}</view>
  62. <u-picker :range="warehouseList" range-key="binNumber" @confirm='binNumberpicker($event)' v-model="show" mode="selector" >
  63. </u-picker>
  64. </view>
  65. </view>
  66. <view class="c-row ">
  67. <view class="title">囤位号</view>
  68. <view class="con-list">
  69. <input type='number' v-model='gridList.storageTagNo' placeholder="请输入囤位号"
  70. name="input"></input>
  71. </view>
  72. </view>
  73. <view class="c-row ">
  74. <view class="title">货名</view>
  75. <view class="con-list">
  76. <view @click='show2=true'>{{gridList.goodsName}}</view>
  77. <u-picker :range="goodsList" range-key="goodsName" @confirm='goodspicker($event)' v-model="show2" mode="selector" >
  78. </u-picker>
  79. </view>
  80. </view>
  81. <view class="c-row ">
  82. <view class="title">类型</view>
  83. <view class="con-list">
  84. <view @click='show3=true'>{{gridList.type}}</view>
  85. <u-picker :range="typeList" @confirm='typepicker($event)' v-model="show3" mode="selector" >
  86. </u-picker>
  87. </view>
  88. </view>
  89. <view v-if="gridList.type == '潮粮'" class="c-row">
  90. <view class="title">净重单价(元/公斤)</view>
  91. <view class="con-list">
  92. <input v-model='gridList.tidalGrainPrice' disabled placeholder="自动获取,不可编辑"
  93. name="input"></input>
  94. </view>
  95. </view>
  96. <view v-if="gridList.type == '干粮'" class="c-row">
  97. <view class="title">干粮单价(元/公斤)</view>
  98. <view class="con-list">
  99. <input v-model='gridList.dryGrainPrice' placeholder="请输入干粮单价"
  100. name="input"></input>
  101. </view>
  102. </view>
  103. </view>
  104. <view style='margin-bottom:300rpx;' class='wrap'>
  105. <view class='title_b'>化验信息</view>
  106. <view class="c-row ">
  107. <view class="title">等级</view>
  108. <view class="con-list">
  109. <view @click='show1=true'>{{gridList.grade?gridList.grade:'请选择等级'}}</view>
  110. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker($event)' v-model="show1" mode="selector" >
  111. </u-picker>
  112. </view>
  113. </view>
  114. <view class="c-row ">
  115. <view class="title">水分(%)</view>
  116. <view class="con-list">
  117. <input v-model='gridList.waterContent' placeholder="初检水分" @input="waterContentChange"
  118. name="input"></input>
  119. <input v-model='gridList.rewaterContent' placeholder="复检水分" @input="waterContentChange"
  120. name="input"></input>
  121. </view>
  122. </view>
  123. <view class="c-row ">
  124. <view class="title">容重(克/升)</view>
  125. <view class="con-list">
  126. <input v-model='gridList.bulkDensity' placeholder="请输入容重"
  127. name="input"></input>
  128. </view>
  129. </view>
  130. <view class="c-row ">
  131. <view class="title">不完善粒(%)</view>
  132. <view class="con-list">
  133. <input v-model='gridList.imperfectGrain' placeholder="请输入不完整粒占比"
  134. name="input"></input>
  135. </view>
  136. </view>
  137. <view class="c-row ">
  138. <view class="title">杂质(%)</view>
  139. <view class="con-list">
  140. <input v-model='gridList.impurity' placeholder="请输入杂质占比"
  141. name="input"></input>
  142. </view>
  143. </view>
  144. <view class="c-row ">
  145. <view class="title">霉变粒(%)</view>
  146. <view class="con-list">
  147. <input v-model='gridList.mildewGrain' placeholder="请输入霉变粒占比"
  148. name="input"></input>
  149. </view>
  150. </view>
  151. <view class="c-row">
  152. <view class="title">热损伤(%)</view>
  153. <view class="con-list">
  154. <input v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
  155. name="input"></input>
  156. </view>
  157. </view>
  158. </view>
  159. <view class="footer">
  160. <view @click='submit' class="button">提交</view>
  161. </view>
  162. </view>
  163. </template>
  164. <script>
  165. import dragButton from "@/components/drag-button/drag-button.vue";
  166. import {
  167. mapState
  168. } from 'vuex';
  169. let startY = 0,
  170. moveY = 0,
  171. pageAtTop = true;
  172. export default {
  173. components: {
  174. dragButton
  175. },
  176. data() {
  177. return {
  178. inputShow: false,
  179. modalName: '',
  180. mycarStyle: '',
  181. feild: undefined,
  182. id:0,
  183. show:false,
  184. selector:[],
  185. show1:false,
  186. inputContent: '',
  187. coverTransform: 'translateY(0px)',
  188. coverTransition: '0s',
  189. moving: false,
  190. footprintList: [],
  191. searchKeyWord:'',
  192. isVip: false,
  193. userInfoTmp: [],
  194. inputStatus: 'none',
  195. carInfo: [],
  196. gridCol: 4,
  197. pageSize:10,
  198. show3:false,
  199. show2:false,
  200. goodsList:[],
  201. currentPage:1,
  202. gridBorder: false,
  203. headUrl:"../../static/img/myimg/YongHu@3x.png",
  204. userphone:"",
  205. username:"请更改昵称",
  206. gridList: {
  207. natureOfGrainPurchase:'贸易粮',
  208. type:'潮粮',
  209. tidalGrainPrice:'',
  210. dryGrainPrice:'',
  211. buckleMiscellaneous:'',
  212. },
  213. typeList:['潮粮','干粮'],
  214. managementType:'',
  215. warehouseName: '',
  216. warehouseList:[],
  217. warehouseCount:'',
  218. commonWarehouseNo:'',
  219. showTran: true,
  220. companyId: 1,
  221. current: 4,
  222. gradeList:[
  223. {key:1,value:'一等品'},
  224. {key:2,value:'二等品'},
  225. {key:3,value:'三等品'},
  226. {key:4,value:'等外'},
  227. ],
  228. cangid:''
  229. }
  230. },
  231. // #ifndef MP
  232. onNavigationBarButtonTap(e) {
  233. const index = e.index;
  234. if (index === 0) {
  235. this.navTo('/pages/set/set');
  236. } else if (index === 1) {
  237. // #ifdef APP-PLUS
  238. const pages = getCurrentPages();
  239. const page = pages[pages.length - 1];
  240. const currentWebview = page.$getAppWebview();
  241. currentWebview.hideTitleNViewButtonRedDot({
  242. index
  243. });
  244. // #endif
  245. uni.navigateTo({
  246. url: '/pages/notice/notice'
  247. })
  248. }
  249. },
  250. // #endif
  251. computed: {
  252. ...mapState(['hasLogin', 'userInfo']),
  253. // 手机号中间4位加*
  254. starUserphone(){
  255. let reg = /^(\d{3})\d{4}(\d{4})$/;
  256. if(this.userphone){
  257. return this.userphone.replace(reg, "$1****$2");
  258. }
  259. }
  260. },
  261. onLoad(options){
  262. this.commonWarehouseNo=options.commonWarehouseNo
  263. this.warehouseCount=Number(options.warehouseCount) + 1
  264. let number = '000' + this.warehouseCount
  265. number = number.substring(number.length - 4, number.length)
  266. this.gridList.warehouseName=options.warehouseName
  267. this.gridList.qualityNo='SGRK' + this.getdate() + this.commonWarehouseNo + number
  268. this.cangid=options.cangid
  269. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName',{
  270. warehouseId:this.cangid
  271. }).then(res => {
  272. if(res.data.data){
  273. }
  274. })
  275. this.managementType=options.managementType
  276. },
  277. onShow() {
  278. this.purchasePriceList=uni.getStorageSync('purchasePriceList')
  279. if(uni.getStorageSync('checkcustomer')){
  280. this.gridList.customerName=uni.getStorageSync('checkcustomer').customerName
  281. this.gridList.customerPhone=uni.getStorageSync('checkcustomer').customerPhone
  282. }
  283. this.gridList.grade=this.gradeList[0].value
  284. this.gridList.gradeKey=this.gradeList[0].key
  285. var that = this
  286. this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer',{
  287. compId:'',
  288. authenticationStatusKey:7
  289. }).then(res => {
  290. if(res.data.data){
  291. // let data = res.data.data
  292. // that.gridList =data
  293. that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse',{
  294. id:this.cangid
  295. }).then(res => {
  296. that.warehouseList=res.data.data.warehousePositionInfoList
  297. })
  298. }
  299. })
  300. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName',{
  301. warehouseId:this.cangid
  302. }).then(res => {
  303. if(res.data.data){
  304. that.goodsList = res.data.data
  305. if(that.goodsList.length > 0){
  306. that.gridList.goodsName=that.goodsList[0].goodsName
  307. uni.setStorageSync('purchasePriceList',that.goodsList)
  308. that.purchasePriceList=uni.getStorageSync('purchasePriceList')
  309. that.waterContentChange()
  310. }
  311. // for (let i = 0; i < res.data.data.length; i++) {
  312. // this.goodsList.push(res.data.data[i].goodsName)
  313. // }
  314. // if(this.goodsList.some(item=>{return item.goodsName=='玉米'})){
  315. // this.gridList.goodsName='玉米'
  316. // uni.setStorageSync('goodsName',this.gridList.goodsName)
  317. // }else{
  318. // this.gridList.goodsName=this.goodsList[0].goodsName
  319. // uni.setStorageSync('goodsName',this.gridList.goodsName)
  320. // }
  321. }
  322. })
  323. },
  324. methods: {
  325. waterContentChange() {
  326. var that = this
  327. if(this.gridList.goodsName && this.cangid){
  328. if(!this.gridList.dryGrainPrice||this.gridList.dryGrainPrice == 0){
  329. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice',{
  330. warehouseId:this.cangid,
  331. goodsName:this.gridList.goodsName
  332. }).then(res => {
  333. that.gridList.dryGrainPrice = res.data.data
  334. })
  335. }
  336. }
  337. if (this.gridList.goodsName) {
  338. for (var i = 0; i < this.purchasePriceList.length; i++) {
  339. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  340. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  341. this.gridList.paramType = this.purchasePriceList[i].paramType
  342. }
  343. }
  344. }
  345. var numReg = /^[0-9]*$/
  346. var numRe = new RegExp(numReg)
  347. //潮粮单价改变事件
  348. if (
  349. this.gridList.goodsName &&
  350. this.gridList.waterContent &&
  351. this.gridList.grade&&
  352. numRe.test(this.gridList.waterContent)
  353. ) {
  354. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice',{
  355. warehouseId:this.cangid,
  356. goodsName:this.gridList.goodsName,
  357. waterContent: this.gridList.waterContent,
  358. grade: this.gridList.grade,
  359. }).then(res => {
  360. if(that.gridList.paramType == '1'){
  361. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that.gridList.buckleMiscellaneous)/100*parseFloat(that.gridList.dryGrainPrice)).toFixed(4)
  362. if(!that.gridList.tidalGrainPrice){
  363. that.gridList.tidalGrainPrice = ''
  364. }
  365. }else{
  366. that.gridList.tidalGrainPrice = res.data.data
  367. }
  368. })
  369. }
  370. },
  371. gocustomer(){
  372. uni.navigateTo({
  373. url:'/pages/erpbusiness/customer?cangid='+this.cangid
  374. })
  375. },
  376. getdate() {
  377. var date = new Date()
  378. var year = date.getFullYear() //获取完整的年份(4位)
  379. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  380. var datetime = date.getDate() //获取当前日(1-31)
  381. if (mouth < 10) {
  382. mouth = '0' + mouth
  383. }
  384. if (datetime < 10) {
  385. datetime = '0' + datetime
  386. }
  387. return year +'' + mouth + '' + datetime
  388. },
  389. submit(){
  390. var that = this
  391. if (!this.gridList.qualityNo) {
  392. this.$api.msg('编号不能为空')
  393. return
  394. }
  395. if (!this.gridList.binNumber) {
  396. this.$api.msg('仓位不能为空')
  397. return
  398. }
  399. if (!this.gridList.customerName) {
  400. this.$api.msg('客户不能为空')
  401. return
  402. }
  403. if (!this.gridList.storageTagNo) {
  404. this.$api.msg('囤位号不能为空')
  405. return
  406. }
  407. if (this.gridList.storageTagNo.length > 10) {
  408. this.$api.msg('囤位号不能为空')
  409. return
  410. }
  411. if (!this.gridList.carNumber) {
  412. this.$api.msg('车牌号不能为空')
  413. return
  414. }
  415. if (this.gridList.carNumber.length != 7) {
  416. this.$api.msg('车牌号输入错误')
  417. return
  418. }
  419. if (!this.gridList.goodsName) {
  420. this.$api.msg('货名不能为空')
  421. return
  422. }
  423. if (this.gridList.buckleWeightRatio < 0 ||this.gridList.buckleWeightRatio > 2) {
  424. this.$api.msg('扣重比输入错误')
  425. return
  426. }
  427. if (
  428. String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
  429. String(this.gridList.buckleWeightRatio).length -
  430. (String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2)
  431. {
  432. this.$api.msg('扣重比输入错误')
  433. return
  434. }
  435. if (!this.gridList.type) {
  436. this.$api.msg('类型不能为空')
  437. return
  438. }
  439. if (!this.gridList.natureOfGrainPurchase) {
  440. this.$api.msg('购粮性质不能为空')
  441. return
  442. }
  443. if (!this.gridList.grade) {
  444. this.$api.msg('等级不能为空')
  445. return
  446. }
  447. if (!this.gridList.impurity) {
  448. this.$api.msg('杂质不能为空')
  449. return
  450. }
  451. if (!this.gridList.waterContent) {
  452. this.$api.msg('水分不能为空')
  453. return
  454. }
  455. if (!this.gridList.mildewGrain) {
  456. this.$api.msg('霉变粒不能为空')
  457. return
  458. }
  459. if (!this.gridList.bulkDensity) {
  460. this.$api.msg('容重不能为空')
  461. return
  462. }
  463. if (!this.gridList.jiaorenli) {
  464. this.$api.msg('热损伤不能为空')
  465. return
  466. }
  467. if (!this.gridList.imperfectGrain) {
  468. this.$api.msg('不完整粒不能为空')
  469. return
  470. }
  471. uni.showModal({
  472. content: "确定提交质检信息?",
  473. showCancel: true,
  474. confirmText: '提交',
  475. success: function(res) {
  476. if (res.confirm) {
  477. that.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection',that.gridList).then(res => {
  478. if(res.data.code==200){
  479. that.$api.msg('提交成功')
  480. uni.navigateBack({
  481. })
  482. }else{
  483. hat.$api.msg('提交失败')
  484. }
  485. })
  486. }
  487. }
  488. })
  489. },
  490. gradepicker(e){
  491. console.log(e)
  492. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  493. this.gridList.grade=this.gradeList[e[0]].value
  494. this.gridList.gradeKey=this.gradeList[e[0]].key
  495. this.waterContentChange()
  496. },
  497. goodspicker(e){
  498. console.log(e)
  499. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  500. this.gridList.goodsName=this.goodsList[e[0]].goodsName
  501. uni.setStorageSync('goodsName',this.gridList.goodsName)
  502. if(this.gridList.type == "干粮" && this.gridList.goodsName){
  503. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice',{
  504. warehouseId:this.cangid,
  505. goodsName:this.gridList.goodsName
  506. }).then(res => {
  507. that.gridList.dryGrainPrice = res.data.data
  508. })
  509. }
  510. this.waterContentChange()
  511. },
  512. typepicker(e){
  513. var that = this
  514. this.gridList.type=this.typeList[e[0]]
  515. if(this.gridList.type == "干粮" &&this.gridList.goodsName){
  516. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice',{
  517. warehouseId:this.cangid,
  518. goodsName:this.gridList.goodsName
  519. }).then(res => {
  520. that.gridList.dryGrainPrice = res.data.data
  521. })
  522. }
  523. },
  524. binNumberpicker(e){
  525. this.gridList.binNumber=this.warehouseList[e[0]].binNumber
  526. },
  527. del(item){
  528. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection',{
  529. id:item.id
  530. }).then(res => {
  531. if(res.data.code==200){
  532. this.$api.msg('删除成功')
  533. }else{
  534. this.$api.msg('系统异常,请联系管理员')
  535. }
  536. })
  537. },
  538. contactUs() {
  539. const that = this
  540. uni.makePhoneCall({
  541. // 手机号
  542. phoneNumber: '18241771147',
  543. // 成功回调
  544. success: (res) => {},
  545. // 失败回调
  546. fail: (res) => {}
  547. });
  548. },
  549. loadData() {
  550. // const that = this
  551. // if(uni.getStorageSync("PageCur")){
  552. // that.PageCur = uni.getStorageSync("PageCur");
  553. // }
  554. // that.userInfoTmp = uni.getStorageSync("userInfo")
  555. // uni.showLoading({
  556. // title: '正在加载',
  557. // mask:true
  558. // })
  559. // that.$api.request('integral', 'getIndexData', failres => {
  560. // that.$api.msg(failres.errmsg)
  561. // uni.hideLoading()
  562. // }).then(res => {
  563. // let data = res.data
  564. // uni.setStorageSync("message", data.message);
  565. // uni.setStorageSync("task", data.task);
  566. // uni.setStorageSync("contract", data.contract);
  567. // uni.setStorageSync('showTran', data.showTran);
  568. // that.showTran = data.showTran
  569. // that.gridList[4].tips = data.task
  570. // that.gridList[2].tips = data.contract
  571. // that.companyId = data.companyId
  572. // uni.hideLoading()
  573. // })
  574. },
  575. confirm() {
  576. const that = this
  577. if (!that.inputContent) {
  578. that.$api.msg('输入不能为空')
  579. return
  580. }
  581. let obj = {}
  582. obj[that.feild] = that.inputContent
  583. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  584. that.userInfo.nickname = that.inputContent
  585. that.inputContent = ''
  586. that.$store.commit('login', that.userInfo)
  587. })
  588. },
  589. cancel() {
  590. this.inputShow = false
  591. this.inputStatus = 'none'
  592. this.genderShow = false
  593. },
  594. myAccount() {
  595. uni.navigateTo({
  596. url: `/pageA/pages/contract`
  597. })
  598. },
  599. /**
  600. * 统一跳转接口,拦截未登录路由
  601. * navigator标签现在默认没有转场动画,所以用view
  602. */
  603. navTo(url) {
  604. if (!this.hasLogin) {
  605. url = '/pages/public/login';
  606. }
  607. uni.navigateTo({
  608. url
  609. })
  610. },
  611. mycarClick(carNo) {
  612. this.modalName = null
  613. uni.navigateTo({
  614. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  615. })
  616. },
  617. scanCode() {
  618. uni.scanCode({
  619. success: function(res) {
  620. uni.navigateTo({
  621. url: res.result
  622. })
  623. }
  624. })
  625. },
  626. hideModal(e) {
  627. this.modalName = null
  628. },
  629. }
  630. }
  631. </script>
  632. <style lang='scss' scoped>
  633. page{
  634. background:#F5F6FA;
  635. }
  636. .title_b {
  637. margin: 20rpx 20rpx 0rpx 20rpx;
  638. padding: 20rpx 10rpx 20rpx 10rpx;
  639. font-size: 18px;
  640. font-weight: 550;
  641. }
  642. .c-row {
  643. display: -webkit-box;
  644. display: -webkit-flex;
  645. display: flex;
  646. -webkit-box-align: center;
  647. -webkit-align-items: center;
  648. align-items: center;
  649. padding: 20rpx 30rpx;
  650. position: relative;
  651. }
  652. .con-list {
  653. -webkit-box-flex: 1;
  654. -webkit-flex: 1;
  655. flex: 1;
  656. display: -webkit-box;
  657. display: -webkit-flex;
  658. display: flex;
  659. -webkit-box-orient: vertical;
  660. -webkit-box-direction: normal;
  661. -webkit-flex-direction: column;
  662. flex-direction: column;
  663. color: #303133;
  664. line-height: 40rpx;
  665. text-align: right;
  666. padding-right: 20rpx;
  667. }
  668. .wrap{
  669. padding-bottom:10px;
  670. font-size:14px;
  671. background:#fff;margin:10px;border-radius:10px;
  672. input{
  673. font-size:14px;
  674. }
  675. >.title{
  676. padding:10px 16px;
  677. }
  678. }
  679. .footer{
  680. background:#fff;
  681. position:fixed;
  682. bottom:0;
  683. width:100%;
  684. padding:20px 10px;
  685. z-index:10;
  686. .button{
  687. background:#22C572;
  688. width:90%;
  689. margin:0 auto;
  690. padding:10px;
  691. color:#fff;
  692. text-align:center;
  693. border-radius: 30px;
  694. }
  695. }
  696. </style>