更新
This commit is contained in:
parent
8eeebdb14f
commit
109f78d122
@ -128,6 +128,7 @@
|
||||
:key="index"
|
||||
:label="item.area_name"
|
||||
:value="item.area_code"
|
||||
:disabled="item.disabled"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -153,6 +154,7 @@
|
||||
:key="index"
|
||||
:label="item.street_name"
|
||||
:value="item.street_code"
|
||||
:disabled="item.disabled"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -178,6 +180,7 @@
|
||||
:key="index"
|
||||
:label="item.village_name"
|
||||
:value="item.village_code"
|
||||
:disabled="item.disabled"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -202,6 +205,7 @@
|
||||
:key="index"
|
||||
:label="item.brigade_name"
|
||||
:value="item.id"
|
||||
:disabled="item.disabled"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -1051,8 +1055,11 @@ const getStreetList = async () => {
|
||||
key: "area",
|
||||
value: formData.area,
|
||||
});
|
||||
console.log(f);
|
||||
|
||||
data.forEach((item: any) => {
|
||||
if (f.find((t: any) => item.street_code == t + "")) item.disabled = true;
|
||||
if (Object.values(f).find((t: any) => item.street_code == t + ""))
|
||||
item.disabled = true;
|
||||
else item.disabled = false;
|
||||
});
|
||||
}
|
||||
@ -1066,7 +1073,8 @@ const getVillageList = async () => {
|
||||
value: formData.street,
|
||||
});
|
||||
data.forEach((item: any) => {
|
||||
if (f.find((t: any) => item.village_code == t + "")) item.disabled = true;
|
||||
if (Object.values(f).find((t: any) => item.village_code == t + ""))
|
||||
item.disabled = true;
|
||||
else item.disabled = false;
|
||||
});
|
||||
}
|
||||
@ -1080,7 +1088,8 @@ const getBrigadeList = async () => {
|
||||
value: formData.village,
|
||||
});
|
||||
data.forEach((item: any) => {
|
||||
if (f.find((t: any) => item.id == t + "")) item.disabled = true;
|
||||
if (Object.values(f).find((t: any) => item.id == t + ""))
|
||||
item.disabled = true;
|
||||
else item.disabled = false;
|
||||
});
|
||||
}
|
||||
|
@ -275,6 +275,13 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label-width="100px" label="甲方" prop="field130">
|
||||
<!-- <el-input
|
||||
v-model="contractFormData.party_a_name"
|
||||
placeholder="请选择甲方"
|
||||
@click="showCompany = true"
|
||||
clearable
|
||||
:style="{ width: '100%' }"
|
||||
></el-input> -->
|
||||
<el-select
|
||||
v-model="contractFormData.party_a"
|
||||
placeholder="请选择甲方"
|
||||
@ -350,6 +357,7 @@
|
||||
>
|
||||
</p>
|
||||
</el-dialog>
|
||||
<DialogIndex v-if="showCompany"></DialogIndex>
|
||||
<el-dialog v-model="showPop" @close="offPop">
|
||||
<h1>重要提醒</h1>
|
||||
<div class="content" v-if="showConctactPop">
|
||||
@ -396,6 +404,8 @@ import { getRoutePath } from "@/router";
|
||||
import { dictContractTypeList } from "@/utils/dict.ts";
|
||||
import DialogIndex from "./dialog_index.vue";
|
||||
|
||||
const showCompany = ref(false);
|
||||
|
||||
const userStore = useUserStore();
|
||||
console.log(userStore.userInfo.company_id);
|
||||
const route = useRoute();
|
||||
|
Loading…
x
Reference in New Issue
Block a user