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

This commit is contained in:
yuezhihang
2022-07-12 10:37:08 +08:00
11 changed files with 327 additions and 105 deletions
@@ -24,11 +24,21 @@
<div class="prc-content-border"> <div class="prc-content-border">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled"> <el-form-item v-show="form.standStatus === '1'" label="企标类别" prop="standSort" class="add-form-item form-item-disabled">
<el-select :disabled="disabledXX" v-model="form.standSort" filterable clearable> <el-select :disabled="disabledXX" v-model="form.standSort" filterable clearable placeholder="请选择企标类别">
<el-option
v-for="(item, index) in standSortOptions"
:key="index"
:value="item.value"
:label="item.label"
></el-option>
</el-select>
</el-form-item>
<el-form-item v-show="form.standStatus === '2' || form.standStatus === '3'" label="企标类别" prop="standSort" class="add-form-item form-item-disabled">
<el-select :disabled="disabledXX || planDisabled" v-model="form.standSort" filterable clearable
placeholder="请先选择企业标准带入企标类别">
<el-option <el-option
v-for="(item, index) in standSortOptions" v-for="(item, index) in standSortOptions"
placeholder="请选择企标类别"
:key="index" :key="index"
:value="item.value" :value="item.value"
:label="item.label" :label="item.label"
@@ -1061,6 +1071,7 @@
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel" :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"
@popoverHideCancel="popoverHideModelCancel()"></tree-select-module> @popoverHideCancel="popoverHideModelCancel()"></tree-select-module>
<loading :loading="ccc"></loading>
</div> </div>
</template> </template>
@@ -1113,6 +1124,8 @@
callback() callback()
}; };
return { return {
ccc:false,
planDisabled:true,
disabledXX:!!this.$route.query.disabledXX, disabledXX:!!this.$route.query.disabledXX,
opinionsStand:[ opinionsStand:[
{value: '1',label: '制定'}, {value: '1',label: '制定'},
@@ -1290,7 +1303,7 @@
selListRep2:[], selListRep2:[],
id:'', id:'',
standNum:'', standNum:'',
standStatus:'', // 标准状态 standStatus:'1', // 标准状态
planId:'', planId:'',
planStatus:'', planStatus:'',
reviseStatus:'', reviseStatus:'',
@@ -1644,6 +1657,7 @@
// }, e => { // }, e => {
// }) // })
} }
this.$forceUpdate()
}, },
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
@@ -1929,6 +1943,7 @@
}, },
getTaskId () { getTaskId () {
if(this.$route.query.bpnId){ if(this.$route.query.bpnId){
this.ccc = true
queryTaskFirst({ queryTaskFirst({
bpnId: this.$route.query.bpnId bpnId: this.$route.query.bpnId
}).then(res => { }).then(res => {
@@ -1951,6 +1966,7 @@
this.XGDFileList=this.assemble(this.form.XGD,this.form.XGDName); this.XGDFileList=this.assemble(this.form.XGD,this.form.XGDName);
this.roleForm = mes.roleForm this.roleForm = mes.roleForm
this.commentText = mes.commentText this.commentText = mes.commentText
this.ccc = false
}) })
}else { }else {
this.form.XCSJBUSS = this.dateFormatter() this.form.XCSJBUSS = this.dateFormatter()
@@ -2078,8 +2094,6 @@
this.form.modelDataZrUserVerify=[] this.form.modelDataZrUserVerify=[]
this.form.QCDWID= '' this.form.QCDWID= ''
this.form.menuId = this.form['TXLBBUSSMenuId'] this.form.menuId = this.form['TXLBBUSSMenuId']
console.log(this.form)
console.log(this.form.menuId)
this.form.WJSCRYBUSS= this.$store.getters.userInfo.userId this.form.WJSCRYBUSS= this.$store.getters.userInfo.userId
this.form.WJSCRYBUSSName= this.$store.getters.userInfo.userName this.form.WJSCRYBUSSName= this.$store.getters.userInfo.userName
this.form['id'] = bringData.id this.form['id'] = bringData.id
@@ -2092,6 +2106,7 @@
this.XGDFileList=this.assemble(this.form.XGD,this.form.XGDName); this.XGDFileList=this.assemble(this.form.XGD,this.form.XGDName);
this.standardDrawer = false this.standardDrawer = false
this.verifySarStandard = true this.verifySarStandard = true
this.planDisabled = false
if(standStatus && standStatus === '2'){ if(standStatus && standStatus === '2'){
let date = new Date(); let date = new Date();
let year = date.getFullYear(); let year = date.getFullYear();
@@ -2106,7 +2121,6 @@
this.form.standStatus = "3" this.form.standStatus = "3"
this.getStandInfoByReviseStatus('dr') this.getStandInfoByReviseStatus('dr')
} }
console.log(this.form)
this.$forceUpdate() this.$forceUpdate()
} }
// 遍历对象初始化文件信息 // 遍历对象初始化文件信息
@@ -2942,10 +2956,6 @@
this.isSubmit = false this.isSubmit = false
this.saveLoading = false this.saveLoading = false
if((this.form.standStatus === '3' || this.form.standStatus === '2') && (this.standardCheckedList === undefined ||this.standardCheckedList.length === 0)) {
this.$message.warning("请选择一条企标标准")
return
}
// this.changeTree(this.form.modelData) // this.changeTree(this.form.modelData)
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
@@ -1959,7 +1959,6 @@
this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' +textArr.join(',') : textArr.join(',') this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' +textArr.join(',') : textArr.join(',')
}else if(this.replaceLawType === 'BDTQBBHBUSS'){ }else if(this.replaceLawType === 'BDTQBBHBUSS'){
this.form.BDTQBBHBUSS = this.filterSetData(textArr.join(',')) this.form.BDTQBBHBUSS = this.filterSetData(textArr.join(','))
this.form.standNum = this.filterSetData(textArr2.join(','))
}else { }else {
this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',') this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',')
} }
@@ -2530,6 +2529,8 @@
} }
}) })
}}) }})
}else{
this.$message.warning('请检查基础信息表单是否填写完整')
} }
}) })
}, },
@@ -1106,6 +1106,7 @@
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys4" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys4"
:nodeKey="nodeKeyModel" @popoverHide="popoverCarHideModel" :nodeKey="nodeKeyModel" @popoverHide="popoverCarHideModel"
@popoverHideCancel="popoverCarHideModelCancel()"></tree-select-module> @popoverHideCancel="popoverCarHideModelCancel()"></tree-select-module>
<loading :loading="ccc"></loading>
</div> </div>
</template> </template>
@@ -1214,6 +1215,7 @@
} }
}] }]
}, },
ccc:false,
disabledXX:!!this.$route.query.disabledXX, disabledXX:!!this.$route.query.disabledXX,
bpnId: this.$route.query.bpnId, bpnId: this.$route.query.bpnId,
fileList: [], fileList: [],
@@ -1858,6 +1860,7 @@
}, },
getTaskId () { getTaskId () {
if(this.$route.query.bpnId){ if(this.$route.query.bpnId){
this.ccc = true
queryTaskFirst({ queryTaskFirst({
bpnId: this.$route.query.bpnId bpnId: this.$route.query.bpnId
}).then(res => { }).then(res => {
@@ -1873,6 +1876,7 @@
this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName); this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
this.roleForm = mes.roleForm this.roleForm = mes.roleForm
this.commentText = mes.commentText this.commentText = mes.commentText
this.ccc = false
}) })
}else { }else {
this.form.XCSJBUSS = this.dateFormatter() this.form.XCSJBUSS = this.dateFormatter()
@@ -2387,6 +2391,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -2399,11 +2404,16 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
@@ -2418,6 +2428,8 @@
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
@@ -2425,6 +2437,7 @@
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1) this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.CYBZ = this.filterSetData(arr1) this.form.CYBZ = this.filterSetData(arr1)
@@ -1897,6 +1897,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -1909,11 +1910,16 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
@@ -1928,13 +1934,22 @@
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') if(this.form.reviseStatus === '1'){
this.form.DTQBBHBUSS = this.filterSetData(arr1) let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}else if(this.form.reviseStatus === '2'){
let arr1 = textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.CYBZ = this.filterSetData(arr1) this.form.CYBZ = this.filterSetData(arr1)
@@ -1945,6 +1945,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -1957,11 +1958,16 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
@@ -1976,13 +1982,22 @@
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') if(this.form.reviseStatus === '1'){
this.form.DTQBBHBUSS = this.filterSetData(arr1) let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
}else if(this.form.reviseStatus === '2'){
let arr1 = textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
this.getStandInfoByReviseStatus()
}
// this.getStandInfoByReviseStatus() // this.getStandInfoByReviseStatus()
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
@@ -2558,7 +2573,10 @@
this.$message.success(res.message) this.$message.success(res.message)
} }
}) })
}}) }else{
this.$message.warning('请检查基础信息表单是否填写完整')
}
})
} }
}) })
}, },
@@ -1963,6 +1963,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -1975,11 +1976,16 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
@@ -1994,13 +2000,22 @@
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') if(this.form.reviseStatus === '1'){
this.form.DTQBBHBUSS = this.filterSetData(arr1) let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}else if(this.form.reviseStatus === '2'){
let arr1 = textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.CYBZ = this.filterSetData(arr1) this.form.CYBZ = this.filterSetData(arr1)
@@ -2300,6 +2300,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -2312,11 +2313,16 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
@@ -2331,13 +2337,22 @@
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') if(this.form.reviseStatus === '1'){
this.form.DTQBBHBUSS = this.filterSetData(arr1) let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}else if(this.form.reviseStatus === '2'){
let arr1 = textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.CYBZ = this.filterSetData(arr1) this.form.CYBZ = this.filterSetData(arr1)
@@ -2175,6 +2175,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -2187,31 +2188,52 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
if (item.standYear != null && item.standYear !== '') { if(item.standCode !== null && item.standCode !== ''){
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear texts = item.standCode
} else { }else {
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber if (item.standYear != null && item.standYear !== '') {
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
} else {
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
}
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
this.form.DTQBBHBUSS = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') if(this.form.reviseStatus === '1'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}else if(this.form.reviseStatus === '2'){
let arr1 = textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
this.form.CYBZ = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.CYBZ = this.filterSetData(arr1)
}else if(this.replaceLawType === 'YYBZ'){ }else if(this.replaceLawType === 'YYBZ'){
this.form.YYBZ = this.form.YYBZ ? this.form.YYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.YYBZ ? this.form.YYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.YYBZ = this.filterSetData(arr1)
}else if(this.replaceLawType === 'bfbdtbzh'){ }else if(this.replaceLawType === 'bfbdtbzh'){
this.form.bfbdtbzh = this.form.bfbdtbzh ? this.form.bfbdtbzh + ',' +textArr.join(',') : textArr.join(',') this.form.bfbdtbzh = this.form.bfbdtbzh ? this.form.bfbdtbzh + ',' +textArr.join(',') : textArr.join(',')
}else { }else {
@@ -2220,6 +2242,14 @@
// this.$emit('input', textArr.join(',')) // this.$emit('input', textArr.join(','))
this.$refs.selections.clearSelection() this.$refs.selections.clearSelection()
}, },
filterSetData(data){
const arr=new Set()
let permission = data.split(",");
permission.forEach((item, index) => {
arr.add(item)
})
return Array.from(arr).join(',');
},
// 点击查看 // 点击查看
handlePreview (item) { handlePreview (item) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
@@ -1951,6 +1951,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -1963,11 +1964,16 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
@@ -1982,13 +1988,22 @@
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') if(this.form.reviseStatus === '1'){
this.form.DTQBBHBUSS = this.filterSetData(arr1) let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}else if(this.form.reviseStatus === '2'){
let arr1 = textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.CYBZ = this.filterSetData(arr1) this.form.CYBZ = this.filterSetData(arr1)
@@ -2298,6 +2298,7 @@
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt () { replaceLawsNumModelBt () {
let textArr = [] let textArr = []
let textArr2 = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
@@ -2310,11 +2311,16 @@
type: 'warning' type: 'warning'
}) })
} }
if (this.selectedListRep.length + textArr.length > 20) { if ( this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
return this.$message({ return this.$message({
message: '标准最多选择20项', message: '标准最多选择20项',
type: 'warning' type: 'warning'
}) })
}else if(this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1){
return this.$message({
message: '标准最多选择1项',
type: 'warning'
})
} }
this.selectedListRep.map((item) => { this.selectedListRep.map((item) => {
let texts = '' let texts = ''
@@ -2329,13 +2335,22 @@
} }
textArr.push(texts) textArr.push(texts)
textArr = [...new Set(textArr)] textArr = [...new Set(textArr)]
textArr2.push(item.standNumber)
textArr2 = [...new Set(textArr2)]
this.replaceLawsNumModel = false this.replaceLawsNumModel = false
}) })
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
if(this.replaceLawType === 'DTQBBHBUSS'){ if(this.replaceLawType === 'DTQBBHBUSS'){
let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',') if(this.form.reviseStatus === '1'){
this.form.DTQBBHBUSS = this.filterSetData(arr1) let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}else if(this.form.reviseStatus === '2'){
let arr1 = textArr.join(',')
this.form.DTQBBHBUSS = this.filterSetData(arr1)
this.form.standNum = this.filterSetData(textArr2.join(','))
}
}else if(this.replaceLawType === 'CYBZ'){ }else if(this.replaceLawType === 'CYBZ'){
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',') let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' +textArr.join(',') : textArr.join(',')
this.form.CYBZ = this.filterSetData(arr1) this.form.CYBZ = this.filterSetData(arr1)
@@ -209,11 +209,11 @@ export default {
let prcType = this.detailData[index].prcType // 流程类型 let prcType = this.detailData[index].prcType // 流程类型
console.log(prcType); console.log(prcType);
// 判断当前流程是否已全部办理完成 // 判断当前流程是否已全部办理完成
// this.detailData.map(item => { this.detailData.map(item => {
// if (!item.endTime) { if (!item.endTime) {
// isEnd = false isEnd = false
// } }
// }) })
if (isEnd) { if (isEnd) {
if (this.$store.state.detailMap !== '') { if (this.$store.state.detailMap !== '') {
let lastDetailMap = this.$store.getters.getLastDetailMap let lastDetailMap = this.$store.getters.getLastDetailMap
@@ -225,86 +225,161 @@ export default {
this.setHandleInfo((JSON.stringify(row))) this.setHandleInfo((JSON.stringify(row)))
this.setPrcLastDetail((JSON.stringify(row))) this.setPrcLastDetail((JSON.stringify(row)))
// 根据type判断跳转具体流程页面 // 根据type判断跳转具体流程页面
// 根据type判断跳转具体流程页面
if (prcType === '1') { if (prcType === '1') {
// 标准入库流程数据 // 标准入库流程数据
this.toProcessDetail('bzrkStep1',row) this.toProcessDetail('bzrkStep5',row)
}else if(prcType === 'laws1'){ }else if(prcType === 'laws1'){
//政策入库 //政策入库
this.toProcessDetail('zcrkStep1',row) this.toProcessDetail('zcrkStep5',row)
}else if(prcType === 'laws2'){ }else if(prcType === 'laws2'){
//政策征求意见流程 //政策入库
this.toProcessDetail('zczqyjStep1',row) this.toProcessDetail('zczqyjStep9Detil',row)
}else if(prcType === 'buss1'){ }else if(prcType === 'buss1'){
//企标入库 //企标入库
this.toProcessDetail('bussLibraryDetail',row) this.toProcessDetail('bussLibrary1',row)
}else if(prcType === 'buss2'){ }else if(prcType === 'buss2'){
//企标入库 //企标入库
this.toProcessDetail('bussLibraryProductDetail',row) this.toProcessDetail('bussLibraryProduct1',row)
}else if(prcType === 'buss3'){ }else if(prcType === 'buss3'){
//企标复审
this.toProcessDetail('qbfsStep1',row)
}else if(prcType === '4'){
//标准清单发布流程数据
this.toProcessDetail('bzqdfbStep1',row)
}else if (prcType === '5'){
//标准项目合规评估
this.toProcessDetail('bzpgStep1',row)
}else if(prcType === '6'){
//标准项目合规评估 项目维度
this.toProcessDetail('xmpg2Step1',row)
} else if (prcType === '8') {
// 未符合项整改
this.toProcessDetail('wfhxzgStep1',row)
} else if(prcType === '9'){
this.toProcessDetail('bzjdStep1',row)
//标准调研流程
}else if(prcType === '2'){
this.toProcessDetail('bzdyStep1',row)
}else if(prcType === '3'){
//标准征求意见
this.toProcessDetail('bzzqyjStep1',row)
}else if(prcType === '10'){
//项目清单确认
this.toProcessDetail('xmqdqrStep1',row, 'unShowReceipt')
}else if(prcType === '14'){
//加入标准化协会信息备案流程
this.toProcessDetail('cywbbzzxdStep1',row,)
}else if(prcType === '15'){
//加入标准化协会信息备案流程
this.toProcessDetail('jrbzhxhStep1',row,)
} else if(prcType === '16'){
//外部署名
this.toProcessDetail('wbsmStep1',row)
}else if(prcType === '20') {
// 入会流程
this.toProcessDetail('bzrhStep1',row)
} else if(prcType === '21') {
// 参会流程
this.toProcessDetail('bzchStep1',row)
} else if(prcType === '23'){
//企标复审 //企标复审
this.toProcessDetail('qbfsStep1',row) this.toProcessDetail('qbfsStep1',row)
}else if(prcType === '4'){
//标准清单发布流程数据
this.toProcessDetail('bzqdfbStep1-4',row)
}else if (prcType === '5'){
//标准项目合规评估
this.toProcessDetail('bzpgStep8-1',row)
}else if(prcType === '6'){
//标准项目合规评估 项目维度
this.toProcessDetail('xmpgStep1-5',row)
} else if (prcType === '8') {
// 未符合项整改
this.toProcessDetail('wfhxzgStep5-1',row)
} else if(prcType === '9'){
this.toProcessDetail('bzjdStep1-6',row)
//标准调研流程
}else if(prcType === '2'){
this.toProcessDetail('bzdyStep1-9',row)
}else if(prcType === '3'){
//标准征求意见
this.toProcessDetail('bzzqyjStep1-9',row)
}else if(prcType === '10'){
//项目清单确认
this.toProcessDetail('xmqdqrStep1-4',row, 'unShowReceipt')
} else if(prcType === '16'){
//外部署名
this.toProcessDetail('wbsmStep1-5',row)
}else if(prcType === '20') {
// 入会流程
this.toProcessDetail('bzrhStep6-1',row)
} else if(prcType === '21') {
// 参会流程
this.toProcessDetail('bzchStep6-1',row)
} else if(prcType === '23'){
//企标复审
this.toProcessDetail('qbfsStep1-4',row)
}else if(prcType === '24'){ }else if(prcType === '24'){
//企标废止 //企标废止
this.toProcessDetail('qbfzStep1',row) this.toProcessDetail('qbfzStep1-7',row)
}else if(prcType === '25'){ }else if(prcType === '25'){
//企标制修订计划管控 //企标制修订计划管控
this.toProcessDetail('qbzxdjhgkStep1',row) this.toProcessDetail('qbzxdjhgkStep1-5',row)
}else if(prcType === '26'){ }else if(prcType === '26'){
//企标制修订计划立项 //企标制修订计划立项
this.toProcessDetail('qbzxdlxStep1',row) this.toProcessDetail('qbzxdlxStep1-2',row)
}else if(prcType === '17'){
//政策课题入会发起流程
this.toProcessDetail('zcrhStep1',row)
}else if(prcType === '18'){
//政策课题参会发起流程
this.toProcessDetail('zcchStep1',row)
}else if(prcType === '12'){
//政策课题参会发起流程
this.toProcessDetail('zdrzbzORzchgxxmscStep1',row)
} }
// if (prcType === '1') {
// // 标准入库流程数据
// this.toProcessDetail('bzrkStep1',row)
// }else if(prcType === 'laws1'){
// //政策入库
// this.toProcessDetail('zcrkStep1',row)
// }else if(prcType === 'laws2'){
// //政策征求意见流程
// this.toProcessDetail('zczqyjStep1',row)
// }else if(prcType === 'buss1'){
// //企标入库
// this.toProcessDetail('bussLibraryDetail',row)
// }else if(prcType === 'buss2'){
// //企标入库
// this.toProcessDetail('bussLibraryProductDetail',row)
// }else if(prcType === 'buss3'){
// //企标复审
// this.toProcessDetail('qbfsStep1',row)
// }else if(prcType === '4'){
// //标准清单发布流程数据
// this.toProcessDetail('bzqdfbStep1',row)
// }else if (prcType === '5'){
// //标准项目合规评估
// this.toProcessDetail('bzpgStep1',row)
// }else if(prcType === '6'){
// //标准项目合规评估 项目维度
// this.toProcessDetail('xmpg2Step1',row)
// } else if (prcType === '8') {
// // 未符合项整改
// this.toProcessDetail('wfhxzgStep1',row)
// } else if(prcType === '9'){
// this.toProcessDetail('bzjdStep1',row)
// //标准调研流程
// }else if(prcType === '2'){
// this.toProcessDetail('bzdyStep1',row)
// }else if(prcType === '3'){
// //标准征求意见
// this.toProcessDetail('bzzqyjStep1',row)
// }else if(prcType === '10'){
// //项目清单确认
// this.toProcessDetail('xmqdqrStep1',row, 'unShowReceipt')
// }else if(prcType === '14'){
// //加入标准化协会信息备案流程
// this.toProcessDetail('cywbbzzxdStep1',row,)
// }else if(prcType === '15'){
// //加入标准化协会信息备案流程
// this.toProcessDetail('jrbzhxhStep1',row,)
// } else if(prcType === '16'){
// //外部署名
// this.toProcessDetail('wbsmStep1',row)
// }else if(prcType === '20') {
// // 入会流程
// this.toProcessDetail('bzrhStep1',row)
// } else if(prcType === '21') {
// // 参会流程
// this.toProcessDetail('bzchStep1',row)
// } else if(prcType === '23'){
// //企标复审
// this.toProcessDetail('qbfsStep1',row)
// }else if(prcType === '24'){
// //企标废止
// this.toProcessDetail('qbfzStep1',row)
// }else if(prcType === '25'){
// //企标制修订计划管控
// this.toProcessDetail('qbzxdjhgkStep1',row)
// }else if(prcType === '26'){
// //企标制修订计划立项
// this.toProcessDetail('qbzxdlxStep1',row)
// }else if(prcType === '17'){
// //政策课题入会发起流程
// this.toProcessDetail('zcrhStep1',row)
// }else if(prcType === '18'){
// //政策课题参会发起流程
// this.toProcessDetail('zcchStep1',row)
// }else if(prcType === '12'){
// //政策课题参会发起流程
// this.toProcessDetail('zdrzbzORzchgxxmscStep1',row)
// }
} else { } else {
this.$message.warning('当前流程未全部办理完成,无法查看') if(prcType === 'buss1'){
//企标入库
this.toProcessDetail('bussLibrary1',row)
}else if(prcType === 'buss2'){
//企标入库
this.toProcessDetail('bussLibraryProduct1',row)
}else if(prcType === 'buss3'){
//企标复审
this.toProcessDetail('qbfsStep1',row)
}else {
this.$message.warning('当前流程未全部办理完成,无法查看')
}
} }
}, },
toProcessDetail(componentName,row,unShowReceipt) { toProcessDetail(componentName,row,unShowReceipt) {