产品标准-修订时选择代替企标编号-发布稿带到历史版本
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
import axios from '@/common/axios'
|
||||||
|
|
||||||
|
// 根据企标编号查找文件
|
||||||
|
export function selectByIdAtt(id){
|
||||||
|
return axios._getData('/lawss/sarBussionessStand/selectByIdAtt', { id })
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1084,6 +1084,7 @@
|
|||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||||
import treeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
|
import treeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
|
||||||
|
import { selectByIdAtt } from "@/api/flow/index.js"
|
||||||
|
|
||||||
let Base64 = require('js-base64').Base64;
|
let Base64 = require('js-base64').Base64;
|
||||||
|
|
||||||
@@ -2568,6 +2569,48 @@
|
|||||||
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(',')
|
||||||
}
|
}
|
||||||
// this.$emit('input', textArr.join(','))
|
// this.$emit('input', textArr.join(','))
|
||||||
|
|
||||||
|
// 修订 时 手动查找代替企标编号 发布稿放到历史版本
|
||||||
|
if(this.replaceLawType === 'DTQBBHBUSS' && this.form.standStatus === '2' && this.selectedListRep.length){
|
||||||
|
let ids = this.selectedListRep.reduce((init,item,index,arr)=>{
|
||||||
|
let result
|
||||||
|
if(index === arr.length - 1){
|
||||||
|
result = init + item.id
|
||||||
|
}else{
|
||||||
|
result = init + item.id + ','
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
},'')
|
||||||
|
try{
|
||||||
|
selectByIdAtt(ids).then(res =>{
|
||||||
|
if (res && res.data && res.data.length && res.data[0].fbgbuss !== '') {
|
||||||
|
this.form.LSBBBUSSName = res.data.reduce((init,item,index,arr)=>{
|
||||||
|
if(index === 0){
|
||||||
|
init = item.fbgbussNmae
|
||||||
|
}else{
|
||||||
|
init = init + ',' + item.fbgbussNmae
|
||||||
|
}
|
||||||
|
return init
|
||||||
|
},'')
|
||||||
|
this.form.LSBBBUSS = res.data.reduce((init,item,index,arr)=>{
|
||||||
|
if(index === 0){
|
||||||
|
init = item.fbgbuss
|
||||||
|
}else{
|
||||||
|
init = init + ',' + item.fbgbuss
|
||||||
|
}
|
||||||
|
return init
|
||||||
|
},'')
|
||||||
|
}else if(res && res.data && res.data.length === 0){
|
||||||
|
this.form.LSBBBUSS = ''
|
||||||
|
this.form.LSBBBUSSName = ''
|
||||||
|
}
|
||||||
|
this.LSBBBUSSFileList = this.assemble(this.form.LSBBBUSS, this.form.LSBBBUSSName);
|
||||||
|
})
|
||||||
|
}catch(e){
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.$refs.selections.clearSelection()
|
this.$refs.selections.clearSelection()
|
||||||
},
|
},
|
||||||
filterSetData(data){
|
filterSetData(data){
|
||||||
|
|||||||
@@ -2765,7 +2765,7 @@
|
|||||||
},'')
|
},'')
|
||||||
// const id = this.selectedListRep[0].id
|
// const id = this.selectedListRep[0].id
|
||||||
this.selectByIdAtt(ids).then(res =>{
|
this.selectByIdAtt(ids).then(res =>{
|
||||||
if (res && res.data && res.data[0].fbgbuss !== '') {
|
if (res && res.data && res.data.length && res.data[0].fbgbuss !== '') {
|
||||||
this.form.LSBBBUSSName = res.data.reduce((init,item,index,arr)=>{
|
this.form.LSBBBUSSName = res.data.reduce((init,item,index,arr)=>{
|
||||||
if(index === 0){
|
if(index === 0){
|
||||||
init = item.fbgbussNmae
|
init = item.fbgbussNmae
|
||||||
@@ -2784,8 +2784,11 @@
|
|||||||
},'')
|
},'')
|
||||||
// this.form.LSBBBUSSName = res.data[0].fbgbussNmae
|
// this.form.LSBBBUSSName = res.data[0].fbgbussNmae
|
||||||
// this.form.LSBBBUSS = res.data[0].fbgbuss
|
// this.form.LSBBBUSS = res.data[0].fbgbuss
|
||||||
this.LSBBBUSSFileList = this.assemble(this.form.LSBBBUSS, this.form.LSBBBUSSName);
|
}else if(res && res.data && res.data.length === 0){
|
||||||
|
this.form.LSBBBUSS = ''
|
||||||
|
this.form.LSBBBUSSName = ''
|
||||||
}
|
}
|
||||||
|
this.LSBBBUSSFileList = this.assemble(this.form.LSBBBUSS, this.form.LSBBBUSSName);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user