更新镇公司与镇公司签约

This commit is contained in:
weipengfei 2023-08-21 18:34:13 +08:00
parent 109f78d122
commit 8e31016ad0
2 changed files with 42 additions and 7 deletions

View File

@ -11,12 +11,26 @@
/>
</el-form-item>
<el-form-item label="公司类型" prop="company_type">
<el-input
<el-select
v-model="queryParams.company_type"
placeholder="公司类型"
clearable
@change="getLists"
:style="{ width: '100%' }"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
<!-- <el-input
class="w-[280px]"
v-model="queryParams.company_type"
clearable
placeholder="请输入公司类型"
/>
/> -->
</el-form-item>
<el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button>
@ -54,6 +68,16 @@ const props = defineProps({
type: Number,
default: 0,
},
companyTypeList: {
type: Array,
default: () => {
return [];
},
},
});
const typeList = props.companyTypeList.filter((item: any) => {
return item.id == 30 || item.id == 16;
});
//

View File

@ -275,14 +275,14 @@
<el-row>
<el-col :span="12">
<el-form-item label-width="100px" label="甲方" prop="field130">
<!-- <el-input
<el-input
v-model="contractFormData.party_a_name"
placeholder="请选择甲方"
@click="showCompany = true"
clearable
:style="{ width: '100%' }"
></el-input> -->
<el-select
></el-input>
<!-- <el-select
v-model="contractFormData.party_a"
placeholder="请选择甲方"
clearable
@ -294,7 +294,7 @@
:label="item.company_name"
:value="item.id"
></el-option>
</el-select>
</el-select> -->
</el-form-item>
</el-col>
<el-col :span="12">
@ -356,8 +356,14 @@
>返回</el-button
>
</p>
<el-dialog v-model="showCompany">
<DialogIndex
:companyTypeList="datas.dictTypeLists"
:type="30"
@customEvent="customEvent"
></DialogIndex>
</el-dialog>
</el-dialog>
<DialogIndex v-if="showCompany"></DialogIndex>
<el-dialog v-model="showPop" @close="offPop">
<h1>重要提醒</h1>
<div class="content" v-if="showConctactPop">
@ -405,6 +411,11 @@ import { dictContractTypeList } from "@/utils/dict.ts";
import DialogIndex from "./dialog_index.vue";
const showCompany = ref(false);
const customEvent = (e: any) => {
contractFormData.value.party_a = e.id;
contractFormData.value.party_a_name = e.company_name;
showCompany.value = false;
};
const userStore = useUserStore();
console.log(userStore.userInfo.company_id);