diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue index 740498b71..dbd5afef8 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue @@ -502,7 +502,7 @@ export default { this.oldData = JSON.parse(JSON.stringify(newArr)) let arr = [] newArr.forEach(item => { - if (item.state != '3') { + if (item.state !== '3') { arr.push(item) } }) diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue b/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue index bcd02a2e5..9ce738a76 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue @@ -10,7 +10,7 @@
审批历史
-
+
+ width="70px"> + width="180px"> 审批历史
-
+
+ width="70px"> import { Dialog } from 'vant'; + import isMobile from "@/store/isMobile"; import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessFooter from "../../components/ProcessFooter"; import ProcessTitle from "../../components/ProcessTitle"; @@ -209,56 +208,57 @@ export default { name: "phoneBzdyStep6", - data() { - return { - data2: [], - itermsConditionsFlag: false, - itermsConditionsTitle: '', - drawerModal: false, - histortData: [], - oldData: [], - data: [], - commentText6: "", - oldText: "", - newText: "", - reason: "", - taskIds: this.$route.query.taskIds, - pId: this.$route.query.prcId, - roleRow: {}, - nodeList: [], - type: "", - defaultProps: { - children: "children", - label: "name" - }, - treeData: [], // 人员数据 - modalshowflag: false, // drawer开关 - drawerTitle: "", //drawer标题 - textarea: "", // 意见 - ListModel: false, // 新增编辑抽屉开关 - active: "1", // 默认显示 - isSubmit: false, - saveLoading: false, - form: { - cid: "", // 编号 - endTime: "", // 结束日期 - cname: "", // 名称 - fjList: [], - fjListId: '', - textType: '', - modelList: [], - modelNameList: '', - user7: '', - user7Name: '', - }, - formRules: { - responUserList: [ - {required: true, message: "请选择责任人", trigger: "change"} - ] - }, - json: {} - }; - }, + data() { + return { + data2: [], + commentText6: '', + itermsConditionsFlag: false, + itermsConditionsTitle: '', + drawerModal: false, + histortData: [], + oldData: [], + data: [], + commentText: "", + oldText: "", + newText: "", + reason: "", + taskIds: this.$route.query.taskIds, + pId: this.$route.query.prcId, + roleRow: {}, + nodeList: [], + type: "", + defaultProps: { + children: "children", + label: "name" + }, + treeData: [], // 人员数据 + modalshowflag: false, // drawer开关 + drawerTitle: "", //drawer标题 + textarea: "", // 意见 + ListModel: false, // 新增编辑抽屉开关 + active: "1", // 默认显示 + isSubmit: false, + saveLoading: false, + form: { + cid: "", // 编号 + endTime: "", // 结束日期 + cname: "", // 名称 + fjList: [], + fjListId: '', + textType: '', + modelList: [], + modelNameList: '', + user7: '', + user7Name: '' + }, + formRules: { + user7: [ + {required: true, message: "请选择审批领导", trigger: "change"} + ] + }, + json: {} + }; + }, components: { [Dialog.Component.name]: Dialog.Component, ProcessHeaderPhone, @@ -368,122 +368,89 @@ } }, upload(row, title) { - if (row.length > 0) { - var params = { - columnName: { - chapterNumber: "章条编号", - chapterName: "章节名称", - commentText: "修改意见内容(包括理由或依据)", - oldText: "修改前", - newText: "修改后", - reason: "修改理由", - department: "提出部门", - responUserName: "提出人", - stateText: "处理意见", - cause: "原因", - }, - dataList: [] - }; - params.dataList = JSON.parse(JSON.stringify(row)); - params.dataList.forEach(item => { - if (item.state === "1") { - item.stateText = "上报"; - } else if (item.state === "2") { - item.stateText = "处理后上报"; - } else { - item.stateText = "不上报"; - } - }); - this.$http.downloadFile("/api/lawss/activiti/export_excel", params, title, res => { - }); - } else { - this.$message.warning('无上报数据') - } + this.$message.warning('手机端不支持该操作') }, handleTabs(name) { this.active = name; }, - handleSubmit() { - this.$refs['bzzqyjForm'].validate((valid) => { - if (valid) { - this.isSubmit = true; - var json = this.json; - json.hqFlag = '0'; - json.commentText = this.commentText6; - json.user7 = this.form.user7; - json.user7Name = this.form.user7Name; - this.$http.post("lawss/activiti/completeTask", { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success("提交成功"); - this.$router.push("/processCenter"); - } - this.isSubmit = false; - }); - } else { - this.$message.warning('请选择审批领导') - } - }) - }, - handleSubmitNo() { - if (this.commentText6) { - this.isSubmit = true; - var json = this.json; - json.hqFlag = '1'; - json.commentText = this.commentText6; - this.$http.post("lawss/activiti/completeTask", { - json: JSON.stringify(json), - taskIds: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success("驳回成功"); - this.$router.push("/processCenter"); - } - this.isSubmit = false; - }); - } else { - this.$message.warning("请输入反馈意见"); - } - }, - getData() { - return new Promise((resolve, reject) => { - inboundLiaisonDetail({ - taskIds: this.taskIds, - pId: this.pId - }).then(res => { - let data = JSON.parse(res.mesg); - this.form.fjList = data.fjList || data.form.fjList - if (data.fjListId === '') { - this.form.fjListId = '' - } else { - this.form.fjListId = data.form.fjListId || data.fjListId - } - this.commentText6 = data.commentText6 || '' - this.form.cid = data.cid || data.form.cid; - this.form.endTime = data.endTime || data.form.endTime; - this.form.cname = data.cname || data.form.cname; - let newArr = data.info ? data.info : data.form.data - this.oldData = JSON.parse(JSON.stringify(newArr)) - let arr = [] - newArr.forEach(item => { - if (item.state != '3') { - arr.push(item) - } - }) - this.json = data - this.data2 = newArr - this.data = arr - this.form.textType = data.textType || data.form.textType - this.form.modelList = data.modelList || data.form.modelList - this.form.modelNameList = data.modelNameList || data.form.modelNameList - }).catch(e => { - }); + handleSubmit() { + this.$refs['bzzqyjForm'].validate((valid) => { + if (valid) { + this.isSubmit = true; + var json = this.json; + json.hqFlag = '0'; + json.commentText = this.commentText6; + json.user7 = this.form.user7; + json.user7Name = this.form.user7Name; + this.$http.post("lawss/activiti/completeTask", { + json: JSON.stringify(json), + taskId: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success("提交成功"); + this.$router.push("/processCenter"); + } + this.isSubmit = false; }); + } else { + this.$message.warning('请选择审批领导') + } + }) + }, + handleSubmitNo() { + if (this.commentText6) { + this.isSubmit = true; + var json = this.json; + json.hqFlag = '1'; + json.commentText = this.commentText6; + this.$http.post("lawss/activiti/completeTask", { + json: JSON.stringify(json), + taskIds: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success("驳回成功"); + this.$router.push("/processCenter"); + } + this.isSubmit = false; + }); + } else { + this.$message.warning("请输入反馈意见"); } + }, + getData() { + return new Promise((resolve, reject) => { + inboundLiaisonDetail({ + taskIds: this.taskIds, + pId: this.pId + }).then(res => { + let data = JSON.parse(res.mesg); + this.commentText6 = data.commentText6 || '' + this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser + this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName + this.form.fjList = data.fjList || data.form.fjList + this.form.cid = data.cid || data.form.cid; + this.form.endTime = data.endTime || data.form.endTime; + this.form.textType = data.textType || data.form.textType + this.form.modelList = data.modelList || data.form.modelList + this.form.user7 = data.form ? data.form.user7 : (data.user7 ? data.user7 : '') + this.form.user7Name = data.form ? data.form.user7Name : (data.user7Name ? data.user7Name : '') + let newArr = data.info ? data.info : data.form.data + this.oldData = JSON.parse(JSON.stringify(newArr)) + let arr = [] + newArr.forEach(item => { + if (item.state !== '3') { + arr.push(item) + } + }) + this.json = data + this.data2 = newArr + this.data = arr + }).catch(e => { + }); + }); + } }, mounted() { this.getHistoryData(); diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step7.vue b/src/pages/processCenter/pages/phone/bzzqyj/step7.vue index e49f79f2b..a8733236b 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step7.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step7.vue @@ -10,7 +10,7 @@
审批历史
-
+
+ width="70px"> 0) { - var params = { - columnName: { - chapterNumber: "章条编号", - chapterName: "章节名称", - commentText: "修改意见内容(包括理由或依据)", - oldText: "修改前", - newText: "修改后", - reason: "修改理由", - department: "提出部门", - responUserName: "提出人", - stateText: "处理意见", - cause: "原因", - }, - dataList: [] - }; - params.dataList = JSON.parse(JSON.stringify(row)); - params.dataList.forEach(item => { - if (item.state === "1") { - item.stateText = "上报"; - } else if (item.state === "2") { - item.stateText = "处理后上报"; - } else { - item.stateText = "不上报"; - } - }); - this.$http.downloadFile("/api/lawss/activiti/export_excel", params, title, res => { - }); - } else { - this.$message.warning('无上报数据') - } - }, + upload(row, title) { + this.$message.warning('手机端不支持该操作') + }, handleTabs(name) { this.active = name; }, - handleSubmit() { - this.isSubmit = true - var json = this.json - json.bdFlag = '0' - json.commentText = this.commentText7 - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - }, - handleSubmitNo() { - if (this.commentText7) { - this.isSubmit = true - var json = this.json - json.bdFlag = '1' - json.commentText = this.commentText7 - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskIds: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('驳回成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - } else { - this.$message.warning('请输入反馈意见') + handleSubmit() { + this.isSubmit = true + var json = this.json + json.bdFlag = '0' + json.commentText = this.commentText7 + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskId: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') + } + this.isSubmit = false + }) + }, + handleSubmitNo() { + if (this.commentText7) { + this.isSubmit = true + var json = this.json + json.bdFlag = '1' + json.commentText = this.commentText7 + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskIds: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success('驳回成功') + this.$router.push('/processCenter') } - }, - getData() { - return new Promise((resolve, reject) => { - inboundLiaisonDetail({ - taskIds: this.taskIds, - pId: this.pId - }).then(res => { - let data = JSON.parse(res.mesg); - this.form.fjList = data.fjList || data.form.fjList - if (data.fjListId === '') { - this.form.fjListId = '' - } else { - this.form.fjListId = data.form.fjListId || data.fjListId - } - this.commentText7 = data.commentText7 || '' - this.form.cid = data.cid || data.form.cid; - this.form.endTime = data.endTime || data.form.endTime; - this.form.cname = data.cname || data.form.cname; - this.oldData = JSON.parse(JSON.stringify(data.info)) - var arr = [] - data.info.forEach(item => { - if (item.state != '3') { - arr.push(item) - } - }) - this.json = data - this.form.textType = data.textType || data.form.textType - this.form.modelList = data.modelList || data.form.modelList - this.form.modelNameList = data.modelNameList || data.form.modelNameList - this.data = arr - }).catch(e => { - }); - }); + this.isSubmit = false + }) + } else { + this.$message.warning('请输入反馈意见') } + }, + getData() { + return new Promise((resolve, reject) => { + inboundLiaisonDetail({ + taskIds: this.taskIds, + pId: this.pId + }).then(res => { + let data = JSON.parse(res.mesg) + this.commentText7 = data.commentText7 || '' + this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser + this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName + this.form.fjList = data.fjList || data.form.fjList + this.form.cid = data.cid || data.form.cid; + this.form.endTime = data.endTime || data.form.endTime; + this.form.textType = data.textType || data.form.textType + this.form.modelList = data.modelList || data.form.modelList + let newArr = data.info ? data.info : data.form.data + this.oldData = JSON.parse(JSON.stringify(newArr)) + let arr = [] + newArr.forEach(item => { + if (item.state !== '3') { + arr.push(item) + } + }) + this.json = data + this.data2 = newArr + this.data = arr + }).catch(e => { + }) + }) + }, }, mounted() { this.getHistoryData(); diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step8.vue b/src/pages/processCenter/pages/phone/bzzqyj/step8.vue index adfbfff54..83dae7ecd 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step8.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step8.vue @@ -3,14 +3,14 @@ - +
基础信息
审批历史
-
+
+ width="70px"> 0) { - var params = { - columnName: { - chapterNumber: "章条编号", - chapterName: "章节名称", - commentText: "修改意见内容(包括理由或依据)", - oldText: "修改前", - newText: "修改后", - reason: "修改理由", - department: "提出部门", - responUserName: "提出人", - stateText: "处理意见", - cause: "原因", - }, - dataList: [] - }; - params.dataList = JSON.parse(JSON.stringify(row)); - params.dataList.forEach(item => { - if (item.state === "1") { - item.stateText = "上报"; - } else if (item.state === "2") { - item.stateText = "处理后上报"; - } else { - item.stateText = "不上报"; - } - }); - this.$http.downloadFile("/api/lawss/activiti/export_excel", params, title, res => { - }); - } else { - this.$message.warning('无上报数据') - } + this.$message.warning('手机端不支持该操作') }, handleTabs(name) { this.active = name; }, handleSave() { }, - handleSubmit() { - this.isSubmit = true - var json = this.json - json.directorFlag = '0' - json.commentText = this.commentText8 - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - }, - handleSubmitNo() { - if (this.commentText8) { - this.isSubmit = true - var json = this.json - json.directorFlag = '1' - json.commentText = this.commentText8 - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskIds: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('驳回成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - } else { - this.$message.warning('请输入反馈意见') + handleSubmit() { + this.isSubmit = true + var json = this.json + json.directorFlag = '0' + json.commentText = this.commentText8 + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskId: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') + } + this.isSubmit = false + }) + }, + handleSubmitNo() { + if (this.commentText8) { + this.isSubmit = true + var json = this.json + json.directorFlag = '1' + json.commentText = this.commentText8 + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskIds: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success('驳回成功') + this.$router.push('/processCenter') } - }, - getData() { - return new Promise((resolve, reject) => { - inboundLiaisonDetail({ - taskIds: this.taskIds, - pId: this.pId - }).then(res => { - let data = JSON.parse(res.mesg); - this.form.fjList = data.fjList || data.form.fjList - if (data.fjListId === '') { - this.form.fjListId = '' - } else { - this.form.fjListId = data.form.fjListId || data.fjListId - } - this.form.cid = data.cid || data.form.cid; - this.form.endTime = data.endTime || data.form.endTime; - this.form.cname = data.cname || data.form.cname; - this.oldData = JSON.parse(JSON.stringify(data.info)) - var arr = [] - this.commentText8 = data.commentText8 || '' - data.info.forEach(item => { - if (item.state != '3') { - arr.push(item) - } - }) - this.json = data - this.form.textType = data.textType || data.form.textType - this.form.modelList = data.modelList || data.form.modelList - this.form.modelNameList = data.modelNameList || data.form.modelNameList - this.data = arr - }).catch(e => { - }); - }); + this.isSubmit = false + }) + } else { + this.$message.warning('请输入反馈意见') } + }, + getData() { + return new Promise((resolve, reject) => { + inboundLiaisonDetail({ + taskIds: this.taskIds, + pId: this.pId + }).then(res => { + let data = JSON.parse(res.mesg) + this.commentText8 = data.commentText8 || '' + this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser + this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName + this.form.fjList = data.fjList || data.form.fjList + this.form.cid = data.cid || data.form.cid; + this.form.endTime = data.endTime || data.form.endTime; + this.form.textType = data.textType || data.form.textType + this.form.modelList = data.modelList || data.form.modelList + let newArr = data.info ? data.info : data.form.data + this.oldData = JSON.parse(JSON.stringify(newArr)) + let arr = [] + newArr.forEach(item => { + if (item.state !== '3') { + arr.push(item) + } + }) + this.json = data + this.data2 = newArr + this.data = arr + }).catch(e => { + }) + }) + }, }, mounted() { this.getHistoryData(); diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step9.vue b/src/pages/processCenter/pages/phone/bzzqyj/step9.vue index ce22c9357..f324f0822 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step9.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step9.vue @@ -10,7 +10,7 @@
审批历史
-
+
+ width="70px"> 0) { - var params = { - columnName: { - chapterNumber: "章条编号", - chapterName: "章节名称", - commentText: "修改意见内容(包括理由或依据)", - oldText: "修改前", - newText: "修改后", - reason: "修改理由", - department: "提出部门", - responUserName: "提出人", - stateText: "处理意见", - cause: "原因", - }, - dataList: [] - }; - params.dataList = JSON.parse(JSON.stringify(row)); - params.dataList.forEach(item => { - if (item.state === "1") { - item.stateText = "上报"; - } else if (item.state === "2") { - item.stateText = "处理后上报"; - } else { - item.stateText = "不上报"; - } - }); - this.$http.downloadFile("/api/lawss/activiti/export_excel", params, title, res => { - }); - } else { - this.$message.warning('无上报数据') - } - }, + upload(row, title) { + this.$message.warning('手机端不支持该操作') + }, handleTabs(name) { this.active = name; },