From da96300363966aaed7c33fda06adefd948ea7031 Mon Sep 17 00:00:00 2001
From: mkm <727897186@qq.com>
Date: Mon, 7 Aug 2023 18:56:49 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/company.ts | 4 +
src/views/company/index.vue | 684 +++++++++++++++++------------------
src/views/contract/index.vue | 13 +-
3 files changed, 344 insertions(+), 357 deletions(-)
diff --git a/src/api/company.ts b/src/api/company.ts
index a3c7786..ca99e62 100644
--- a/src/api/company.ts
+++ b/src/api/company.ts
@@ -33,6 +33,10 @@ export function sendMsgApi(params: any) {
return request.get({ url: '/company/postsms', params })
}
// 生成合同
+export function initiate_contract(params: any) {
+ return request.get({ url: '/company/initiate_contract', params })
+}
+// 发送合同
export function generateGontract(params: any) {
return request.get({ url: '/company/Draftingcontracts', params })
}
diff --git a/src/views/company/index.vue b/src/views/company/index.vue
index 371f811..745ba34 100644
--- a/src/views/company/index.vue
+++ b/src/views/company/index.vue
@@ -1,404 +1,390 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
-
-
- 创建
-
-
-
-
-
- 我的公司
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+ 创建
+
+
+
+
+ 我的公司
-
-
-
-
-
-
-
-
-
-
-
-
- 已签约
- 未签约
-
-
-
-
-
- 查看成员
-
-
- 下属公司
-
-
- 详情
-
-
- 编辑
-
-
删除
+
+
+
+
+
+
+
+
+
+
+
+ 已签约
+ 未签约
+
+
+
+
+
+ 查看成员
+
+
+ 下属公司
+
+
+ 详情
+
+
+ 编辑
+
+ 删除
+ 企业认证
+
+ 生成合同
+ 发送合同
+ 发送短信
+
+
+
+
+
+
+
+
+
+ 重要提醒
+ 请确认信息是否有误
+
+
+
+ 重要提醒
+
+ 请确认信息是否有误,发送合同,请确认信息是否有误,发送电子合同后短时间内将不可再次发送.
+
+
+ 确认签约短信将在60秒后发送,请注意查收,并点击短信链接进行线上合同签约
+
+
-
-
-
-
-
-
-
- 重要提醒
-
- 请确认信息是否有误,发送合同,请确认信息是否有误,发送电子合同后短时间内将不可再次发送.
-
-
- 确认签约短信将在60秒后发送,请注意查收,并点击短信链接进行线上合同签约
-
-
-
-
+ 确认
+ 返回
+
+
+
diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue
index 4240b11..673e6cc 100644
--- a/src/views/contract/index.vue
+++ b/src/views/contract/index.vue
@@ -98,12 +98,11 @@
-
- 详情
+
+ 详情
@@ -494,7 +495,7 @@
>修改
{
id: route.query.id
})
Object.keys(formData).forEach((key) => {
- const stringArr = ['province', 'city', 'area', 'street']
+ const stringArr = ['province', 'city', 'area', 'street', 'village', 'brigade']
if (data[key] != null && data[key] != undefined) {
formData[key] = data[key]
if (key == 'qualification' && formData.qualification.bank_account) {
@@ -916,12 +904,13 @@ const getDetails = async () => {
await getStreetList()
await getVillageList()
await getBrigadeList()
- formData['party_a_name'] = data.contract?.party_a_name
- formData['file_image'] = data.contract?.file
- if (data.contract?.file) {
- fileList.value[0].url = data.contract?.file
- fileList.value[0].name = '合同文件'
- }
+ formData['party_a_name'] = data.contract?.party_a_info.company_name
+ // formData['file_image'] = data.contract?.file
+ // if (data.contract?.file) {
+ // fileList.value[0].url = data.contract?.file
+ // fileList.value[0].name = '合同文件'
+ // }
+ console.log(formData)
company_type_change(formData.company_type)
}
@@ -1020,4 +1009,10 @@ defineExpose({
margin-left: 12px;
}
}
+.el-card {
+ margin-bottom: 10px;
+}
+.tit {
+ margin-top: 15px;
+}
diff --git a/src/views/contract/contractDetil.vue b/src/views/contract/contractDetil.vue
index 0b8f851..6fc8900 100644
--- a/src/views/contract/contractDetil.vue
+++ b/src/views/contract/contractDetil.vue
@@ -22,7 +22,11 @@
/>
-
+
@@ -30,12 +34,10 @@
-
-
+
-
-
+
@@ -73,9 +75,9 @@
-
+
-
![]()
+
@@ -96,10 +98,18 @@
-
+
-
+
@@ -179,11 +189,7 @@
-
+
@@ -267,7 +273,7 @@
-->
-
+
import type { FormInstance, UploadProps, ElMessage, UploadUserFile } from 'element-plus'
import { apiContractDetail } from '@/api/contract'
-import { ref, reactive, defineExpose ,computed} from 'vue'
+import { ref, reactive, defineExpose, computed } from 'vue'
import { useRoute } from 'vue-router'
import { dictDataLists } from '@/api/setting/dict'
import { upContact } from '@/api/consumer'
@@ -315,7 +321,7 @@ const formData = reactive({
status_name: ''
})
const fileList = ref([])
-const basicdata=ref({})
+const basicdata = ref({})
const compeny = ref({})
const compenyimg = ref([])
const compenyB = ref([])
@@ -330,23 +336,27 @@ const userStore = useUserStore()
async function render() {
// 传值赋值
const res = await apiContractDetail({ id: query.id })
- compeny.value = res.party_a_info;
- basicdata.value=res
+ compeny.value = res.party_a_info
+ basicdata.value = res
try {
- res.party_a_info.qualification.bank_account=JSON.parse(res.party_a_info.qualification.bank_account)
+ res.party_a_info.qualification.bank_account = JSON.parse(
+ res.party_a_info.qualification.bank_account
+ )
compenyimg.value = res.party_a_info.qualification
- } catch (error) {}
+ } catch (error) {}
compenyimg.value = res.party_a_info.qualification
if (res.type == 2) {
show.value = false
- res.party_b_info.sex==1?res.party_b_info.sex="男":res.party_b_info.sex="女"
- persen.value = res.party_b_info
- persenimg.value = res.party_b_info.qualification
- }
+ res.party_b_info.sex == 1 ? (res.party_b_info.sex = '男') : (res.party_b_info.sex = '女')
+ persen.value = res.party_b_info
+ persenimg.value = res.party_b_info.qualification
+ }
if (res.type == 1) {
compenyB.value = res.party_b_info
compenyBimg.value = res.party_b_info.qualification
flag.value = false
+ } else {
+ compenyB.value.company_name = res.party_b_info.nickname
}
}
@@ -356,7 +366,7 @@ const handleAvatarSuccess_four: UploadProps['onSuccess'] = (response, uploadFile
return
}
formData.file = response.data.uri
- upContact({ file: formData.file, id: route.query.id })
+ upContact({ file: formData.file, id: route.query.id })
}
onMounted(async () => {
await render()
@@ -364,9 +374,6 @@ onMounted(async () => {
diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue
index 673e6cc..8f41f46 100644
--- a/src/views/contract/index.vue
+++ b/src/views/contract/index.vue
@@ -56,24 +56,28 @@
新增
-->
- 删除
+ > -->
-
+
-
+
-
+
+
+ {{ scope.row.party_a_info.company_name }}
+
+
>()
// 是否显示编辑框
@@ -139,9 +144,12 @@ const queryParams = reactive({
status: '',
party_a: '',
party_b: '',
- area_manager: ''
+ area_manager: '',
+ type: ''
})
-
+if (route.query.type) {
+ queryParams.type = route.query.type?.toString()
+}
// 选中数据
const selectData = ref([])
@@ -171,25 +179,7 @@ const checkContcat = (id: number) => {
apiContractDetail({ id }).then((res) => {
res.file ? window.open(res.file) : feedback.msgError('暂无合同可以查看')
})
-
- // window.open('https://www.zhihu.com/signin?next=%2F')
}
-
-// 添加
-// const handleAdd = async () => {
-// showEdit.value = true;
-// await nextTick();
-// editRef.value?.open("add");
-// };
-
-// // 编辑
-// const handleEdit = async (data: any) => {
-// showEdit.value = true;
-// await nextTick();
-// editRef.value?.open("edit");
-// editRef.value?.setFormData(data);
-// };
-
// 删除
const handleDelete = async (id: number | any[]) => {
await feedback.confirm('确定要删除?')
diff --git a/src/views/permission/admin/index.vue b/src/views/permission/admin/index.vue
index 3a2e3c0..367d2c9 100644
--- a/src/views/permission/admin/index.vue
+++ b/src/views/permission/admin/index.vue
@@ -118,14 +118,14 @@
@click="handleDelete(row.id)"
>删除
- 废除合同
+ > -->
生成个人合同生成合同
Date: Mon, 7 Aug 2023 23:41:43 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/company/edit.vue | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/company/edit.vue b/src/views/company/edit.vue
index fa27a7b..3987378 100644
--- a/src/views/company/edit.vue
+++ b/src/views/company/edit.vue
@@ -562,8 +562,12 @@ const emit = defineEmits(['success', 'close'])
const formRef = shallowRef()
const popupRef = shallowRef>()
const mode = ref()
-isDisabled = route.query.read
-isEdit = route.query.edit
+if (route.query.read) {
+ isDisabled = route.query.read
+}
+if (route.query.edit) {
+ isEdit = route.query.edit
+}
// 表单数据
const formData = reactive({
admin_id: '',