mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-06-18 22:32:00 +08:00
[feat] 更新项目跟踪表单和部门选项
This commit is contained in:
parent
74dac2a818
commit
2d49a7a49b
@ -110,14 +110,11 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="地址" prop="address">
|
<el-form-item label="地址" prop="address">
|
||||||
<el-cascader
|
<el-input
|
||||||
v-model="formData.address"
|
v-model="formData.address"
|
||||||
:options="areaList"
|
|
||||||
:props="defaultProps"
|
|
||||||
class="w-1/1"
|
class="w-1/1"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
placeholder="请输入地址"
|
||||||
placeholder="请选择城市"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -163,8 +160,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12" v-if="formData.emergency === true">
|
<el-col :span="12" v-if="formData.emergency === true">
|
||||||
<el-form-item label="项目附件" prop="emergencyDocId" >
|
<el-form-item label="项目附件" prop="emergencyDocUrl" >
|
||||||
<UploadFile v-model="formData.emergencyDocId" />
|
<UploadFile v-model="formData.emergencyDocUrl" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
@ -323,7 +320,7 @@ const formData = ref({
|
|||||||
situation: undefined,
|
situation: undefined,
|
||||||
emergency: undefined,
|
emergency: undefined,
|
||||||
entrustmentMethod: undefined,
|
entrustmentMethod: undefined,
|
||||||
emergencyDocId: undefined,
|
emergencyDocUrl: undefined,
|
||||||
collaborativeProjects: undefined,
|
collaborativeProjects: undefined,
|
||||||
cooperativeCompanyId: undefined,
|
cooperativeCompanyId: undefined,
|
||||||
landingPossibility: undefined,
|
landingPossibility: undefined,
|
||||||
@ -426,7 +423,7 @@ const resetForm = () => {
|
|||||||
situation: undefined,
|
situation: undefined,
|
||||||
emergency: undefined,
|
emergency: undefined,
|
||||||
entrustmentMethod: undefined,
|
entrustmentMethod: undefined,
|
||||||
emergencyDocId: undefined,
|
emergencyDocUrl: undefined,
|
||||||
collaborativeProjects: undefined,
|
collaborativeProjects: undefined,
|
||||||
cooperativeCompanyId: undefined,
|
cooperativeCompanyId: undefined,
|
||||||
landingPossibility: undefined,
|
landingPossibility: undefined,
|
||||||
|
@ -78,8 +78,6 @@ import { ProjectTrackingApi, ProjectTrackingVO } from '@/api/pm/projecttracking'
|
|||||||
import ProjectTrackingForm from './ProjectTrackingForm.vue'
|
import ProjectTrackingForm from './ProjectTrackingForm.vue'
|
||||||
import SearchBarEx from "@/components/SearchBar/SearchBarEx.vue";
|
import SearchBarEx from "@/components/SearchBar/SearchBarEx.vue";
|
||||||
import { CustomerApi } from "@/api/pm/customer";
|
import { CustomerApi } from "@/api/pm/customer";
|
||||||
import * as DeptApi from '@/api/system/dept'
|
|
||||||
import { handleTree } from '@/utils/tree'
|
|
||||||
|
|
||||||
/** 项目跟踪 列表 */
|
/** 项目跟踪 列表 */
|
||||||
defineOptions({ name: 'ProjectTracking' })
|
defineOptions({ name: 'ProjectTracking' })
|
||||||
@ -90,7 +88,7 @@ const loading = ref(true) // 列表的加载中
|
|||||||
const list = ref<ProjectTrackingVO[]>([]) // 列表的数据
|
const list = ref<ProjectTrackingVO[]>([]) // 列表的数据
|
||||||
const total = ref(0) // 列表的总页数
|
const total = ref(0) // 列表的总页数
|
||||||
const constructionOptions = ref([]); // 建设单位选项
|
const constructionOptions = ref([]); // 建设单位选项
|
||||||
const deptOptions = ref<any[]>([]) // 部门选项
|
const deptOptions = []; // 部门选项
|
||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@ -178,11 +176,6 @@ const getConstructionOptions = async () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const getDeptOptions = async () => {
|
|
||||||
deptOptions.value = handleTree(await DeptApi.getSimpleDeptList())
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 定义所有搜索字段
|
// 定义所有搜索字段
|
||||||
const allFields = [
|
const allFields = [
|
||||||
{ label: '项目名称', prop: 'name', component: 'el-input' },
|
{ label: '项目名称', prop: 'name', component: 'el-input' },
|
||||||
@ -192,19 +185,7 @@ const allFields = [
|
|||||||
component: 'el-select',
|
component: 'el-select',
|
||||||
options: constructionOptions.value,
|
options: constructionOptions.value,
|
||||||
},
|
},
|
||||||
// { label: '主控部门', prop: 'deptName',component: 'el-input' },
|
{ label: '主控部门', prop: 'deptName',component: 'el-input' },
|
||||||
{
|
|
||||||
label: '主控部门',
|
|
||||||
prop: 'deptId',
|
|
||||||
component: 'el-tree-select',
|
|
||||||
props: {
|
|
||||||
data: deptOptions.value,
|
|
||||||
props: { children: 'children', label: 'name', value: 'id' },
|
|
||||||
checkStrictly: true,
|
|
||||||
filterable: true,
|
|
||||||
clearable: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ label: '负责人', prop: 'pmName',component: 'el-input' },
|
{ label: '负责人', prop: 'pmName',component: 'el-input' },
|
||||||
{ label: '合同额', prop: 'contractAmount', component: 'el-input' },
|
{ label: '合同额', prop: 'contractAmount', component: 'el-input' },
|
||||||
{ label: '业务类型', prop: 'businessType', component: 'el-select', options: getStrDictOptions(DICT_TYPE.PROJECT_TYPE).map(dict => ({ label: dict.label, value: dict.value })) },
|
{ label: '业务类型', prop: 'businessType', component: 'el-select', options: getStrDictOptions(DICT_TYPE.PROJECT_TYPE).map(dict => ({ label: dict.label, value: dict.value })) },
|
||||||
@ -215,6 +196,5 @@ const allFields = [
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getList()
|
getList()
|
||||||
getConstructionOptions(); // 获取建设单位选项
|
getConstructionOptions(); // 获取建设单位选项
|
||||||
getDeptOptions(); // 获取部门树形结构
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user