-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
-
- 清空
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+ 数据获取中
+
+
+
+
+
+
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
+ if(item.involve === 'involve'){
+ item.involve = '涉及'
+ }else if(item.involve === 'noInvolve'){
+ item.involve = '不涉及'
+ }
+ })
// this.projectId = item.projectId;
- //获取清单id 查询对应清单下的标准
- this.detailedId = item.detailedListId;
+ // //获取清单id 查询对应清单下的标准
+ // this.detailedId = item.detailedListId;
// this.getStandData();
- this.getStand();
}else{
this.qdform = item.form
this.dataList =item.form.dataList
this.detailedId = item.form.detailedListId;
- this.getStand();
}
});
},
//查询清单下的标准
- // getStandData() {
- // this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId, cars: '1', }, {
- // _this: this
- // }, res => {
- // this.dataList = res.data.records;
- // this.dataList.forEach(item => {
- // // 责任部门转换
- // if (item.zrbm !== null || item.zrbm !== "") {
- // let k = (item.zrbm || "").split(",");
- // for (let i in this.zrbmOptions) {
- // for (let m = 0; m < k.length; m++) {
- // if (this.zrbmOptions[i].value === k[m]) {
- // k[m] = this.zrbmOptions[i].label;
- // }
- // item.zrbm = k.join(",");
- // }
- // }
- // }
- // });
- // });
- // },
+ getStandData() {
+ this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId, cars: '1', }, {
+ _this: this
+ }, res => {
+ this.dataList = res.data.records;
+ this.dataList.forEach(item => {
+ // 责任部门转换
+ if (item.zrbm !== null || item.zrbm !== "" ) {
+ let k = (item.zrbm || "").split(",");
+ for (let i in this.zrbmOptions) {
+ for (let m = 0; m < k.length; m++) {
+ if (this.zrbmOptions[i].value === k[m]) {
+ k[m] = this.zrbmOptions[i].label;
+ }
+ item.zrbm = k.join(",");
+ }
+ }
+ }
+ });
+ this.dataList.map(item => {
+ if(item.zrbm === '[]'){
+ item.zrbm = ''
+ }
+ })
+ });
+ },
// 接受按钮
handleAccept(){
this.isSubmit = true
@@ -677,28 +973,46 @@ export default {
this.saveLoading = false;
});
},
+ handleRemark(){
+ this.dataList.map(item => {
+ if(item.involve === 'noInvolve'){
+ comFlag
+ }
+ })
+ },
//提交事件
handleSubmit() {
- this.isSubmit = true;
- this.qdform.commentText = this.commentText;
- this.qdform.dataList = this.dataList
- const json = JSON.stringify(this.qdform);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
+ let comFlag = 0
+ this.dataList.map(item => {
+ if(item.involve === 'noInvolve' && item.remarks === ''){
+ comFlag++
}
- this.isSubmit = false;
- }, e => {
- });
+ })
+ if(comFlag > 0){
+ this.$message.warning('请填写不涉及的备注信息')
+ }else{
+ this.isSubmit = true;
+ this.qdform.commentText = this.commentText;
+ this.qdform.dataList = this.dataList
+ const json = JSON.stringify(this.qdform);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ this.isSubmit = false;
+ }, e => {
+ });
+ }
},
addList() {
+ this.searchLawBtn()
this.standModel = true;
},
//批量删除
@@ -726,8 +1040,9 @@ export default {
}
},
//添加标准勾选框数据
- selectStand(data) {
- this.standList = data;
+ handleSelectTableChange (data) {
+ this.handleSelectTableList = data
+ console.log(this.handleSelectTableList);
},
selectStandChange(data){
this.projectStand = data
@@ -764,52 +1079,141 @@ export default {
}
},
+ //手动查找的清空按钮
+ clearLawBtn(){
+ this.lawInfoTableLoading = true
+ this.handleSelectForm.lawNumber = ''
+ this.handleSelectForm.standNumber = ''
+ this.handleSelectForm.lawsNumber = ''
+ this.handleSelectForm.standCode = ''
+ //清空标准名称/政策名称的查询
+ this.handleSelectForm.lawName = ''
+ this.handleSelectForm.standName = ''
+ this.handleSelectForm.numberName = ''
+ this.searchLawBtn()
+ },
//添加标准的查询按钮
- search() {
- this.page = 1;
- this.getStand();
- },
- clearSearch() {
- this.standCommonlySearch = {
- standSort: "",
- standNumber: "",
- standType: ""
- };
- this.getStand();
- },
- pageChange(page) {
- this.page = page;
- this.getStand();
- },
- pageSizeChange(pageSize) {
- this.pageSize = pageSize;
- this.getStand();
- },
- //查询清单下的标准
- getStand() {
- this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
- id: this.detailedId,
- page: this.page,
- Size: this.pageSize,
- ...this.standCommonlySearch
- }, {
- _this: this
- }, res => {
- if (res.data === null) {
- this.standardData = "";
- this.totalDo = "";
- }
- this.standardData = res.data.records;
- this.standardData.forEach(item => {
- if (item.zccssrqgj === "-" || item.zccssrqgj === 'null' || item.zccssrqgj === 'undefined') {
- item.zccssrqgj = "";
+ searchLawBtn(){
+ this.lawInfoTableLoading = true
+ if (this.handleSelectForm.dataSource === 'INLAND'){
+ this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
+ _this: this
+ },res=>{
+ console.log('国内标准库数据',res)
+ if (res.ok){
+ this.lawInfoTable = res.data.list
+ this.handleSelectForm.total = res.data.count
+ if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) {
+ this.lawInfoTableLoading = true
+ this.handleSelectPageChange(1)
+ }else {
+ this.lawInfoTableLoading = false
+ this.lawInfoTableLoading = false
+ }
+ }else {
+ this.$message.error(res.message)
}
- if (item.xcxssrqgj === "-" || item.xcxssrqgj === 'null' || item.xcxssrqgj === 'undefined' ) {
- item.xcxssrqgj = "";
+ },e=>{
+ this.lawInfoTable = []
+ this.handleSelectForm.total = 0
+ })
+ }else if(this.handleSelectForm.dataSource === 'FOREIGN'){
+ this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
+ _this: this
+ },res=>{
+ if (res.ok){
+ this.lawInfoTable = res.data.list
+ this.handleSelectForm.total = res.data.count
+ if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) {
+ this.lawInfoTableLoading = true
+ this.handleSelectPageChange(1)
+ }else {
+ this.lawInfoTableLoading = false
+ }
+ }else {
+ this.$message.error(res.message)
+ this.lawInfoTableLoading = false
}
- });
- this.total = res.data.total;
- });
+ },e=>{
+ this.lawInfoTable = []
+ this.handleSelectForm.total = 0
+ })
+ }else if(this.handleSelectForm.dataSource === 'BUSINESS_STAND'){
+ this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage',this.handleSelectForm,{
+ _this: this
+ },res=>{
+ if (res.ok){
+ this.lawInfoTable = res.data.list
+ this.handleSelectForm.total = res.data.count
+ if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) {
+ this.lawInfoTableLoading = true
+ this.handleSelectPageChange(1)
+ }else {
+ this.lawInfoTableLoading = false
+ }
+ }else {
+ this.$message.error(res.message)
+ this.lawInfoTableLoading = false
+ }
+ },e=>{
+ this.lawInfoTable = []
+ this.handleSelectForm.total = 0
+ })
+ }else {
+ this.$message.warning('请先选择标准/政策来源')
+ }
+ },
+ handleSelectConfirm(){
+ if(this.handleSelectTableList.length < 1){
+ this.$message.warning('请至少选择一条数据进行添加')
+ }else{
+ this.standList.forEach(item =>{
+ if(item.ssrq === "-"){
+ item.ssrq = ''
+ }
+ if(item.zrbm === '[]'){
+ item.zrbm =''
+ }
+ })
+ this.handleSelectTableList.map(item => {
+ let addIndex
+ addIndex = this.dataList.findIndex(items =>{
+ return items.id === item.id
+ })
+ if(addIndex > -1){
+ this.$message.warning('请勿重复添加数据')
+ }else{
+ this.dataList.push(item)
+ }
+ })
+ this.dataList.forEach(item => {
+ this.$set(item, 'involve', 'involve')
+ this.$set(item, 'remarks', '')
+ })
+ this.standModel = false
+ }
+ },
+ dataSourceChange() {
+ this.handleSelectForm.page = 1
+ this.lawInfoTableLoading = true
+ this.handleSelectForm.standType = this.handleSelectForm.dataSource
+ this.searchLawBtn()
+ },
+ //根据标准编号的查询
+ lawNumberSearch() {
+ this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
+ this.handleSelectForm.lawsNumber = this.handleSelectForm.lawNumber
+ this.handleSelectForm.standCode = this.handleSelectForm.lawNumber
+ },
+ handleSelectPageChange(page){
+ this.lawInfoTableLoading = true
+ this.handleSelectForm.page = page
+ this.searchLawBtn()
+ },
+ handleSelectPageSizeChange(pageSize){
+ this.lawInfoTableLoading = true
+ this.handleSelectForm.pageSize = pageSize
+ this.searchLawBtn()
},
},
computed: {
diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue
index 85f9184d6..ca2543c73 100644
--- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue
@@ -132,32 +132,6 @@
width="180px"
>
-
-
-
-
-
-
-
-
diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue
index 9ff4aa477..a5e03bd72 100644
--- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue
+++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue
@@ -879,7 +879,7 @@ export default {
prcType: row.prcType
}
})
- } else if(row.taskInfo === '标准法规部经理审批'){
+ } else if(row.taskInfo === '确认人确认'){
this.$router.push({
name: 'xmqdqrStep3',
query: {
@@ -890,6 +890,17 @@ export default {
prcType: row.prcType
}
})
+ }else if(row.taskInfo === '产品工程经理汇总清单'){
+ this.$router.push({
+ name: 'xmqdqrStep4',
+ query: {
+ taskIds: row.taskIds,
+ prcId: row.prcId,
+ prcNum: row.prcNum,
+ prcName: row.prcName,
+ prcType: row.prcType
+ }
+ })
}
break
case 'laws2':
diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
index 322658c1c..e6c26d318 100644
--- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
@@ -150,7 +150,7 @@
:loading="delLoading"
size="mini"
@click="deleteStand(2)"
- v-btn-permission="'c09dc12531085e30e39bbdc6cb6116ba'">批量删除
+ v-btn-permission="'dbaf9df2990a595c8abea28e68b1a681'">批量删除