-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
-
-
-
-
- 清空
-
-
-
-
-
- 批量配置岗位
-
-
-
-
-
-
-
-
-
-
-
-
- 男
- 女
-
-
-
-
-
-
-
-
-
- {{ scope.row.institutionName }}
-
-
- {{ scope.row.institutionName }}
-
-
{{ scope.row.institutionName.substring(0, 15) }}...
-
-
-
-
-
-
-
- {{ scope.row.NameList }}
-
-
- {{ scope.row.NameList }}
-
-
{{ scope.row.NameList.substring(0, 15) }}...
-
-
-
-
-
-
- 已禁用
- 已启用
-
-
-
-
-
-
-
-
-
- 启用
-
-
- 禁用
-
-
- 配置岗位
-
-
-
-
-
-
-
-
-
加载中...
-
-
-
导入中...
-
-
-
-
-
-
- 查询
-
-
-
- 清空
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/pages/config/pages/mechanismManage/pages/mechanism.vue b/src/pages/config/pages/mechanismManage/pages/mechanism.vue
new file mode 100644
index 000000000..e9036a7f7
--- /dev/null
+++ b/src/pages/config/pages/mechanismManage/pages/mechanism.vue
@@ -0,0 +1,662 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+
+
+ 批量配置岗位
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+ {{ scope.row.institutionName }}
+
+
+ {{ scope.row.institutionName }}
+
+
{{ scope.row.institutionName.substring(0, 15) }}...
+
+
+
+
+
+
+
+ {{ scope.row.NameList }}
+
+
+ {{ scope.row.NameList }}
+
+
{{ scope.row.NameList.substring(0, 15) }}...
+
+
+
+
+
+
+ 已禁用
+ 已启用
+
+
+
+
+
+
+
+
+
+ 启用
+
+
+ 禁用
+
+
+ 配置岗位
+
+
+
+
+
+
+
+
+
加载中...
+
+
+
导入中...
+
+
+
+
+
+
+ 查询
+
+
+
+ 清空
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/config/pages/mechanismManage/pages/workgroup.vue b/src/pages/config/pages/mechanismManage/pages/workgroup.vue
new file mode 100644
index 000000000..0af0db617
--- /dev/null
+++ b/src/pages/config/pages/mechanismManage/pages/workgroup.vue
@@ -0,0 +1,556 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+ 清空
+
+
+
+
+
+
+
+ 新增
+
+
+ 编辑
+
+
+ 批量删除
+
+
+
+
+
+
+
+
+ {{ item.name + "," }}
+ {{ item.name }}
+
+
+
+
+ {{ item.name + "," }}
+ {{ item.name }}
+
+
+
+
加载中...
+
+
+
+
+
+
+
+
+
+
+
+ {{ tag.name }}
+
+ 添加
+
+
+
+
+
+ {{ tag.name }}
+
+ 添加
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue
index 4ef277c07..22d7edfb3 100644
--- a/src/pages/details/otherBussStandardDetails/index.vue
+++ b/src/pages/details/otherBussStandardDetails/index.vue
@@ -395,7 +395,7 @@
{{ sarStandardsInfoEO.textStatusBuss || '-' }}
+ >文本状态{{ sarStandardsInfoEO.textStatusBussShow || '-' }}
{{ sarStandardsInfoEO.issueTime || '-' }}
{{ sarStandardsInfoEO.putTime || '-' }}
@@ -2156,11 +2156,11 @@ export default {
_this: this
}, res => {
this.sarStandardsInfoEO = res.data || {}
- this.textOptions.forEach(item => {
- if(this.sarStandardsInfoEO.textStatusBuss === item.value){
- this.sarStandardsInfoEO.textStatusBuss = item.label
- }
- })
+ // this.textOptions.forEach(item => {
+ // if(this.sarStandardsInfoEO.textStatusBuss === item.value){
+ // this.sarStandardsInfoEO.textStatusBuss = item.label
+ // }
+ // })
if (this.sarStandardsInfoEO.issueTime) {
this.sarStandardsInfoEO.issueTime = this.sarStandardsInfoEO.issueTime.split(' ')[0]
}
diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue
index 858741158..8ae956e29 100644
--- a/src/pages/details/otherStandardDetails/index.vue
+++ b/src/pages/details/otherStandardDetails/index.vue
@@ -3649,12 +3649,12 @@ export default {
return item.id
}
},
- created() {
+ /*created() {
dicTypeData().then(res => {
// 能源类型数据字典
this.CycxOptions = res.data.CLLX
})
- },
+ },*/
async mounted() {
this.sarStandardsInfoEO.id = this.$route.params.id
// await this.selectStandMessage()
@@ -3663,6 +3663,7 @@ export default {
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
+ this.CycxOptions = res.data.CLLX
this.applyArcticOptions.options = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车辆类型”
this.emergyKindOptions = res.data.ENERGYTYPES
this.requestOptions = res.data.REQUESTTYPE
diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue
index 5f9c0d958..dfc5bf555 100644
--- a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue
@@ -116,13 +116,6 @@
-
-
+
+
-
+
@@ -392,14 +392,14 @@
choiceZRRS (row, type, index) {
this.type = type
if (type === 1) {
- this.drawerTitle = '选择执行人'
+ this.drawerTitle = '选择责任人'
this.nodeList2 = []
this.zxIndex = index
this.nodeList2.push(row)
this.modalshowflag2 = true
} else {
// 批量
- this.drawerTitle = '批量选择执行人'
+ this.drawerTitle = '批量选择责任人'
if (this.zxIdList.length > 0) {
this.nodeList2 = []
this.modalshowflag2 = true
@@ -513,7 +513,7 @@
}
this.sarType = data.standInData || data.sarType
this.json = data
- let arr
+ let arr = []
if (typeof(data.itemList) === 'string') {
arr = JSON.parse(data.itemList)
} else {
diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue
index ba8f527b2..a59334f4f 100644
--- a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue
@@ -114,14 +114,6 @@
查看条款内容
-
-
@@ -177,6 +169,14 @@
show-overflow-tooltip
align="center">
+
+
查看条款内容
-
-
+
+
查看条款内容
-
-
+
+
查看条款内容
-
-
+
+
-
-
+
+
-
-
+
+
-
+
{{ node.label }}
-
+
-
+
@@ -60,7 +60,7 @@
-
+
-
+
@@ -87,13 +87,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -112,31 +112,31 @@
prop="responsibleUnit"
class="search-item"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -144,7 +144,9 @@
- {{ opt.label}}
+
+ {{ opt.label }}
+
@@ -158,14 +160,18 @@
- {{ opt.label}}
+
+ {{ opt.label }}
+
- {{ opt.label}}
+
+ {{ opt.label }}
+
@@ -176,80 +182,81 @@
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
- 查询
-
- 清空
-
- 高级检索
-
+
+ 查询
+
+ 清空
+
+ 高级检索
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
导出
-
-
-
-
-
-
-
+ >导出
+
+
+
+
+
+
+
+
批量删除
配置标准
+ >配置标准
+
移除标准
+ >移除标准
+
编辑
-
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ >
-
- {{ scope.row.standCode }}
- {{ scope.row.standCode }}
- {{ scope.row.standCode }}
+
+ {{
+ scope.row.standCode
+ }}
+ {{
+ scope.row.standCode
+ }}
+ {{
+ scope.row.standCode
+ }}
- {{ scope.row.standName }}
- {{ scope.row.standName }}
- {{ scope.row.standName }}
+ {{
+ scope.row.standName
+ }}
+ {{
+ scope.row.standName
+ }}
+ {{
+ scope.row.standName
+ }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ >
- {{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}
- {{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}
- {{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}
+ {{
+ scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''
+ }}
+ {{
+ scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''
+ }}
+ {{
+ scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''
+ }}
+ >
- {{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}
- {{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}
- {{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}
+ {{
+ scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''
+ }}
+ {{
+ scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''
+ }}
+ {{
+ scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''
+ }}
+ show-overflow-tooltip
+ sortable
+ prop="standStatusShow"
+ label="文本状态"
+ width="110"
+ >
-
+
- {{scope.row.standStatusShow}}
+ {{ scope.row.standStatusShow }}
-
- {{scope.row.standStatusShow}}
+
+ {{ scope.row.standStatusShow }}
-
- {{scope.row.standStatusShow}}
+
+ {{ scope.row.standStatusShow }}
-
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
@@ -444,7 +470,7 @@
:wrapperClosable="false"
@close="resetForm"
size="800px">
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
- {{ displayLocation.label }}
+ {{ displayLocation.label }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 文本状态
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- 文本状态
-
-
- {{ opt.label }}
-
-
-
-
-
-
-
-
-
+ {{ opt.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 起草部门
+
+
+
-
-
-
-
- 起草部门
-
-
-
-
-
-
- 起草人
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ 起草人
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 体系类别
-
-
-
-
-
-
- 关联模块--乘用车VPPS编码
-
-
-
-
+
+
+ 体系类别
+
+
+
+
+
+
+ 关联模块--乘用车VPPS编码
+
+
+
+
@@ -627,26 +656,29 @@
>
-
-
+
+
关联模块--卡车VPPS编码
-
-
-
-
-
-
+ v-model="sarBussionessStandEO.KCVPPSBMBUSS"
+ placeholder="选择VPPS编码"
+ @click.native="choiceZRR3('struck', '卡车VPPS编码', sarBussionessStandEO.KCVPPSBMBUSS,true)">
+
+
+
+
+
+
模块结构单元变型号
-
+
+
@@ -667,44 +701,44 @@
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -807,23 +843,23 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
提交
+ >提交
+
取消
+ round @click="cancelConfigStand">取消
+
@@ -935,19 +973,21 @@
@closed="isSubmit = false"
>
-
+
-
+
+ >
-
+
@@ -989,7 +1029,9 @@
@@ -1002,423 +1044,416 @@
-
-
-
-
- 基础信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ opt.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- 适用范围
-
-
-
-
-
- 起草部门
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 起草人
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 关联信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ opt.label }}
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
maxT-150) moveLen = maxT-150;
+ var moveLen = resize.left + (endX - startX);
+ var maxT = box.clientWidth - resize.offsetWidth;
+ if (moveLen < 150) moveLen = 150;
+ if (moveLen > maxT - 150) moveLen = maxT - 150;
- resize.style.left = moveLen;
- left.style.width = moveLen + "px";
- right.style.width = (box.clientWidth - moveLen - 5) + "px";
- }
- document.onmouseup = function(evt){
- document.onmousemove = null;
- document.onmouseup = null;
- resize.releaseCapture && resize.releaseCapture();
- }
- resize.setCapture && resize.setCapture();
- return false;
- }
- },
- isPermission (value) {
+ resize.style.left = moveLen;
+ left.style.width = moveLen + "px";
+ right.style.width = (box.clientWidth - moveLen - 5) + "px";
+ }
+ document.onmouseup = function (evt) {
+ document.onmousemove = null;
+ document.onmouseup = null;
+ resize.releaseCapture && resize.releaseCapture();
+ }
+ resize.setCapture && resize.setCapture();
+ return false;
+ }
+ },
+ isPermission(value) {
let hasCount = 0
- let set =new Set( value.split(","))
+ let set = new Set(value.split(","))
let menuList = store.getters.getMenuList
if (menuList === '') {
return hasCount
} else {
menuList.map((menu) => {
- if ( set.has(menu.id)|| value === undefined || value === '') {
+ if (set.has(menu.id) || value === undefined || value === '') {
hasCount++
}
})
}
return hasCount
},
- dateFormatter () {
- //默认返回yyyy-MM-dd HH-mm-ss
- const d = new Date();
- const year = d.getFullYear();//得到年
- const month = (d.getMonth()+1)<10 ? '0'+(d.getMonth()+1) : (d.getMonth()+1);//得到月
- const day = d.getDate()<10 ? '0'+d.getDate() : d.getDate();//得到日
- const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
- const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
- const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
- return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//格式为:YY-MM-DD hh:mm:ss(当前时间)
- },
- popoverHideQuery(ids,attrField){
- },
+ dateFormatter() {
+ //默认返回yyyy-MM-dd HH-mm-ss
+ const d = new Date();
+ const year = d.getFullYear();//得到年
+ const month = (d.getMonth() + 1) < 10 ? '0' + (d.getMonth() + 1) : (d.getMonth() + 1);//得到月
+ const day = d.getDate() < 10 ? '0' + d.getDate() : d.getDate();//得到日
+ const hour = d.getHours() < 10 ? '0' + d.getHours() : d.getHours();//得到时
+ const minute = d.getMinutes() < 10 ? '0' + d.getMinutes() : d.getMinutes();//得到分
+ const second = d.getSeconds() < 10 ? '0' + d.getSeconds() : d.getSeconds();//得到秒
+ return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//格式为:YY-MM-DD hh:mm:ss(当前时间)
+ },
+ popoverHideQuery(ids, attrField) {
+ },
popoverHideBusVsCancel() {
this.modalShowFlag2 = false
},
- popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
- if (checkedData && checkedData.length != 0) {
- if (checkedData.length > 0) {
+ popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
+ if (checkedData && checkedData.length != 0) {
+ if (checkedData.length > 0) {
+ if (this.drawerTitle2 === 'VPPS编码') {
+ this.sarBussionessSearch.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
+ this.sarBussionessSearch.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
+ } else {
this.sarBussionessStandEO.CYCVPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.sarBussionessStandEO.CYCVPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
+ }
+ } else {
+ if (this.drawerTitle2 === 'VPPS编码') {
+ this.sarBussionessSearch.VPPSBMBUSS = checkedData.code
+ this.sarBussionessSearch.VPPSCNBUSS = checkedData.chineseName
} else {
this.sarBussionessStandEO.CYCVPPSBMBUSS = checkedData.code
this.sarBussionessStandEO.CYCVPPSCNBUSS = checkedData.chineseName
}
- this.modalShowFlag2 = false
}
- this.$forceUpdate()
- },
+ this.modalShowFlag2 = false
+ }
+ this.$forceUpdate()
+ },
popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0) {
@@ -2324,29 +2368,29 @@ export default {
popoverHideCancel() {
this.modalShowFlag1 = false
},
- popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
- if(checkedData) {
- if(checkedData.length > 0){
- this.sarBussionessStandEO.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
- this.sarBussionessSearch.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
- }else {
- this.sarBussionessStandEO.TXLBBUSS = checkedData.menuName
- this.sarBussionessSearch.TXLBBUSS = checkedData.menuName
- }
- }
- this.modalShowFlag1 = false
- this.$forceUpdate()
- },
- choiceZRR2 (type, title, id,multFlag) {
- this.drawerTitle2 = title
- this.modalShowFlag2 = true
- this.multipleFlag2 = multFlag
- this.url = ''
- this.urlChild = ''
- this.type = type
- this.url="sarVppsTree/list"
- this.urlChild="sarVppsTree/childByList"
- },
+ popoverHide(checkedIds, checkedData, isShow, isLoadChild, topId) {
+ if (checkedData) {
+ if (checkedData.length > 0) {
+ this.sarBussionessStandEO.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
+ this.sarBussionessSearch.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
+ } else {
+ this.sarBussionessStandEO.TXLBBUSS = checkedData.menuName
+ this.sarBussionessSearch.TXLBBUSS = checkedData.menuName
+ }
+ }
+ this.modalShowFlag1 = false
+ this.$forceUpdate()
+ },
+ choiceZRR2(type, title, id, multFlag) {
+ this.drawerTitle2 = title
+ this.modalShowFlag2 = true
+ this.multipleFlag2 = multFlag
+ this.url = ''
+ this.urlChild = ''
+ this.type = type
+ this.url = "sarVppsTree/list"
+ this.urlChild = "sarVppsTree/childByList"
+ },
choiceZRR3(type, title, id) {
this.drawerTitle3 = title
this.modalShowFlag3 = true
@@ -2363,64 +2407,26 @@ export default {
this.url = "sarModelTree/list"
this.urlChild = "sarModelTree/childByList"
},
- choiceZRR1 (type, title, id) {
- this.drawerTitle1 = title
- this.modalShowFlag1 = true
- },
- closeModal () {
- this.productModal = false
- this.closeDrawer()
- },
- // 提交新增/修改
- saveProduct (name) {
- this.$refs[name].validate((valid) => {
- if (valid) {
- if (this.modalType === 1) {
- this.$http.postData('sarResource/ts-resource/add', this.productModelAdd, {
- _this: this
- }, res => {
- if (res.ok) {
- this.selectMenuList()
- this.productModal = false
- this.productModelAdd = {
- // 模态框信息
- dicTypeName: '',
- showIndex: '',
- // 描述
- describes: '',
- // 唯一辨识
- dicId: this.$route.params.id
- }
- } else {
- this.productModal = true
- }
- }, e => {})
- } else if (this.modalType === 2) {
- this.$http.putData('sarResource/ts-resource', this.productModelAdd, {
- _this: this
- }, res => {
- this.selectMenuList()
- this.productModal = false
- this.productModelAdd = {
- // 模态框信息
- dicTypeName: '',
- showIndex: '',
- // 描述
- describes: '',
- // 唯一辨识
- dicId: this.$route.params.id
- }
- }, e => {
- })
- }
- } else {
- }
- })
- },
- closeDrawer () {
- this.$nextTick(() => {
- this.$refs['productModelAdd'].resetFields()
- this.productModelAdd = {
+ choiceZRR1(type, title, id) {
+ this.drawerTitle1 = title
+ this.modalShowFlag1 = true
+ },
+ closeModal() {
+ this.productModal = false
+ this.closeDrawer()
+ },
+ // 提交新增/修改
+ saveProduct(name) {
+ this.$refs[name].validate((valid) => {
+ if (valid) {
+ if (this.modalType === 1) {
+ this.$http.postData('sarResource/ts-resource/add', this.productModelAdd, {
+ _this: this
+ }, res => {
+ if (res.ok) {
+ this.selectMenuList()
+ this.productModal = false
+ this.productModelAdd = {
// 模态框信息
dicTypeName: '',
showIndex: '',
@@ -2428,135 +2434,177 @@ export default {
describes: '',
// 唯一辨识
dicId: this.$route.params.id
+ }
+ } else {
+ this.productModal = true
}
- })
- this.productModal = false
- },
- // 查询二级菜单
- selectMenuList () {
- this.$http.get('sarResource/ts-resource/getList', {
- sorDivide: 'BUSINESS_STAND',
- userId: this.$store.getters.userInfo.userId
- }, {}, res => {
- if (res.ok) {
- this.treeList = res.data
+ }, e => {
+ })
+ } else if (this.modalType === 2) {
+ this.$http.putData('sarResource/ts-resource', this.productModelAdd, {
+ _this: this
+ }, res => {
+ this.selectMenuList()
+ this.productModal = false
+ this.productModelAdd = {
+ // 模态框信息
+ dicTypeName: '',
+ showIndex: '',
+ // 描述
+ describes: '',
+ // 唯一辨识
+ dicId: this.$route.params.id
}
- })
- },
- // 查询二级菜单
- selectChildMenu (row) {
- this.$http.get('sarResource/ts-resource/getMenuById', {
- menuId: row.id
- }, {}, res => {
- if (res.ok) {
- if(this.modalType === 1){
- let idsName = ""
- if(row.parentIds !== null){
- if(row.parentIds.indexOf(res.data.id) != -1){
- this.productModelAdd.parentIds = row.parentIds
- }else {
- this.productModelAdd.parentIds = row.parentIds + ',' + res.data.id
- idsName = row.parentIdsName + ',' + res.data.menuName
- }
- }else {
- this.productModelAdd.parentIds = res.data.id
- idsName = res.data.menuName;
- }
- this.productModelAdd.parentId = res.data.id
- this.productModelAdd.parentIdsName = idsName
- this.$forceUpdate()
- }else {
- this.productModelAdd = res.data
- }
- }
- })
- },
- update(data) {
- this.modalType = 2
- this.selectChildMenu(data)
- this.productModal = true
- this.productTitle = '编辑体系'
- // const newChild = { id: this.id++, label: 'testtest', children: [] };
- // if (!data.children) {
- // this.$set(data, 'children', []);
- // }
- // data.children.push(newChild);
- },
-
- append(data) {
- this.modalType = 1
- this.selectChildMenu(data)
- this.productModal = true
- this.productTitle = '新增体系'
- this.productModelAdd.dicTypeCode = ''
- // const newChild = { id: this.id++, label: 'testtest', children: [] };
- // if (!data.children) {
- // this.$set(data, 'children', []);
- // }
- // data.children.push(newChild);
- },
-
- remove(node, data) {
- this.$confirm('是否删除菜单?', '提示', {
- confirmButtonText: '确定',
- confirmButtonClass: 'common-button-primary',
- cancelButtonText: '取消',
- roundButton: true,
- type: 'warning'
- }).then(() => {
- this.$http.put("sarResource/ts-resource/delResourceById", {
- resourceId: data.id
- }, res => {
- }, e => {
- if(e.ok){
- this.$message({
- type: 'success',
- message: "删除成功"
- })
- this.getBussionStandTable()
- this.selectMenuList()
- }else {
- this.$message({
- type: 'warning',
- message: e.message
- })
- }
- })
- }).catch(() => {
- this.$refs.selections.clearSelection()
- this.$message({
- type: 'info',
- message: '已取消删除'
- })
- })
- // const parent = node.parent;
- // const children = parent.data.children || parent.data;
- // const index = children.findIndex(d => d.id === data.id);
- // children.splice(index, 1);
- },
- // 树节点鼠标移入移出
- mouseenter(data){
- this.$set(data, 'show', true)
- if(data.parentId !== null){
- this.$set(data, 'showDel', true)
+ }, e => {
+ })
}
- },
- mouseleave(data){
- this.$set(data, 'show', false)
- this.$set(data, 'showDel', false)
- },
+ } else {
+ }
+ })
+ },
+ closeDrawer() {
+ this.$nextTick(() => {
+ this.$refs['productModelAdd'].resetFields()
+ this.productModelAdd = {
+ // 模态框信息
+ dicTypeName: '',
+ showIndex: '',
+ // 描述
+ describes: '',
+ // 唯一辨识
+ dicId: this.$route.params.id
+ }
+ })
+ this.productModal = false
+ },
+ // 查询二级菜单
+ selectMenuList() {
+ this.$http.get('sarResource/ts-resource/getList', {
+ sorDivide: 'BUSINESS_STAND',
+ userId: this.$store.getters.userInfo.userId
+ }, {}, res => {
+ if (res.ok) {
+ this.treeList = res.data
+ }
+ })
+ },
+ // 查询二级菜单
+ selectChildMenu(row) {
+ this.$http.get('sarResource/ts-resource/getMenuById', {
+ menuId: row.id
+ }, {}, res => {
+ if (res.ok) {
+ if (this.modalType === 1) {
+ let idsName = ""
+ if (row.parentIds !== null) {
+ if (row.parentIds.indexOf(res.data.id) != -1) {
+ this.productModelAdd.parentIds = row.parentIds
+ } else {
+ this.productModelAdd.parentIds = row.parentIds + ',' + res.data.id
+ idsName = row.parentIdsName + ',' + res.data.menuName
+ }
+ } else {
+ this.productModelAdd.parentIds = res.data.id
+ idsName = res.data.menuName;
+ }
+ this.productModelAdd.parentId = res.data.id
+ this.productModelAdd.parentIdsName = idsName
+ this.$forceUpdate()
+ } else {
+ this.productModelAdd = res.data
+ }
+ }
+ })
+ },
+ update(data) {
+ this.modalType = 2
+ this.selectChildMenu(data)
+ this.productModal = true
+ this.productTitle = '编辑体系'
+ // const newChild = { id: this.id++, label: 'testtest', children: [] };
+ // if (!data.children) {
+ // this.$set(data, 'children', []);
+ // }
+ // data.children.push(newChild);
+ },
+
+ append(data) {
+ this.modalType = 1
+ this.selectChildMenu(data)
+ this.productModal = true
+ this.productTitle = '新增体系'
+ this.productModelAdd.dicTypeCode = ''
+ // const newChild = { id: this.id++, label: 'testtest', children: [] };
+ // if (!data.children) {
+ // this.$set(data, 'children', []);
+ // }
+ // data.children.push(newChild);
+ },
+
+ remove(node, data) {
+ this.$confirm('是否删除菜单?', '提示', {
+ confirmButtonText: '确定',
+ confirmButtonClass: 'common-button-primary',
+ cancelButtonText: '取消',
+ roundButton: true,
+ type: 'warning'
+ }).then(() => {
+ this.$http.put("sarResource/ts-resource/delResourceById", {
+ resourceId: data.id
+ }, res => {
+ }, e => {
+ if (e.ok) {
+ this.$message({
+ type: 'success',
+ message: "删除成功"
+ })
+ this.getBussionStandTable()
+ this.selectMenuList()
+ } else {
+ this.$message({
+ type: 'warning',
+ message: e.message
+ })
+ }
+ })
+ }).catch(() => {
+ this.$refs.selections.clearSelection()
+ this.$message({
+ type: 'info',
+ message: '已取消删除'
+ })
+ })
+ // const parent = node.parent;
+ // const children = parent.data.children || parent.data;
+ // const index = children.findIndex(d => d.id === data.id);
+ // children.splice(index, 1);
+ },
+ // 树节点鼠标移入移出
+ mouseenter(data) {
+ this.$set(data, 'show', true)
+ if (data.parentId !== null) {
+ this.$set(data, 'showDel', true)
+ }
+ },
+ mouseleave(data) {
+ this.$set(data, 'show', false)
+ this.$set(data, 'showDel', false)
+ },
/**
* @description: 起草人名称展示
* @author: chenxiaoxi
* @time: 2021-03-17 16:47:41
*/
getQCRName(dataItem) {
- if (dataItem.attrInfoMap === null){return ''}
+ if (dataItem.attrInfoMap === null) {
+ return ''
+ }
const testName = dataItem.attrInfoMap.ZYQCRName || dataItem.attrInfoMap.QTQCRName || dataItem.attrInfoMap.QTQCR || ''
if (testName !== '') {
const NAME_LIST = testName.split(',')
const _SHOW_NAME_LIST = []
- NAME_LIST.map(item => {})
+ NAME_LIST.map(item => {
+ })
NAME_LIST.map(userName => {
_SHOW_NAME_LIST.push(userName.split(' ')[userName.split(' ').length - 1])
})
@@ -2565,19 +2613,19 @@ export default {
return ''
}
},
- isOk (val) {
+ isOk(val) {
this.sarBussionessStandEO.standCode = val
this.isShow = false
},
// 高级检索
- selectMoreBtn () {
- this.isAdvancedSearch = true
- this.sarBussionessSearch = {}
+ selectMoreBtn() {
+ this.isAdvancedSearch = true
+ this.sarBussionessSearch = {}
// this.isAdvancedSearch = true
// this.threeOptions = []
},
// 高级检索类型change事件
- twoSelectChange (val) {
+ twoSelectChange(val) {
if (val === 'stand_sort') {
this.threeOptions = this.standSortOptions
} else if (val === 'stand_status') {
@@ -2591,7 +2639,7 @@ export default {
}
},
// 新增区域先择国家地区
- getAddSelectCountry (data) {
+ getAddSelectCountry(data) {
//
this.sarBussionessStandEO.applyCountry = ''
let obj = {}
@@ -2611,12 +2659,12 @@ export default {
})
},
// 取消
- treeCancel () {
+ treeCancel() {
this.drawerModal = false
this.$refs.drawerModalTree.treeReload()
},
// 树点击
- treeOnCheck (checkedList) {
+ treeOnCheck(checkedList) {
this.shareStandardSelect = []
checkedList.map((item, index) => {
if (!item.isParent) {
@@ -2625,7 +2673,7 @@ export default {
})
},
// 树点击
- isTreeOk (checkedList) {
+ isTreeOk(checkedList) {
this.shareStandardSelect = []
checkedList.map((item, index) => {
if (!item.isParent) {
@@ -2660,7 +2708,7 @@ export default {
},
// 消息推送
- shareStandardBt () {
+ shareStandardBt() {
if (this.shareStandardSelect.length === 0) {
this.$message({
message: '请选择要分享的人!',
@@ -2687,11 +2735,11 @@ export default {
})
}
},
- beforeHandleCommand (row, command) {
- return { row, command }
+ beforeHandleCommand(row, command) {
+ return {row, command}
},
// 更多
- handleCommand (command) {
+ handleCommand(command) {
switch (command[1]) {
case '编辑':
this.selectStandardPro(command[0], 'edit')
@@ -2724,7 +2772,7 @@ export default {
}
},
// 授权-查询权限
- givePower (item) {
+ givePower(item) {
this.standId = item.id
this.visibleOrgTable = true
},
@@ -2751,7 +2799,7 @@ export default {
},
// 取消收藏法规
- cancelCollectStandard (item) {
+ cancelCollectStandard(item) {
this.spinShow = true
item.isSubmit = true
this.$http.put('person/personCollect/updateByUserId', {
@@ -2771,7 +2819,7 @@ export default {
})
// this.collect = '收藏'
},
- collectStandard (item) {
+ collectStandard(item) {
this.spinShow = true
item.isSubmit = true
this.personCollect.collectResId = item.id
@@ -2791,12 +2839,12 @@ export default {
})
// this.collect = '取消收藏'
},
- searchConfiguraStand () {
+ searchConfiguraStand() {
this.configPage = 1
this.sarConfigStandSearch.page = 1
this.selectConfiguraStand()
},
- dataConfigChange () {
+ dataConfigChange() {
this.sarConfigStandSearch.standSubclass = ''
this.$http.get('sys/dictype/getDicTypeByParentCode', {
dicTypeCode: this.sarConfigStandSearch.standGenera
@@ -2808,13 +2856,13 @@ export default {
})
},
// 分页点击后方法
- configuraPageChange (page) {
+ configuraPageChange(page) {
this.configPage = page
this.sarConfigStandSearch.page = page
this.selectConfiguraStand()
},
// 分页每页显示数改变后方法
- configuraPageSizeChange (pageSize) {
+ configuraPageSizeChange(pageSize) {
this.configRows = pageSize
this.sarConfigStandSearch.pageSize = pageSize
this.selectConfiguraStand()
@@ -2822,7 +2870,7 @@ export default {
// 此处需要调用接口,修改个人配置
},
// 取消配置标准
- cancelConfigStand () {
+ cancelConfigStand() {
this.configStandFlag = false
this.sarConfigStandSearch.standCode = ''
this.sarConfigStandSearch.standSort = ''
@@ -2831,7 +2879,7 @@ export default {
this.selectConfigStand = []
},
// 提交配置搜索项
- saveConfigStand () {
+ saveConfigStand() {
let search = {}
search.menuId = this.selectSarMenu.id
if (this.selectConfigStand.length === 0) {
@@ -2857,55 +2905,55 @@ export default {
})
}
},
- // 配置标准-表格排序
- sortChangeConfig(sortObj) {
- if (sortObj.column.order !== 'normal') {
- switch (sortObj.prop) {
- case 'issueTime' :
- // 后台联调
- if (sortObj.order === null) {
- this.sarConfigStandSearch.nowOrderBy = ''
- } else {
- this.sarConfigStandSearch.nowOrderBy = '1'
- }
- break;
- case 'putTime' :
- // 后台联调
- if (sortObj.order === null) {
- this.sarConfigStandSearch.nowOrderBy = ''
- } else {
- this.sarConfigStandSearch.nowOrderBy = '2'
- }
- break;
- }
- switch (sortObj.order) {
- case 'ascending' :
- this.sarConfigStandSearch.nowOrder = '2'
- break;
- case 'descending' :
- this.sarConfigStandSearch.nowOrder = '1'
- break;
- default:
- this.sarConfigStandSearch.nowOrder = ''
- break;
- }
- }
- this.selectConfiguraStand()
- },
+ // 配置标准-表格排序
+ sortChangeConfig(sortObj) {
+ if (sortObj.column.order !== 'normal') {
+ switch (sortObj.prop) {
+ case 'issueTime' :
+ // 后台联调
+ if (sortObj.order === null) {
+ this.sarConfigStandSearch.nowOrderBy = ''
+ } else {
+ this.sarConfigStandSearch.nowOrderBy = '1'
+ }
+ break;
+ case 'putTime' :
+ // 后台联调
+ if (sortObj.order === null) {
+ this.sarConfigStandSearch.nowOrderBy = ''
+ } else {
+ this.sarConfigStandSearch.nowOrderBy = '2'
+ }
+ break;
+ }
+ switch (sortObj.order) {
+ case 'ascending' :
+ this.sarConfigStandSearch.nowOrder = '2'
+ break;
+ case 'descending' :
+ this.sarConfigStandSearch.nowOrder = '1'
+ break;
+ default:
+ this.sarConfigStandSearch.nowOrder = ''
+ break;
+ }
+ }
+ this.selectConfiguraStand()
+ },
// 表格
- selectConfigStandChange (alldata) {
+ selectConfigStandChange(alldata) {
this.selectConfigStand = []
for (let i = 0; i < alldata.length; i++) {
this.selectConfigStand.push(alldata[i].id)
}
},
- SearchTreeConfigDblClick (treeId, treeNode) {
+ SearchTreeConfigDblClick(treeId, treeNode) {
this.sarConfigStandSearch.responsibleUnit = treeNode.id
this.sarConfigStandSearch.orgName = treeNode.name
$('#deptBtnConfig').click()
},
// 导入按钮 上传之前的钩子
- beginImportFile (file) {
+ beginImportFile(file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
@@ -2930,7 +2978,7 @@ export default {
return true
},
// 导入标准数据成功后执行
- importFileSuccess (response, file) {
+ importFileSuccess(response, file) {
if (response.ok) {
this.showUploadlist = true
this.spinShow = false
@@ -2954,12 +3002,12 @@ export default {
}
},
// 树
- resetTreeDialog () {
+ resetTreeDialog() {
this.menuModalFlag = false
this.$refs['addMenuForm'].resetFields()
},
// 点击二级菜单新增模态框中的保存
- newMenu () {
+ newMenu() {
this.isSubmit = true
this.$refs['addMenuForm'].validate((valid) => {
if (valid) {
@@ -2998,7 +3046,7 @@ export default {
})
},
// 点击查看
- handlePreview (item) {
+ handlePreview(item) {
// const mj = item.attrInfoMap.QBMJ
// if (mj === 'GXNX7D6H59') {
// // C1所有人都可查看
@@ -3083,79 +3131,79 @@ export default {
window.open(routeUrl.href, '_blank')
},
// 编辑
- selectStandardPro (row, state) {
- this.$http.get('lawss/sarBussionessStand/getStandInfoUpdateById', {id: row.id}, {
- _this: this
- }, res => {
- const item = res.data || {}
- this.drawerTitle = '修改企业标准'
- this.modalshowflag = true
- this.resolveFormFieldList(true)
- this.$nextTick(() => {
- Promise.all([this.queryDisplayLocation()]).then((values) => {
- const [displayLocation] = values
- const dynamicFormField = this.sarBussionessStandEO
- const formFieldList = this.formFieldList
- formFieldList.forEach((field) => {
- displayLocation.forEach((location) => {
- let value = dynamicFormField[field.attrField]
- let valueName = ''
- if (value && typeof value === 'number') {
- value = this.$dateFormat(value, 'yyyy-MM-dd')
- }
- field['value'] = value
- // 追加用户名称和部门名称
- if (field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS') {
- let attrFieldName = field.attrField + 'Name'
- valueName = dynamicFormField[attrFieldName]
- }
- field['valueName'] = valueName
- if (field.showRegionId === location.value) {
- if (!location.child) {
- location['child'] = []
- }
- location['child'].push(field)
- }
- })
- })
- this.dynamicFormField = displayLocation
- this.loading = false
- })
- this.sarBussionessStandEO = JSON.parse(JSON.stringify(item))
- this.sarBussionessStandEO["XCSJBUSS"] = this.dateFormatter()
- this.standStatus = JSON.parse(JSON.stringify(this.sarBussionessStandEO.standStatus))
- let subClass = item.standSubclass
- this.sarBussionessStandEO.standSubclass = subClass
- if (this.sarBussionessStandEO.issueTime != null && this.sarBussionessStandEO.issueTime !== '') {
- this.sarBussionessStandEO.issueTime = new Date(this.sarBussionessStandEO.issueTime)
+ selectStandardPro(row, state) {
+ this.$http.get('lawss/sarBussionessStand/getStandInfoUpdateById', {id: row.id}, {
+ _this: this
+ }, res => {
+ const item = res.data || {}
+ this.drawerTitle = '修改企业标准'
+ this.modalshowflag = true
+ this.resolveFormFieldList(true)
+ this.$nextTick(() => {
+ Promise.all([this.queryDisplayLocation()]).then((values) => {
+ const [displayLocation] = values
+ const dynamicFormField = this.sarBussionessStandEO
+ const formFieldList = this.formFieldList
+ formFieldList.forEach((field) => {
+ displayLocation.forEach((location) => {
+ let value = dynamicFormField[field.attrField]
+ let valueName = ''
+ if (value && typeof value === 'number') {
+ value = this.$dateFormat(value, 'yyyy-MM-dd')
}
- if (this.sarBussionessStandEO.putTime != null && this.sarBussionessStandEO.putTime !== '') {
- this.sarBussionessStandEO.putTime = new Date(this.sarBussionessStandEO.putTime)
+ field['value'] = value
+ // 追加用户名称和部门名称
+ if (field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS') {
+ let attrFieldName = field.attrField + 'Name'
+ valueName = dynamicFormField[attrFieldName]
}
- Object.keys(item.attrInfoMap || {}).forEach((key) => {
- if (item.attrInfoMap[key]) {
- // this.sarStandardsInfoEO[key] = item.attrInfoMap[key]
- this.$set(this.sarBussionessStandEO, key, item.attrInfoMap[key])
- }
- })
- this.sarBussionessStandEO['id'] = item.id
- if (state === 'show') {
- this.formdisableflag = true
- } else {
- // this.standGeneraSelectChange() // 负责细类初始化
- // this.getOrgTreeSource()
- this.addOrUPdateFlag = 2
- this.formdisableflag = false
- this.saveOldNum = item.standCode // 记录修改之前的标准编号
- this.saveOldReplaceNum = item.replaceStandNum // 记录修改之前的代替标准编号
- // let selectNode = this.getTreeNameByid(this.sarBussionessStandEO.responsibleUnit)
- this.sarBussionessStandEO.orgName = item.responsibleUnitShow
+ field['valueName'] = valueName
+ if (field.showRegionId === location.value) {
+ if (!location.child) {
+ location['child'] = []
+ }
+ location['child'].push(field)
}
+ })
})
+ this.dynamicFormField = displayLocation
+ this.loading = false
+ })
+ this.sarBussionessStandEO = JSON.parse(JSON.stringify(item))
+ this.sarBussionessStandEO["XCSJBUSS"] = this.dateFormatter()
+ this.standStatus = JSON.parse(JSON.stringify(this.sarBussionessStandEO.standStatus))
+ let subClass = item.standSubclass
+ this.sarBussionessStandEO.standSubclass = subClass
+ if (this.sarBussionessStandEO.issueTime != null && this.sarBussionessStandEO.issueTime !== '') {
+ this.sarBussionessStandEO.issueTime = new Date(this.sarBussionessStandEO.issueTime)
+ }
+ if (this.sarBussionessStandEO.putTime != null && this.sarBussionessStandEO.putTime !== '') {
+ this.sarBussionessStandEO.putTime = new Date(this.sarBussionessStandEO.putTime)
+ }
+ Object.keys(item.attrInfoMap || {}).forEach((key) => {
+ if (item.attrInfoMap[key]) {
+ // this.sarStandardsInfoEO[key] = item.attrInfoMap[key]
+ this.$set(this.sarBussionessStandEO, key, item.attrInfoMap[key])
+ }
+ })
+ this.sarBussionessStandEO['id'] = item.id
+ if (state === 'show') {
+ this.formdisableflag = true
+ } else {
+ // this.standGeneraSelectChange() // 负责细类初始化
+ // this.getOrgTreeSource()
+ this.addOrUPdateFlag = 2
+ this.formdisableflag = false
+ this.saveOldNum = item.standCode // 记录修改之前的标准编号
+ this.saveOldReplaceNum = item.replaceStandNum // 记录修改之前的代替标准编号
+ // let selectNode = this.getTreeNameByid(this.sarBussionessStandEO.responsibleUnit)
+ this.sarBussionessStandEO.orgName = item.responsibleUnitShow
+ }
})
+ })
},
// 部门树结构,通过id,查出对应的树节点
- getTreeNameByid (treeid) {
+ getTreeNameByid(treeid) {
for (let i = 0; i < this.bussionessStandNodes.length; i++) {
if (this.bussionessStandNodes[i].id === treeid) {
return this.bussionessStandNodes[i]
@@ -3163,24 +3211,23 @@ export default {
}
},
// 所属部门选取
- treeDblClick (treeId, treeNode) {
+ treeDblClick(treeId, treeNode) {
this.sarBussionessStandEO.responsibleUnit = treeNode.id
this.sarBussionessStandEO.orgName = treeNode.name
// $('#deptBtn').click()
$('#deptBtn2').click()
},
- choiceQCR (type, title, id) {
+ choiceQCR(type, title, id) {
this.nodeList = []
this.nodeList.push(id)
this.userType = type
this.drawerTitle = title
this.modalShowRoleFlag = true
},
- checkedRole2 (data) {
- console.log('1712',data)
+ checkedRole2(data) {
let idList = ''
let nameList = ''
- data.forEach( item => {
+ data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
@@ -3188,11 +3235,11 @@ export default {
idList += item.id
nameList += item.name
})
- if (this.drawerTitle === '查询起草人'){
+ if (this.drawerTitle === '查询起草人') {
this.sarBussionessSearch['QCRBUSS'] = nameList
}
this.$set(this.sarBussionessStandEO, 'QCRBUSS', nameList)
- if(this.sarBussionessStandEO.QCRBUSS){
+ if (this.sarBussionessStandEO.QCRBUSS) {
this.$refs.sarBussionessStandForm.validateField('QCRBUSS')
}
// this.sarBussionessStandEO['QCRBUSS'] = nameList
@@ -3220,12 +3267,12 @@ export default {
nameList += item.name
// }
})
- if (this.drawerTitle === '查询起草部门'){
+ if (this.drawerTitle === '查询起草部门') {
this.sarBussionessSearch.QCDW = nameList
}
this.$set(this.sarBussionessStandEO, 'QCDWId', idList)
this.$set(this.sarBussionessStandEO, 'QCDW', nameList)
- if(this.sarBussionessStandEO.QCRBUSS){
+ if (this.sarBussionessStandEO.QCRBUSS) {
this.$refs.sarBussionessStandForm.validateField('QCDW')
}
// this.sarBussionessStandEO.QCDWId = idList;
@@ -3233,13 +3280,13 @@ export default {
},
// 新增-表单空
- resetForm () {
+ resetForm() {
this.modalshowflag = false
this.$refs['sarBussionessStandForm'].resetFields()
$('.ivu-drawer-body').scrollTop(0)
},
// 保存或修改标准
- saveOrUpdateStands () {
+ saveOrUpdateStands() {
this.$refs['sarBussionessStandForm'].validate((valid) => {
if (valid) {
// alert(7)
@@ -3269,7 +3316,7 @@ export default {
const value = nowstandinfo[item.attrField]
// 时间格式处理
if (item.attrType === 'DATE_PICKER' && value) {
- nowstandinfo[item.attrField] = this.$moment(this.sarBussionessStandEO[item.attrField]).format('YYYY-MM-DD')
+ nowstandinfo[item.attrField] = this.$moment(this.sarBussionessStandEO[item.attrField]).format('YYYY-MM-DD')
} else if (item.attrType === 'DATE_PICKER' && !value) {
delete nowstandinfo[item.attrField]
}
@@ -3318,7 +3365,7 @@ export default {
if (nowstandinfo.firstPutTime != null && nowstandinfo.firstPutTime !== '') {
nowstandinfo.firstPutTime = this.$dateFormat(this.sarBussionessStandEO.firstPutTime, 'yyyy-MM-dd hh:mm:ss')
}
- nowstandinfo.standCode = nowstandinfo.standSort + nowstandinfo.standNumber + ( nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear)
+ nowstandinfo.standCode = nowstandinfo.standSort + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear)
this.$http.postData('lawss/sarBussionessStand/updateSarBussionessStand', nowstandinfo, {
_this: this,
loading: 'isSubmit'
@@ -3341,7 +3388,7 @@ export default {
})
},
// 删除数组中的某个对象
- removeArray (_arr, _obj) {
+ removeArray(_arr, _obj) {
var length = _arr.length
for (var i = 0; i < length; i++) {
if (_arr[i] === _obj) {
@@ -3359,7 +3406,7 @@ export default {
}
},
// 标准号验证
- validateStandNumber (standinfo) {
+ validateStandNumber(standinfo) {
return new Promise((resolve, reject) => {
let obj = JSON.parse(JSON.stringify(standinfo))
this.$http.post('lawss/sarBussionessStand/validateStandNumber', obj, {
@@ -3380,7 +3427,7 @@ export default {
})
},
// 高级检索责任部门选取
- SearchTreeDblClick (treeId, treeNode) {
+ SearchTreeDblClick(treeId, treeNode) {
this.sarBussionessSearch.responsibleUnit = treeNode.id
this.sarBussionessSearch.orgName = treeNode.name
$('#deptBtn1').click()
@@ -3410,11 +3457,11 @@ export default {
// }
// })
// },
- treeCollapse () {
+ treeCollapse() {
this.sideClose = !this.sideClose
},
// 导出选中的标准 此处因为复选框没有设置好,所以先设置导出所有数据
- exportStandard () {
+ exportStandard() {
// 区别是选择导出还是全部导出
if (this.selectedList.length > 0) {
this.saveExportType = 'apart'
@@ -3424,7 +3471,7 @@ export default {
this.exportName = ''
this.exportModelFlag = true
},
- addModal () {
+ addModal() {
this.getMenu().then(boolean => {
if (boolean) {
this.sarBussionessStandEO = {...this.defaultAddFormField}
@@ -3469,7 +3516,7 @@ export default {
})
},
// 删除标准
- deleteStand (flag, itemid) {
+ deleteStand(flag, itemid) {
if (flag === 1) {
(
this.$confirm('确认删除这些数据?', '提示', {
@@ -3526,7 +3573,7 @@ export default {
}
},
// 点击配置标准弹出相应模态框
- configurationStandard () {
+ configurationStandard() {
this.getMenu().then(boolean => {
if (boolean) {
const winWidth = window.screen.width
@@ -3552,7 +3599,7 @@ export default {
})
},
// 判断当前左侧树节点是否是我的收藏和个性化标签
- getMenu () {
+ getMenu() {
return new Promise((resolve, reject) => {
let menu = this.selectSarMenu
if (menu.id === 'gxhbq' || menu.pId === 'gxhbq' || menu.id === 'wdsc' || menu.pId === 'wdsc') {
@@ -3563,7 +3610,7 @@ export default {
})
},
// 表对应标准移除分类到-----用的这个方法
- deleteEnterStandFromKind (flag, item) {
+ deleteEnterStandFromKind(flag, item) {
this.getMenu().then(boolean => {
if (boolean) {
if (this.selectSarMenu.parentId == null || this.selectSarMenu.parentId === '') {
@@ -3611,7 +3658,7 @@ export default {
})
},
// 模板下载
- uploadImportModal (flag) {
+ uploadImportModal(flag) {
window.open('/api/lawss/sarBussionessStand/exportTemplate')
// if (flag === 1) {
// window.open('/api/att/attFile/uploadModalFile?fileName=企业标准导入模板.zip')
@@ -3620,7 +3667,7 @@ export default {
// }
},
// 点击导入标准
- addImportModal (flag) {
+ addImportModal(flag) {
this.getMenu().then(boolean => {
if (boolean) {
// this.$refs.importfile.clearFiles()
@@ -3645,7 +3692,7 @@ export default {
})
},
// 二级菜单新建,编辑,删除
- clickDropMenu (name, treeNode) {
+ clickDropMenu(name, treeNode) {
this.selectSarMenu = JSON.parse(JSON.stringify(treeNode))
if (undefined !== this.selectSarMenu.id) { // 当前有选中节点
if (name === 'newMenu') {
@@ -3712,7 +3759,8 @@ export default {
type: 'warning'
}).then(() => {
this.sureDeleteSarMenu()
- }).catch(() => {})
+ }).catch(() => {
+ })
}
}, e => {
})
@@ -3729,7 +3777,7 @@ export default {
if (!value) return true;
return data.menuName.indexOf(value) !== -1;
},
- treeClick (treeNode) {
+ treeClick(treeNode) {
this.selectSarMenu = treeNode // 记录当前选中的二级菜单
this.sarBussionessSearch.menuId = treeNode.id
this.sarBussionessSearch.menuId = treeNode.id // 将当前二级菜单的id传回后台做标准的条件查询
@@ -3738,7 +3786,7 @@ export default {
this.getBussionStandTable(this.tableFlag) // 根据选中的二级菜单查询对应的标准列表
},
// 右击选中
- treeRightClick (treeNode) {
+ treeRightClick(treeNode) {
this.selectSarMenu = treeNode // 记录当前选中的二级菜单
this.sarBussionessSearch.menuId = treeNode.id // 将当前二级菜单的id传回后台做标准的条件查询
this.sarBussionessSearch.menuId = treeNode.id
@@ -3746,7 +3794,7 @@ export default {
this.sarBussionessSearch.page = 1
},
// 树-删除
- sureDeleteSarMenu () {
+ sureDeleteSarMenu() {
this.deleteMenuModal = false
this.$http.post('lawss/sarMenu/deleteMenuAndChildren', this.selectSarMenu, {
_this: this, loading: 'loading'
@@ -3767,10 +3815,10 @@ export default {
})
},
// 导出确定功能
- exportTestItem () {
+ exportTestItem() {
if (this.saveExportType === 'apart') {
if (this.selectedList != null && this.selectedList !== '') {
- window.open('/api/lawss/sarBussionessStand/exportSarBussionessStand?exportContent=' + this.selectedList.join(',') + '&exportType=' + this.saveExportType + '&exportName=' + this.exportName + '&userId=' + this.$store.getters.userInfo.userId)
+ window.open('/api/lawss/sarBussionessStand/exportSarBussionessStand?exportContent=' + this.selectedList.join(',') + '&exportType=' + this.saveExportType + '&exportName=' + this.exportName + '&userId=' + this.$store.getters.userInfo.userId)
// this.$refs.selection.selectAll(false)
this.$message({
message: '导出信息成功',
@@ -3780,7 +3828,7 @@ export default {
} else if (this.saveExportType === 'all') {
let exportEOStr = JSON.stringify(this.SarExportSearchEo)
exportEOStr = exportEOStr.replace(/""/g, null)
- window.open('/api/lawss/sarBussionessStand/exportSarBussionessStand?exportContent=' + exportEOStr + '&exportType=' + this.saveExportType + '&exportName=' + this.exportName + '&userId=' + this.$store.getters.userInfo.userId)
+ window.open('/api/lawss/sarBussionessStand/exportSarBussionessStand?exportContent=' + exportEOStr + '&exportType=' + this.saveExportType + '&exportName=' + this.exportName + '&userId=' + this.$store.getters.userInfo.userId)
this.$message({
message: '导出信息成功',
type: 'success'
@@ -3789,18 +3837,18 @@ export default {
this.exportModelFlag = false
},
// 导出取消按钮关闭模态、置空
- cancal () {
+ cancal() {
this.exportModelFlag = false
},
// 搜索
- getBussionStandTableBtn (item, advancedSearch,type) {
+ getBussionStandTableBtn(item, advancedSearch, type) {
item.page = 1
this.tableFlag = item
// item.advanceSearchVOStr = JSON.stringify(advancedSearch) || ''
- this.getBussionStandTable(item,'',type)
+ this.getBussionStandTable(item, '', type)
},
// 清空搜索框
- clearAllSearch (flag) {
+ clearAllSearch(flag) {
if (flag === 'sarBussionessSearch') {
// 标准搜索
this.sarBussionessSearch.applyCountry = ''
@@ -3825,7 +3873,7 @@ export default {
this.sarBussionessSearch.TXLBBUSS = ''
this.sarBussionessSearch.VPPSBMBUSS = ''
this.sarBussionessSearch.advanceSearchVOStr = ''
- this.sarBussionessSearch.standEnName=''
+ this.sarBussionessSearch.standEnName = ''
this.isAdvancedSearch = false
this.getBussionStandTable()
} else if (flag === 2) {
@@ -3855,25 +3903,25 @@ export default {
this.selectConfiguraStand()
}
},
- // 分页点击后方法
- pageChange(page) {
- if (this.tableFlag !== '') {
- this.tableFlag.page = page
- } else {
- this.sarBussionessSearch.page = page
- }
- this.sarBussionessSearch.page = page
- this.getBussionStandTable(this.sarBussionessSearch)
- },
- // 分页每页显示数改变后方法
- pageSizeChange(pageSize) {
- this.sarBussionessSearch.pageSize = this.$store.getters.userInfo.configContent
- this.getBussionStandTable(this.tableFlag)
- this.selectConfiguraStand()
- // 此处需要调用接口,修改个人配置
- },
+ // 分页点击后方法
+ pageChange(page) {
+ if (this.tableFlag !== '') {
+ this.tableFlag.page = page
+ } else {
+ this.sarBussionessSearch.page = page
+ }
+ this.sarBussionessSearch.page = page
+ this.getBussionStandTable(this.sarBussionessSearch)
+ },
+ // 分页每页显示数改变后方法
+ pageSizeChange(pageSize) {
+ this.sarBussionessSearch.pageSize = this.$store.getters.userInfo.configContent
+ this.getBussionStandTable(this.tableFlag)
+ this.selectConfiguraStand()
+ // 此处需要调用接口,修改个人配置
+ },
// 查询处于游离态的标准
- selectConfiguraStand () {
+ selectConfiguraStand() {
// this.sarConfigStandSearch.menuId = 'others'
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', this.sarConfigStandSearch, {
_this: this,
@@ -3886,7 +3934,7 @@ export default {
})
},
// 分页查询企业标准---表格
- getBussionStandTable (item, nodeId,type) {
+ getBussionStandTable(item, nodeId, type) {
if (item !== '' && item !== null && item !== undefined) {
item.pageSize = this.$store.getters.userInfo.configContent
}
@@ -3894,73 +3942,87 @@ export default {
const data = item || this.sarBussionessSearch
const formData = {...data}
if (!item) {
- formData.menuId = this.sarBussionessSearch.menuId
- } else {
- formData.menuId = this.selectSarMenu.id
- }
+ formData.menuId = this.sarBussionessSearch.menuId
+ } else {
+ formData.menuId = this.selectSarMenu.id
+ }
if (nodeId !== undefined) {
- formData.menuId = nodeId
+ formData.menuId = nodeId
}
if (this.sarBussionessSearch.menuId == null || this.sarBussionessSearch.menuId === '') {
if (this.countRootId === 1) {
- formData.menuId = this.parentNode.id
+ formData.menuId = this.parentNode.id
}
}
// 处理我的收藏和个性化标签传参
if (this.selectSarMenu.id === 'qbwdsc') {
- formData.labelMenuId = undefined
- formData.menuId = 'qbwdsc'
- formData.collectMenuId = 'qbwdsc'
+ formData.labelMenuId = undefined
+ formData.menuId = 'qbwdsc'
+ formData.collectMenuId = 'qbwdsc'
} else if (this.selectSarMenu.id === 'gxhbq' || this.selectSarMenu.pId === 'gxhbq') {
- formData.menuId = undefined
- formData.labelMenuId = this.selectSarMenu.id
- formData.collectMenuId = undefined
+ formData.menuId = undefined
+ formData.labelMenuId = this.selectSarMenu.id
+ formData.collectMenuId = undefined
} else {
- formData.labelMenuId = undefined
- formData.collectMenuId = undefined
+ formData.labelMenuId = undefined
+ formData.collectMenuId = undefined
}
- // 排序
- formData.nowOrderBy = this.nowOrder ? this.orderBy : ''
- formData.nowOrder = this.nowOrder
- formData.userId = this.$store.getters.userInfo.userId
- if(type === 'sel'){
- const advanceSearchVOList = [];
- if(this.formFieldListData !== undefined && this.formFieldListData !== null){
- const formFieldList = this.formFieldListData
- formFieldList.forEach((item) => {
- const value = this.sarBussionessSearch[item.attrField]
- // 时间格式处理
- if (value !== undefined && value !== null && value !== "") {
- advanceSearchVOList.push({
- connect: advanceSearchVOList.length > 0 ? "and" : "",
- field: item.attrField || "",
- type: "between",
- value: value.join(',')
- });
- }
- })
- if (formData.BARQ !== null){
- advanceSearchVOList.push({
- connect: "and",
- field: 'BARQ',
- type: 'equals',
- value: formData.BARQ
- });
- }
+ // 排序
+ formData.nowOrderBy = this.nowOrder ? this.orderBy : ''
+ formData.nowOrder = this.nowOrder
+ formData.userId = this.$store.getters.userInfo.userId
+ if (type === 'sel') {
+ const advanceSearchVOList = [];
+ if (this.formFieldListData !== undefined && this.formFieldListData !== null) {
+ const formFieldList = this.formFieldListData
+ formFieldList.forEach((item) => {
+ const value = this.sarBussionessSearch[item.attrField]
+ // 时间格式处理
+ if (value !== undefined && value !== null && value !== "" && item.attrField === 'VPPSBMBUSS') {
+ advanceSearchVOList.push({
+ connect: "and",
+ field: 'CYCVPPSBM',
+ type: 'like',
+ value: value
+ });
+ }else if (value !== undefined && value !== null && value !== "" && item.attrField === 'VPPSCNBUSS') {
+ advanceSearchVOList.push({
+ connect: "and",
+ field: 'CYCVPPSCN',
+ type: 'like',
+ value: value
+ });
+ }else if (value !== undefined && value !== null && value !== "") {
+ advanceSearchVOList.push({
+ connect: advanceSearchVOList.length > 0 ? "and" : "",
+ field: item.attrField || "",
+ type: "between",
+ value: value
+ });
}
- formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList);
- this.SarExportSearchEo = formData;
- formData.startIssueTime = formData.issueTime ? formData.issueTime[0] : null;
- formData.endIssueTime = formData.issueTime ? formData.issueTime[1] : null;
- formData.startPutTime = formData.putTime ? formData.putTime[0] : null;
- formData.endPutTime = formData.putTime ? formData.putTime[1] : null;
- formData.FSRQBUSS = null;
- formData.FZRQBUSS = null;
- formData.BARQ = null
- formData.putTime = null;
- formData.issueTime = null;
+ })
+ if (formData.BARQ !== undefined && formData.BARQ !== null && formData.BARQ !== '') {
+ advanceSearchVOList.push({
+ connect: "and",
+ field: 'BARQ',
+ type: 'equals',
+ value: formData.BARQ
+ });
+ }
}
- this.SarExportSearchEo = formData
+ formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList);
+ this.SarExportSearchEo = formData;
+ formData.startIssueTime = formData.issueTime ? formData.issueTime[0] : null;
+ formData.endIssueTime = formData.issueTime ? formData.issueTime[1] : null;
+ formData.startPutTime = formData.putTime ? formData.putTime[0] : null;
+ formData.endPutTime = formData.putTime ? formData.putTime[1] : null;
+ formData.FSRQBUSS = null;
+ formData.FZRQBUSS = null;
+ formData.BARQ = null
+ formData.putTime = null;
+ formData.issueTime = null;
+ }
+ this.SarExportSearchEo = formData
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', formData, {
_this: this, loading: 'loading'
}, res => {
@@ -3981,59 +4043,59 @@ export default {
if ((this.standinfoList.length === 0 || this.standinfoList === []) && this.sarBussionessSearch.page !== 1) {
this.pageChange(1)
}
- this.isAdvancedSearch = false
+ this.isAdvancedSearch = false
}, e => {
})
// this.$refs.selection.selectAll(false)
},
// 获取拖拽行的id
- dragRowClassName (row, index) {
+ dragRowClassName(row, index) {
return 'drag-row' + ' ' + 'id=' + row.row.id
},
- // 表格排序
- sortChange(sortObj) {
- if (sortObj.column.order !== 'normal') {
- this.nowOrder = ''
- this.orderBy = ''
- switch (sortObj.column.property) {
- case 'issueTime' :
- // 后台联调
- this.orderBy = 1;
- this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending') {
- this.nowOrder = 2
- } else if (this.nowOrder === 'descending') {
- this.nowOrder = 1
- }
- break
- case 'putTime' :
- // 后台联调
- this.orderBy = 2;
- this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending') {
- this.nowOrder = 2
- } else if (this.nowOrder === 'descending') {
- this.nowOrder = 1
- }
- break
- case 'standStatusShow' :
- this.orderBy = 3;
- this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending') {
- this.nowOrder = 2
- } else if (this.nowOrder === 'descending') {
- this.nowOrder = 1
- }
- break
- }
- }
- // this.getDomesticStandardTable(this.tableFlag)
- //搜索后排序,应该以被搜索后的数据排序
- this.getBussionStandTable(this.sarBussionessSearch)
+ // 表格排序
+ sortChange(sortObj) {
+ if (sortObj.column.order !== 'normal') {
+ this.nowOrder = ''
+ this.orderBy = ''
+ switch (sortObj.column.property) {
+ case 'issueTime' :
+ // 后台联调
+ this.orderBy = 1;
+ this.nowOrder = sortObj.column.order
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
+ }
+ break
+ case 'putTime' :
+ // 后台联调
+ this.orderBy = 2;
+ this.nowOrder = sortObj.column.order
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
+ }
+ break
+ case 'standStatusShow' :
+ this.orderBy = 3;
+ this.nowOrder = sortObj.column.order
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
+ }
+ break
+ }
+ }
+ // this.getDomesticStandardTable(this.tableFlag)
+ //搜索后排序,应该以被搜索后的数据排序
+ this.getBussionStandTable(this.sarBussionessSearch)
- },
+ },
// 修改成表格样式后,选择项勾选改变
- standSelectChange (data) {
+ standSelectChange(data) {
this.ocrList = data
this.selectedList = []
for (let i = 0; i < data.length; i++) {
@@ -4041,7 +4103,7 @@ export default {
}
},
// 点击表格行--跳转详情页
- clickRow (row, event, column) {
+ clickRow(row, event, column) {
let routeUrl = this.$router.resolve({
name: 'OtherBussStandardDetails',
params: {
@@ -4051,16 +4113,16 @@ export default {
})
window.open(routeUrl.href, '_blank')
},
- OCRAdd (type) {
+ OCRAdd(type) {
let text = ''
this.OCRType = type
if (type === '0') {
text = 'OCR识别'
this.OCRTitle = '选择OCR识别文件'
- } else if(type === '1') {
+ } else if (type === '1') {
text = '拆分'
this.OCRTitle = '选择拆分文件'
- }else if(type === '2') {
+ } else if (type === '2') {
text = '编辑'
this.OCRTitle = '选择编辑文件'
}
@@ -4074,7 +4136,7 @@ export default {
this.$http.get('lawss/sarStandFile/queryFileInfoNew', {
type: type,
standId: this.selectedList[0]
- },{
+ }, {
_this: this
}, res => {
this.OCRLoading = false
@@ -4087,12 +4149,12 @@ export default {
}
}
})
- } else if (this.ocrList.length === 1 && type === '2'){
+ } else if (this.ocrList.length === 1 && type === '2') {
this.selectStandardPro(this.ocrList[0], 'edit')
}
},
// 查询二级菜单
- selectMenu () {
+ selectMenu() {
this.countRootId = 0
this.$http.get('lawss/sarMenu/selectMenuByRole', {sorDivide: 'BUSINESS_STAND'}, {
_this: this
@@ -4127,7 +4189,7 @@ export default {
})
},
// 拖拽事件
- drag (treeNode, dragId) {
+ drag(treeNode, dragId) {
if (treeNode !== null) {
let search = {}
search.menuId = treeNode.id
@@ -4155,11 +4217,11 @@ export default {
/**
* 获取新增弹框的表单
*/
- getAddFormFieldList (isEdit) {
+ getAddFormFieldList(isEdit) {
this.$http.get('lawss/sarStandAttrDetails/list', {}, {_this: this},
res => {
if (res.ok) {
- const { data = {} } = res
+ const {data = {}} = res
this.formFieldListData = data['BUSS']
// 追加高级查询动态下拉框数据s
this.twoOptions = [
@@ -4220,7 +4282,7 @@ export default {
]
this.formFieldListData.map(item => {
if (item.attrType !== 'FILE' && item.attrField !== 'FZRQ' && item.attrField !== 'ZYQCR'
- && item.attrField !== 'QTQCR' && item.attrField !== 'WFSPJS' && item.attrField !== 'XGLC' && item.attrField !== 'XGJH') {
+ && item.attrField !== 'QTQCR' && item.attrField !== 'WFSPJS' && item.attrField !== 'XGLC' && item.attrField !== 'XGJH') {
this.twoOptions.push({
value: item.attrField,
label: item.attrName,
@@ -4232,12 +4294,13 @@ export default {
}
})
}
- }, e => {})
+ }, e => {
+ })
},
/**
* 展示位置
*/
- queryDisplayLocation () {
+ queryDisplayLocation() {
return new Promise((resolve, reject) => {
this.$http.get('lawssBase/utArea/getAreaList', {
sarType: this.sarType
@@ -4251,55 +4314,55 @@ export default {
})
})
},
- resolveFormFieldList (isEdit) {
+ resolveFormFieldList(isEdit) {
const data = this.formFieldListData
this.formFieldList = data.map((item) => {
if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
- if(item.attrField === 'WSSMR'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["WSSMR"]
- })
- }else if(item.attrField === 'QCDW'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["QCDW"]
- })
- }else if(item.attrField === 'CYSD'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["WSCYSD"]
- })
- }else if(item.attrField === 'SYCXCLASS'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["ENERGYTYPES"]
- })
- }else if(item.attrField === 'NYLX'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["NYLXCLASS"]
- })
- }else if(item.attrField === 'SYCPX'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["SYCPXCLASS"]
- })
- }else if(item.attrField === 'SYRZ'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["SYRZCLASS"]
- })
- }else if(item.attrField === 'ZRBM'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["ZRBMCLASS"]
- })
- }else if(item.attrField === 'ZRGCS'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["ZRGCSCLASS"]
- })
- }else if(item.attrField === 'TXLB'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["TXLBCLASS"]
- })
- }else {
- return Object.assign({}, item, {
- options: this.allSelectOptions[item.selVal]
- })
- }
+ if (item.attrField === 'WSSMR') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["WSSMR"]
+ })
+ } else if (item.attrField === 'QCDW') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["QCDW"]
+ })
+ } else if (item.attrField === 'CYSD') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["WSCYSD"]
+ })
+ } else if (item.attrField === 'SYCXCLASS') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["ENERGYTYPES"]
+ })
+ } else if (item.attrField === 'NYLX') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["NYLXCLASS"]
+ })
+ } else if (item.attrField === 'SYCPX') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["SYCPXCLASS"]
+ })
+ } else if (item.attrField === 'SYRZ') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["SYRZCLASS"]
+ })
+ } else if (item.attrField === 'ZRBM') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["ZRBMCLASS"]
+ })
+ } else if (item.attrField === 'ZRGCS') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["ZRGCSCLASS"]
+ })
+ } else if (item.attrField === 'TXLB') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["TXLBCLASS"]
+ })
+ } else {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions[item.selVal]
+ })
+ }
} else {
return item
}
@@ -4318,27 +4381,31 @@ export default {
/**
* 生成校验规则
*/
- resolveFormFieldListRules () {
+ resolveFormFieldListRules() {
this.reloadAddForm = false
const formFieldList = this.formFieldList
const rules = {...this.defaultAddFormFieldRules}
- console.log(formFieldList);
formFieldList.forEach((item) => {
const rule = []
if (item.isMust === '0') {
if (item.attrType === 'DATE_PICKER') {
rule.push({required: true, type: 'date', message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
} else {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
}
}
if (item.attrLen && item.attrType === 'INPUT_STR' && item.attrField === 'DTQBBHBUSS') {
rule.push({type: 'string', max: 500, message: '代替企标编号不能超过500个字符', trigger: 'change'})
}
- if (item.attrLen && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS'&& item.attrType !== 'INPUT_STR') {
- rule.push({type: 'string', max: item.attrLen, message: `${item.attrName}不能超过${item.attrLen}个字符`, trigger: 'change'})
+ if (item.attrLen && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'INPUT_STR') {
+ rule.push({
+ type: 'string',
+ max: item.attrLen,
+ message: `${item.attrName}不能超过${item.attrLen}个字符`,
+ trigger: 'change'
+ })
}
if (rule.length > 0) {
// this.$set(this.rules, item.attrField, rule)
@@ -4357,14 +4424,14 @@ export default {
// })
},
// 搜索
- getDomesticStandardTableBtn (item) {
+ getDomesticStandardTableBtn(item) {
this.tableFlag = item
item.page = 1
// this.pageChange(1)
this.getDomesticStandardTable(item)
},
// 分页查询国内标准
- getDomesticStandardTable (item) {
+ getDomesticStandardTable(item) {
if (item !== '' && item !== null && item !== undefined) {
item.pageSize = this.$store.getters.userInfo.configContent
}
@@ -4403,8 +4470,8 @@ export default {
}
res.data.list[i].isSubmit = false
}
- this.stahndinfoList = []
- this.stahndinfoList = res.data.list
+ this.stahndinfoList = []
+ this.stahndinfoList = res.data.list
this.total = res.data.count
if ((this.stahndinfoList.length === 0 || this.stahndinfoList === []) && this.sarBussionessSearch.page !== 1) {
this.pageChange(1)
@@ -4414,7 +4481,7 @@ export default {
this.total = 0
})
},
- selectReplaceStandNumRowChange (row) {
+ selectReplaceStandNumRowChange(row) {
this.replaceStandNumModelNum = row
},
/**
@@ -4422,7 +4489,7 @@ export default {
*@author: zhangRui
*@time: 2020/08/25 11:52:47
*/
- selectReplaceStandNumRowSelect (selection, flag, row) {
+ selectReplaceStandNumRowSelect(selection, flag, row) {
let index = ''
if (row) {
this.selectedListRep.map((item, rowIndex) => {
@@ -4462,7 +4529,7 @@ export default {
})
}
},
- getDept () {
+ getDept() {
return new Promise((resolve, reject) => {
let url = 'sys/org/getTree'
this.$http.get(url, {}, {
@@ -4491,7 +4558,7 @@ export default {
})
},
// 人员选择事件
- onDept (pOrgId, pOrgName, field) {
+ onDept(pOrgId, pOrgName, field) {
let deptTitleName = field.attrField === 'ZYQCR' ? 'ZQCBM' : 'ZRBM'
let dynamicFormFieldIndex = null
let zrbmIndex = null
@@ -4536,35 +4603,35 @@ export default {
}
},
watch: {
- filterText(val) {
- this.$refs.tree.filter(val);
- },
- 'sarBussionessStandEO.issueTime': {
- handler: function() {
- if(this.sarBussionessStandEO.issueTime !== undefined && this.sarBussionessStandEO.issueTime !== null && this.sarBussionessStandEO.issueTime !== ''){
- let date = new Date(this.$moment(this.sarBussionessStandEO.issueTime).format('YYYY-MM-DD'))
- // const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
- // this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
+ filterText(val) {
+ this.$refs.tree.filter(val);
+ },
+ 'sarBussionessStandEO.issueTime': {
+ handler: function () {
+ if (this.sarBussionessStandEO.issueTime !== undefined && this.sarBussionessStandEO.issueTime !== null && this.sarBussionessStandEO.issueTime !== '') {
+ let date = new Date(this.$moment(this.sarBussionessStandEO.issueTime).format('YYYY-MM-DD'))
+ // const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
+ // this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
- let year = date.getFullYear()+5;
- let month =(date.getMonth() + 1).toString();
- let day = (date.getDate()).toString();
- if (month.length == 1) {
- month = "0" + month;
- }
- if (day.length == 1) {
- day = "0" + day;
- }
- const FSRQBUSS = year + "-" + month + "-" + day;
- this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
+ let year = date.getFullYear() + 5;
+ let month = (date.getMonth() + 1).toString();
+ let day = (date.getDate()).toString();
+ if (month.length == 1) {
+ month = "0" + month;
+ }
+ if (day.length == 1) {
+ day = "0" + day;
+ }
+ const FSRQBUSS = year + "-" + month + "-" + day;
+ this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
- }
- },
+ }
},
+ },
},
computed: {
// 是否拥有拖拽权限
- hasPermissionDrag () {
+ hasPermissionDrag() {
let has = false
let permissionList = this.$store.getters.getMenuList
permissionList.map((menu) => {
@@ -4577,12 +4644,12 @@ export default {
},
...mapGetters(['userInfo'])
},
- mounted () {
+ mounted() {
this.treeReload = true
// 进入页面后查询树形结构目录
this.selectMenuList()
this.dragControllerLR()
- // 查询各下拉框数据
+ // 查询各下拉框数据
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
@@ -4595,24 +4662,24 @@ export default {
this.energyKindOptions = res.data.ENERGYTYPES
this.standGeneraOptions = res.data.BUSSBIGCLASS
this.standSubclassOptions = res.data.BUSSFINECLASS
- this.standSortOptions = res.data.BUSSSTANDCLASS // 企业标准类别
- this.standNatureOptions = res.data.SARPROPERTY // 标准性质
- this.standStateOptions = res.data.TEXTSTATUSBUSS // 文本状态
- this.standSystemOptions = res.data.TXLBBUSS // 标准体系
- this.applyArcticOptions.options = res.data.ENERGYTYPES // 适用车型
- this.categoryOptions.options = res.data.NYLXCLASS // 能源类型
- this.applyAuthOptions.options = res.data.SYRZCLASS // 适用认证
- this.cysdOptions = res.data.WSCYSD // 我司参与深度
- this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
- this.txlbOptions = res.data.TXLBCLASS // 体系类别
- this.qcdwOptions.options = res.data.QCDW // 起草单位
- this.qcrOptions.options = res.data.QCRBUSS // 起草人
- this.nylxOptions.options = res.data.NYLXCLASS // 能源类型
- this.syrzOptions.options = res.data.SYRZCLASS // 适用认证
- this.sycpxOptions.options = res.data.SYCPXCLASS // 适用产品线
- this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
- this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
- this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
+ this.standSortOptions = res.data.BUSSSTANDCLASS // 企业标准类别
+ this.standNatureOptions = res.data.SARPROPERTY // 标准性质
+ this.standStateOptions = res.data.TEXTSTATUSBUSS // 文本状态
+ this.standSystemOptions = res.data.TXLBBUSS // 标准体系
+ this.applyArcticOptions.options = res.data.ENERGYTYPES // 适用车型
+ this.categoryOptions.options = res.data.NYLXCLASS // 能源类型
+ this.applyAuthOptions.options = res.data.SYRZCLASS // 适用认证
+ this.cysdOptions = res.data.WSCYSD // 我司参与深度
+ this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
+ this.txlbOptions = res.data.TXLBCLASS // 体系类别
+ this.qcdwOptions.options = res.data.QCDW // 起草单位
+ this.qcrOptions.options = res.data.QCRBUSS // 起草人
+ this.nylxOptions.options = res.data.NYLXCLASS // 能源类型
+ this.syrzOptions.options = res.data.SYRZCLASS // 适用认证
+ this.sycpxOptions.options = res.data.SYCPXCLASS // 适用产品线
+ this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
+ this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
+ this.gkglbmOptions = res.data.GKGLBM;//归口管理部门
// this.classifyCodeOptions = res.data.STANDCLASSIFY
}, e => {
})
@@ -4634,242 +4701,270 @@ export default {
-
+