add_quality_testing.vue 19 KB

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