修改bug 52181 标准法规清单--在高级查询内的标准号输入信息,目前外侧的标准号也会自动同步信息

This commit is contained in:
zhangyichen
2022-03-28 15:33:19 +08:00
parent aefa691bca
commit 922ffeb0c1
@@ -503,16 +503,16 @@
<el-form-item :label="standLabelNum" class="add-form-item"> <el-form-item :label="standLabelNum" class="add-form-item">
<el-input <el-input
v-if="sarAccessInfo.dataSource === 'FOREIGN_STAND' || sarAccessInfo.dataSource === 'INLAND_STAND'" v-if="sarAccessInfo.dataSource === 'FOREIGN_STAND' || sarAccessInfo.dataSource === 'INLAND_STAND'"
v-model="sarAccessInfo.standNumber" v-model="sarAccessInfo.seniorStandNumber"
placeholder="请输入标准号"/> :placeholder="'请输入' + standLabelNum"/>
<el-input <el-input
v-if="sarAccessInfo.dataSource === 'FOREIGN_LAWS'" v-if="sarAccessInfo.dataSource === 'FOREIGN_LAWS'"
v-model="sarAccessInfo.lawsNumber" v-model="sarAccessInfo.seniorLawsNumber"
placeholder="请输入政策编号"/> :placeholder="'请输入' + standLabelNum"/>
<el-input <el-input
v-else-if="sarAccessInfo.dataSource === 'BUSINESS'" v-else-if="sarAccessInfo.dataSource === 'BUSINESS'"
v-model="sarAccessInfo.standCode" v-model="sarAccessInfo.seniorStandCode"
placeholder="请输入标准号"/> :placeholder="'请输入' + standLabelNum"/>
</el-form-item> </el-form-item>
<el-form-item v-if="sarAccessInfo.dataSource === 'BUSINESS'" label="文本状态" class="add-form-item"> <el-form-item v-if="sarAccessInfo.dataSource === 'BUSINESS'" label="文本状态" class="add-form-item">
@@ -845,9 +845,14 @@ export default {
id: '', id: '',
standName: '', standName: '',
standNumber: '', standNumber: '',
lawsNumber: '',
standCode: '', // 政策编号 standCode: '', // 政策编号
textStatus: '', textStatus: '',
seniorStandNumber: '',
seniorLawsNumber: '',
seniorStandCode: '',
textStatusBuss: '', textStatusBuss: '',
CLLX: '', CLLX: '',
SYRZ: '', SYRZ: '',
@@ -1032,7 +1037,7 @@ export default {
}*/ }*/
this.sarAccessInfo = formData this.sarAccessInfo = formData
this.showQueryMore = false this.showQueryMore = false
this.selectLawsStands() this.selectLawsStands(1)
}, },
// 删除上传的文件 // 删除上传的文件
@@ -1508,9 +1513,20 @@ export default {
} }
}) })
}, },
pageInfo() { pageInfo(type) {
if (this.sarAccessInfo.dataSource === 'INLAND_STAND' || this.sarAccessInfo.dataSource === 'FOREIGN_STAND') { 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 = res.data.list
this.sarAccessInfoSearchList.forEach(item => { this.sarAccessInfoSearchList.forEach(item => {
if (item.standYear === null) { if (item.standYear === null) {
@@ -1544,20 +1560,20 @@ export default {
}) })
} }
}, },
// 查询数据搜索 table 数据 // 查询数据搜索 table 数据 type === 1为高级搜索
selectLawsStands() { selectLawsStands(type) {
if (this.sarAccessInfo.dataSource === 'INLAND_STAND') { if (this.sarAccessInfo.dataSource === 'INLAND_STAND') {
this.sarAccessInfo.standType = 'INLAND' this.sarAccessInfo.standType = 'INLAND'
this.pageInfo() this.pageInfo(type)
} else if (this.sarAccessInfo.dataSource === 'FOREIGN_STAND') { } else if (this.sarAccessInfo.dataSource === 'FOREIGN_STAND') {
this.sarAccessInfo.standType = 'FOREIGN' this.sarAccessInfo.standType = 'FOREIGN'
this.pageInfo() this.pageInfo(type)
} else if (this.sarAccessInfo.dataSource === 'FOREIGN_LAWS') { } else if (this.sarAccessInfo.dataSource === 'FOREIGN_LAWS') {
this.sarAccessInfo.standType = 'LAWS' this.sarAccessInfo.standType = 'LAWS'
this.pageInfo() this.pageInfo(type)
} else if (this.sarAccessInfo.dataSource === 'BUSINESS') { } else if (this.sarAccessInfo.dataSource === 'BUSINESS') {
this.sarAccessInfo.standType = 'BUSINESS' this.sarAccessInfo.standType = 'BUSINESS'
this.pageInfo() this.pageInfo(type)
} }
}, },