合并分支 'dev_20230216' 到 'master'

Dev 20230216

查看合并请求 laws-foton-slrs/foton-laws-system-front!32
This commit is contained in:
高嵩
2023-04-04 19:38:35 +08:00
13 changed files with 2374 additions and 40 deletions
@@ -334,7 +334,7 @@
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button> <el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button>
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button> <el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button>
<el-button class="relation-btn" icon="icon-relation" @click="knowledgeSharing">标准问答</el-button> <el-button class="relation-btn" icon="icon-relation" @click="knowledgeSharing">标准问答</el-button>
<el-button class="relation-btn" icon="icon-relation" @click="knowledgeSharing">标准需求(翻译)申请流程</el-button> <el-button v-if="false" class="relation-btn" icon="icon-relation" @click="knowledgeSharing">标准需求(翻译)申请流程</el-button>
</div> </div>
</div> </div>
</div> </div>
@@ -2962,16 +2962,56 @@ export default {
this.relateDialog1 = true this.relateDialog1 = true
this.relateNowList1 = list this.relateNowList1 = list
}, },
selectAskReply(){
return new Promise((resolve,reject)=>{
this.$http.post('lawss/AskQuestions/selectAskReply', {
id: this.$route.params.id
}, {
_this: this
}, res => {
resolve(res)
},e => reject(e));
})
},
//标准问答按钮 //标准问答按钮
knowledgeSharing() { knowledgeSharing() {
this.$router.push({ this.selectAskReply()
path: '/standQA', .then((res)=>{
query:{ if( res && res.data.length === 0){
standId: this.$route.params.id, this.$router.push({
standType: 'BUSINESS_STAND', name: 'MyQuestions3',
sourceType: 'details', query: {
} activeName: "myQue",
type: this.$route.params.pageType,
id: this.$route.params.id,
dialogVisible: true
},
})
}else{
const data = res.data[0].askQuestions
this.$router.push({
name: 'MyQuestions3',
query: {
activeName: "myQue",
classification: data.classification,
id: this.$route.params.id,
dialogVisible: false
},
})
}
}).catch(e =>{
console.log(e)
}) })
// this.$router.push({
// // path: '/standQA',
// query: {
// standId: this.$route.params.id,
// standType: this.sarStandardsInfoEO.standType,
// sourceType: 'details',
// },
// name: 'MyQuestions2',
// })
}, },
// 更新LOG // 更新LOG
relateEvent () { relateEvent () {
@@ -37,7 +37,7 @@
@click="collectClick()"></el-button> @click="collectClick()"></el-button>
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button> <el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button>
<el-button class="relation-btn" @click="knowledgeSharing">标准问答</el-button> <el-button class="relation-btn" @click="knowledgeSharing">标准问答</el-button>
<el-button class="relation-btn" @click="">标准需求翻译申请流程</el-button> <el-button v-if="false" class="relation-btn" @click="">标准需求翻译申请流程</el-button>
</div> </div>
</div> </div>
</div> </div>
@@ -2634,16 +2634,57 @@ export default {
pageSizeChange1() { pageSizeChange1() {
this.getKnowList() this.getKnowList()
}, },
selectAskReply(){
return new Promise((resolve,reject)=>{
this.$http.post('lawss/AskQuestions/selectAskReply', {
id: this.$route.params.id
}, {
_this: this
}, res => {
resolve(res)
},e => reject(e));
})
},
//标准问答按钮 //标准问答按钮
knowledgeSharing() { knowledgeSharing() {
this.$router.push({ this.selectAskReply()
path: '/standQA', .then((res)=>{
query: { if( res && res.data.length === 0){
standId: this.$route.params.id, this.$router.push({
standType: this.sarStandardsInfoEO.standType, name: 'MyQuestions3',
sourceType: 'details', query: {
} activeName: "myQue",
}) type: this.$route.params.pageType,
id: this.$route.params.id,
dialogVisible: true
},
})
}else{
const data = res.data[0].askQuestions
this.$router.push({
name: 'MyQuestions3',
query: {
activeName: "myQue",
type: this.$route.params.pageType,
// classification: data.classification,
id: this.$route.params.id,
dialogVisible: false
},
})
}
}).catch(e =>{
console.log(e)
})
// this.$router.push({
// // path: '/standQA',
// query: {
// standId: this.$route.params.id,
// standType: this.sarStandardsInfoEO.standType,
// sourceType: 'details',
// },
// name: 'MyQuestions2',
// })
}, },
// 获取知识点列表数据 // 获取知识点列表数据
getKnowList() { getKnowList() {
+37 -10
View File
@@ -1,6 +1,6 @@
<!-- 待办任务 --> <!-- 待办任务 -->
<template> <template>
<div class="to-do-list"> <div class="to-do-list" v-loading="Loading">
<div style="border-bottom: 2px solid #f4f4f4"> <div style="border-bottom: 2px solid #f4f4f4">
<span class="task"> <span class="task">
<i class="el-icon-s-goods"></i> 待办任务 <i class="el-icon-s-goods"></i> 待办任务
@@ -9,18 +9,21 @@
</div> </div>
<ul> <ul>
<li v-for="item in toDoTaskList" :key="item.id" class="time-title"> <li v-for="item in toDoTaskList" :key="item.id" class="time-title">
<div style="min-height: 30px"> <div style="min-height: 30px;display: flex;justify-content: space-between">
<span @click="dealWith(item)" <div>
style="line-height: 30px; font-size: 13px;display: inline-block;width: 100%;">{{ getPrcNameFilter(item) }}</span> <span @click="dealWith(item)"
<el-button type="primary" style="line-height: 30px; font-size: 13px;"
size="small" >{{ getPrcNameFilter(item) }}</span>
class="common-button-primary" </div>
icon="el-icon-check" <div>
@click="handleReceive(item)" v-if="item.showreceive && ((item.prcType == 25 && item.taskInfo == '技术标准起草') || (item.prcType == 3 && item.taskInfo == '意见反馈') || <el-button type="primary"
size="small"
@click="handleReceive(item)" v-if="item.showreceive && ((item.prcType == 25 && item.taskInfo == '技术标准起草') || (item.prcType == 3 && item.taskInfo == '意见反馈') ||
(item.prcType == 9 && item.taskInfo == '解读') || (item.prcType == 6 && item.taskInfo === '合规评估') || (item.prcType == 6 && item.taskInfo == '批准') || (item.prcType == 9 && item.taskInfo == '解读') || (item.prcType == 6 && item.taskInfo === '合规评估') || (item.prcType == 6 && item.taskInfo == '批准') ||
(item.prcType == 2 && item.taskInfo === '调研结果反馈') || (item.prcType == 8 && item.taskInfo === '合规排查(上传合规举证材料)') || (item.prcType == 2 && item.taskInfo === '调研结果反馈') || (item.prcType == 8 && item.taskInfo === '合规排查(上传合规举证材料)') ||
(item.prcType == 10 && item.taskInfo === '清单完善1') || (item.prcType == 26 && item.taskInfo === '立项确认') || (item.prcType == 10 && item.taskInfo === '清单完善1') || (item.prcType == 26 && item.taskInfo === '立项确认') ||
(item.prcType == 'buss3' && item.taskInfo === '复审'))? true : false">接受任务</el-button> (item.prcType == 'buss3' && item.taskInfo === '复审'))? true : false">接受</el-button>
</div>
<!-- <el-tooltip class="item" effect="dark" :content="getPrcNameFilter(item)" placement="left" v-else>--> <!-- <el-tooltip class="item" effect="dark" :content="getPrcNameFilter(item)" placement="left" v-else>-->
<!-- <span @click="dealWith(item)"--> <!-- <span @click="dealWith(item)"-->
<!-- style="line-height: 30px; font-size: 13px;">{{ getPrcNameFilter(item).substring(0, 32) + '...' }}</span>--> <!-- style="line-height: 30px; font-size: 13px;">{{ getPrcNameFilter(item).substring(0, 32) + '...' }}</span>-->
@@ -42,6 +45,7 @@ export default {
total: 0, total: 0,
pageNo: 1, pageNo: 1,
showreceive:true, showreceive:true,
Loading:false
} }
}, },
computed: {}, computed: {},
@@ -73,6 +77,7 @@ export default {
}, },
// 接受按钮 // 接受按钮
handleReceive(item) { handleReceive(item) {
this.Loading = true
this.isSubmit = true this.isSubmit = true
// execTask({ // execTask({
// todoId: this.todoId // 当前节点ID // todoId: this.todoId // 当前节点ID
@@ -106,9 +111,31 @@ export default {
this.showreceive = false this.showreceive = false
// this.$router.push('/processCenter') // this.$router.push('/processCenter')
// } // }
this.queryProcessPrmise().then(() => {
this.Loading = false
})
}) })
}) })
}, },
queryProcessPrmise () { // 查询待办流程
return new Promise((resolve,reject)=>{
this.$http.postData('lawss/activiti/todoTaskList', {
current: this.pageNo,
size: 10,
userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId,
},
{
loading: 'loading',
_this: this
}, res => {
this.toDoTaskList = res.list
resolve()
}, e => {
reject()
})
})
},
dealWith (row) { // 办理 dealWith (row) { // 办理
const prcType = row.prcType const prcType = row.prcType
switch(prcType) { switch(prcType) {
+1 -1
View File
@@ -30,7 +30,7 @@
<div class="action-bar"> <div class="action-bar">
<el-button size="small" type="primary" @click="spiltStandFile" v-btn-permission="'633d92e841ab4d49fb57b48b45fd0db8'">拆分</el-button> <el-button size="small" type="primary" @click="spiltStandFile" v-btn-permission="'633d92e841ab4d49fb57b48b45fd0db8'">拆分</el-button>
<el-button size="small" type="danger" @click="batchDelete" v-btn-permission="'e214975dcab66d2e27bf2ed9897f521c'">删除</el-button> <el-button size="small" type="danger" @click="batchDelete" v-btn-permission="'e214975dcab66d2e27bf2ed9897f521c'">删除</el-button>
<el-button size="small" type="primary" @click="clickButtonToImport" v-btn-permission="'449d7543121f8588b0bddc4038d14863'">导入拆分结果</el-button> <el-button size="small" type="primary" @click="clickButtonToImport">导入拆分结果</el-button>
</div> </div>
<div class="table-wrap"> <div class="table-wrap">
<div style="position: absolute;height: 100%;width: 100%;"> <div style="position: absolute;height: 100%;width: 100%;">
File diff suppressed because it is too large Load Diff
@@ -104,7 +104,7 @@
icon="el-icon-check" icon="el-icon-check"
@click="handleReceive" @click="handleReceive"
:loading="submitLoading" :loading="submitLoading"
v-if="showReceive" v-if="false"
>接收任务</el-button> >接收任务</el-button>
<el-button <el-button
type="danger" type="danger"
@@ -7,7 +7,7 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled"> <el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled">
<el-select v-model="form.standSort" filterable clearable> <el-select v-model="form.standSort" filterable clearable @change="standSortChange">
<el-option <el-option
v-for="item in standSortOptions" v-for="item in standSortOptions"
placeholder="请选择企标类别" placeholder="请选择企标类别"
@@ -18,12 +18,20 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled" > <el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled" >
<template> <el-select v-model="form.reviseStatus" filterable>
<div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div> <el-option
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订</div> v-for="item in opinionsStand"
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改</div> :key="item.value"
<div style="padding-left: 10px; color: #666666;" v-else></div> :value="item.value"
</template> :label="item.label"
></el-option>
</el-select>
<!--<template>-->
<!-- <div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div>-->
<!-- <div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订</div>-->
<!-- <div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改</div>-->
<!-- <div style="padding-left: 10px; color: #666666;" v-else></div>-->
<!--</template>-->
</el-form-item> </el-form-item>
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled"> <el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
<el-input <el-input
@@ -80,7 +88,8 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="form.reviseStatus === '1'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled"> <!--<el-form-item v-show="form.reviseStatus === '1'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled">-->
<el-form-item v-show="form.reviseStatus === '1' || form.reviseStatus === '2'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standNum" v-model="form.standNum"
:maxLength="100" :maxLength="100"
@@ -439,7 +448,7 @@
disabled disabled
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled"> <el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled cbcd">
<el-select v-model="form.CYCD" filterable clearable <el-select v-model="form.CYCD" filterable clearable
placeholder="请先选择采标程度" placeholder="请先选择采标程度"
> >
@@ -753,6 +762,11 @@ export default {
}, },
data () { data () {
return { return {
opinionsStand:[
{value: '1',label: '制定'},
{value: '2',label: '修订'},
{value: '3',label: '修改'},
],
fileId:'', fileId:'',
dialogVisible: false, dialogVisible: false,
config: { config: {
@@ -827,6 +841,9 @@ export default {
...mapGetters(['userInfo']) ...mapGetters(['userInfo'])
}, },
methods: { methods: {
standSortChange(val){
this.$emit('standSortChange',val)
},
filterOp(data){ filterOp(data){
if(!data){ if(!data){
return "" return ""
@@ -1097,6 +1114,11 @@ export default {
} }
} }
}, },
'form.reviseStatus':{
handler(val) {
this.$emit('reveseStatusChange',val)
}
}
} }
} }
</script> </script>
@@ -45,6 +45,8 @@
@formChoiceZRR3 = "formChoiceZRR3" @formChoiceZRR3 = "formChoiceZRR3"
@formChoiceZRR4 = "formChoiceZRR4" @formChoiceZRR4 = "formChoiceZRR4"
@formChoiceZRR5 = "formChoiceZRR5" @formChoiceZRR5 = "formChoiceZRR5"
@standSortChange = "standSortChange"
@reveseStatusChange = 'reveseStatusChange'
/> />
<div> <div>
<el-collapse accordion v-model="activeName"> <el-collapse accordion v-model="activeName">
@@ -1118,6 +1120,7 @@
syrzOptions:[],//适用认证下拉框 syrzOptions:[],//适用认证下拉框
data: [], // 标准列表数据 data: [], // 标准列表数据
ListForm: {}, // 新增数据 ListForm: {}, // 新增数据
maxStandnSn:"", // 最大順序號
} }
}, },
watch:{ watch:{
@@ -1166,6 +1169,16 @@
}, },
}, },
methods: { methods: {
reveseStatusChange(val){
if(val === '1'){
this.form.standNum = this.maxStandnSn
}else{
this.form.standNum = this.form.standSn
}
},
standSortChange(val){
this.form.standCode = val + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
},
checkedRoleTransfer (data) { checkedRoleTransfer (data) {
this.isSubmit = true this.isSubmit = true
this.saveLoading = true this.saveLoading = true
@@ -1266,6 +1279,7 @@
this.fileType = fileType this.fileType = fileType
this.fileUpload(fileType) this.fileUpload(fileType)
} }
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}, },
modelProp(row,index){ modelProp(row,index){
console.log(row) console.log(row)
@@ -2853,6 +2867,13 @@
}, e => { }, e => {
}) })
}, },
getMaxStandnSn(){
this.$http.get('lawss/sarBussionessStand/selectMaxStandnSn', '', {
_this: this
}, res => {
this.maxStandnSn = res.data
})
}
}, },
mounted () { mounted () {
// this.getTaskId() // this.getTaskId()
@@ -2894,6 +2915,7 @@
} }
this.busVsFunc() this.busVsFunc()
this.modelFunc() this.modelFunc()
this.getMaxStandnSn();
} }
} }
@@ -2904,6 +2926,9 @@
/deep/ .el-input__suffix{ /deep/ .el-input__suffix{
display: none !important; display: none !important;
} }
/deep/ .cbcd .el-input__suffix{
display: inline-block !important;
}
/deep/ #active2 .el-form-item__content{ /deep/ #active2 .el-form-item__content{
margin-left: 0px !important; margin-left: 0px !important;
} }
@@ -149,6 +149,7 @@
<div style="flex: auto;" v-show="active === '2'"> <div style="flex: auto;" v-show="active === '2'">
<formEditList <formEditList
:key = "formKey" :key = "formKey"
:isTrue="true"
:formSub = "form" :formSub = "form"
:FBGBUSSFileListSub = "FBGBUSSFileList" :FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList" :LSBBBUSSFileListSub = "LSBBBUSSFileList"
@@ -929,7 +929,7 @@
accept=".ZIP, .zip" accept=".ZIP, .zip"
:before-upload="beginImportFile" :before-upload="beginImportFile"
:on-success="importFileSuccess" :on-success="importFileSuccess"
:show-file-list="false" :show-file-list="true"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -4471,6 +4471,11 @@ export default {
}, },
// 点击导入标准 // 点击导入标准
addImportModal(flag) { addImportModal(flag) {
if(this.selectSarMenu.id === undefined){
this.importFailed = true;
this.importForm.content = '请选择需要导入的目录'
return
}
this.importModalshowflag = true this.importModalshowflag = true
this.showUploadlist = true this.showUploadlist = true
this.importExcelUrl = '/api/lawss/sarBussionessStand/importSarBussionessStandFile?menuId=' + this.selectSarMenu.id + '&userId=' + this.$store.getters.userInfo.userId this.importExcelUrl = '/api/lawss/sarBussionessStand/importSarBussionessStandFile?menuId=' + this.selectSarMenu.id + '&userId=' + this.$store.getters.userInfo.userId
@@ -1073,6 +1073,27 @@ export default {
this.dialogVisible = false this.dialogVisible = false
this.isSubmit = false this.isSubmit = false
this.searchBtn() this.searchBtn()
this.$http.post('lawss/activiti/startProcessRollBack',{
json: JSON.stringify(res.data),
type: '27',
createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName,
},
{
_this: this
}, val => {
this.$http.post('lawss/activiti/completeTask',{
taskIds: val.data,
userId : this.$store.getters.userInfo.userId,
json: JSON.stringify(res.data),
},
{
_this: this
}, res => {
}, e => {
})
}, e => {
})
}, e => { }, e => {
}) })
@@ -30,7 +30,7 @@
<div>首页</div> <div>首页</div>
</router-link> </router-link>
<!-- <button>标准翻译申请流程</button>--> <!-- <button>标准翻译申请流程</button>-->
<a class="router-link1" style="margin-left: 10px;"> <a v-if="false" class="router-link1" style="margin-left: 10px;">
标准需求翻译申请流程 标准需求翻译申请流程
</a> </a>
</div> </div>
+9
View File
@@ -338,6 +338,15 @@ const routes = [
requireAuth: false, requireAuth: false,
title: '我的问答' title: '我的问答'
} }
},
{
path: '/questions3',
name: 'MyQuestions3',
component: resolve => require(['@/pages/personal/pages/my-questions/index3.vue'], resolve),
meta: {
requireAuth: false,
title: '我的问答'
}
}, },
{ {
path: '/questionDetail', path: '/questionDetail',