This commit is contained in:
mkm 2023-07-21 15:52:45 +08:00
parent 65cfbf43cf
commit 53dd80a08a
4 changed files with 20 additions and 48 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"vue.codeActions.enabled": false
}

View File

@ -355,19 +355,19 @@
</el-col>
</el-row>
</el-col>
<template v-if="userStore.userInfo.root == 1">
<template v-if="userStore.userInfo.root == 0">
<div style="font-size: 1.2rem; margin: 10px 0">电子合同</div>
<el-col :span="24" class="el-card pt-6">
<el-row>
<el-col :span="12">
<el-form-item label="签约方" prop="field130">
<el-input
:disabled="isDisabled"
v-model="formData.party_a_name"
placeholder="请选择签约方"
clearable
:style="{ width: '100%' }"
@click="openCompany"
:disabled="userStore.userInfo.root == 1 ? true : false"
></el-input>
</el-form-item>
</el-col>
@ -479,6 +479,7 @@ import type { PropType } from 'vue'
import useMultipleTabs from '@/hooks/useMultipleTabs'
import useUserStore from '@/stores/modules/user'
const userStore = useUserStore()
const { removeTab } = useMultipleTabs()
const router = useRouter()
const route = useRoute()
@ -496,7 +497,6 @@ const popupRef = shallowRef<InstanceType<typeof Popup>>()
const mode = ref()
isDisabled = route.query.read
isEdit = route.query.edit
//
const formData = reactive({
admin_id: '',
@ -518,7 +518,6 @@ const formData = reactive({
master_position: '',
master_phone: '',
master_email: '',
other_contacts: [
{
name: '',
@ -541,7 +540,7 @@ const formData = reactive({
},
contract: {
contract_type: '',
party_a: '',
party_a: 0,
file: '',
contract_no: '系统自动生成'
},
@ -550,6 +549,11 @@ const formData = reactive({
file_image: ''
// status: ''
})
if (userStore.userInfo.root == 0) {
formData.contract.party_a = userStore.userInfo.company?.id
formData.party_a_name = userStore.userInfo.company?.company_name
}
const datas = reactive({
provinceOptions: [],
cityOptions: [],

View File

@ -26,21 +26,7 @@
placeholder="请输入镇"
/>
</el-form-item>
<el-form-item label="公司类型" prop="company_type" v-show="company_type_show">
<el-select
v-model="queryParams.company_type"
placeholder="请选择公司类型"
clearable
:style="{ width: '100%' }"
>
<el-option
v-for="(item, index) in datas.dictTypeLists"
:key="index"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="片区经理" prop="area_manager">
<el-input
class="w-[280px]"
@ -67,14 +53,8 @@
</el-form>
</el-card>
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
<!-- <el-button v-perms="['company/add']" type="primary" @click="handleAdd">
<template #icon>
<icon name="el-icon-Plus" />
</template>
新增
</el-button>-->
<router-link
v-perms="['company/add', 'company/edit']"
v-perms="['company/add:edit']"
:to="{
path: getRoutePath('company/add:edit')
}"
@ -124,11 +104,7 @@
>下属公司</router-link
>
</el-button>
<el-button
v-perms="['company/edit', 'company/add']"
type="primary"
link
>
<el-button type="primary" link>
<router-link
:to="{
path: getRoutePath('company/add:edit'),
@ -140,11 +116,7 @@
>详情</router-link
>
</el-button>
<el-button
v-perms="['company/edit', 'company/add']"
type="primary"
link
>
<el-button v-perms="['company/add:edit']" type="primary" link>
<router-link
:to="{
path: getRoutePath('company/add:edit'),
@ -164,14 +136,14 @@
>删除</el-button
>
<el-button
v-perms="['company/edit', 'company/add']"
v-perms="['company/Draftingcontracts']"
type="primary"
link
@click="showCreateConctPop(row)"
>生成合同</el-button
>
<el-button
v-perms="['company/edit', 'company/add']"
v-perms="['company/postsms']"
type="primary"
link
@click=";(showPop = true), (contractId = row.id)"
@ -255,14 +227,6 @@ if (route.query.company_type) {
queryParams['company_type'] = route.query.company_type?.toString() || ''
}
const datas = reactive({
dictTypeLists: []
})
const getdictTypeLists = async () => {
const data = await dictDataLists({ type_id: 6 })
datas['dictTypeLists'] = data['lists']
}
getdictTypeLists()
//
const selectData = ref<any[]>([])

View File

@ -497,7 +497,8 @@ const formData = reactive({
role_id: '',
avatar: '',
multipoint_login: 1,
root: 0
root: 0,
disable: 1
})
//
const datas: any = reactive({