BasicDrawer.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view>
  3. <uni-forms :modelValue="basicFrom">
  4. <uni-forms-item label="车牌号:" name="CarPlate" label-align="right" label-width="120px">
  5. <uni-easyinput type="text" v-model.trim="basicFrom.CarPlate" :clear="false"/>
  6. </uni-forms-item>
  7. <uni-forms-item label="车辆识别码:" name="CarVin" label-align="right" label-width="120px">
  8. <uni-easyinput type="text" v-model.trim="basicFrom.CarVin" />
  9. </uni-forms-item>
  10. <uni-forms-item label="电池距离:" name="CarDistance" label-align="right" label-width="120px">
  11. <uni-easyinput type="text" v-model.trim="basicFrom.CarDistance" :clear="false" />
  12. </uni-forms-item>
  13. <uni-forms-item label="RFID:" name="rfidEpc" label-align="right" label-width="120px">
  14. <uni-easyinput type="text" v-model.trim="basicFrom.rfidEpc" :clear="false" />
  15. <uni-button style="margin-top: 10px;" @click="redHandle">读取</uni-button>
  16. </uni-forms-item>
  17. <uni-forms-item label="RFID:" name="epcFour" label-align="right" label-width="120px">
  18. <uni-easyinput type="text" v-model.trim="basicFrom.epcFour" placeholder="请输入RFID后四位再次验证" :clear="false" />
  19. </uni-forms-item>
  20. <!-- <uni-forms-item label="状态:" name="state" label-align="right" label-width="120px">
  21. <uni-data-select v-model.trim="basicFrom.state" :localdata="range"
  22. :clear="false"></uni-data-select>
  23. </uni-forms-item> -->
  24. </uni-forms>
  25. </view>
  26. <!-- 剩个已充时长和落座信号没有对字段 -->
  27. </template>
  28. <script>
  29. export default {
  30. name: 'BasicDrawer',
  31. props: ['basicFrom','range'],
  32. data() {
  33. return {
  34. // getbasicFrom:{}
  35. dataForm: {}
  36. }
  37. },
  38. watch: {
  39. basicFrom: {
  40. deep: true,
  41. handler(val) {
  42. console.log(val, 'val')
  43. this.dataForm = val
  44. }
  45. }
  46. },
  47. methods:{
  48. changeId(e) {
  49. },
  50. //读取RFID
  51. redHandle() {
  52. this.$emit('redHandle')
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. ::v-deep .uni-forms-item__content {
  59. background: rgba(255, 255, 255, 0);
  60. // border-radius: 2px 2px 2px 2px;
  61. // border: 1px solid #263042;
  62. .uni-easyinput__content {
  63. background: none !important;
  64. border: none !important;
  65. color: #fff;
  66. }
  67. }
  68. ::v-deep .uni-forms-item {
  69. width: 100% !important;
  70. }
  71. ::v-deep .uni-icons{
  72. display: none;
  73. }
  74. .button {
  75. width: 40px;
  76. }
  77. </style>