Commit 89294617 authored by 祁正's avatar 祁正

feat(通知单承接):列表查询

parent cd7734b2
...@@ -8,3 +8,10 @@ export function list(query) { ...@@ -8,3 +8,10 @@ export function list(query) {
params: query params: query
}) })
} }
// 事业部列表-当前用户权限
export function currentUnitInfo() {
return request({
url: '/control/unit/currentUnitInfo',
method: 'get'
})
}
...@@ -90,30 +90,30 @@ ...@@ -90,30 +90,30 @@
<el-form-item label="批准人:" prop="approvalUserName"> <el-form-item label="批准人:" prop="approvalUserName">
<el-input placeholder="请输入" v-model="queryParams.approvalUserName" style="width: 120px" /> <el-input placeholder="请输入" v-model="queryParams.approvalUserName" style="width: 120px" />
</el-form-item> </el-form-item>
<el-form-item label="控制计划创建状态:" prop="notificationStatus"> <el-form-item label="控制计划创建状态:" prop="controlPlanStatus">
<el-select <el-select
v-model="queryParams.notificationStatus" v-model="queryParams.controlPlanStatus"
placeholder="请选择" placeholder="请选择"
clearable clearable
style="width: 120px" style="width: 120px"
> >
<el-option <el-option
v-for="dict in notification_status" v-for="dict in kongzhiList"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="封面创建状态:" prop="notificationStatus"> <el-form-item label="封面创建状态:" prop="coverStatus">
<el-select <el-select
v-model="queryParams.notificationStatus" v-model="queryParams.coverStatus"
placeholder="请选择" placeholder="请选择"
clearable clearable
style="width: 120px" style="width: 120px"
> >
<el-option <el-option
v-for="dict in notification_status" v-for="dict in kongzhiList"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
:sort-method="(a, b) => a.changeType.localeCompare(b.changeType)" :sort-method="(a, b) => a.changeType.localeCompare(b.changeType)"
> >
<template #default="scope"> <template #default="scope">
<span>{{scope.row.vehicleAnnouncementNumber || '--'}}</span> <span>{{scope.row.changeType || '--'}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
<el-table-column label="操作" align="center" width="200"> <el-table-column label="操作" align="center" width="200">
<template #default="scope"> <template #default="scope">
<el-button type="text" style="color: rgb(0,0,255)" @click="handleView(scope.row)">触发控制计划</el-button> <el-button type="text" style="color: rgb(0,0,255)" @click="handleView(scope.row)">触发控制计划</el-button>
<el-button type="text" style="color: rgb(0,0,255)" @click="handleView(scope.row)">触发封面</el-button> <el-button v-if="scope.row.changeType.includes('新增')" type="text" style="color: rgb(0,0,255)" @click="handleView(scope.row)">触发封面</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -280,14 +280,22 @@ ...@@ -280,14 +280,22 @@
</template> </template>
<script setup> <script setup>
import { import {
list list,
currentUnitInfo
} from "@/api/noticeAcceptance/list.js" } from "@/api/noticeAcceptance/list.js"
import {getAllModelCode} from "@/api/notificationManagement/list.js";
import {ref} from "vue";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
// 从全局字典中获取事业部 icar 才能选择的车型系列数据 // 从全局字典中获取事业部 icar 才能选择的车型系列数据
const { vehicle_model_series_icar } = proxy.useDict('vehicle_model_series_icar') const { vehicle_model_series_icar } = proxy.useDict('vehicle_model_series_icar')
// 从全局字典中获取除事业部 icar 外可选择的车型系列数据 // 从全局字典中获取除事业部 icar 外可选择的车型系列数据
const { vehicle_model_series } = proxy.useDict('vehicle_model_series') const { vehicle_model_series } = proxy.useDict('vehicle_model_series')
// 从全局字典中获取认证机构相关的数据
const { certification_body } = proxy.useDict('certification_body')
// 从全局字典中获取通知单状态相关的数据
const { notification_status } = proxy.useDict('notification_status')
const unitList = ref([])
const total = ref() const total = ref()
const queryParams = ref({ const queryParams = ref({
pageNum:1, pageNum:1,
...@@ -295,10 +303,17 @@ const queryParams = ref({ ...@@ -295,10 +303,17 @@ const queryParams = ref({
}) })
const tableList = ref([]) const tableList = ref([])
const modelCodeList =ref([])
const vehicleModelSeriesList = ref([])
const kongzhiList = [
{
value: '0',
label: '待创建'
}, {
value: '1',
label: '创建完成'
}
]
function getDictList(v){ function getDictList(v){
//车型系列-除了事业部icar选这个 //车型系列-除了事业部icar选这个
...@@ -308,6 +323,17 @@ function getDictList(v){ ...@@ -308,6 +323,17 @@ function getDictList(v){
return true return true
}else return false }else return false
} }
function handleQuery(){
queryParams.value.pageNum = 1
getList()
}
function resetQuery(){
queryParams.value = {
pageNum:1,
pageSize:10
}
getList()
}
function getList(){ function getList(){
list(queryParams.value).then(res=>{ list(queryParams.value).then(res=>{
...@@ -316,6 +342,21 @@ function getList(){ ...@@ -316,6 +342,21 @@ function getList(){
tableList.value = res.rows tableList.value = res.rows
}) })
} }
//获取事业部列表
function getUnitDataList(){
currentUnitInfo().then(res=>{
console.log(res)
unitList.value = res.data
})
}
function getALLModelCodeList(){
getAllModelCode().then(res=>{
modelCodeList.value = res.data
})
}
getALLModelCodeList()
getUnitDataList()
getList() getList()
</script> </script>
......
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