Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
Generated
+88
@@ -4734,6 +4734,94 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vue-loader-v16": {
|
||||||
|
"version": "npm:vue-loader@16.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.5.0.tgz",
|
||||||
|
"integrity": "sha512-WXh+7AgFxGTgb5QAkQtFeUcHNIEq3PGVQ8WskY5ZiFbWBkOwcCPRs4w/2tVyTbh2q6TVRlO3xfvIukUtjsu62A==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"chalk": "^4.1.0",
|
||||||
|
"hash-sum": "^2.0.0",
|
||||||
|
"loader-utils": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-styles": {
|
||||||
|
"version": "4.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||||
|
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"color-convert": "^2.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"big.js": {
|
||||||
|
"version": "5.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz",
|
||||||
|
"integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"chalk": {
|
||||||
|
"version": "4.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
||||||
|
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"ansi-styles": "^4.1.0",
|
||||||
|
"supports-color": "^7.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"emojis-list": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"has-flag": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"json5": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"minimist": "^1.2.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"loader-utils": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"big.js": "^5.2.2",
|
||||||
|
"emojis-list": "^3.0.0",
|
||||||
|
"json5": "^2.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"supports-color": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"has-flag": "^4.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"vue-style-loader": {
|
"vue-style-loader": {
|
||||||
"version": "4.1.2",
|
"version": "4.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
class="filter-tree tree-line"
|
class="filter-tree tree-line"
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
|
icon-class="icon-tree"
|
||||||
:check-strictly="true"
|
:check-strictly="true"
|
||||||
:current-node-key="nodeKeyId"
|
:current-node-key="nodeKeyId"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
@@ -169,6 +170,12 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
/deep/ .icon-tree {
|
||||||
|
margin: 0 5px 0 10px;
|
||||||
|
position: relative;
|
||||||
|
background: url('~@/assets/images/shangqi/img/tree-add.png');
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
/deep/ .el-tree-node__content {
|
/deep/ .el-tree-node__content {
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
node-key="id"
|
node-key="id"
|
||||||
style="height: 100%; overflow: auto;"
|
style="height: 100%; overflow: auto;"
|
||||||
class="filter-tree tree-line"
|
class="filter-tree tree-line"
|
||||||
|
icon-class="icon-tree"
|
||||||
@check-change="checkChange"
|
@check-change="checkChange"
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
node-key="id"
|
node-key="id"
|
||||||
style="height: 100%; overflow: auto;"
|
style="height: 100%; overflow: auto;"
|
||||||
class="filter-tree tree-line"
|
class="filter-tree tree-line"
|
||||||
|
icon-class="icon-tree"
|
||||||
:data="treeData1"
|
:data="treeData1"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
@check-change="checkChange2"
|
@check-change="checkChange2"
|
||||||
@@ -249,6 +251,12 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
/deep/ .icon-tree {
|
||||||
|
margin: 0 5px 0 10px;
|
||||||
|
position: relative;
|
||||||
|
background: url('~@/assets/images/shangqi/img/tree-add.png');
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
/deep/.el-tree-node__content {
|
/deep/.el-tree-node__content {
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
style="border-top:none;position: absolute;right: 36px;">
|
style="border-top:none;position: absolute;right: 36px;">
|
||||||
<div class="modular-header" style="height: 50px;">
|
<div class="modular-header" style="height: 50px;">
|
||||||
<div class="modular-header-btn">
|
<div class="modular-header-btn">
|
||||||
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
|
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="el-icon-star-on" :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 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>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,11 +43,11 @@
|
|||||||
<template v-if = "item.label === '基础信息'">
|
<template v-if = "item.label === '基础信息'">
|
||||||
<div class="details-content-modular basic-information" style="margin-bottom: 0">
|
<div class="details-content-modular basic-information" style="margin-bottom: 0">
|
||||||
<div class="basic-information-content">
|
<div class="basic-information-content">
|
||||||
<p class="half" style="color: #C42626;"><label style=" margin-right: 171px;">企标号</label><span>{{ sarStandardsInfoEO.standCode }}</span></p>
|
<p class="" style="color: #C42626;"><label style=" margin-right: 171px;">企标号</label><span>{{ sarStandardsInfoEO.standCode }}</span></p>
|
||||||
<template v-for="(child, childIndex) in item.child1">
|
<template v-for="(child, childIndex) in item.child1">
|
||||||
<p class="half files-title"
|
<p class="files-title"
|
||||||
>
|
>
|
||||||
<label style=" margin-right: 102px;">{{ child.attrName }}</label>
|
<label style=" margin-right: 172px;">{{ child.attrName }}</label>
|
||||||
<template v-if="child.value && child.value.length > 0" v-for="(file, fileIndex) in child1Func(child.value)">
|
<template v-if="child.value && child.value.length > 0" v-for="(file, fileIndex) in child1Func(child.value)">
|
||||||
<span>
|
<span>
|
||||||
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a>
|
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a>
|
||||||
@@ -985,8 +985,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
activeNames: ['基础信息'],
|
activeNames: ['基础信息','过程稿件','实施日期'],
|
||||||
activeState: false,
|
activeState: true,
|
||||||
visiblePlanCheck: false,
|
visiblePlanCheck: false,
|
||||||
form: {},
|
form: {},
|
||||||
relateDialog: false,
|
relateDialog: false,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
style="border-top:none;position: absolute;right: 36px;border: none">
|
style="border-top:none;position: absolute;right: 36px;border: none">
|
||||||
<div class="modular-header" style="height: 50px;">
|
<div class="modular-header" style="height: 50px;">
|
||||||
<div class="modular-header-btn">
|
<div class="modular-header-btn">
|
||||||
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
|
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="el-icon-star-on" :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 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()">更新LOG</el-button>
|
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新LOG</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -913,7 +913,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
activeNames: ['基础信息'],
|
activeNames: ['基础信息'],
|
||||||
activeState: false,
|
activeState: true,
|
||||||
visiblePlanCheck: false,
|
visiblePlanCheck: false,
|
||||||
form: {},
|
form: {},
|
||||||
relateDialog: false,
|
relateDialog: false,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<div class="modular-header" style="height: 50px;">
|
<div class="modular-header" style="height: 50px;">
|
||||||
<div class="modular-header-btn">
|
<div class="modular-header-btn">
|
||||||
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)"
|
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)"
|
||||||
title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
|
title="取消收藏" class="collection-btn" icon="el-icon-star-on" :loading="isSubmit"></el-button>
|
||||||
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off"
|
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off"
|
||||||
:loading="isSubmit"></el-button>
|
: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>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<div class="details-content-modular basic-information" style="border-top:none">
|
<div class="details-content-modular basic-information" style="border-top:none">
|
||||||
<div class="basic-information-content">
|
<div class="basic-information-content">
|
||||||
<!-- <p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>-->
|
<!-- <p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>-->
|
||||||
<p style="color: #C42626;" class="half">
|
<p style="color: #C42626;" class="">
|
||||||
<label style=" margin-right: 164px;">标准号</label>
|
<label style=" margin-right: 164px;">标准号</label>
|
||||||
<span v-if="sarStandardsInfoEO.standYear">{{
|
<span v-if="sarStandardsInfoEO.standYear">{{
|
||||||
sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear
|
sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear
|
||||||
@@ -55,12 +55,14 @@
|
|||||||
</p>
|
</p>
|
||||||
<!-- <p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>-->
|
<!-- <p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>-->
|
||||||
<template v-for="(child, childIndex) in item.child1">
|
<template v-for="(child, childIndex) in item.child1">
|
||||||
<p class="half files-title"
|
<p class="files-title">
|
||||||
>
|
<label style=" margin-right: 164px;">{{ child.attrName }}</label>
|
||||||
<label style=" margin-right: 102px;">{{ child.attrName }}</label>
|
<template v-if="child.value && child.value.length > 0"
|
||||||
<template v-if="child.value && child.value.length > 0" v-for="(file, fileIndex) in child1Func(child.value)">
|
v-for="(file, fileIndex) in child1Func(child.value)">
|
||||||
<span>
|
<span>
|
||||||
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a>
|
<a style="font-size: 16px;color: #409EFF;cursor: pointer"
|
||||||
|
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||||
|
:title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a>
|
||||||
<i
|
<i
|
||||||
title="下载"
|
title="下载"
|
||||||
@click="downloadFile(file.id)"
|
@click="downloadFile(file.id)"
|
||||||
@@ -85,8 +87,11 @@
|
|||||||
icon="icon-separate"
|
icon="icon-separate"
|
||||||
>标准分解单
|
>标准分解单
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="child.value && child.value.length > 1" style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"
|
<el-button v-if="child.value && child.value.length > 1"
|
||||||
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>
|
style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"
|
||||||
|
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">
|
||||||
|
更多
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="child.value === null">-</template>
|
<template v-if="child.value === null">-</template>
|
||||||
</p>
|
</p>
|
||||||
@@ -110,7 +115,8 @@
|
|||||||
standMap[sarStandardsInfoEO.standNature] || '-'
|
standMap[sarStandardsInfoEO.standNature] || '-'
|
||||||
}}</span></p>
|
}}</span></p>
|
||||||
|
|
||||||
<p class="half" v-if="saveStandType === 'INLAND_STAND'"><label style=" margin-right: 150px;">标准体系</label><span>{{
|
<p class="half" v-if="saveStandType === 'INLAND_STAND'"><label
|
||||||
|
style=" margin-right: 150px;">标准体系</label><span>{{
|
||||||
sarStandardsInfoEO.standSystem || '-'
|
sarStandardsInfoEO.standSystem || '-'
|
||||||
}}</span></p>
|
}}</span></p>
|
||||||
<p class="half">
|
<p class="half">
|
||||||
@@ -390,7 +396,9 @@
|
|||||||
<template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|
<template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|
||||||
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|
||||||
|| child.attrField === 'JDWJ' || child.attrField === 'GLWJ'">
|
|| child.attrField === 'JDWJ' || child.attrField === 'GLWJ'">
|
||||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a>
|
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{
|
||||||
|
file.oldFileName | ellipsis
|
||||||
|
}}</a>
|
||||||
<i
|
<i
|
||||||
title="下载"
|
title="下载"
|
||||||
@click="downloadFile(file.id)"
|
@click="downloadFile(file.id)"
|
||||||
@@ -411,7 +419,9 @@
|
|||||||
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
|
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a>
|
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{
|
||||||
|
file.oldFileName | ellipsis
|
||||||
|
}}</a>
|
||||||
<i
|
<i
|
||||||
title="下载"
|
title="下载"
|
||||||
@click="downloadFile(file.id)"
|
@click="downloadFile(file.id)"
|
||||||
@@ -1061,7 +1071,8 @@
|
|||||||
style="margin-bottom: 10px;line-height: 20px;max-height: 300px"
|
style="margin-bottom: 10px;line-height: 20px;max-height: 300px"
|
||||||
>
|
>
|
||||||
{{ index + 1 }}.
|
{{ index + 1 }}.
|
||||||
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName }}</a>
|
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)"
|
||||||
|
target="_blank" :title="file.oldFileName">{{ file.oldFileName }}</a>
|
||||||
<i
|
<i
|
||||||
title="下载"
|
title="下载"
|
||||||
@click="downloadFile(file.id)"
|
@click="downloadFile(file.id)"
|
||||||
@@ -1414,8 +1425,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeNames: ['基础信息'],
|
activeNames: ['基础信息','过程稿件','实施日期'],
|
||||||
activeState: false,
|
activeState: true,
|
||||||
itemExistList: [],
|
itemExistList: [],
|
||||||
interpretationContent: '',
|
interpretationContent: '',
|
||||||
relatedTermsDrawerVisible: false,
|
relatedTermsDrawerVisible: false,
|
||||||
@@ -1721,7 +1732,7 @@ export default {
|
|||||||
return child1
|
return child1
|
||||||
},
|
},
|
||||||
handleChange(val) {
|
handleChange(val) {
|
||||||
console.log(val)
|
console.log('1724', val)
|
||||||
},
|
},
|
||||||
handleChange1(val) {
|
handleChange1(val) {
|
||||||
if (val && val === '基础信息') {
|
if (val && val === '基础信息') {
|
||||||
@@ -3417,6 +3428,7 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
border-bottom: 1px solid #E5E5E5;
|
border-bottom: 1px solid #E5E5E5;
|
||||||
|
|
||||||
.modular-header-title {
|
.modular-header-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -3431,8 +3443,7 @@ export default {
|
|||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-image: url("~assets/images/shangqi/standardDetails/modular-title.png");
|
background-image: url("~assets/images/shangqi/standardDetails/modular-title.png");
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 2px;
|
top: 2px;;
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& > span {
|
& > span {
|
||||||
@@ -3732,6 +3743,7 @@ export default {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.over {
|
.over {
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -5,36 +5,22 @@
|
|||||||
<template slot="proNode">选择分发责任人</template>
|
<template slot="proNode">选择分发责任人</template>
|
||||||
</ProcessHeader>
|
</ProcessHeader>
|
||||||
<div class="headerTabs">
|
<div class="headerTabs">
|
||||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
<div :class="active === '1' ? 'active' : ''" class="headerTabsItem" @click="handleTabs('1')">基础信息</div>
|
||||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
<div :class="active === '3' ? 'active' : ''" class="headerTabsItem" @click="handleTabs('3')">审批历史</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '1'">
|
<div v-show="active === '1'" class="content">
|
||||||
<div style="flex: auto; overflow: auto">
|
<div style="flex: auto; overflow: auto">
|
||||||
<process-title>
|
<process-title>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</process-title>
|
</process-title>
|
||||||
<el-form
|
<el-form :model="listForm" class="label-input-form prc-content-border" label-width="150px">
|
||||||
:model="listForm"
|
|
||||||
class="label-input-form prc-content-border"
|
|
||||||
label-width="150px"
|
|
||||||
>
|
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
<el-form-item class="add-form-item form-item-disabled" label="项目编号" prop="projectNumber">
|
||||||
<el-input
|
<el-input v-model="listForm.projectNumber" clearable disabled placeholder="请输入项目编号"></el-input>
|
||||||
v-model="listForm.projectNumber"
|
|
||||||
placeholder="请输入项目编号"
|
|
||||||
disabled
|
|
||||||
clearable
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
<el-form-item class="add-form-item form-item-disabled" label="项目名称" prop="projectName">
|
||||||
<el-input
|
<el-input v-model="listForm.projectName" clearable disabled placeholder="请输入项目名称"></el-input>
|
||||||
v-model="listForm.projectName"
|
|
||||||
placeholder="请输入项目名称"
|
|
||||||
disabled
|
|
||||||
clearable
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -42,75 +28,53 @@
|
|||||||
<process-title>
|
<process-title>
|
||||||
<template slot="title">填写信息</template>
|
<template slot="title">填写信息</template>
|
||||||
</process-title>
|
</process-title>
|
||||||
<!-- <div class="tableTitle">-->
|
<div class="tableTitle">
|
||||||
<!-- <div class="tableButton">-->
|
<div class="tableButton">
|
||||||
<!-- <el-button plain class="common-button-primary" size="mini" @click="choiceZRRS('', 2, '')">批量分发责任人-->
|
<el-button class="common-button-primary" plain size="mini" @click="choiceZRRS('', 2, '')">批量分发责任人
|
||||||
<!-- </el-button>-->
|
</el-button>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<el-table
|
<el-table v-if="refreshTable" ref="myTable" :data="dataList" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
:data="dataList"
|
fontWeight: 'bold', height: '48px'}" border height="70%"
|
||||||
style="width: 100%"
|
row-key="standId" style="width: 100%" @select="select" @select-all="selectAll"
|
||||||
row-key="standId"
|
@selection-change="selectStandChange">
|
||||||
|
<el-table-column align="center" type="selection" width="55">
|
||||||
v-if="refreshTable"
|
|
||||||
height="70%"
|
|
||||||
border
|
|
||||||
ref="myTable"
|
|
||||||
@selection-change="selectStandChange"
|
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
||||||
fontWeight: 'bold', height: '48px'}"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="标准号" prop="standNumber">
|
||||||
prop="standNumber"
|
|
||||||
label="标准号"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a v-if="scope.row.standYear" class="table-jump"
|
<a v-if="scope.row.standYear" class="table-jump"
|
||||||
@click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber
|
@click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber
|
||||||
}}-{{ scope.row.standYear }}</a>
|
}}-{{ scope.row.standYear }}</a>
|
||||||
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
|
<a v-else class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort }}
|
||||||
{{ scope.row.standNumber }}</a>
|
{{ scope.row.standNumber }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="标准名称" prop="standName">
|
||||||
prop="standName"
|
|
||||||
label="标准名称"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="条款号" prop="itemsNum">
|
||||||
prop="itemsNum"
|
|
||||||
label="条款号"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="条款名称" prop="itemsName">
|
||||||
prop="itemsName"
|
|
||||||
label="条款名称"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="责任人" prop="workPeople" align="center">
|
<el-table-column align="center" label="责任人" prop="workPeople">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="selectList.length<=1">
|
<div v-if="selectList.length<=1">
|
||||||
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeopleId" style="display: none;" readonly/>
|
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeopleId" readonly
|
||||||
|
style="display: none;" />
|
||||||
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeople" placeholder="请选择分发责任人"
|
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeople" placeholder="请选择分发责任人"
|
||||||
@click.native="choiceZRRS(scope.row, 1, scope.$index)" readonly/>
|
readonly @click.native="choiceZRRS(scope.row, 1, scope.$index)" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeopleId" style="display: none;" readonly/>
|
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeopleId" readonly
|
||||||
|
style="display: none;" />
|
||||||
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeople" placeholder="请选择分发责任人"
|
<el-input v-if="scope.row.workPeople" v-model="scope.row.workPeople" placeholder="请选择分发责任人"
|
||||||
@click.native="choiceZRRS('', 2, '')" readonly/>
|
readonly @click.native="choiceZRRS('', 2, '')" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-button style="width: 98%" :loading="buttonLoading" v-if="!scope.row.workPeople" size="small" type="primary" @click="choiceZRRS(scope.row, 3, '')">{{ "批量分发该标准下的责任人" }}</el-button>
|
<!-- <el-button style="width: 98%" :loading="buttonLoading" v-if="!scope.row.workPeople" size="small" type="primary" @click="choiceZRRS(scope.row, 3, '')">{{ "批量分发该标准下的责任人" }}</el-button>-->
|
||||||
</template>
|
</template>
|
||||||
<!-- <template slot-scope="scope">-->
|
<!-- <template slot-scope="scope">-->
|
||||||
<!-- <div :class="{'fileClass': !scope.row.workPeople}">-->
|
<!-- <div :class="{'fileClass': !scope.row.workPeople}">-->
|
||||||
@@ -124,77 +88,41 @@
|
|||||||
<el-collapse accordion>
|
<el-collapse accordion>
|
||||||
<el-collapse-item title="回执说明">
|
<el-collapse-item title="回执说明">
|
||||||
<div style="margin: 10px 0;">
|
<div style="margin: 10px 0;">
|
||||||
<el-input
|
<el-input v-model="commentText" :rows="3" placeholder="请输入意见" resize="none" type="textarea">
|
||||||
type="textarea"
|
|
||||||
:rows="3"
|
|
||||||
resize="none"
|
|
||||||
placeholder="请输入意见"
|
|
||||||
v-model="commentText">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '3'">
|
<div v-show="active === '3'" class="content">
|
||||||
<div class="flow-list" style="height: 100%">
|
<div class="flow-list" style="height: 100%">
|
||||||
<el-table
|
<el-table ref="selection" :data="detailData" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
height="100%"
|
:no-data-text="listNoDataText" border height="100%"
|
||||||
ref="selection"
|
row-key="id" style="width: 100%"
|
||||||
:data="detailData"
|
tooltip-effect="dark">
|
||||||
tooltip-effect="dark"
|
<el-table-column align="center" type="selection" width="55">
|
||||||
style="width: 100%"
|
|
||||||
border
|
|
||||||
row-key="id"
|
|
||||||
:no-data-text="listNoDataText"
|
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column align="center" label="任务步骤" prop="name">
|
||||||
prop="name"
|
|
||||||
label="任务步骤"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column align="center" label="任务受理人" prop="assignee">
|
||||||
prop="assignee"
|
|
||||||
label="任务受理人"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column align="center" label="创建时间" prop="createTime" sortable="custom">
|
||||||
prop="createTime"
|
|
||||||
label="创建时间"
|
|
||||||
sortable="custom"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
|
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column align="center" label="完成时间" prop="endTime">
|
||||||
prop="endTime"
|
|
||||||
label="完成时间"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD") : "" }}</span>
|
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD") : "" }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column align="center" label="流程信息" prop="comment">
|
||||||
prop="comment"
|
|
||||||
label="流程信息"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.commentText }}</span>
|
<span>{{ scope.row.commentText }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column align="center" label="状态" prop="completeFlag">
|
||||||
prop="completeFlag"
|
|
||||||
label="状态"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -203,34 +131,16 @@
|
|||||||
<loading :loading="loading">流程列表加载中</loading>
|
<loading :loading="loading">流程列表加载中</loading>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter :saveLoading="saveLoading" :submitLoading="isSubmit" :transfer-loading="isTransfer" show-save
|
||||||
show-save
|
|
||||||
show-submit
|
show-submit
|
||||||
show-transfer
|
show-transfer @save="handleSave" @submit="handleSubmit" @transfer="handleTransfer">
|
||||||
:submitLoading="isSubmit"
|
|
||||||
:transfer-loading="isTransfer"
|
|
||||||
:saveLoading="saveLoading"
|
|
||||||
@save="handleSave"
|
|
||||||
@transfer="handleTransfer"
|
|
||||||
@submit="handleSubmit"
|
|
||||||
>
|
|
||||||
</ProcessFooter>
|
</ProcessFooter>
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<Role-tree
|
<Role-tree :is-title="drawerTitle" :is-visible.sync="drawerModal" :nodeList="nodeList" check-box
|
||||||
check-box
|
@checkedRole="checkedTransferRole"></Role-tree>
|
||||||
:is-title="drawerTitle"
|
|
||||||
:is-visible.sync="drawerModal"
|
|
||||||
@checkedRole="checkedTransferRole"
|
|
||||||
:nodeList="nodeList"
|
|
||||||
></Role-tree>
|
|
||||||
<!-- 选择责任人-->
|
<!-- 选择责任人-->
|
||||||
<Role-tree
|
<Role-tree :is-visible.sync="modalshowflag" :nodeList="nodeList" is-title="选择责任人"
|
||||||
check-box
|
@checkedRole="checkedRole"></Role-tree>
|
||||||
is-title="选择责任人"
|
|
||||||
:is-visible.sync="modalshowflag"
|
|
||||||
@checkedRole="checkedRole"
|
|
||||||
:nodeList="nodeList"
|
|
||||||
></Role-tree>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -238,7 +148,7 @@
|
|||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
import { inboundLiaisonDetail, saveTaskForPub ,changeAssigneeNew } from "api/process";
|
import { changeAssigneeNew, inboundLiaisonDetail, saveTaskForPub } from "api/process";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "xmpg2Step5",
|
name: "xmpg2Step5",
|
||||||
@@ -299,44 +209,44 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedTransferRole(data) {
|
checkedTransferRole(data) {
|
||||||
this.assigneeNewLoading = true
|
this.assigneeNewLoading = true;
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
pId: this.$route.query.prcId // 流程实例
|
pId: this.$route.query.prcId // 流程实例
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.isTransfer = false
|
this.isTransfer = false;
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.drawerModal = false
|
this.drawerModal = false;
|
||||||
this.$message.success('调整成功')
|
this.$message.success("调整成功");
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
this.processNum()
|
this.processNum();
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
processNum(row) {
|
processNum(row) {
|
||||||
axios.request({
|
axios.request({
|
||||||
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
|
||||||
responseType: 'blob',
|
responseType: "blob",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: {
|
params: {
|
||||||
prcNum: this.$route.query.prcNum
|
prcNum: this.$route.query.prcNum
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
// let blob = new Blob([res.data], {type: 'image/jpg'})
|
// let blob = new Blob([res.data], {type: 'image/jpg'})
|
||||||
// let url = window.URL.createObjectURL(res.data)
|
// let url = window.URL.createObjectURL(res.data)
|
||||||
this.processStep = window.URL.createObjectURL(res.data)
|
this.processStep = window.URL.createObjectURL(res.data);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
//转办事件
|
//转办事件
|
||||||
handleTransfer() {
|
handleTransfer() {
|
||||||
this.drawerModal = true
|
this.drawerModal = true;
|
||||||
this.drawerTitle = '转办处理人'
|
this.drawerTitle = "转办处理人";
|
||||||
this.selectPeople = row
|
this.selectPeople = row;
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
@@ -407,6 +317,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//动态表单读取
|
//动态表单读取
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listForm = JSON.parse(JSON.stringify(item));
|
this.listForm = JSON.parse(JSON.stringify(item));
|
||||||
if (item.form === undefined) {
|
if (item.form === undefined) {
|
||||||
@@ -444,9 +355,18 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.listForm.children = children;
|
this.listForm.children = children;
|
||||||
|
this.dataList.forEach(item => {
|
||||||
|
this.$set(item, "workPeople", "请选择责任人");
|
||||||
|
});
|
||||||
|
console.log(this.dataList);
|
||||||
} else {
|
} else {
|
||||||
this.listForm = item.form;
|
this.listForm = item.form;
|
||||||
this.dataList = item.form.dataList;
|
this.dataList = item.form.dataList;
|
||||||
|
this.dataList.forEach(item => {
|
||||||
|
this.$set(item, "workPeople", "请选择责任人");
|
||||||
|
this.$set(item, "workPeopleId", "");
|
||||||
|
});
|
||||||
|
console.log(this.dataList);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -471,19 +391,21 @@ export default {
|
|||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let dataChildren = []
|
let dataChildren = [];
|
||||||
let dataListChildren = []
|
let dataListChildren = [];
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
dataChildren.push(item.children)
|
dataChildren.push(item.children);
|
||||||
})
|
});
|
||||||
dataChildren.forEach((item, index) => {
|
dataChildren.forEach((item, index) => {
|
||||||
dataListChildren = dataListChildren.concat(item)
|
dataListChildren = dataListChildren.concat(item);
|
||||||
})
|
});
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.listForm.commentText = this.commentText;
|
this.listForm.commentText = this.commentText;
|
||||||
this.listForm.children = dataListChildren
|
this.listForm.children = dataListChildren;
|
||||||
this.listForm.dataList = this.dataList
|
this.listForm.dataList = this.dataList;
|
||||||
const json = JSON.stringify(this.listForm);
|
const json = JSON.stringify(this.listForm);
|
||||||
|
console.log(json);
|
||||||
|
return;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
@@ -501,7 +423,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//批量分发按钮
|
//批量分发按钮
|
||||||
choiceZRRS(row, type, index) {
|
choiceZRRS(row, type, index) {
|
||||||
this.selectedId = row.id;
|
console.log(row);
|
||||||
|
this.selectedId = row.id || row.standId;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
this.drawerTitle = "选择责任人";
|
this.drawerTitle = "选择责任人";
|
||||||
@@ -530,16 +453,78 @@ export default {
|
|||||||
this.drawerTitle = "批量选择责任人";
|
this.drawerTitle = "批量选择责任人";
|
||||||
// }
|
// }
|
||||||
//展开表格
|
//展开表格
|
||||||
this.workPeopleList = row
|
this.workPeopleList = row;
|
||||||
// console.log('279',row.children)
|
// console.log('279',row.children)
|
||||||
this.refreshTable = false
|
this.refreshTable = false;
|
||||||
// this.tableExpand = !this.tableExpand
|
// this.tableExpand = !this.tableExpand
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.refreshTable = true
|
this.refreshTable = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
setChildren(children, type) {
|
||||||
|
// 编辑多个子层级
|
||||||
|
children.map(j => {
|
||||||
|
this.toggleSelection(j, type);
|
||||||
|
if (j.children) {
|
||||||
|
this.setChildren(j.children, type);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 选中父节点时,子节点一起选中取消
|
||||||
|
select(selection, row) {
|
||||||
|
const hasSelect = selection.some(el => {
|
||||||
|
return row.id === el.id;
|
||||||
|
});
|
||||||
|
if (hasSelect) {
|
||||||
|
if (row.children) {
|
||||||
|
// 解决子组件没有被勾选到
|
||||||
|
this.setChildren(row.children, true);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (row.children) {
|
||||||
|
this.setChildren(row.children, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toggleSelection(row, select) {
|
||||||
|
if (row) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.myTable &&
|
||||||
|
this.$refs.myTable.toggleRowSelection(row, select);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 选择全部
|
||||||
|
selectAll(selection) {
|
||||||
|
// dataList第一层只要有在selection里面就是全选
|
||||||
|
const isSelect = selection.some(el => {
|
||||||
|
const dataListIds = this.dataList.map(j => j.id);
|
||||||
|
return dataListIds.includes(el.id);
|
||||||
|
});
|
||||||
|
// dataList第一层只要有不在selection里面就是全不选
|
||||||
|
const isCancel = !this.dataList.every(el => {
|
||||||
|
const selectIds = selection.map(j => j.id);
|
||||||
|
return selectIds.includes(el.id);
|
||||||
|
});
|
||||||
|
if (isSelect) {
|
||||||
|
selection.map(el => {
|
||||||
|
if (el.children) {
|
||||||
|
// 解决子组件没有被勾选到
|
||||||
|
this.setChildren(el.children, true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (isCancel) {
|
||||||
|
this.dataList.map(el => {
|
||||||
|
if (el.children) {
|
||||||
|
// 解决子组件没有被勾选到
|
||||||
|
this.setChildren(el.children, false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
//标准表格选择框改变
|
//标准表格选择框改变
|
||||||
selectStandChange(data) {
|
selectStandChange(data) {
|
||||||
this.selectList = data;
|
this.selectList = data;
|
||||||
@@ -559,14 +544,28 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
|
var idList = "";
|
||||||
|
var nameList = "";
|
||||||
|
data.forEach(item => {
|
||||||
|
if (nameList.length > 0) {
|
||||||
|
nameList += ",";
|
||||||
|
idList += ",";
|
||||||
|
}
|
||||||
|
idList += item.id;
|
||||||
|
nameList += item.name;
|
||||||
|
});
|
||||||
//单选操作
|
//单选操作
|
||||||
if (this.type === 1) {
|
if (this.type === 1) {
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
|
if(item.standId === this.selectedId){
|
||||||
|
item.workPeople = nameList;
|
||||||
|
item.workPeopleId = idList;
|
||||||
|
}
|
||||||
if (item.children) {
|
if (item.children) {
|
||||||
item.children.forEach(items => {
|
item.children.forEach(items => {
|
||||||
if (items.id === this.selectedId) {
|
if (items.id === this.selectedId) {
|
||||||
items.workPeople = data[0].name;
|
items.workPeople = nameList;
|
||||||
items.workPeopleId = data[0].id;
|
items.workPeopleId = idList;
|
||||||
// this.$set(items,'workPeople',data[0].name)
|
// this.$set(items,'workPeople',data[0].name)
|
||||||
//this.$set(items,'workPeopleId',data[0].id)
|
//this.$set(items,'workPeopleId',data[0].id)
|
||||||
}
|
}
|
||||||
@@ -577,16 +576,16 @@ export default {
|
|||||||
} else if (this.type === 2) {
|
} else if (this.type === 2) {
|
||||||
this.selectList.forEach(item => {
|
this.selectList.forEach(item => {
|
||||||
this.dataList.map(items => {
|
this.dataList.map(items => {
|
||||||
if (item.id === items.id) {
|
if (item.standId === items.standId) {
|
||||||
items.workPeople = "";
|
items.workPeople = nameList;
|
||||||
items.workPeopleId = "";
|
items.workPeopleId = idList;
|
||||||
this.$message.warning('您只能针对条款进行分发')
|
// this.$message.warning('您只能针对条款进行分发')
|
||||||
}
|
}
|
||||||
if (items.children.length) {
|
if (items.children) {
|
||||||
items.children.map(childrenItem => {
|
items.children.map(childrenItem => {
|
||||||
if (childrenItem.id === item.id) {
|
if (childrenItem.id === item.id) {
|
||||||
childrenItem.workPeople = data[0].name;
|
childrenItem.workPeople = nameList;
|
||||||
childrenItem.workPeopleId = data[0].id;
|
childrenItem.workPeopleId = idList;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -597,8 +596,8 @@ export default {
|
|||||||
// console.log("529",this.workPeopleList)
|
// console.log("529",this.workPeopleList)
|
||||||
for (let i = 0; i < this.workPeopleList.children.length; i++) {
|
for (let i = 0; i < this.workPeopleList.children.length; i++) {
|
||||||
|
|
||||||
this.workPeopleList.children[i].workPeople = data[0].name
|
this.workPeopleList.children[i].workPeople = data[0].name;
|
||||||
this.workPeopleList.children[i].workPeopleId = data[0].id
|
this.workPeopleList.children[i].workPeopleId = data[0].id;
|
||||||
// console.log(row.children[i].id)
|
// console.log(row.children[i].id)
|
||||||
// console.log(row.children[i].workPeople)
|
// console.log(row.children[i].workPeople)
|
||||||
}
|
}
|
||||||
@@ -704,4 +703,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -308,7 +308,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column fixed="right"
|
<el-table-column fixed="right"
|
||||||
v-if="isPermission('cac1eb379eb8e3b987cbb2e4599adb50,247cebaefa7cf1683092af160af11502,dbaf9df2990a595c8abea28e68b1a681')>0"
|
v-if="isPermission('cac1eb379eb8e3b987cbb2e4599adb50,247cebaefa7cf1683092af160af11502,dbaf9df2990a595c8abea28e68b1a681')>0"
|
||||||
label="收藏" align="center" width="50"
|
label="收藏" align="center" width="200"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div
|
<div
|
||||||
@@ -343,7 +343,7 @@
|
|||||||
@click="handleCommand([scope.row, '收藏'])"
|
@click="handleCommand([scope.row, '收藏'])"
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-off" style="color: #f56c6c;"
|
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-on"
|
||||||
v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
|
v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
|
||||||
v-else
|
v-else
|
||||||
@click="handleCommand([scope.row, '取消收藏'])"
|
@click="handleCommand([scope.row, '取消收藏'])"
|
||||||
@@ -5690,7 +5690,7 @@ export default {
|
|||||||
|
|
||||||
.tree-content {
|
.tree-content {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
width: 20%;
|
width: 16%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.tree {
|
.tree {
|
||||||
@@ -5741,7 +5741,7 @@ export default {
|
|||||||
.collection-btn {
|
.collection-btn {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
color: #4788c0;
|
color: #F2CB51;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
|
|||||||
+2
-2
@@ -417,7 +417,7 @@
|
|||||||
@click="handleCommand([scope.row, '收藏'])"
|
@click="handleCommand([scope.row, '收藏'])"
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-off" style="color: #f56c6c;" v-btn-permission="'d9730d984627af948053df56a2db7997'"
|
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-on" v-btn-permission="'d9730d984627af948053df56a2db7997'"
|
||||||
v-else
|
v-else
|
||||||
@click="handleCommand([scope.row, '取消收藏'])"
|
@click="handleCommand([scope.row, '取消收藏'])"
|
||||||
>
|
>
|
||||||
@@ -4460,7 +4460,7 @@ export default {
|
|||||||
.collection-btn {
|
.collection-btn {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
color: #4788c0;
|
color: #F2CB51;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
|
|||||||
@@ -350,7 +350,7 @@
|
|||||||
@click="handleCommand([scope.row, '收藏'])"
|
@click="handleCommand([scope.row, '收藏'])"
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-off" style="color: #f56c6c;" v-btn-permission="'f9745194958bc9ed3ee5127459795dbc'"
|
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-on" v-btn-permission="'f9745194958bc9ed3ee5127459795dbc'"
|
||||||
v-else
|
v-else
|
||||||
@click="handleCommand([scope.row, '取消收藏'])"
|
@click="handleCommand([scope.row, '取消收藏'])"
|
||||||
>
|
>
|
||||||
@@ -5191,7 +5191,7 @@ export default {
|
|||||||
.collection-btn {
|
.collection-btn {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
color: #4788c0;
|
color: #F2CB51;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
|
|||||||
@@ -108,10 +108,6 @@
|
|||||||
fixed="left"
|
fixed="left"
|
||||||
width="180"
|
width="180"
|
||||||
label="标准号">
|
label="标准号">
|
||||||
<!-- <template slot-scope="scope">-->
|
|
||||||
<!-- <a @click="detailsStandard(scope.row)" class="table-jump">{{ scope.row.standId }}</a>-->
|
|
||||||
<!--<!– {{ scope.row.standId }}–>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a>
|
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a>
|
||||||
</template>
|
</template>
|
||||||
@@ -403,178 +399,6 @@
|
|||||||
@click="exportTestItem">提交</el-button>
|
@click="exportTestItem">提交</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 选择项目抽屉-->
|
|
||||||
<el-drawer
|
|
||||||
title="选择项目"
|
|
||||||
:visible.sync="projectModel"
|
|
||||||
size="900px"
|
|
||||||
custom-class="demo-drawer"
|
|
||||||
>
|
|
||||||
<div class="demo-drawer-content">
|
|
||||||
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
|
|
||||||
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
|
||||||
<div class="left">
|
|
||||||
<el-form :modal="projectSearch" :inline="true" class="label-input-form" style="margin-left:10px">
|
|
||||||
<el-form-item label="项目编号" class="search-item search-item-last">
|
|
||||||
<el-input
|
|
||||||
v-model="projectSearch.projectNumber"
|
|
||||||
placeholder="请输入项目编号"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="项目名称" class="search-item search-item-last">
|
|
||||||
<el-input
|
|
||||||
v-model="projectSearch.projectName"
|
|
||||||
placeholder="请输入项目名称"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
size="small"
|
|
||||||
v-btn-permission="''"
|
|
||||||
@click="getProjectDataBtn">
|
|
||||||
查询
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
class="common-button-default"
|
|
||||||
size="small"
|
|
||||||
v-btn-permission="''"
|
|
||||||
@click="clearSearch">清空
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</div>
|
|
||||||
<el-table
|
|
||||||
:data="ProjectDatas"
|
|
||||||
tooltip-effect="dark"
|
|
||||||
style="width: 100%;"
|
|
||||||
border
|
|
||||||
height="100%"
|
|
||||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
|
||||||
fontWeight: 'bold', height: '48px'}"
|
|
||||||
@selection-change="selectListChange"
|
|
||||||
@select="handleSelectionChanges"
|
|
||||||
ref="listSelection"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center" />
|
|
||||||
<el-table-column
|
|
||||||
prop="projectNumber"
|
|
||||||
align="center"
|
|
||||||
label="项目编号"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
prop="projectName"
|
|
||||||
align="center"
|
|
||||||
label="项目名称"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
prop="projectClassification"
|
|
||||||
align="center"
|
|
||||||
label="项目分类"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
prop="uname"
|
|
||||||
align="center"
|
|
||||||
label="项目经理"
|
|
||||||
/>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<pagination
|
|
||||||
:page="page"
|
|
||||||
:pageSize="pageSize"
|
|
||||||
:total="total"
|
|
||||||
@pageChange="pageChange"
|
|
||||||
@pageSizeChange="pageSizeChange"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="demo-drawer-footer">
|
|
||||||
<el-button size="mini" @click="closeDrawer">取消</el-button>
|
|
||||||
<el-button type="primary" size="mini" @click="OkDrawer">带入</el-button>
|
|
||||||
</div>
|
|
||||||
</el-drawer>
|
|
||||||
<!-- 选择项目下标准抽屉-->
|
|
||||||
<el-drawer
|
|
||||||
title="选择标准"
|
|
||||||
:visible.sync="listModel"
|
|
||||||
size="900px"
|
|
||||||
custom-class="demo-drawer"
|
|
||||||
>
|
|
||||||
<div class="demo-drawer-content">
|
|
||||||
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
|
|
||||||
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
|
||||||
<el-table
|
|
||||||
:data="dataList"
|
|
||||||
border
|
|
||||||
ref="selection"
|
|
||||||
height="100%"
|
|
||||||
style="width: 100%; border:1px solid #ccc"
|
|
||||||
@selection-change="selectStandChange"
|
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
||||||
fontWeight: 'bold', height: '48px'}">
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
label="标准号"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<a v-if="scope.row.standYear" class="table-jump"
|
|
||||||
@click="handlePreview(scope.row)">{{ scope.row.standSort
|
|
||||||
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
|
||||||
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
|
|
||||||
{{ scope.row.standNumber }}</a>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="standName"
|
|
||||||
align="center"
|
|
||||||
label="中文名称"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="ssrq"
|
|
||||||
align="center"
|
|
||||||
sortable
|
|
||||||
label="标准实施日期">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zrbm"
|
|
||||||
label="责任部门"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<pagination
|
|
||||||
:page="standPage"
|
|
||||||
:pageSize="standPageSize"
|
|
||||||
:total="standTotal"
|
|
||||||
@pageChange="standPageChange"
|
|
||||||
@pageSizeChange="standPageSizeChange"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="demo-drawer-footer">
|
|
||||||
<el-button size="mini" @click="closeStand">取消</el-button>
|
|
||||||
<el-button type="primary" size="mini" @click="OkStand">带入</el-button>
|
|
||||||
</div>
|
|
||||||
</el-drawer>
|
|
||||||
<!-- 填写未符合项信息表单-->
|
<!-- 填写未符合项信息表单-->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
size="700px"
|
size="700px"
|
||||||
@@ -588,16 +412,52 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form :model="addForm" inline class="label-input-form" :rules="formRules" label-width="180px"
|
<el-form :model="addForm" inline class="label-input-form" :rules="formRules" label-width="180px"
|
||||||
ref="addForm">
|
ref="addForm">
|
||||||
<el-form-item prop="standSerialNumber" label="标准号" style="width: 100%; margin-right:10px"
|
<el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-select v-model="addForm.productName"@change="handleChange" placeholder="请选择项目名称">
|
||||||
|
<el-option
|
||||||
|
v-for="item in ProjectDatas"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.projectName"
|
||||||
|
:value="item"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="productType" label="产品类型" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="addForm.standSerialNumber"
|
:disabled="true"
|
||||||
placeholder="请输入标准号"
|
v-model="addForm.productType"
|
||||||
|
placeholder="请输入产品类型"
|
||||||
:maxlength="500" />
|
:maxlength="500" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item prop="productLine" label="产品线" style="width: 100%; margin-right:10px"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-input
|
||||||
|
:disabled="true"
|
||||||
|
v-model="addForm.productLine"
|
||||||
|
placeholder="请输入产品线"
|
||||||
|
:maxlength="500" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="standSerialNumber" label="标准号" style="width: 100%; margin-right:10px"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-select
|
||||||
|
v-model="addForm.standSerialNumber"
|
||||||
|
:disabled="serialNumber"
|
||||||
|
@change="standChange"
|
||||||
|
placeholder="请选择标准号">
|
||||||
|
<el-option
|
||||||
|
v-for="item in dataList"
|
||||||
|
:key="item.standId"
|
||||||
|
:label="item.standSort + '-' + item.standNumber + '-' + item.standYear"
|
||||||
|
:value="item"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item prop="standName" label="标准名称" style="width: 100%; margin-right:10px"
|
<el-form-item prop="standName" label="标准名称" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
|
:disabled="true"
|
||||||
v-model="addForm.standName"
|
v-model="addForm.standName"
|
||||||
placeholder="请输入标准名称"
|
placeholder="请输入标准名称"
|
||||||
:maxlength="500" />
|
:maxlength="500" />
|
||||||
@@ -610,13 +470,6 @@
|
|||||||
:maxlength="500">
|
:maxlength="500">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-button-->
|
|
||||||
<!-- type="primary"-->
|
|
||||||
<!-- class="common-button-primary"-->
|
|
||||||
<!-- size="mini"-->
|
|
||||||
<!-- @click="handSeek"-->
|
|
||||||
<!-- style="position:absolute;top: 10px; float: right;"-->
|
|
||||||
<!-- >手动查找</el-button>-->
|
|
||||||
<el-form-item prop="itemsName" label="条款名称" style="width: 100%; margin-right:10px"
|
<el-form-item prop="itemsName" label="条款名称" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -624,25 +477,12 @@
|
|||||||
placeholder="请输入条款名称"
|
placeholder="请输入条款名称"
|
||||||
:maxlength="500" />
|
:maxlength="500" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="productType" label="产品类型" style="width: 100%; margin-right:10px"
|
<el-form-item prop="responsibleUnit" label="责任部门" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="addForm.productType"
|
:disabled="true"
|
||||||
placeholder="请输入产品类型"
|
v-model="addForm.responsibleUnit"
|
||||||
:maxlength="500" />
|
placeholder="请输入责任部门"
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="productLine" label="产品线" style="width: 100%; margin-right:10px"
|
|
||||||
class="add-form-item">
|
|
||||||
<el-input
|
|
||||||
v-model="addForm.productLine"
|
|
||||||
placeholder="请输入产品线"
|
|
||||||
:maxlength="500" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px"
|
|
||||||
class="add-form-item">
|
|
||||||
<el-input
|
|
||||||
v-model="addForm.productName"
|
|
||||||
placeholder="请输入项目名称"
|
|
||||||
:maxlength="500" />
|
:maxlength="500" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="reason" label="不合规项目" style="width: 100%; margin-right:10px"
|
<el-form-item prop="reason" label="不合规项目" style="width: 100%; margin-right:10px"
|
||||||
@@ -652,13 +492,6 @@
|
|||||||
placeholder="请输入不合规项目"
|
placeholder="请输入不合规项目"
|
||||||
:maxlength="500" />
|
:maxlength="500" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="responsibleUnit" label="责任部门" style="width: 100%; margin-right:10px"
|
|
||||||
class="add-form-item">
|
|
||||||
<el-input
|
|
||||||
v-model="addForm.responsibleUnit"
|
|
||||||
placeholder="请输入责任部门"
|
|
||||||
:maxlength="500" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="dutyEngineer" label="责任工程师" style="width: 100%; margin-right:10px"
|
<el-form-item prop="dutyEngineer" label="责任工程师" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -711,50 +544,6 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<!-- 条款弹窗-->
|
|
||||||
<el-dialog title="条款信息" :append-to-body="true" width="875px" :visible.sync="itemModel">
|
|
||||||
<el-table
|
|
||||||
ref="selections"
|
|
||||||
:data="itemsData"
|
|
||||||
tooltip-effect="dark"
|
|
||||||
style="width: 100%;overflow-y: auto;overflow-x: hidden;"
|
|
||||||
border
|
|
||||||
:height="300"
|
|
||||||
@selection-change="selectReplaceStandNumRowChange"
|
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
||||||
fontWeight: 'bold', height: '48px'}">
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="itemsNum"
|
|
||||||
label="条款号"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="itemsName"
|
|
||||||
label="条款名称"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<loading :loading="replaceLoading">数据获取中</loading>
|
|
||||||
<!--分页-->
|
|
||||||
<pagination
|
|
||||||
style="position: relative;"
|
|
||||||
:page="replacePage"
|
|
||||||
:page-size="replacePageSize"
|
|
||||||
:total="replaceTotal"
|
|
||||||
@pageChange="pageChangeReplace"
|
|
||||||
@pageSizeChange="pageSizeChangeReplace"></pagination>
|
|
||||||
<div slot="footer" class="demo-drawer-footer">
|
|
||||||
<el-button class="common-button-default" @click="itemModel = false">取消</el-button>
|
|
||||||
<el-button type="primary" class="common-button-primary" @click="replaceLawsNumModelBt">带入</el-button>
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -872,7 +661,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//数据查看
|
//数据查看
|
||||||
historySee: false,
|
historySee: false,
|
||||||
historySeeForm: {}
|
historySeeForm: {},
|
||||||
|
// 新增编辑框的disabled
|
||||||
|
serialNumber: true,
|
||||||
|
addFormEdit: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -1032,11 +824,6 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//项目查询按钮
|
|
||||||
getProjectDataBtn() {
|
|
||||||
this.page = 1;
|
|
||||||
this.getProjectData();
|
|
||||||
},
|
|
||||||
//获取项目数据
|
//获取项目数据
|
||||||
getProjectData() {
|
getProjectData() {
|
||||||
this.$http.get("sarStandProjectLibrary/queryProjectWorkFlow", {
|
this.$http.get("sarStandProjectLibrary/queryProjectWorkFlow", {
|
||||||
@@ -1116,7 +903,7 @@ export default {
|
|||||||
editUn(closeState, standSerialNumber, standName, itemsNum, itemsName, productType,
|
editUn(closeState, standSerialNumber, standName, itemsNum, itemsName, productType,
|
||||||
productLine, productName, reason, responsibleUnit, dutyEngineer, authEngineer, qaEngineer, planCloseTime, id).then(res => {
|
productLine, productName, reason, responsibleUnit, dutyEngineer, authEngineer, qaEngineer, planCloseTime, id).then(res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.$message.success("新增成功");
|
this.$message.success("编辑成功");
|
||||||
this.drawerTable = false;
|
this.drawerTable = false;
|
||||||
this.getTableByPage();
|
this.getTableByPage();
|
||||||
}
|
}
|
||||||
@@ -1204,8 +991,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
//查询项目下的标准
|
//查询项目下的标准
|
||||||
getStandData() {
|
getStandData(val) {
|
||||||
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, {
|
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: val.id }, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
res.data.records.forEach(item => {
|
res.data.records.forEach(item => {
|
||||||
@@ -1230,61 +1017,21 @@ export default {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//条款的多选框改变
|
|
||||||
selectReplaceStandNumRowChange(data) {
|
|
||||||
this.selectItems = data;
|
|
||||||
},
|
|
||||||
//标准的多选框改变
|
|
||||||
selectStandChange(data) {
|
|
||||||
this.standList = data;
|
|
||||||
},
|
|
||||||
//项目的多选框改变
|
|
||||||
selectListChange(data) {
|
|
||||||
this.selectList = data;
|
|
||||||
},
|
|
||||||
//单选逻辑
|
|
||||||
handleSelectionChanges(selection, val) {
|
|
||||||
if (selection.length > 1) {
|
|
||||||
let del_row = selection.shift();
|
|
||||||
this.$refs.listSelection.toggleRowSelection(del_row, false);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
standPageChange(page) {
|
|
||||||
this.standPage = page;
|
|
||||||
this.getStandData();
|
|
||||||
},
|
|
||||||
standPageSizeChange(pageSize) {
|
|
||||||
this.standPageSize = pageSize;
|
|
||||||
this.getStandData();
|
|
||||||
},
|
|
||||||
//条款分页
|
|
||||||
pageChangeReplace(page) {
|
|
||||||
this.replacePage = page;
|
|
||||||
this.getItem();
|
|
||||||
},
|
|
||||||
pageSizeChangeReplace(pageSize) {
|
|
||||||
this.replacePageSize = pageSize;
|
|
||||||
this.getItem();
|
|
||||||
},
|
|
||||||
pageChange(page) {
|
|
||||||
this.page = page;
|
|
||||||
this.getProjectData();
|
|
||||||
},
|
|
||||||
pageSizeChange(pageSize) {
|
|
||||||
this.pageSize = pageSize;
|
|
||||||
this.getProjectData();
|
|
||||||
},
|
|
||||||
//新增事件
|
//新增事件
|
||||||
addModel() {
|
addModel() {
|
||||||
this.addForm = {};
|
this.dataList = []
|
||||||
this.projectModel = true;
|
this.serialNumber = true
|
||||||
|
this.drawerTitle = "新增";
|
||||||
|
this.getProjectData()
|
||||||
|
this.drawerTable = true
|
||||||
},
|
},
|
||||||
//编辑事件
|
//编辑事件
|
||||||
projectEdit(row) {
|
projectEdit(row) {
|
||||||
this.drawerTitle = "编辑";
|
this.drawerTitle = "编辑";
|
||||||
this.addForm = row;
|
this.addForm = row;
|
||||||
|
this.addFormEdit = row
|
||||||
|
this.getProjectData()
|
||||||
this.drawerTable = true;
|
this.drawerTable = true;
|
||||||
console.log(row);
|
|
||||||
},
|
},
|
||||||
//点击查看按钮事件
|
//点击查看按钮事件
|
||||||
showUser(row) {
|
showUser(row) {
|
||||||
@@ -1307,10 +1054,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//点击编辑按钮事件
|
|
||||||
openEditModal(item) {
|
|
||||||
console.log(item);
|
|
||||||
},
|
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
@@ -1361,7 +1104,29 @@ export default {
|
|||||||
pageSizeChangeNo(pageSize) {
|
pageSizeChangeNo(pageSize) {
|
||||||
this.pageSizeNo = pageSize;
|
this.pageSizeNo = pageSize;
|
||||||
this.getTableByPage();
|
this.getTableByPage();
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 项目名称change事件 */
|
||||||
|
handleChange(val) {
|
||||||
|
if (this.drawerTitle === '编辑') {
|
||||||
|
this.addForm.standName = ''
|
||||||
|
this.addForm.standSerialNumber = ''
|
||||||
|
this.addForm.responsibleUnit = ''
|
||||||
}
|
}
|
||||||
|
this.addForm.productLine = val.productLine
|
||||||
|
this.addForm.productName = val.projectName
|
||||||
|
this.addForm.productType = val.projectPlatfor
|
||||||
|
this.serialNumber = false
|
||||||
|
this.getStandData(val)
|
||||||
|
|
||||||
|
},
|
||||||
|
/** 标准号change事件 */
|
||||||
|
standChange(item) {
|
||||||
|
this.addForm.standName = item.standName
|
||||||
|
this.addForm.standSerialNumber = item.standSort + '-' + item.standNumber + '-' + item.standYear
|
||||||
|
this.addForm.responsibleUnit = item.zrbm || "--";
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
//查询已维护的项目
|
//查询已维护的项目
|
||||||
@@ -1382,13 +1147,6 @@ export default {
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
//.el-table {
|
|
||||||
// .el-table__fixed {
|
|
||||||
// height:auto !important; // 此处的important表示优先于element.style
|
|
||||||
// bottom:17px; // 改为自动高度后,设置与父容器的底部距离,则高度会动态改变
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
#rectification-dataBase {
|
#rectification-dataBase {
|
||||||
/deep/ .table-wrap {
|
/deep/ .table-wrap {
|
||||||
.el-table__fixed {
|
.el-table__fixed {
|
||||||
@@ -1448,5 +1206,22 @@ export default {
|
|||||||
height: 49px;
|
height: 49px;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.demo-drawer-content {
|
||||||
|
.content {
|
||||||
|
.standard-table-search {
|
||||||
|
/deep/.el-input.is-disabled .el-input__inner {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #7e8083;
|
||||||
|
}
|
||||||
|
/deep/.el-select-dropdown__item.selected {
|
||||||
|
color: #8d8e91;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/deep/.el-select-dropdown__item.selected {
|
||||||
|
color: #8d8e91 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user