Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
super_liu
2022-03-28 17:52:04 +08:00
14 changed files with 191 additions and 103 deletions
@@ -653,27 +653,10 @@
</el-select>
</el-form-item>
<el-form-item v-show="form.standInData === '0'" label="起草单位" prop="qcdw" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" clearable v-model="form.qcdw" placeholder="请选择起草单位" multiple filterable>
<el-option
v-for="item in qcdwOption"
placeholder="请选择"
:key="item.value"
:value="item.value"
:label="item.label"
></el-option>
<el-select :popper-append-to-body="false" multiple filterable clearable v-model="form.qcdw" placeholder="请选择起草单位">
<el-option v-for="item in qcdwOption" :value="item.value" :key="item.value" :label="item.label" multiple filterable></el-option>
</el-select>
</el-form-item>
<!--<el-form-item v-show="form.standInData === '0'" label="体系类别" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.txlb" placeholder="请选择体系类别" multiple>
<el-option
v-for="item in txlbOptions"
placeholder="请选择"
:key="item.value"
:value="item.value"
:label="item.label"
></el-option>
</el-select>
</el-form-item>-->
</el-col>
<el-col :span="12">
<!--适用产品线-->
@@ -2247,7 +2230,7 @@ export default {
this.form = JSON.parse(JSON.stringify(json))
this.getListTree(bringData)
this.form.standId = bringData.id
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw : ''
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw.split(',') : ''
this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr : ''
this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs : ''
this.form.zrbm = JSON.parse(JSON.stringify(json)).zrbm && JSON.parse(JSON.stringify(json)).zrbm !== '[]' ? JSON.parse(JSON.stringify(json)).zrbm : ''
@@ -2255,6 +2238,7 @@ export default {
this.form.sycpx = JSON.parse(JSON.stringify(json)).sycpx && JSON.parse(JSON.stringify(json)).sycpx !== '[]' ? JSON.parse(JSON.stringify(json)).sycpx : ''
this.form.nylx = JSON.parse(JSON.stringify(json)).nylx && JSON.parse(JSON.stringify(json)).nylx !== '[]' ? JSON.parse(JSON.stringify(json)).nylx : ''
this.form.cllx = JSON.parse(JSON.stringify(json)).cllx && JSON.parse(JSON.stringify(json)).cllx !== '[]' ? JSON.parse(JSON.stringify(json)).cllx : ''
this.form.bfbdtbzh = JSON.parse(JSON.stringify(json)).bfdtbz && JSON.parse(JSON.stringify(json)).bfdtbz !== '[]' ? JSON.parse(JSON.stringify(json)).bfdtbz : ''
this.defaultCheckedKeys = [this.form.standSystem];
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
@@ -39,6 +39,7 @@
<el-date-picker
v-model="form.endTime"
type="date"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions"
placeholder="请选择结束日期">
</el-date-picker>
@@ -40,6 +40,7 @@
v-model="form.endTime"
:picker-options="pickerOptions"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择结束日期">
</el-date-picker>
</el-form-item>
@@ -814,6 +815,7 @@ export default {
_formData.append('json', JSON.stringify({
form: this.form,
roleForm: this.roleForm,
filesId: this.addFjList,
commentText1: this.commentText1
}))
saveTaskFirst(_formData).then(res => {
@@ -37,6 +37,7 @@
disabled
v-model="form.endTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择结束日期">
</el-date-picker>
</el-form-item>
@@ -35,6 +35,7 @@
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
<el-date-picker
disabled
value-format="yyyy-MM-dd"
v-model="form.endTime"
type="date"
placeholder="请选择结束日期">
@@ -34,6 +34,7 @@
</el-form-item>
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
<el-date-picker
value-format="yyyy-MM-dd"
disabled
v-model="form.endTime"
type="date"
@@ -37,6 +37,7 @@
disabled
v-model="form.endTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择结束日期">
</el-date-picker>
</el-form-item>
@@ -35,6 +35,7 @@
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
<el-date-picker
disabled
value-format="yyyy-MM-dd"
v-model="form.endTime"
type="date"
placeholder="请选择结束日期">
@@ -349,6 +349,7 @@
name: "bzzqyjStep5",
data() {
return {
clickFlag: false,
commentText5: '',
options: [],
itemId: '',
@@ -460,35 +461,47 @@
this.modalshowflag2 = false
},
itemEdit (row, index) {
this.itemId = row.id
this.modalshowflag2 = true
this.editForm = {
chapterNumber: row.chapterNumber,
chapterName: row.chapterName,
oldText: row.oldText,
newText: row.newText,
reason: row.reason,
cause: row.cause,
department: row.department,
responUserName: row.responUserName,
responUser: row.responUser,
state: row.state,
source: row.source,
id: row.id,
if(this.clickFlag){
this.itemId = row.id
this.modalshowflag2 = true
this.editForm = {
chapterNumber: row.chapterNumber,
chapterName: row.chapterName,
oldText: row.oldText,
newText: row.newText,
reason: row.reason,
cause: row.cause,
department: row.department,
responUserName: row.responUserName,
responUser: row.responUser,
state: row.state,
source: row.source,
id: row.id,
}
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
if(this.clickFlag){
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
if(this.clickFlag){
this.drawerModal = true
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
checkedRole (data) {
changeAssigneeNew({
@@ -539,42 +552,49 @@
},
//保存事件
handleSave() {
this.saveLoading = true;
let _formData = new FormData();
let json = this.form;
json.data = this.data;
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "3");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: json,
commentText5: this.commentText5
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
if(this.clickFlag){
this.saveLoading = true;
let _formData = new FormData();
let json = this.form;
json.data = this.data;
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "3");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: json,
commentText5: this.commentText5
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
handleSubmit() {
let a = 0
for (let b = 0; b < this.data.length;b++) {
if (this.data[b].state === '3' && !this.data[b].cause) {
a++
let a = 0
for (let b = 0; b < this.data.length;b++) {
if (this.data[b].state === '3' && !this.data[b].cause) {
a++
}
if(!this.data[b].sourceType){
this.data[b].sourceType = '定向'
}
}
}
if (a > 0) {
this.$message.warning('请输入不上报原因')
return;
}
this.isSubmit = true;
if (a > 0) {
this.$message.warning('请输入不上报原因')
return;
}
this.isSubmit = true;
var json = this.json;
json.oldinfo = this.oldData;
json.commentText = this.commentText5;
json.introduce = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
@@ -586,6 +606,41 @@
this.isSubmit = false;
});
},
// handleSubmit() {
// if(this.clickFlag){
// let a = 0
// for (let b = 0; b < this.data.length;b++) {
// if (this.data[b].state === '3' && !this.data[b].cause) {
// a++
// }
// if(!this.data[b].sourceType){
// this.data[b].sourceType = '定向'
// }
// }
// if (a > 0) {
// this.$message.warning('请输入不上报原因')
// return;
// }
// this.isSubmit = true;
// var json = this.json;
// json.oldinfo = this.oldData;
// json.commentText = this.commentText5;
// json.introduce = true;
// this.$http.post("lawss/activiti/completeTask", {
// json: JSON.stringify(json),
// taskId: this.taskIds,
// userId: this.$store.getters.userInfo.userId
// }, {}, res => {
// if (res.success) {
// this.$message.success("提交成功");
// this.$router.push("/processCenter");
// }
// this.isSubmit = false;
// });
// }else{
// this.$message.warning('公开征求意见未结束,无法操作')
// }
// },
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
@@ -613,6 +668,15 @@
this.json = data;
this.getItemList(data.standId,this.form.textValue)
this.data = newArr
this.$http.get('slrs/sar-public-idea-all/checkIsShow', {
endTime: this.form.endTime
}, {}, res => {
if (res.message === '1') {
this.clickFlag = false
} else {
this.clickFlag = true
}
})
if (data.introduce) {
} else {
this.$http.get("slrs/sar-public-idea-all/getPublicIdea", {
@@ -624,6 +688,7 @@
item.responUser = item.userId
item.state = '1'
item.source = '2'
item.sourceType = '公开'
this.data.push(item);
});
});
@@ -261,22 +261,28 @@ export default {
if (item.passInfo !== 0) {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList
this.textarea = JSON.parse(JSON.stringify(item)).textarea
}
}
this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList
this.textarea = JSON.parse(JSON.stringify(item)).textarea
/* 注释掉的代码 是因为后端已经分配过数据 前端不需要再做处理*/
// for (let i = 0; i<fileData.length; i++) {
// if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
// this.dataList = fileData[0].standardInfoList
// this.standardInfoList = this.dataList
// this.textarea = JSON.parse(JSON.stringify(item)).textarea
// }
// }
} else {
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[i].standardInfoList
this.standardInfoList = this.dataList
// this.textarea = JSON.parse(JSON.stringify(item)).commentText
}
}
this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList
// for (let i = 0; i<fileData.length; i++) {
// if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
// this.dataList = fileData[0].standardInfoList
// this.standardInfoList = this.dataList
// // this.textarea = JSON.parse(JSON.stringify(item)).commentText
// }
// }
}
})
},
@@ -1413,6 +1413,15 @@ export default {
this.commentText = mes.commentText;
});
}
if (this.$route.query.row) {
let data = this.$route.query.row
this.qdform.projectId = data.id
this.qdform.projectName = data.projectName
this.qdform.projectNumber = data.projectNumber
this.qdform.detailedListName = data.projectGroup
this.qdform.endTime = data.projectEndDate
this.getStandData(this.qdform.projectId)
}
// 查询各下拉框数据
this.$http.get("sys/dictype/getDicTypeListCode", "", {
_this: this,
@@ -503,16 +503,16 @@
<el-form-item :label="standLabelNum" class="add-form-item">
<el-input
v-if="sarAccessInfo.dataSource === 'FOREIGN_STAND' || sarAccessInfo.dataSource === 'INLAND_STAND'"
v-model="sarAccessInfo.standNumber"
placeholder="请输入标准号"/>
v-model="sarAccessInfo.seniorStandNumber"
:placeholder="'请输入' + standLabelNum"/>
<el-input
v-if="sarAccessInfo.dataSource === 'FOREIGN_LAWS'"
v-model="sarAccessInfo.lawsNumber"
placeholder="请输入政策编号"/>
v-model="sarAccessInfo.seniorLawsNumber"
:placeholder="'请输入' + standLabelNum"/>
<el-input
v-else-if="sarAccessInfo.dataSource === 'BUSINESS'"
v-model="sarAccessInfo.standCode"
placeholder="请输入标准号"/>
v-model="sarAccessInfo.seniorStandCode"
:placeholder="'请输入' + standLabelNum"/>
</el-form-item>
<el-form-item v-if="sarAccessInfo.dataSource === 'BUSINESS'" label="文本状态" class="add-form-item">
@@ -569,7 +569,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="standLabelName" class="add-form-item">
<el-input v-model="sarAccessInfo.standName" placeholder="请输入标准名称"></el-input>
<el-input v-model="sarAccessInfo.standName" :placeholder="'请输入' + standLabelName"></el-input>
</el-form-item>
<el-form-item label="是否纳入认证清单" class="add-form-item">
<el-select v-model="sarAccessInfo.isRelateAccess" clearable placeholder="根据是否纳入标准清单查找">
@@ -845,9 +845,14 @@ export default {
id: '',
standName: '',
standNumber: '',
lawsNumber: '',
standCode: '', // 政策编号
textStatus: '',
seniorStandNumber: '',
seniorLawsNumber: '',
seniorStandCode: '',
textStatusBuss: '',
CLLX: '',
SYRZ: '',
@@ -1032,7 +1037,7 @@ export default {
}*/
this.sarAccessInfo = formData
this.showQueryMore = false
this.selectLawsStands()
this.selectLawsStands(1)
},
// 删除上传的文件
@@ -1212,8 +1217,8 @@ export default {
this.$refs.searchTable.clearSelection()
this.$message.warning('请勿添加重复数据')
} else {
this.sarAccessInfoLists.push(item)
this.sarAccessInfoLists.forEach(item => {
this.sarAccessInfoList.push(item)
this.sarAccessInfoList.forEach(item => {
if (item.lawsNumber) {
item.standNumber = item.lawsNumber
}
@@ -1254,7 +1259,7 @@ export default {
// this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection()
this.sarAccessInfoLists.forEach(item => {
this.sarAccessInfoList.forEach(item => {
if (item.nylx === '[]') {
item.nylx = ''
}
@@ -1268,7 +1273,7 @@ export default {
item.sycpx = ''
}
})
this.sarAccessInfoList = this.sarAccessInfoLists
// this.sarAccessInfoList = this.sarAccessInfoLists
}
})
} else {
@@ -1508,9 +1513,20 @@ export default {
}
})
},
pageInfo() {
pageInfo(type) {
if (this.sarAccessInfo.dataSource === 'INLAND_STAND' || this.sarAccessInfo.dataSource === 'FOREIGN_STAND') {
StandardsInfoPage((this.sarAccessInfo)).then(res => {
if (type === 1) {
delete this.sarAccessInfo.standNumber
delete this.sarAccessInfo.lawsNumber
delete this.sarAccessInfo.standCode
}
console.log('this.sarAccessInfo===' , this.sarAccessInfo)
StandardsInfoPage(type === 1 ? ({...this.sarAccessInfo, standNumber: this.sarAccessInfo.seniorStandNumber, lawsNumber: this.sarAccessInfo.seniorLawsNumber, standCode: this.sarAccessInfo.seniorStandCode}) : (this.sarAccessInfo)).then(res => {
// if (type === 1) {
// this.sarAccessInfo.standNumber = ''
// this.sarAccessInfo.lawsNumber = ''
// this.sarAccessInfo.standCode = ''
// }
this.sarAccessInfoSearchList = res.data.list
this.sarAccessInfoSearchList.forEach(item => {
if (item.standYear === null) {
@@ -1544,20 +1560,20 @@ export default {
})
}
},
// 查询数据搜索 table 数据
selectLawsStands() {
// 查询数据搜索 table 数据 type === 1为高级搜索
selectLawsStands(type) {
if (this.sarAccessInfo.dataSource === 'INLAND_STAND') {
this.sarAccessInfo.standType = 'INLAND'
this.pageInfo()
this.pageInfo(type)
} else if (this.sarAccessInfo.dataSource === 'FOREIGN_STAND') {
this.sarAccessInfo.standType = 'FOREIGN'
this.pageInfo()
this.pageInfo(type)
} else if (this.sarAccessInfo.dataSource === 'FOREIGN_LAWS') {
this.sarAccessInfo.standType = 'LAWS'
this.pageInfo()
this.pageInfo(type)
} else if (this.sarAccessInfo.dataSource === 'BUSINESS') {
this.sarAccessInfo.standType = 'BUSINESS'
this.pageInfo()
this.pageInfo(type)
}
},
@@ -1341,7 +1341,7 @@ export default {
handleProcess(row) {
// 项目清单确认流程
this.$router.push({
name: 'xmqdqrStep1-4',
name: 'xmqdqrStep1',
query: {
row
}
@@ -79,7 +79,7 @@
</div>
</transition>
<div class="effect">
<el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')" v-btn-permission="'bb5501f4461476b330cbbc3c6f22780a'">
<el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')" v-btn-permission="''">
添加
</el-button>
<el-button type="primary" class="common-button-primary" size="mini" @click="exportAll" v-btn-permission="'5af38c3aaad325741045c4db44e6850e'">导出</el-button>