diff --git a/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js b/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js index bb4c0698bf..c6fffcf013 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js +++ b/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js @@ -1,250 +1,165 @@ -import request from "@/utils/request"; -// import qs from "qs"; -// ----------------------------------- 合同档案管理 -// 列表查询接口 +import request from '@/utils/request' + export function getPageList(data) { return request({ - url: "/base/v1/commoncontract/listPage", - method: "post", + url: '/base/v1/commoncontract/listPage', + method: 'post', data: data, - headers: { - "Content-Type": "application/json" - } - }); + headers: { 'Content-Type': 'application/json' } + }) } // 保存 export function saveContract(data) { return request({ - url: "base/v1/commoncontract/save", - data, - method: "post", - // data: data, - headers: { - "Content-Type": "application/json" - } - }); + url: 'base/v1/commoncontract/save', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) } export function updateContract(data) { return request({ - url: "/base/v1/commoncontract/update/" + data.sid, - method: "post", + url: '/base/v1/commoncontract/update/' + data.sid, + method: 'post', data: data, - headers: { - "Content-Type": "application/json" - } - }); + headers: { 'Content-Type': 'application/json' } + }) } // 编辑回显 export function getOneContract(data) { return request({ - url: "/base/v1/commoncontract/fetchSid/" + data, - method: "get" - }); + url: '/base/v1/commoncontract/fetchSid/' + data, + method: 'get' + }) } export function deleteByids(data) { - var params = new URLSearchParams(); - params.append("sids", data); - return request({ - url: "/base/v1/commoncontract/deleteBySids", - method: "DELETE", - data: params - }); -} -// export function exportCommoncontractExcel(data) { -// data.url = "/base/v1/commoncontract/exportExcel"; -// exportExcelPublic(data); -// } -// export function exportExcelPublic(data) { -// axios({ -// method: data.method, -// url: `${data.url}${data.params ? "?" + data.params : ""}`, -// responseType: "blob" -// }) -// .then(res => { -// const link = document.createElement("a"); -// const blob = new Blob([res.data], { type: "application/vnd.ms-excel" }); -// link.style.display = "none"; -// link.href = URL.createObjectURL(blob); -// const temp = res.headers["content-disposition"] -// .split(";")[1] -// .split("filename=")[1]; -// const iconv = require("iconv-lite"); -// iconv.skipDecodeWarning = true; -// const fileName = iconv.decode(temp, "utf-8"); -// // link.download = res.headers['content-disposition'] // 下载后文件名 -// link.download = fileName; // 下载的文件名 -// document.body.appendChild(link); -// link.click(); -// document.body.removeChild(link); -// }) -// .catch(error => { -// this.$message.error({ -// title: "错误", -// desc: "网络连接错误" -// }); -// console.log(error); -// }); -// } + return request({ + url: '/base/v1/commoncontract/deleteBySids', + method: 'DELETE', + data: data + }) +} + // 导出 export function basefinbankExportExcel(data) { return request({ - url: "/base/v1/commoncontract/exportExcel", - method: "get", - responseType: "blob", // 表明返回服务器返回的数据类型 + url: '/base/v1/commoncontract/exportExcel', + method: 'get', + responseType: 'blob', // 表明返回服务器返回的数据类型 params: data, headers: { - "Content-Type": "application/x-www-form-urlencoded" + 'Content-Type': 'application/x-www-form-urlencoded' } - }); + }) } + // ----合同模板 export function getTemplatePageList(data) { return request({ - url: "/base/v1/commoncontracttemplate/listPage", - method: "post", + url: '/base/v1/commoncontracttemplate/listPage', + method: 'post', data: data, headers: { - "Content-Type": "application/json" + 'Content-Type': 'application/json' } - }); + }) } export function saveTemplate(data) { return request({ - url: "/base/v1/commoncontracttemplate/save", - data, - method: "post", - // data: data, + url: '/base/v1/commoncontracttemplate/save', + method: 'post', + data: data, headers: { - "Content-Type": "application/json" + 'Content-Type': 'application/json' } - }); + }) } export function updateTemplate(data) { return request({ - url: "/base/v1/commoncontracttemplate/update/" + data.sid, - method: "post", + url: '/base/v1/commoncontracttemplate/update/' + data.sid, + method: 'post', data: data, headers: { - "Content-Type": "application/json" + 'Content-Type': 'application/json' } - }); + }) } export function getOneTemplate(data) { return request({ - url: "/base/v1/commoncontracttemplate/fetchSid/" + data, - method: "get" - }); + url: '/base/v1/commoncontracttemplate/fetchSid/' + data, + method: 'get' + }) } + export function deleteTemplateByids(data) { - var params = new URLSearchParams(); - params.append("sids", data); return request({ - url: "/base/v1/commoncontracttemplate/deleteBySids", - method: "DELETE", - data: params - }); + url: '/base/v1/commoncontracttemplate/deleteBySids', + method: 'DELETE', + data: data + }) } + // 导出合同模板excel; export function basefinbankTemplateExportExcel(data) { return request({ - url: "/base/v1/commoncontracttemplate/exportExcel", // + data - method: "get", - responseType: "blob", // 表明返回服务器返回的数据类型 + url: '/base/v1/commoncontracttemplate/exportExcel', // + data + method: 'get', + responseType: 'blob', // 表明返回服务器返回的数据类型 params: data, headers: { - "Content-Type": "application/x-www-form-urlencoded" + 'Content-Type': 'application/x-www-form-urlencoded' } - }); -} - -// export function basefinbankTemplateExportExcel(data) { -// data.url = "/base/v1/commoncontracttemplate/exportExcel"; -// exportExcelPublic(data); -// } -// export function exportExcelPublic(data) { -// console.log(data.params); -// axios({ -// method: data.method, -// // url: `${data.url}${data.params ? "?" + data.params : ""}`, -// url: data.url, -// data: data.params, -// responseType: "blob", -// headers: { -// "Content-Type": "application/x-www-form-urlencoded" -// } -// }) -// .then(res => { -// const link = document.createElement("a"); -// const blob = new Blob([res.data], { type: "application/vnd.ms-excel" }); -// link.style.display = "none"; -// link.href = URL.createObjectURL(blob); -// const temp = res.headers["content-disposition"] -// .split(";")[1] -// .split("filename=")[1]; -// const iconv = require("iconv-lite"); -// iconv.skipDecodeWarning = true; -// const fileName = iconv.decode(temp, "utf-8"); -// // link.download = res.headers['content-disposition'] // 下载后文件名 -// link.download = fileName; // 下载的文件名 -// document.body.appendChild(link); -// link.click(); -// document.body.removeChild(link); -// }) -// .catch(error => { -// // this.$message.error({ -// // title: "错误", -// // desc: "网络连接错误" -// // }); -// // console.log(error); -// console.log(9); -// }); -// } + }) +} // 获取人员类型 export function getPersonnelType(data) { return request({ - url: "/base/v1/commoncontract/getPersonnelType", - method: "post" - }); + url: '/base/v1/commoncontract/getPersonnelType', + method: 'post' + }) } // 项目类型 export function getProjectType(data) { return request({ - url: "/base/v1/commoncontract/getProjectType", - method: "post" - }); + url: '/base/v1/commoncontract/getProjectType', + method: 'post' + }) } + // 上传 export function uploadFile(data) { return request({ - url: "/base/file/upload", - method: "post", + url: '/base/file/upload', + method: 'post', data: data - }); + }) } + // 下载 export function download(data) { return request({ - url: "/base/file/download", - method: "get", + url: '/base/file/download', + method: 'get', params: data, - responseType: "blob" // 表明返回服务器返回的数据类型 - }); + responseType: 'blob' // 表明返回服务器返回的数据类型 + }) } + // 移除 export function deleteFilesOss(data) { return request({ - url: "/base/v1/commonappendix/deleteFilesOss", - method: "post", + url: '/base/v1/commonappendix/deleteFilesOss', + method: 'post', params: { fullPath: data } - }); + }) } diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue index 072e7cbbf6..354210bd01 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue @@ -1,71 +1,50 @@ diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue index 4ed053e3af..3f75e3a78f 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue @@ -1,28 +1,19 @@ diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue index 3f90cf7d46..a6cbf94f1b 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue @@ -2,45 +2,38 @@
XXX合同详情
-
- 提交 - 关闭
- -
XXX合同
+
XXX合同
+ - + 合同类型 - - + {{ temp.contractType }} - + 合同编号 - + {{ temp.contractNo }} - 甲方名称 - + {{ temp.partyA }} 乙方名称 - + {{ temp.partyB }} @@ -48,28 +41,27 @@ 其他方名称 - - + {{ temp.partyC }} - + 签订日期 - + {{ temp.createDate }} - + 签订地点 - + {{ temp.address }} - + 合同金额 - + {{ temp.contractAmount }} @@ -77,32 +69,27 @@ 订金 - + {{ temp.deposit }} 备注 - + {{ temp.remarks }} + +
新车买卖合同
+ +
现场签署照片
- - - 文件 - - -
-
{{ url.name }}
-
-
- -
- -
-
+ +
+
证件照片
+ +
@@ -110,205 +97,32 @@ diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue deleted file mode 100644 index f9946e934b..0000000000 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue +++ /dev/null @@ -1,313 +0,0 @@ - - - - - diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue new file mode 100644 index 0000000000..ce6050529d --- /dev/null +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue @@ -0,0 +1,136 @@ + + + + diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue new file mode 100644 index 0000000000..16d8d8c8fe --- /dev/null +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue @@ -0,0 +1,128 @@ + + + + diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue index bb03bb669a..bb150f5693 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue @@ -3,9 +3,9 @@