更新
This commit is contained in:
parent
65cfbf43cf
commit
53dd80a08a
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"vue.codeActions.enabled": false
|
||||||
|
}
|
@ -355,19 +355,19 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</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>
|
<div style="font-size: 1.2rem; margin: 10px 0">电子合同</div>
|
||||||
<el-col :span="24" class="el-card pt-6">
|
<el-col :span="24" class="el-card pt-6">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="签约方" prop="field130">
|
<el-form-item label="签约方" prop="field130">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="isDisabled"
|
|
||||||
v-model="formData.party_a_name"
|
v-model="formData.party_a_name"
|
||||||
placeholder="请选择签约方"
|
placeholder="请选择签约方"
|
||||||
clearable
|
clearable
|
||||||
:style="{ width: '100%' }"
|
:style="{ width: '100%' }"
|
||||||
@click="openCompany"
|
@click="openCompany"
|
||||||
|
:disabled="userStore.userInfo.root == 1 ? true : false"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -479,6 +479,7 @@ import type { PropType } from 'vue'
|
|||||||
import useMultipleTabs from '@/hooks/useMultipleTabs'
|
import useMultipleTabs from '@/hooks/useMultipleTabs'
|
||||||
import useUserStore from '@/stores/modules/user'
|
import useUserStore from '@/stores/modules/user'
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
const { removeTab } = useMultipleTabs()
|
const { removeTab } = useMultipleTabs()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@ -496,7 +497,6 @@ const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
|||||||
const mode = ref()
|
const mode = ref()
|
||||||
isDisabled = route.query.read
|
isDisabled = route.query.read
|
||||||
isEdit = route.query.edit
|
isEdit = route.query.edit
|
||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
admin_id: '',
|
admin_id: '',
|
||||||
@ -518,7 +518,6 @@ const formData = reactive({
|
|||||||
master_position: '',
|
master_position: '',
|
||||||
master_phone: '',
|
master_phone: '',
|
||||||
master_email: '',
|
master_email: '',
|
||||||
|
|
||||||
other_contacts: [
|
other_contacts: [
|
||||||
{
|
{
|
||||||
name: '',
|
name: '',
|
||||||
@ -541,7 +540,7 @@ const formData = reactive({
|
|||||||
},
|
},
|
||||||
contract: {
|
contract: {
|
||||||
contract_type: '',
|
contract_type: '',
|
||||||
party_a: '',
|
party_a: 0,
|
||||||
file: '',
|
file: '',
|
||||||
contract_no: '系统自动生成'
|
contract_no: '系统自动生成'
|
||||||
},
|
},
|
||||||
@ -550,6 +549,11 @@ const formData = reactive({
|
|||||||
file_image: ''
|
file_image: ''
|
||||||
// status: ''
|
// 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({
|
const datas = reactive({
|
||||||
provinceOptions: [],
|
provinceOptions: [],
|
||||||
cityOptions: [],
|
cityOptions: [],
|
||||||
|
@ -26,21 +26,7 @@
|
|||||||
placeholder="请输入镇"
|
placeholder="请输入镇"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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-form-item label="片区经理" prop="area_manager">
|
||||||
<el-input
|
<el-input
|
||||||
class="w-[280px]"
|
class="w-[280px]"
|
||||||
@ -67,14 +53,8 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
<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
|
<router-link
|
||||||
v-perms="['company/add', 'company/edit']"
|
v-perms="['company/add:edit']"
|
||||||
:to="{
|
:to="{
|
||||||
path: getRoutePath('company/add:edit')
|
path: getRoutePath('company/add:edit')
|
||||||
}"
|
}"
|
||||||
@ -124,11 +104,7 @@
|
|||||||
>下属公司</router-link
|
>下属公司</router-link
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button type="primary" link>
|
||||||
v-perms="['company/edit', 'company/add']"
|
|
||||||
type="primary"
|
|
||||||
link
|
|
||||||
>
|
|
||||||
<router-link
|
<router-link
|
||||||
:to="{
|
:to="{
|
||||||
path: getRoutePath('company/add:edit'),
|
path: getRoutePath('company/add:edit'),
|
||||||
@ -140,11 +116,7 @@
|
|||||||
>详情</router-link
|
>详情</router-link
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['company/add:edit']" type="primary" link>
|
||||||
v-perms="['company/edit', 'company/add']"
|
|
||||||
type="primary"
|
|
||||||
link
|
|
||||||
>
|
|
||||||
<router-link
|
<router-link
|
||||||
:to="{
|
:to="{
|
||||||
path: getRoutePath('company/add:edit'),
|
path: getRoutePath('company/add:edit'),
|
||||||
@ -164,14 +136,14 @@
|
|||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-perms="['company/edit', 'company/add']"
|
v-perms="['company/Draftingcontracts']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
@click="showCreateConctPop(row)"
|
@click="showCreateConctPop(row)"
|
||||||
>生成合同</el-button
|
>生成合同</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-perms="['company/edit', 'company/add']"
|
v-perms="['company/postsms']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
@click=";(showPop = true), (contractId = row.id)"
|
@click=";(showPop = true), (contractId = row.id)"
|
||||||
@ -255,14 +227,6 @@ if (route.query.company_type) {
|
|||||||
queryParams['company_type'] = route.query.company_type?.toString() || ''
|
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[]>([])
|
const selectData = ref<any[]>([])
|
||||||
|
|
||||||
|
@ -497,7 +497,8 @@ const formData = reactive({
|
|||||||
role_id: '',
|
role_id: '',
|
||||||
avatar: '',
|
avatar: '',
|
||||||
multipoint_login: 1,
|
multipoint_login: 1,
|
||||||
root: 0
|
root: 0,
|
||||||
|
disable: 1
|
||||||
})
|
})
|
||||||
// 字典信息
|
// 字典信息
|
||||||
const datas: any = reactive({
|
const datas: any = reactive({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user