cardSupple.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="lists">
  3. <view class="list" @click="showDatePicker">
  4. <view class="listl"><text>*</text>补卡时间</view>
  5. <view class="listi" :style="formData.applicationTime?'':'color: #AAAAAA;'">{{formData.applicationTime||"请选择补卡时间"}}</view>
  6. <image :src="rimg"></image>
  7. </view>
  8. <view class="list lista" >
  9. <view class="listl"><text>*</text>补卡原因</view>
  10. <textarea placeholder="请输入补卡原因" maxlength="1000" class="listia" v-model="formData.reason"></textarea>
  11. <view class="listib">{{formData.reason.length}}/1000</view>
  12. </view>
  13. <view class="listbtn" @click="getSure">提交</view>
  14. <dataTimePicke ref="timeicker" type="datetime-all" toolBarTitle="请选择时间" @change="timeChange"></dataTimePicke>
  15. </view>
  16. </template>
  17. <script>
  18. import dataTimePicke from "@/components/timepick/dataTimePicke.vue"
  19. import {getMapconfig} from "@/api/work/check.js"
  20. export default{
  21. data(){
  22. return{
  23. rimg:require("@/work/static/clock/right.png"),
  24. formData:{
  25. applicationTime:'',
  26. reason:''
  27. }
  28. }
  29. },
  30. components:{
  31. dataTimePicke
  32. },
  33. onLoad(e) {
  34. },
  35. mounted() {
  36. },
  37. methods:{
  38. showDatePicker(){
  39. this.$refs.timeicker.show();
  40. },
  41. timeChange(e){
  42. that.formData.applicationTime=e
  43. }
  44. }
  45. }
  46. </script>
  47. <style scoped lang="scss">
  48. page{background-color: #FFFFFF;}
  49. .lists{padding: 20rpx 34rpx;
  50. .list{padding:30rpx 0;display: flex;align-items: center;
  51. &.lista{flex-direction: column;align-items: flex-start;}
  52. .listl{font-size:28rpx;font-weight: bold;color: #343434;flex:0 0 auto;margin-right: 26rpx;
  53. text{font-size: 28rpx;color: #FF0000;margin-right: 8rpx;}
  54. }
  55. .listr{font-size: 28rpx;color: #1678FF;flex: 1 ;text-decoration: underline;text-align: right;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
  56. .listi{font-size:28rpx;color: #343434;flex:1;text-align: right;}
  57. .listia{font-size:28rpx;color: #343434;text-align: left;margin-top: 24rpx;width: 100%;}
  58. .listib{font-size: 28rpx;color: #666666;text-align: right;margin-top: 20rpx;width: 100%;}
  59. image{width: 10rpx;height: 18rpx;flex: 0 0 auto;margin-left: 26rpx;}
  60. }
  61. .listbtn{width: 100%;height: 76rpx;background: #1678FF;border-radius: 6px;font-size: 28rpx;color: #FFFFFF;margin-top:70rpx;line-height: 76rpx;text-align: center;}
  62. }
  63. .boxtopbb{text-decoration: none;}
  64. </style>