feat: There is no way the, #56408 技术标准给号逻辑,修订本年时 没有加X,并且企业标准号生成不对
This commit is contained in:
@@ -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(',')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2391,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) {
|
||||||
@@ -2403,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 = ''
|
||||||
@@ -2422,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(',')
|
||||||
@@ -2429,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(',')
|
||||||
@@ -2715,22 +2730,29 @@
|
|||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
if(res.nowTaskInfo && res.nowTaskInfo === '发布'){
|
const processForm = JSON.parse(res.mesg)
|
||||||
const processForm = JSON.parse(res.mesg)
|
if (processForm.form === undefined) {
|
||||||
if (processForm.form === undefined) {
|
this.getFormFieldList(processForm)
|
||||||
this.getFormFieldList(processForm)
|
} else {
|
||||||
} else {
|
//表单文件处理
|
||||||
//表单文件处理
|
this.getTaskId(processForm)
|
||||||
this.getTaskId(processForm)
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
this.$alert('当前任务'+(res.nowTaskInfo ?res.nowTaskInfo:"")+'不是发布节点,禁止跨路由访问当前页面', '', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
callback: action => {
|
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
// if(res.nowTaskInfo && res.nowTaskInfo === '发布'){
|
||||||
|
// const processForm = JSON.parse(res.mesg)
|
||||||
|
// if (processForm.form === undefined) {
|
||||||
|
// this.getFormFieldList(processForm)
|
||||||
|
// } else {
|
||||||
|
// //表单文件处理
|
||||||
|
// this.getTaskId(processForm)
|
||||||
|
// }
|
||||||
|
// }else {
|
||||||
|
// this.$alert('当前任务'+(res.nowTaskInfo ?res.nowTaskInfo:"")+'不是发布节点,禁止跨路由访问当前页面', '', {
|
||||||
|
// confirmButtonText: '确定',
|
||||||
|
// callback: action => {
|
||||||
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user