From d08f241468e05bd752ec438caf55e8dbc0d90026 Mon Sep 17 00:00:00 2001 From: yangxiao <3261756395@qq.com> Date: Fri, 19 Dec 2025 13:15:48 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E4=BF=AE=E6=94=B9=E5=85=A8=E8=81=8C?= =?UTF-8?q?=E5=B2=97=E4=BD=8D=E5=92=8C=E9=9B=B6=E5=B7=A5=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/resource/oss.js | 4 + src/api/tenant/postzp.js | 13 + src/common/dic.js | 3 +- src/views/manage/station/mainList copy.vue | 743 ++++++++ src/views/manage/station/mainList.vue | 281 ++- src/views/manage/works/Employ.vue | 1014 +++++++++++ src/views/manage/works/EmployInformation.vue | 526 ++++++ src/views/manage/works/index.vue | 25 +- src/views/tenant/main/policy/index.vue | 14 +- .../tenant/works/Dialog/CopyMission copy.vue | 1616 +++++++++++++++++ src/views/tenant/works/Dialog/CopyMission.vue | 601 +----- .../works/Table/WaitingMission copy.vue | 574 ++++++ .../tenant/works/Table/WaitingMission.vue | 196 +- src/views/tenant/works/index copy.vue | 241 +++ src/views/tenant/works/index.vue | 33 +- src/views/util/post-view.vue | 8 +- 16 files changed, 5196 insertions(+), 696 deletions(-) create mode 100644 src/views/manage/station/mainList copy.vue create mode 100644 src/views/manage/works/Employ.vue create mode 100644 src/views/manage/works/EmployInformation.vue create mode 100644 src/views/tenant/works/Dialog/CopyMission copy.vue create mode 100644 src/views/tenant/works/Table/WaitingMission copy.vue create mode 100644 src/views/tenant/works/index copy.vue diff --git a/src/api/resource/oss.js b/src/api/resource/oss.js index 60d1fb8..6895d25 100644 --- a/src/api/resource/oss.js +++ b/src/api/resource/oss.js @@ -59,6 +59,10 @@ export const putFile = type => `/api/jobslink-api/resource/file/save?Jobslink-Auth=${getToken()}?bussinessType=${type || 11}`; +export const putFileObj = type => + `/api/jobslink-api/resource/file/upload/file?Jobslink-Auth=${getToken()}?bussinessType=${type || +18}`; + export const putFileFun = (file, onUploadProgress) => { const data = new FormData(); data.append("file", file); diff --git a/src/api/tenant/postzp.js b/src/api/tenant/postzp.js index 38aeee7..3abf3ff 100644 --- a/src/api/tenant/postzp.js +++ b/src/api/tenant/postzp.js @@ -14,6 +14,19 @@ export const getList = (current, size, params) => { }) } +/*获取全职岗位录入列表*/ +export const findCompanyListInInviteAndWorks = (current, size, params) => { + return request({ + url: '/api/jobslink-api/jkWorks/jkWorks/findCompanyListInInviteAndWorks', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + /*获取已失效任务列表*/ export const getExpiredList = (current, size, params) => { return request({ diff --git a/src/common/dic.js b/src/common/dic.js index b6799cd..2e33cf7 100644 --- a/src/common/dic.js +++ b/src/common/dic.js @@ -385,6 +385,7 @@ export const companyEnum = [ ]; export const addressColumn = [ + { value: "1935850", label: "德阳市市本级" }, { value: "95", label: "绵竹市" }, { value: "185", label: "广汉市" }, { value: "143", label: "旌阳区" }, @@ -392,7 +393,7 @@ export const addressColumn = [ { value: "42", label: "什邡市" }, { value: "156", label: "中江县" }, { value: "44139628", label: "经济技术开发区" }, - { value: "79194151", label: "德阳市开发区" } + // { value: "79194151", label: "德阳市开发区" } ]; export const serveTypeOptions = [ diff --git a/src/views/manage/station/mainList copy.vue b/src/views/manage/station/mainList copy.vue new file mode 100644 index 0000000..6a24362 --- /dev/null +++ b/src/views/manage/station/mainList copy.vue @@ -0,0 +1,743 @@ + + + + + diff --git a/src/views/manage/station/mainList.vue b/src/views/manage/station/mainList.vue index 4691b67..e92c122 100644 --- a/src/views/manage/station/mainList.vue +++ b/src/views/manage/station/mainList.vue @@ -2,7 +2,7 @@ @@ -15,6 +15,73 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -44,13 +122,15 @@ import { stationStop, removeMainList } from "@/api/manage/main"; +import {getDictionary} from "@/api/tenant/mission" // import { getStationDic } from "@/api/manage/station"; import {mapGetters} from "vuex"; import {isMobile, check18IdCardNo, validatenull} from "@/util/validate"; -import {putFile} from "@/api/resource/oss"; +import {putFile, putFileObj} from "@/api/resource/oss"; import {getTradeDic} from "@/api/manage/trade"; import {addressColumn, companyEnum} from "@/common/dic" import {getDeptMyTree} from "@/api/tenant/talents"; +import {getTemplate} from "@/api/resource/template"; const accept = [ "image/png", @@ -60,7 +140,9 @@ const accept = [ "image/x-photoshop", ]; -function getPath(path) { +function getPath(path, done) { + console.log(path, 'path') + if (!path) return done(); const arr = path.split(','); return arr[arr.length - 1]; } @@ -80,6 +162,9 @@ export default { }, checkDrawer: false, data: [], + attorneyTemplateUrl: '', // 根据实际路径调整 + otherFileList: [], + templateLoading: false, }; }, computed: { @@ -110,7 +195,7 @@ export default { index: true, indexLabel: "序号", viewBtn: true, - delBtn: true, + delBtn: false, menuWidth: 250, labelWidth: 151, dialogClickModal: false, @@ -261,7 +346,7 @@ export default { }, { type: "input", - label: "联系人", + label: "经办人信息", span: 12, display: true, size: "small", @@ -274,6 +359,29 @@ export default { }, ], }, + { + type: "input", + label: "经办人身份证号", + span: 12, + display: true, + size: "small", + prop: "managerIdCard", + rules: [ + { + required: true, + message: "请输入身份证号", + }, + { + validator: (rule, value, callback) => { + if (check18IdCardNo(value)) { + callback(); + } else { + callback(new Error("身份证格式不正确")); + } + } + }, + ], + }, { type: "input", label: "手机号码", @@ -424,6 +532,49 @@ export default { action: putFile(5), viewDisplay: false, }, + { + label: "授权书模版下载", + span: 12, + showFileList: false, + multiple: false, + formslot: true, + size: "small", + prop: "attorneyUrlTemplate", + viewDisplay: false, + }, + { + type: "upload", + label: "授权书", + span: 12, + showFileList: false, + listType: "picture-img", + multiple: false, + propsHttp: { + // res: "data", + url: "msg", + }, + accept, + canvasOption: {}, + headers: [], + data: [], + size: "small", + prop: "attorneyUrl", + action: putFile(5), + viewDisplay: false, + desc: 'hhhhhhhh' + }, + + { + type: "upload", + label: "其他资料上传", + span: 12, + showFileList: true, + formslot: true, + multiple: true, + size: "small", + prop: "otherFileUrlList", + viewDisplay: false, + }, // 图片预览 { label: "法人身份证(人像)", @@ -452,10 +603,34 @@ export default { addDisplay: false, viewDisplay: true, }, + { + label: "授权书", + span: 12, + prop: "attorneyUrlImg", + formslot: true, + editDisplay: false, + addDisplay: false, + viewDisplay: true, + }, + { + label: "其他资料", + span: 12, + prop: "otherFileUrlListImg", + formslot: true, + editDisplay: false, + addDisplay: false, + viewDisplay: true, + }, ], }, ], } + }, + actionurl() { + return putFile(5) + }, + actionurl18() { + return putFileObj() } }, created() { @@ -475,11 +650,12 @@ export default { this.onLoad(this.page, this.query); }, rowDel(row) { + console.log(row, 'row') const h = this.$createElement; this.$confirm( h("div", null, [ - h("p", {style: "font-size: 16px"}, "您确定要删除此消息吗? "), - h("p", {style: "color: red"}, "一旦删除则无法找回"), + h("p", {style: "font-size: 16px"}, "您确定要注销此消息吗? "), + h("p", {style: "color: red"}, "一旦注销则无法找回"), ]), { type: "warning", @@ -502,16 +678,64 @@ export default { .catch(() => { }); }, + // 授权书上传 + handleAttorneyUpload(fileList, fileListAll) { + // console.log(fileList, fileListAll, '=========='); + // if (fileListAll && fileListAll.length > 0) { + // const file = fileListAll[0]; + // if (file.response) { + // // 假设上传成功后返回的URL在 response.msg 中 + // this.$set(this.form, 'attorneyUrl', file.response.msg); + // } + // } + }, + + + uploadAfter(res, done) { + // 上传之后把数据存起来 + // if (this.form.otherFileUrlList.length > 0) { + // this.otherFileList = [...this.form.otherFileUrlList, res] + // } else { + // this.otherFileList.push(res) + // } + this.otherFileList.push(res) + done() + }, + handleUploadSuccess(res) { + console.log(res, '----') + // 上传之后把数据存起来 + this.form.attorneyUrl = res.msg + console.log(res,this.form.attorneyUrl, '----') + }, + uploadDelete(file, column){ + if(column) { + console.log('this.otherFileListhou',column, this.otherFileList) + // 删除之后把数据删除 + let list = this.otherFileList.filter(item => item.path !== column.url) + this.otherFileList = list + } + + + }, + rowSave(row, done, loading) { - console.log('rowSave') - row.authUrlId = getPath(row.authUrlId) - row.identityUrl4Id = getPath(row.identityUrl4Id) - row.identityUrl5Id = getPath(row.identityUrl5Id) - // console.log(row, '----------------------------------'); + console.log('rowSave', row, this.otherFileList) + row.authUrlId = getPath(row.authUrlId, done) + row.identityUrl4Id = getPath(row.identityUrl4Id, done) + row.identityUrl5Id = getPath(row.identityUrl5Id, done) + row.attorneyUrl = getPath(row.attorneyUrl, done) + + row.otherFileUrlList = this.otherFileList +// dictValue + // let jobCompanyIndustry = this.getTradeDicData.find(i => i.id === row.tradeId).name + // let jobCompanyNature = this.getTradeDicData.find(i => i.dictKey === row.nature).dictValue + console.log(row.$tradeId, '----------------------------------'); companyInfoAdd({ authUrlId: row.authUrlId, nature: row.nature, + jobCompanyNature: row.$nature, tradeId: row.tradeId, + jobCompanyIndustry: row.$tradeId, companyDesc: row.companyDesc, cityId: row.cityId, companyAddress: row.companyAddress, @@ -520,12 +744,15 @@ export default { comname: row.comname, identityUrl4Id: row.identityUrl4Id, identityUrl5Id: row.identityUrl5Id, + otherFileUrlList: row.otherFileUrlList, + attorneyUrl: row.attorneyUrl, manager: row.manager, masterIdentity: row.masterIdentity, masterName: row.masterName, percent: row.percent, stationId: row.stationId, telphone: row.telphone, + managerIdCard: row.managerIdCard, }).then( () => { this.onLoad(this.page, this.params); @@ -543,9 +770,14 @@ export default { }, rowUpdate(row, index, done, loading) { // console.log(row, 'rowUpdate') - row.authUrlId = getPath(row.authUrlId) - row.identityUrl4Id = getPath(row.identityUrl4Id) - row.identityUrl5Id = getPath(row.identityUrl5Id) + row.authUrlId = getPath(row.authUrlId, done) + row.identityUrl4Id = getPath(row.identityUrl4Id, done) + row.identityUrl5Id = getPath(row.identityUrl5Id, done) + row.attorneyUrl = getPath(row.attorneyUrl, done) + + // return console.log(row.otherFileUrlList, this.form.otherFileUrlList, this.otherFileList, '99999') + row.otherFileUrlList = this.otherFileList + companyUpdate({ id: row.id, nature: row.nature, @@ -559,13 +791,16 @@ export default { comname: row.comname, identityUrl4Id: row.identityUrl4Id, identityUrl5Id: row.identityUrl5Id, + attorneyUrl: row.attorneyUrl, + otherFileUrlList: row.otherFileUrlList, manager: row.manager, masterIdentity: row.masterIdentity, masterName: row.masterName, percent: row.percent, stationId: row.stationId, telphone: row.telphone, - authType: 0 + authType: 0, + managerIdCard: row.managerIdCard, }).then( () => { this.$message({ @@ -591,6 +826,7 @@ export default { done(); }, beforeOpen(done, type) { + this.otherFileList = [] if (["add", "edit"].includes(type)) { this.initData(); done(); @@ -604,6 +840,7 @@ export default { companyDetail(params).then((res) => { this.loading = false; this.form = res.data.data; + this.otherFileList = res.data.data.otherFileUrlList; done(); }); } @@ -667,6 +904,18 @@ export default { }) .catch(); }, + /*下载任务模板 */ + handleTemplate() { + this.templateLoading = true; + getTemplate("wts") + .then((rep) => { + this.templateLoading = false; + window.open(rep.data.data); + }) + .catch(() => { + this.templateLoading = false; + }); + }, }, watch: {}, }; diff --git a/src/views/manage/works/Employ.vue b/src/views/manage/works/Employ.vue new file mode 100644 index 0000000..1966871 --- /dev/null +++ b/src/views/manage/works/Employ.vue @@ -0,0 +1,1014 @@ + + + + + diff --git a/src/views/manage/works/EmployInformation.vue b/src/views/manage/works/EmployInformation.vue new file mode 100644 index 0000000..9d47a1c --- /dev/null +++ b/src/views/manage/works/EmployInformation.vue @@ -0,0 +1,526 @@ + + + + + diff --git a/src/views/manage/works/index.vue b/src/views/manage/works/index.vue index 5c850a3..37ba5c6 100644 --- a/src/views/manage/works/index.vue +++ b/src/views/manage/works/index.vue @@ -23,7 +23,7 @@ @refresh-change="refreshChange" @on-load="onLoad" > -