整车仓库运营区域选择

This commit is contained in:
小朱 2025-04-21 17:52:47 +08:00
parent eb8ec13371
commit 80a2227352

View File

@ -8,7 +8,7 @@
@confirm="search" />
</view>
<view class="searchmore" @click="showDrawer('showRight')">
<image :src="`${imgPath}static/image/更多.png`" alt="" />
<image :src="`${imgPath}static/image/更多.png`" alt="" />
</view>
</view>
</template>
@ -94,7 +94,7 @@
<view class="padding plcrk">
<uni-forms ref="customForm" :rules="customRules" :modelValue="customFormData">
<uni-section title="运营区域" type="line">
<uni-forms-item required name="reginvalue">
<uni-forms-item required name="reginvalue">
<uni-data-select v-model="customFormData.reginvalue" :localdata="regindata"
@change="changeZT"></uni-data-select>
</uni-forms-item>
@ -106,7 +106,7 @@
</uni-forms-item>
</uni-section>
</uni-forms>
<view class="button-group">
<view class="button-group">
<button style="width: 100%;" type="primary" @click="submit" size="mini">提交</button>
</view>
</view>
@ -146,7 +146,7 @@
//
const customForm = ref(null)
const customFormData = ref({
reginvalue: 0,
reginvalue: "",
deviceValues: ""
})
//
@ -154,13 +154,15 @@
reginvalue: {
rules: [{
required: true,
errorMessage: '运营区域不能为空'
message: '请选择运营区域',
trigger: 'blur'
}]
},
deviceValues: {
rules: [{
required: true,
errorMessage: '车辆编号不能为空!'
errorMessage: '车辆编号不能为空!',
trigger: 'blur'
}]
}
})
@ -238,6 +240,7 @@
const params = {
"bikeCode": customFormData.value.deviceValues, //
"status": statusZT.value, // 2025-03-21
"regionId":customFormData.reginvalue
}
api.callEbikeInfo("vehicleLeaveWarehouse", params).then((res) => {
if (res.code == 200) {
@ -307,8 +310,7 @@
customFormData.value.deviceValues = selectedItems.value
popup.value.open("center");
statusZT.value = 1;
} else if (res.cancel) {
}
} else if (res.cancel) {}
}
});
}