更新生成合同选择甲方公司列表

This commit is contained in:
weipengfei 2023-10-10 15:40:52 +08:00
parent 288554451e
commit 793ce79b89
2 changed files with 11 additions and 2 deletions

View File

@ -29,6 +29,12 @@ export function apiCompanyDetail(params: any) {
export function apiSubordinateList(params: any) { export function apiSubordinateList(params: any) {
return request.get({ url: '/company/subordinate', params }) return request.get({ url: '/company/subordinate', params })
} }
// 获取甲方公司类型
export function getContractPartyACompanyTypeList(params: any) {
return request.get({ url: '/setting.dict.dict_data/getContractPartyACompanyTypeList', params })
}
// 重新发送短信 // 重新发送短信
export function sendMsgApi(params: any) { export function sendMsgApi(params: any) {
return request.get({ url: '/company/postsms', params }) return request.get({ url: '/company/postsms', params })

View File

@ -69,6 +69,7 @@ import {
apiCompanyLists, apiCompanyLists,
companyListTwo, companyListTwo,
apiCompanyDelete, apiCompanyDelete,
getContractPartyACompanyTypeList,
} from "@/api/company"; } from "@/api/company";
import { defineEmits } from "vue"; import { defineEmits } from "vue";
@ -86,8 +87,10 @@ const props = defineProps({
}, },
}); });
const typeList = props.companyTypeList.filter((item: any) => { //
return item.id == 30 || item.id == 16; const typeList = ref([]);
getContractPartyACompanyTypeList({}).then((res) => {
typeList.value = res;
}); });
// //