整车仓库运营区域选择

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