12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <view>
- <uni-forms :modelValue="setForm" ref="setvalueForm" :rules="rules">
- <uni-forms-item label="仓位号:" required name="chargerId" label-align="right" label-width="138px">
- <uni-easyinput type="text" :maxlength="2" @blur="getChargerId" v-model="setForm.chargerId" placeholder="请输入仓位号" :clear="false"/>
- </uni-forms-item>
- <uni-forms-item label="桩编号:" required name="chargerCode" label-align="right" label-width="138px">
- <uni-easyinput type="text" v-model.trim="setForm.chargerCode" :maxlength="50" placeholder="请输入桩编号" :clear="false"/>
- </uni-forms-item>
- <uni-forms-item label="是否可换电:" required name="isSwap" label-align="right" label-width="138px">
- <uni-data-select v-model.trim="setForm.isSwap" placeholder="请选择是否可换电" :localdata="rangePower"
- :clear="false"></uni-data-select>
- </uni-forms-item>
- <uni-forms-item label="充电连接控制方式:" required name="isCheck" label-align="right" label-width="138px">
- <uni-data-select v-model.trim="setForm.isCheck" placeholder="请选择充电连接控制方式" :localdata="rangeCharge"
- :clear="false"></uni-data-select>
- </uni-forms-item>
- <!-- <uni-forms-item label="状态:" name="state" label-align="right" label-width="120px">
- <uni-data-select v-model.trim="basicFrom.state" :localdata="range"
- :clear="false"></uni-data-select>
- </uni-forms-item> -->
- </uni-forms>
- </view>
- <!-- 剩个已充时长和落座信号没有对字段 -->
- </template>
- <script>
- export default {
- name: 'ChargeDrawer',
- props: ['setForm','rangePower','rangeCharge','rules','changeChargerId'],
- data() {
- return {
- // getbasicFrom:{}
- }
- },
- methods:{
- getChargerId() {
- if(this.setForm.chargerId==0){
- this.$emit('changeChargerId')
- }
- },
- }
- }
- </script>
- <style lang="scss" scoped>
-
- ::v-deep .uni-forms-item {
- width: 100% !important;
-
- }
-
- </style>
|