BindDrawer.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" :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. }
  68. }
  69. ::v-deep .uni-forms-item {
  70. width: 100% !important;
  71. }
  72. ::v-deep .uni-icons{
  73. display: none;
  74. }
  75. .button {
  76. width: 40px;
  77. }
  78. </style>