diff --git a/src/components/navMenu/index.vue b/src/components/navMenu/index.vue index 1779fb412..e05997f7f 100644 --- a/src/components/navMenu/index.vue +++ b/src/components/navMenu/index.vue @@ -387,13 +387,13 @@ export default { // } ] }, - // { - // title: '搜索中心', - // path: '/advancedSearch', - // 'icon-class': 'search', - // menuId: 'K9BAYUPZBC', - // isChildren: true // 判断没有子菜单 - // }, + { + title: '搜索中心', + path: '/advancedSearch', + 'icon-class': 'search', + menuId: 'K9BAYUPZBC', + isChildren: true // 判断没有子菜单 + }, // { // title: '标准比对库', // path: '/standardComparisonLibrary', diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index dbe623393..663aee630 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -7,7 +7,7 @@
基础信息
-
审批历史
+
流程信息
@@ -44,7 +44,8 @@ + placeholder="请选择标准年份" + value-format="yyyy"> @@ -545,7 +546,7 @@
-
+
@@ -554,12 +555,12 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="textarea"> + v-model="commentText">
-
+
@@ -623,11 +624,12 @@ import ProcessHeader from '../../components/ProcessHeader' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' + import {saveTaskFirst} from "api/process"; export default { name: "bzrkStep1", data () { return { - textarea: '', // 意见 + commentText: '', // 意见 title: '', // 新增编辑抽屉标题 ListModel: false, // 新增编辑抽屉开关 active: '1', // 默认显示 @@ -737,11 +739,36 @@ handleTabs(name) { this.active = name }, - handleSave() {}, + //保存 + handleSave() { + this.saveLoading = true + let _formData = new FormData() + // _formData.append('id', this.bpnId) + _formData.append('createUser', this.$store.getters.userInfo.userId) + _formData.append('createUserName', this.$store.getters.userInfo.uName) + _formData.append('prcType', this.$route.query.type) + _formData.append('json', JSON.stringify({ + prcForm: this.prcForm, + sarAccessInfoList: this.sarAccessInfoList, + sarAccessInfoListADMIN: this.sarAccessInfoListADMIN, + bzqdForm: this.bzqdForm, + listInfo: this.listInfo, + id: this.id + })) + saveTaskFirst(_formData).then(res => { + this.saveLoading = false + this.$message.success('保存成功') + // this.$router.push('/processCenter') + // this.bpnId = res.result + }).catch(e => { + this.saveLoading = false + }) + }, handleSubmit() { var json = this.form json.zrUserId = this.$store.getters.userInfo.userId json.jlUserId = this.$store.getters.userInfo.userId + json.commentText = this.commentText json.applyUpdUserId = this.$store.getters.userInfo.userId json.prcCreateUser = this.$store.getters.userInfo.userId json.prcCreateUserName = this.$store.getters.userInfo.account @@ -756,8 +783,8 @@ }, { _this: this }, res => { - console.log(res); - if (res.ok) { + if (res.success) { + this.$message.success(res.message) } }) } diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index 55f15899b..ada10c0d7 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -3,11 +3,12 @@ - +
基础信息
-
审批历史
+
审批历史
+
@@ -45,7 +46,8 @@ disabled v-model="form.standYear" type="year" - placeholder="请选择标准年份"> + placeholder="请选择标准年份" + value-format="yyyy"> @@ -528,7 +530,7 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="textarea"> + v-model="commentText">
@@ -581,6 +583,75 @@
+
+
+ + + + + + + + + + + + + + + + + + + + + 流程列表加载中 +
+
{ + this.detailData = res + }, e => {}) + }, getData() { return new Promise((resolve, reject) => { inboundLiaisonDetail({ - taskIds: this.$route.query.taskIds, - pId: this.$route.query.prcId + taskIds: this.taskIds, + pId: this.pId }).then(res => { if (res) { - console.log(res); - resolve() + const processForm = JSON.parse(res.mesg) + this.getFormFieldList(processForm) } }).catch(e => { }) }) }, + /** + * @description: 动态表单读取 + */ + getFormFieldList (item) { + this.$nextTick(() => { + this.form = JSON.parse(JSON.stringify(item)) + this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' + this.form.prcNum = this.prcNum + this.form.prcName = this.prcName + this.form['id'] = item.id + }) + }, closeDrawer() { this.ListModel = false }, @@ -729,33 +843,49 @@ }, handleSave() {}, handleSubmit() { - var json = this.form - json.zrUserId = this.$store.getters.userInfo.userId - json.jlUserId = this.$store.getters.userInfo.userId - json.applyUpdUserId = this.$store.getters.userInfo.userId - json.prcCreateUser = this.$store.getters.userInfo.userId - json.prcCreateUserName = this.$store.getters.userInfo.account - this.$http.get('lawss/activiti/startProcess', {type: '1'}, { + const json = JSON.stringify(this.form); + json.commentText = this.commentText + json.approvalOpinion = this.approvalOpinion + console.log(json) + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.taskIds, + userId : this.userId, + json: json + }, { _this: this }, res => { - if (res.ok) { - this.$http.post('lawss/activiti/completeTask', { - taskIds: res.data, - userId : this.$store.getters.userInfo.userId, - json: JSON.stringify(json) - }, { - _this: this - }, res => { - console.log(res); - if (res.ok) { - } - }) + console.log(res); + if (res.success) { + this.processCreateStand(json) } }) - } + }, + + /** + * @description: 流程入库 + * @date: 2020-11-18 21:47:58 + * @auth: chenxiaoxi + */ + processCreateStand(json) { + const _formData = new FormData() + _formData.append('infoJson', json) + processCreateStand(_formData).then(res => { + if (res.result === '操作成功' || res.data === '入库成功') { + this.$message.success(res.data) + setTimeout(() => { + this.$router.push({ + name: 'ProcessCenter' + }) + }, 100) + } else { + this.$message.warning(res.message) + } + }) + }, }, mounted () { this.getData() + this.processTable() this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this }, res => { diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue new file mode 100644 index 000000000..17a7e98ea --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue @@ -0,0 +1,843 @@ + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue new file mode 100644 index 000000000..67d7ba459 --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue @@ -0,0 +1,843 @@ + + + + + diff --git a/src/pages/processCenter/pages/processDetail/index.vue b/src/pages/processCenter/pages/processDetail/index.vue new file mode 100644 index 000000000..60d5e7e98 --- /dev/null +++ b/src/pages/processCenter/pages/processDetail/index.vue @@ -0,0 +1,1138 @@ + + + + + + diff --git a/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue b/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue index 4cfd649b2..52aa76563 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue @@ -124,7 +124,7 @@ - 办理 + 查看
@@ -167,7 +167,7 @@ export default { methods: { handleCommand (command) { switch (command[1]) { - case '办理': + case '查看': this.dealWith(command[0]) break } @@ -179,6 +179,22 @@ export default { this.queryProcess() }, queryProcess () { // 查询待办流程 + this.$http.postData('lawss/activiti/doneProcess', { + current: this.pageNo, + size: this.$store.getters.userInfo.configContent, + userId: this.$store.getters.userInfo.userId, + prcName: this.searchForm.prcName, + prcType: parseInt(this.searchForm.prcType) || '', + prcNum: this.searchForm.prcNum + }, { + loading: 'loading', + _this: this + }, res => { + console.log(res) + this.processList = res.list || [] + this.total = res.count + }, e => { + }) }, selectProcessBtn () { // 搜索按钮 this.pageNo = 1 @@ -194,7 +210,14 @@ export default { pageSizeChange (pageSize) { // 数量改变 this.queryProcess() }, - dealWith (row) { // 办理 + dealWith (row) { // 查看 + this.$router.push({ + name: 'ProcessDetail', + query: { + prcNum: row.prcNum, + tabsName: 'AlreadyProcess' + } + }) }, ...mapMutations(['setProcess', 'setHandleInfo']), ...mapActions(['setMenu']) diff --git a/src/pages/processCenter/pages/processList/tabComponents/alreadySend/index.vue b/src/pages/processCenter/pages/processList/tabComponents/alreadySend/index.vue index f788dbf12..ec7c033cb 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/alreadySend/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/alreadySend/index.vue @@ -124,7 +124,7 @@ - 办理 + 查看 @@ -167,7 +167,7 @@ export default { methods: { handleCommand (command) { switch (command[1]) { - case '办理': + case '查看': this.dealWith(command[0]) break } @@ -179,6 +179,23 @@ export default { this.queryProcess() }, queryProcess () { // 查询待办流程 + this.$http.postData('lawss/activiti/IssuedProcess', + { + current: this.pageNo, + size: this.$store.getters.userInfo.configContent, + userId: this.$store.getters.userInfo.userId, + prcName: this.searchForm.prcName, + prcType: parseInt(this.searchForm.prcType) || '', + prcNum: this.searchForm.prcNum + }, + { + loading: 'loading', + _this: this + }, res => { + this.processList = res.list + this.total = res.count + }, e => { + }) }, selectProcessBtn () { // 搜索按钮 this.pageNo = 1 @@ -194,7 +211,14 @@ export default { pageSizeChange (pageSize) { // 数量改变 this.queryProcess() }, - dealWith (row) { // 办理 + dealWith (row) { // 查看 + this.$router.push({ + name: 'ProcessDetail', + query: { + prcNum: row.prcNum, + tabsName: 'AlreadySend' + } + }) }, ...mapMutations(['setProcess', 'setHandleInfo']), ...mapActions(['setMenu']) diff --git a/src/pages/processCenter/pages/processList/tabComponents/monitorProcess/index.vue b/src/pages/processCenter/pages/processList/tabComponents/monitorProcess/index.vue index 492b68d1d..43a7c2803 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/monitorProcess/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/monitorProcess/index.vue @@ -124,7 +124,7 @@ - 办理 + 查看 @@ -167,7 +167,7 @@ export default { methods: { handleCommand (command) { switch (command[1]) { - case '办理': + case '查看': this.dealWith(command[0]) break } @@ -179,6 +179,23 @@ export default { this.queryProcess() }, queryProcess () { // 查询待办流程 + this.$http.postData('lawss/activiti/allProcess', + { + current: this.pageNo, + size: this.$store.getters.userInfo.configContent, + userId: this.$store.getters.userInfo.userId, + prcName: this.searchForm.prcName, + prcType: parseInt(this.searchForm.prcType) || '', + prcNum: this.searchForm.prcNum + }, + { + loading: 'loading', + _this: this + }, res => { + this.processList = res.list || [] + this.total = res.count + }, e => { + }) }, selectProcessBtn () { // 搜索按钮 this.pageNo = 1 @@ -194,7 +211,14 @@ export default { pageSizeChange (pageSize) { // 数量改变 this.queryProcess() }, - dealWith (row) { // 办理 + dealWith (row) { // 查看 + this.$router.push({ + name: 'ProcessDetail', + query: { + prcNum: row.prcNum, + tabsName: 'MonitorProcess' + } + }) }, ...mapMutations(['setProcess', 'setHandleInfo']), ...mapActions(['setMenu']) diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue index e9a545f17..349d54a99 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue @@ -199,7 +199,6 @@ export default { }, e => { }) }, - selectProcessBtn () { // 搜索按钮 this.pageNo = 1 this.queryProcess() @@ -215,14 +214,43 @@ export default { this.queryProcess() }, dealWith (row) { // 办理 - switch(row.prcType) { + this.setHandleInfo(JSON.stringify(row)) + const prcType = row.prcType + console.log(prcType) + console.log(row.taskInfo) + switch(prcType) { case '1': if (row.taskInfo === '标准法规业务经理审批') { this.$router.push({ name: 'bzrkStep2', query: { taskIds: row.taskIds, - prcId: row.prcId + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '责任人会签'){ + this.$router.push({ + name: 'step3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '申请人修订'){ + this.$router.push({ + name: 'step4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType } }) } diff --git a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue index 42fbdb731..b6842a975 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue @@ -179,6 +179,20 @@ export default { this.queryProcess() }, queryProcess () { // 查询待办流程 + this.$http.postData('lawss/activiti/queryTaskDraft', { + current: this.pageNo, + size: parseInt(this.$store.getters.userInfo.configContent), + userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId, + prcName: this.searchForm.prcName, + prcType: parseInt(this.searchForm.prcType) || '' + }, + { + loading: 'loading', + _this: this + }, res => { + this.processList = res.list + this.total = res.count + }) }, selectProcessBtn () { // 搜索按钮 this.pageNo = 1 @@ -195,6 +209,7 @@ export default { this.queryProcess() }, dealWith (row) { // 办理 + //草稿办理待开发 }, ...mapMutations(['setProcess', 'setHandleInfo']), ...mapActions(['setMenu']) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue index 42cce532f..f32fddf4e 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue @@ -1,676 +1,381 @@ diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue index 2af54d069..ff422126d 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue @@ -1,661 +1,378 @@ + diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue index 596cd2efa..7dcda4ec7 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue @@ -1,667 +1,373 @@ + diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue index 18d6d042e..234586d1c 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue @@ -1,661 +1,368 @@ diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue index 7120ae3a5..c2080cfa8 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue @@ -71,7 +71,18 @@
+ + + +
+
+ + + + + +
- + + + - + - + - + @@ -234,6 +245,9 @@ export default { }, data () { return { + //默认返回已维护 + ifMaintaince:"Maintenance", + deptUser: [], // 查询条件 localProTableSearch: { @@ -710,7 +724,7 @@ export default { }, // 切换tabs handleClick (tab, event) { - this.localProEO.prodectCode = this.activeName + this.localProEO.prodectCode = this.ifMaintaince this.insideHandleClick() }, insideHandleClick (tab, event) { @@ -1077,13 +1091,22 @@ export default { }, // 查询本地产品 getLocalProductTable () { - this.localProTableSearch.prodectCode = this.activeName + this.localProTableSearch.prodectCode = this.ifMaintaince + console.log(this.localProTableSearch.prodectCode) this.localProTableSearch.dataType = this.insideTabsActiveName this.SarExportSearchEo = this.localProTableSearch - this.$http.get('lawss/sarProductInfo/getProductInfoPage', this.localProTableSearch, { + this.$http.get('sarStandProjectLibrary/queryProject', this.localProTableSearch, { _this: this, loading: 'loading' }, res => { - this.localProTableList = res.data.list + // console.log(res.data) + if (this.localProTableSearch.prodectCode === 'Maintenance') { + this.localProTableList = res.data.Maintenance.records + } + else if (this.localProTableSearch.prodectCode === 'notMaintenance') + { + this.localProTableList = res.data.notMaintenance.records + + } this.total = res.data.count // this.localProTableList.map((item) => { // this.xmztOptions.map((opr) => { diff --git a/src/pages/regulatoryRepository/nonConfomity/index.vue b/src/pages/regulatoryRepository/nonConfomity/index.vue index a91d0f497..ceb38c6f1 100644 --- a/src/pages/regulatoryRepository/nonConfomity/index.vue +++ b/src/pages/regulatoryRepository/nonConfomity/index.vue @@ -2,7 +2,7 @@