整车仓库运营区域选择
This commit is contained in:
parent
eb8ec13371
commit
80a2227352
@ -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) {}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user