Commit 48f9feda authored by 祁正's avatar 祁正

feat(通知单内容维护):新增表单内容准备就绪待新增接口

parent e66f48a6
......@@ -24,3 +24,11 @@ export function getVehicleModelAnnouncementNumber(id) {
})
}
// 获取当前登录用户
export function getCurrentLoginUser() {
return request({
url: '/control/sysNotificationContent/getCurrentLoginUser',
method: 'get'
})
}
......@@ -169,7 +169,7 @@
placeholder="请选择"
>
<el-option
v-for="dict in 4"
v-for="dict in changeType"
:label="dict"
:value="dict"
/>
......@@ -188,9 +188,9 @@
>
<el-option
v-for="dict in 4"
:label="dict"
:value="dict"
v-for="dict in car_type"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
......@@ -207,7 +207,7 @@
<el-row >
<el-col :offset="1" :span="22">
<el-form-item label="RTX/TEL:" prop="rtxTel">
<el-form-item label="RTX/TEL:" prop="">
<el-input placeholder="请输入" v-model="drawerQueryParams.rtxTel" />
</el-form-item>
</el-col>
......@@ -215,16 +215,17 @@
<el-row >
<el-col :offset="1" :span="22">
<el-form-item label="认证负责人:" prop="certificationResponsiblePerson">
<el-form-item label="认证负责人:" prop="">
<el-select
disabled
v-model="drawerQueryParams.certificationResponsiblePerson"
placeholder="请选择认证负责人"
clearable
>
<el-option
v-for="dict in 4"
:label="dict"
:value="dict"
v-for="dict in [...currentLoginInfo]"
:label="dict.userName"
:value="dict.userId"
/>
</el-select>
</el-form-item>
......@@ -232,7 +233,7 @@
<el-row >
<el-col :offset="1" :span="22">
<el-form-item label="完成日期:" prop="completionTime">
<el-form-item label="完成日期:" prop="">
<el-date-picker
v-model="drawerQueryParams.completionTime"
type="date"
......@@ -261,7 +262,8 @@
<script setup>
import {
getTopDetailInfo,
getVehicleModelAnnouncementNumber
getVehicleModelAnnouncementNumber,
getCurrentLoginUser
} from "@/api/notificationContent/list.js"
import { useRoute } from 'vue-router';
const drawerTitle = ref('')
......@@ -274,9 +276,14 @@ const modelAnnouncementNumber = ref([])
const drawerQueryParams = ref({
})
const changeType = ref([
"扩展","新增"
])
const { power_type } = proxy.useDict('power_type')
const { car_type } = proxy.useDict('car_type')
const { notification_status } = proxy.useDict('notification_status')
const currentLoginInfo = ref([])
// 从全局字典中获取事业部 icar 才能选择的车型系列数据
const { vehicle_model_series_icar } = proxy.useDict('vehicle_model_series_icar')
// 从全局字典中获取除事业部 icar 外可选择的车型系列数据
......@@ -355,8 +362,7 @@ const getLabelByKey = (key) => {
// 若两个字典都未找到,返回空字符串
return '';
};
getTopInfo()
getChexing()
function confirmClick() {
......@@ -368,12 +374,23 @@ function confirmClick() {
}
})
}
function getCurrentLoginInfo(){
getCurrentLoginUser().then(res=>{
console.log(res.data)
currentLoginInfo.value = [res.data]
drawerQueryParams.value.certificationResponsiblePerson = res.data.userId;
})
}
function cancelClick() {
drawerQueryRef.value.resetFields();
drawer.value = false;
}
getCurrentLoginInfo()
getTopInfo()
getChexing()
</script>
<style scoped lang="scss">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment