BindDrawer.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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" :disabled="true" :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" :disabled="true" />
  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" :disabled="true" :clear="false" />
  12. </uni-forms-item>
  13. <uni-forms-item label="RFID:" name="frid" label-align="right" label-width="120px">
  14. <uni-easyinput type="text" v-model.trim="basicFrom.frid" placeholder="点击下方按钮读取RFID卡号" :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="value" @input="inputHandle" placeholder="请输入RFID后四位再次验证" :clear="false" />
  19. </uni-forms-item>
  20. </uni-forms>
  21. </view>
  22. <!-- 剩个已充时长和落座信号没有对字段 -->
  23. </template>
  24. <script>
  25. export default {
  26. name: 'BasicDrawer',
  27. props: ['basicFrom','range'],
  28. data() {
  29. return {
  30. // getbasicFrom:{}
  31. dataForm: {},
  32. value: null,
  33. }
  34. },
  35. watch: {
  36. basicFrom: {
  37. deep: true,
  38. handler(val) {
  39. this.dataForm = val
  40. }
  41. }
  42. },
  43. methods:{
  44. changeId(e) {
  45. },
  46. inputHandle(e) {
  47. this.$emit('inputHandle', e)
  48. // console.log(e, '111')
  49. // this.basicFrom.epcFour = e.toUpperCase();
  50. },
  51. //读取frid
  52. redHandle() {
  53. this.$emit('redHandle')
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. ::v-deep .uni-forms-item__content {
  60. background: rgba(255, 255, 255, 0);
  61. // border-radius: 2px 2px 2px 2px;
  62. // border: 1px solid #263042;
  63. .uni-easyinput__content {
  64. background: none !important;
  65. border: none !important;
  66. color: #fff;
  67. width: 238px !important;
  68. }
  69. }
  70. ::v-deep .uni-forms-item {
  71. width: 100% !important;
  72. }
  73. ::v-deep .uni-icons{
  74. display: none;
  75. }
  76. .button {
  77. width: 40px;
  78. }
  79. </style>