edit_quality_testing.vue 20 KB

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