更新了项目管理、咨询项目和监理事务协议的编辑视图,优化了选择合同和处理数据的交互,提高了用户体验。
This commit is contained in:
parent
2a118bd270
commit
5b075e02a1
@ -17,7 +17,7 @@
|
||||
<el-form-item label="行业" prop="industry">
|
||||
<el-select class="flex-1" v-model="formData.industry" clearable placeholder="请选择行业">
|
||||
<el-option v-for="(item, index) in dictData.supervision_project_industry" :key="index" :label="item.name"
|
||||
:value="item.value" />
|
||||
:value="parseInt(item.value)" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -25,7 +25,7 @@
|
||||
<el-form-item label="性质" prop="nature">
|
||||
<el-select class="flex-1" v-model="formData.nature" clearable placeholder="请选择性质">
|
||||
<el-option v-for="(item, index) in dictData.supervision_project_nature" :key="index" :label="item.name"
|
||||
:value="item.value" />
|
||||
:value="parseInt(item.value)" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -38,7 +38,7 @@
|
||||
<el-form-item label="建设区域" prop="build_area">
|
||||
<el-select class="flex-1" v-model="formData.build_area" clearable placeholder="请选择建设区域">
|
||||
<el-option v-for="(item, index) in dictData.const_area" :key="index" :label="item.name"
|
||||
:value="item.value" />
|
||||
:value="parseInt(item.value)" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -547,7 +547,9 @@ if (route.query.contractId) {
|
||||
const customEvent = (e) => {
|
||||
formData.contract = e.id
|
||||
formData.contract_name = e.contract_name
|
||||
formData.project_name = e.contract_name
|
||||
formData.nature = e.industry_nature
|
||||
formData.industry = e.business_nature
|
||||
formData.project_manager = e.project_director
|
||||
formData.part_a = e.part_a
|
||||
formData.part_a_unit = e.part_a_name
|
||||
|
@ -526,16 +526,21 @@ if (route.query.contractId) {
|
||||
const customEvent = (e) => {
|
||||
formData.contract = e.id
|
||||
formData.contract_name = e.contract_name
|
||||
formData.project_name = e.contract_name;
|
||||
formData.nature = e.industry_nature
|
||||
formData.industry = e.business_nature
|
||||
formData.planned_start_date = e.start_date
|
||||
formData.planned_end_date = e.end_date
|
||||
formData.project_manager = e.project_director
|
||||
formData.project_manager_name = e.project_manager_name
|
||||
formData.part_a = e.part_a
|
||||
formData.part_a_unit = e.part_a_name
|
||||
formData.build_area = e.const_area
|
||||
formData.total_investment = e.project_money
|
||||
formData.supervision_department = e.supervise_dept
|
||||
|
||||
formData.contract_content = e.content
|
||||
formData.build_unit_name = e.part_b
|
||||
formData.build_unit = e.part_b_signatory
|
||||
formData.project_overview = e.project_scale
|
||||
|
||||
}
|
||||
|
@ -242,6 +242,7 @@ const isPartb = ref(false)
|
||||
const customEvent = (e) => {
|
||||
if (isPartb.value) {
|
||||
formData.part_b = e.name
|
||||
formData.part_b_signatory = e.id
|
||||
formData.part_b_signatory_name = e.invoice_contact_name
|
||||
} else {
|
||||
formData.part_a = e.id
|
||||
|
@ -33,6 +33,24 @@
|
||||
@click="showDialog1 = true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="所在省份" prop="province">
|
||||
<el-select v-model="formData.province" clearable placeholder="请选择省"
|
||||
@change="province_change" class="flex-1">
|
||||
<el-option v-for="(item, index) in datas.provinceOptions" :key="index"
|
||||
:label="item.province_name" :value="(item.province_code)"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="所在市区" prop="city">
|
||||
<el-select v-model="formData.city" clearable placeholder="请选择市" class="flex-1">
|
||||
<el-option v-for="(item, index) in datas.cityOptions" :key="index"
|
||||
:label="item.city_name" :value="(item.city_code)"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="建设区域">
|
||||
<el-select class="flex-1" v-model="formData.build_area" clearable placeholder="请选择建设区域">
|
||||
@ -213,11 +231,11 @@
|
||||
<el-dialog v-model="showDialog2" title="选择甲方单位" width="70%">
|
||||
<dialogTable :config="marketing_custom" @customEvent="customEvent2"></dialogTable>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="showDialog" title="选择合同" width="70%">
|
||||
<dialogTable :config="cost_approved_projects" @customEvent="customEvent333"
|
||||
:query="{ status: 0, business_nature: 1 }">
|
||||
</dialogTable>
|
||||
</el-dialog>
|
||||
<!-- <el-dialog v-model="showDialog" title="选择合同" width="70%">-->
|
||||
<!-- <dialogTable :config="cost_approved_projects" @customEvent="customEvent333"-->
|
||||
<!-- :query="{ status: 0, business_nature: 1 }">-->
|
||||
<!-- </dialogTable>-->
|
||||
<!-- </el-dialog>-->
|
||||
</popup>
|
||||
</div>
|
||||
</template>
|
||||
@ -239,6 +257,7 @@ import {
|
||||
} from '@/components/dialogTable/dialogTableConfig'
|
||||
import {timeFormat} from '@/utils/util'
|
||||
import useUserStore from '@/stores/modules/user'
|
||||
import {apiCityList, apiProvinceList} from "@/api/common";
|
||||
|
||||
const userStore = useUserStore().userInfo
|
||||
const route = useRoute()
|
||||
@ -306,7 +325,9 @@ const formData = reactive({
|
||||
part_a: '',
|
||||
annex: [],
|
||||
create_user: userStore.account,
|
||||
create_time: timeFormat('', 'yyyy-mm-dd hh:MM:ss')
|
||||
create_time: timeFormat('', 'yyyy-mm-dd hh:MM:ss'),
|
||||
province:'',
|
||||
city:''
|
||||
})
|
||||
|
||||
const chekcDate = (rule: any, value: any, callback: any) => {
|
||||
@ -579,6 +600,7 @@ const customEvent = (e) => {
|
||||
formData.contract_name = e.contract_name
|
||||
formData.project_name = e.contract_name;
|
||||
formData.nature = e.industry_nature
|
||||
formData.industry = e.business_nature
|
||||
formData.planned_start_date = e.start_date
|
||||
formData.planned_end_date = e.end_date
|
||||
formData.project_manager = e.project_director
|
||||
@ -590,6 +612,10 @@ const customEvent = (e) => {
|
||||
formData.total_investment = e.project_money
|
||||
formData.contract_amount = e.signed_amount
|
||||
formData.supervision_department = e.supervise_dept
|
||||
formData.province = e.province
|
||||
formData.city = e.city
|
||||
formData.address = e.part_a_address
|
||||
formData.contract_content = e.content
|
||||
// formData.nature = e.industry_nature
|
||||
// formData.contract_type = e.contract_type
|
||||
// formData.contract_type_text = e.contract_type_text
|
||||
@ -598,6 +624,9 @@ const customEvent = (e) => {
|
||||
formData.project_overview = e.project_scale
|
||||
// formData.Acontact = e.part_a_contract
|
||||
// showDialog.value = false;
|
||||
if(e.city!=''){
|
||||
getCityList()
|
||||
}
|
||||
}
|
||||
const customEvent1 = (e) => {
|
||||
formData.build_unit = e.id
|
||||
@ -622,6 +651,23 @@ const submituser = (e: any) => {
|
||||
formData[value] = e.id
|
||||
showDialog.value = false
|
||||
}
|
||||
const datas = reactive({
|
||||
provinceOptions: [],
|
||||
cityOptions: [],
|
||||
});
|
||||
const getProvinceList = async () => {
|
||||
const data = await apiProvinceList({});
|
||||
datas["provinceOptions"] = data;
|
||||
};
|
||||
const getCityList = async () => {
|
||||
const data = await apiCityList({province_code: formData.province});
|
||||
datas["cityOptions"] = data;
|
||||
};
|
||||
getProvinceList()
|
||||
//获取省份
|
||||
function province_change(value: string) {
|
||||
getCityList();
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
open,
|
||||
|
Loading…
x
Reference in New Issue
Block a user