标准/政策法规工程师
-责任人
-标准/政策法规工程师
-业务经理
-- - {{ item.title }} - {{ getDate(item.pubTime) }} + {{ item.standName }} + {{ getDate(item.issueTime) }}
From a02a38a8d6db1e983cd4b40c06d15bcd13e18503 Mon Sep 17 00:00:00 2001
From: super_liu <396572590@qq.com>
Date: Sat, 17 Jul 2021 16:11:32 +0800
Subject: [PATCH 1/8] =?UTF-8?q?feat:=20=E6=A0=87=E5=87=86=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/creatProcess/bzrk/step1.vue | 3 +
.../domesticStandardsAndRegulations/index.vue | 36 ++-
.../foreignStandardsAndRegulations/index.vue | 297 +++++++++++++-----
3 files changed, 238 insertions(+), 98 deletions(-)
diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
index f7d328feb..481eca842 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
@@ -1859,6 +1859,9 @@
}else if(this.fileType === 'ca'){
this.form.ca = response.data.id;
this.form.caName = response.data.name;
+ }else if(this.fileType === 'zbjbd'){
+ this.form.zbjbd = response.data.id;
+ this.form.zbjbdName = response.data.name;
}
this.$message({
showClose: true,
diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
index 72c7cc762..d8283d799 100644
--- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
@@ -1745,22 +1745,26 @@ export default {
},
methods: {
popoverHideBusVs (checkedIds, checkedData) {
- this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code
- this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName
- console.log(checkedData)
- console.log(this.sarStandardsInfoEO.CYCVPPSBM)
- console.log(this.sarStandardsInfoEO.CYCVPPSCN)
- this.$forceUpdate()
+ if(checkedData){
+ this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code
+ this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName
+ this.$forceUpdate()
+ }
},
popoverHideCarVs (checkedIds, checkedData) {
- this.sarStandardsInfoEO.KCCVPPSBM = checkedData.code
- this.sarStandardsInfoEO.KCCVPPSCN = checkedData.chineseName
- this.$forceUpdate()
+ if(checkedData){
+ this.sarStandardsInfoEO.KCCVPPSBM = checkedData.code
+ this.sarStandardsInfoEO.KCCVPPSCN = checkedData.chineseName
+ this.$forceUpdate()
+ }
+
},
popoverHideModel (checkedIds, checkedData) {
- this.sarStandardsInfoEO.DYBXH = checkedData.model
- this.sarStandardsInfoEO.DYMC = checkedData.name
- this.$forceUpdate()
+ if(checkedData){
+ this.sarStandardsInfoEO.DYBXH = checkedData.model
+ this.sarStandardsInfoEO.DYMC = checkedData.name
+ this.$forceUpdate()
+ }
},
busVsFunc(){
this.$http.get('sarVppsTree/list', '', {
@@ -1777,7 +1781,9 @@ export default {
})
},
popoverHide (checkedIds, checkedData) {
- this.sarStandardsInfoEO.standSystem = checkedData.id
+ if(checkedData){
+ this.sarStandardsInfoEO.standSystem = checkedData.id
+ }
},
closeModal () {
this.productModal = false
@@ -2013,7 +2019,8 @@ export default {
Promise.all([this.queryDisplayLocation()]).then((values) => {
const [displayLocation] = values
const formFieldList = this.formFieldList
- this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
+ console.log(formFieldList)
+ this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
if(this.sarStandardsInfoEO.standSystem){
this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem];
}
@@ -2783,6 +2790,7 @@ export default {
// 验证标准号是否唯一
this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => {
if (flag) {
+ debugger
// 时间格式修改
let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
console.log(nowstandinfo)
diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
index eea98e0e4..135a7ce75 100644
--- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
@@ -425,14 +425,14 @@
-
')
+ nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum === '' ? '' : nowstandinfo.replaceStandNum.replace(/\n/g, '
')
+ }
+ // 处理动态表单的时间和下拉框格式
+ const formFieldList = this.formFieldList
+ const sarStandAttrObj = {}
+ formFieldList.forEach((item) => {
+ const value = nowstandinfo[item.attrField]
+ // 时间格式处理
+ if (item.attrType === 'DATE_PICKER' && value) {
+ nowstandinfo[item.attrField] = this.$dateFormat(this.sarStandardsInfoEO[item.attrField], 'yyyy-MM-dd hh:mm:ss')
+ }
+ // 数组处理
+ if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
+ if (value != null && (value instanceof Array)) {
+ nowstandinfo[item.attrField] = nowstandinfo[item.attrField].join(',')
+ }
+ }
+ sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
+ })
+ nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
+ console.log(formFieldList)
+ console.log(nowstandinfo)
+ this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, {
+ _this: this
+ }, res => {
+ this.isSubmit = false
+ if (res.ok) {
+ this.getDomesticStandardTable(this.tableFlag)
+ this.resetForm()
+ if (this.addOrUPdateFlag === 1) {
+ sessionStorage.removeItem('STAND_INLAND')
+ }
+ }
+ }, e => {
+ this.isSubmit = false
+ })
+ } else {
+ this.isSubmit = false
+ }
+ }, e => {})
+ } else {
+ this.isSubmit = false
+ this.$message({
+ message: '请检查表单是否填写正确',
+ type: 'warning'
+ })
}
- // 代替标准号
- if (nowstandinfo.replaceStandNum != null) {
- nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum.replace(/,/ig, ',')
- }
- if (nowstandinfo.replaceStandNum != null && nowstandinfo.replaceStandNum !== '') {
- nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum.replace(/\r\n/g, '
')
- nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum === '' ? '' : nowstandinfo.replaceStandNum.replace(/\n/g, '
')
- }
- // 处理动态表单的时间和下拉框格式
- const formFieldList = this.formFieldList
- const sarStandAttrObj = {}
- formFieldList.forEach((item) => {
- const value = nowstandinfo[item.attrField]
- // 时间格式处理
- if (item.attrType === 'DATE_PICKER' && value) {
- nowstandinfo[item.attrField] = this.$dateFormat(this.sarStandardsInfoEO[item.attrField], 'yyyy-MM-dd hh:mm:ss')
- }
- // 数组处理
- if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
- if (value != null && (value instanceof Array)) {
- nowstandinfo[item.attrField] = nowstandinfo[item.attrField].join(',')
- }
- }
- sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
- })
- nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
- // 判断三个实施日期不能全部未N/A和TBD
- // if ((nowstandinfo.EOPSSRQ === 'N/A' || nowstandinfo.EOPSSRQ === 'TBD' || nowstandinfo.EOPSSRQ === '已实施') &&
- // (nowstandinfo.XCXSSRQ === 'N/A' || nowstandinfo.XCXSSRQ === 'TBD' || nowstandinfo.XCXSSRQ === '已实施') &&
- // (nowstandinfo.ZCCSSRQ === 'N/A' || nowstandinfo.ZCCSSRQ === 'TBD' || nowstandinfo.ZCCSSRQ === '已实施')) {
- // this.isSubmit = false
- // return this.$message.warning('实施日期必须有一项为日期格式')
- // }
- this.isSubmit = true
- this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, {
- _this: this
- }, res => {
- this.isSubmit = false
- if (res.ok) {
- this.getDomesticStandardTable(this.tableFlag)
- this.resetForm()
- if (this.addOrUPdateFlag === 1) {
- sessionStorage.removeItem('FOREIGN_INLAND')
- }
- }
- }, e => {
- this.isSubmit = false
- })
- } else {
- this.isSubmit = false
- }
- }, e => {})
- } else {
- this.isSubmit = false
- this.$message({
- message: '请检查表单是否填写正确',
- type: 'warning'
})
- }
- })
- },
+ },
// 表格排序
sortChange (sortObj) {
if (sortObj.column.order !== 'normal') {
@@ -3812,6 +3939,8 @@ export default {
// 加载动态表单数据
this.getAddFormFieldList()
this.getDept()
+ this.busVsFunc()
+ this.modelFunc()
},
destroyed () {
this.allSelectOptions = {}
From 750a657f09c31c1c07db9bbe947667f6f8fd70aa Mon Sep 17 00:00:00 2001
From: super_liu <396572590@qq.com>
Date: Sat, 17 Jul 2021 18:33:12 +0800
Subject: [PATCH 2/8] =?UTF-8?q?feat:=20=E6=A0=87=E5=87=86=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/processCenter/pages/creatProcess/bzrk/step1.vue | 4 +++-
src/pages/processCenter/pages/creatProcess/bzrk/step2.vue | 4 ++++
src/pages/processCenter/pages/creatProcess/bzrk/step3.vue | 3 ++-
src/pages/processCenter/pages/creatProcess/bzrk/step4.vue | 2 ++
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
index 481eca842..b1b2b5634 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
@@ -743,7 +743,7 @@
会签责任人
@@ -1946,6 +1946,7 @@
if (valid) {
this.$refs['userForm'].validate((valid) => {
if (valid) {
+ this.isSubmit = true
var json = Object.assign(this.form, this.roleForm)
json.zrUserId = this.form.zrUserId
json.jlUserId = this.form.jlUserId
@@ -1966,6 +1967,7 @@
}, res => {
if (res.success) {
this.$message.success(res.message)
+ this.isSubmit = false
}
})
}
diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue
index 1b7addb1e..f6ef3f3ee 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue
@@ -943,6 +943,7 @@
},
handleSave() {},
handleSubmit() {
+ this.isSubmit = true
this.form.commentText = this.commentText
this.form.approvalOpinion = this.approvalOpinion
const json = JSON.stringify(this.form);
@@ -957,6 +958,7 @@
if (res.success) {
if(this.approvalOpinion === '1'){
this.$message.warning("驳回成功")
+ this.isSubmit = false
}else{
this.processCreateStand(json)
}
@@ -980,8 +982,10 @@
name: 'ProcessCenter'
})
}, 100)
+ this.isSubmit = false
} else {
this.$message.warning(res.message)
+ this.isSubmit = false
}
})
},
diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue
index f96c8db0b..207e2bfef 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue
@@ -935,10 +935,10 @@ export default {
},
handleSave() {},
handleSubmit() {
+ this.isSubmit = false
this.form.commentText = this.commentText
this.form.approvalOpinion = this.approvalOpinion
const json = JSON.stringify(this.form);
- console.log(json)
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId : this.userId,
@@ -951,6 +951,7 @@ export default {
}else {
this.$message.success(res.message)
}
+ this.isSubmit = false
})
},
diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue
index 5a3ce640f..3a63e3978 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue
@@ -1542,6 +1542,7 @@ export default {
handleSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.isSubmit = true
this.form.commentText = this.commentText
this.form.approvalOpinion = this.approvalOpinion
const json = JSON.stringify(this.form);
@@ -1557,6 +1558,7 @@ export default {
}else {
this.$message.success(res.message)
}
+ this.isSubmit = false
})
}
})
From 1d6f9d0a5922f440435fb84a988ace839dacd883 Mon Sep 17 00:00:00 2001
From: super_liu <396572590@qq.com>
Date: Sun, 18 Jul 2021 17:09:54 +0800
Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=E6=A0=87=E5=87=86=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../details/otherStandardDetails/index.vue | 4 +-
.../pages/creatProcess/bzrk/step1.vue | 4 +-
.../pages/creatProcess/bzrk/step2.vue | 4 +-
.../pages/creatProcess/bzrk/step3.vue | 4 +-
.../pages/creatProcess/bzrk/step4.vue | 4 +-
.../domesticStandardsAndRegulations/index.vue | 150 ++++++++++--------
.../foreignStandardsAndRegulations/index.vue | 129 ++++++++-------
7 files changed, 162 insertions(+), 137 deletions(-)
diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue
index b4cb77b38..c82632dd1 100644
--- a/src/pages/details/otherStandardDetails/index.vue
+++ b/src/pages/details/otherStandardDetails/index.vue
@@ -56,7 +56,7 @@
{{ sarStandardsInfoEO.issueTime || '-' }}
{{sarStandardsInfoEO.isRelateAccess ? (sarStandardsInfoEO.isRelateAccess === '1' ? '是' : '否') : '-'}}
-{{ sarStandardsInfoEO.standSystemName || '-' }}
+{{ sarStandardsInfoEO.standSystemName || '-' }}
@@ -2624,8 +2624,6 @@ export default { // if (field.attrField === 'XGLC' && !this.$_has('6A52PZCAX8BAUUJ2TSQ4')) { // return // } - console.log("displayLocation"); - console.log(displayLocation); displayLocation.forEach((location) => { location.isShowImp = '0' if (dynamicFormField) { diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index b1b2b5634..72064daeb 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -490,7 +490,7 @@