整车仓库运营区域选择
This commit is contained in:
parent
eb8ec13371
commit
80a2227352
@ -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>
|
||||||
@ -106,7 +106,7 @@
|
|||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
</uni-section>
|
</uni-section>
|
||||||
</uni-forms>
|
</uni-forms>
|
||||||
<view class="button-group">
|
<view class="button-group">
|
||||||
<button style="width: 100%;" type="primary" @click="submit" size="mini">提交</button>
|
<button style="width: 100%;" type="primary" @click="submit" size="mini">提交</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -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) {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user