This commit is contained in:
zhutianqi
2022-02-22 15:48:52 +08:00
parent 0ba9950160
commit 82d7a3aaef
14 changed files with 18 additions and 45 deletions
@@ -314,7 +314,6 @@ export default {
// 代替政策编号确定 // 代替政策编号确定
replaceLawsNumModelBt() { replaceLawsNumModelBt() {
let textArr = [] let textArr = []
if (typeof this.value === 'string') { if (typeof this.value === 'string') {
if (this.value) { if (this.value) {
textArr = this.value.split(',') textArr = this.value.split(',')
@@ -337,7 +336,8 @@ export default {
// 判断数据是国内外法规标准还是企业标准 // 判断数据是国内外法规标准还是企业标准
if (this.dataSource === 'BUSINESS') { if (this.dataSource === 'BUSINESS') {
if (item.standYear != null && item.standYear !== '') { if (item.standYear != null && item.standYear !== '') {
texts = item.standCode + '-' + item.standYear // texts = item.standCode + '-' + item.standYear
texts = item.standCode
} else { } else {
texts = item.standCode texts = item.standCode
} }
@@ -502,6 +502,15 @@
:title="child.tips || '-'" :title="child.tips || '-'"
> >
{{ !child.value || child.value === 'null' ? '-' : child.value }} {{ !child.value || child.value === 'null' ? '-' : child.value }}
</span>
<span
v-else-if="child.attrField === 'DTQBBHBUSS'"
class="modular-content-p-val"
:title="child.value || '-'"
>
<span v-if="child.value" @click="showReplaceStandInfo(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;"
class="span-line">{{ child.value }}</span>
<span v-else>-</span>
</span> </span>
<span <span
v-else-if="child.attrType !== 'FILE'" v-else-if="child.attrType !== 'FILE'"
@@ -3191,7 +3200,7 @@ export default {
}) })
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum')) location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
}) })
console.log(displayLocation);
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false this.loading = false
@@ -457,7 +457,7 @@
<span v-for="(item, index) in child.value.split(',')" :key="index"> <span v-for="(item, index) in child.value.split(',')" :key="index">
<a @click="processCenterClick(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;" <a @click="processCenterClick(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;"
class="span-line">{{ item }}</a> class="span-line">{{ item }}</a>
</span> </span>
</p> </p>
</template> </template>
<template <template
@@ -477,13 +477,14 @@
:title="child.tips || '-'" :title="child.tips || '-'"
> >
{{ !child.value || child.value === 'null' ? '-' : child.value }} {{ !child.value || child.value === 'null' ? '-' : child.value }}
</span> </span>
<span <span
v-else-if="child.attrType !== 'FILE'" v-else-if="child.attrType !== 'FILE'"
class="modular-content-p-val" class="modular-content-p-val"
:title="child.value || '-'" :title="child.value || '-'"
> >
{{ child.value || '-' }} {{ child.value || '-' }}
<!-- 被代替标准号-->
</span> </span>
<div v-else class="modular-content-p-flies"> <div v-else class="modular-content-p-flies">
<p <p
@@ -542,7 +543,6 @@
<!-- >标准分解单</el-button>--> <!-- >标准分解单</el-button>-->
</div> </div>
</div> </div>
</template> </template>
<template <template
v-for="(child, childIndex) in item.one" v-for="(child, childIndex) in item.one"
@@ -2122,7 +2122,6 @@ export default {
watch: {}, watch: {},
methods: { methods: {
child1Func(child1) { child1Func(child1) {
console.log('1943', child1)
const list = [] const list = []
if (child1 && child1.length > 1) { if (child1 && child1.length > 1) {
for (let i = 0; i < child1.length; i++) { for (let i = 0; i < child1.length; i++) {
@@ -2133,7 +2132,6 @@ export default {
return child1 return child1
}, },
child3Func(child3) { child3Func(child3) {
console.log('1943', child3)
const list = [] const list = []
if (child3 && child3.length > 1) { if (child3 && child3.length > 1) {
list.push(child3[0]) list.push(child3[0])
@@ -2142,7 +2140,6 @@ export default {
return child3 return child3
}, },
child4Func(child4) { child4Func(child4) {
console.log('1943', child4)
const list = [] const list = []
if (child4 && child4.length > 1) { if (child4 && child4.length > 1) {
list.push(child4[0]) list.push(child4[0])
@@ -2151,7 +2148,6 @@ export default {
return child4 return child4
}, },
child5Func(child5) { child5Func(child5) {
console.log('1943', child5)
const list = [] const list = []
if (child5 && child5.length > 1) { if (child5 && child5.length > 1) {
list.push(child5[0]) list.push(child5[0])
@@ -2160,7 +2156,6 @@ export default {
return child5 return child5
}, },
handleChange(val) { handleChange(val) {
console.log('1724', val)
}, },
handleChange1(val) { handleChange1(val) {
if (val && val === '基础信息') { if (val && val === '基础信息') {
@@ -2764,7 +2759,6 @@ export default {
} }
}, },
choiceZRRS(type, title, id) { choiceZRRS(type, title, id) {
console.log('2077', type, title, id)
this.nodeList = [] this.nodeList = []
this.nodeList.push(id) this.nodeList.push(id)
this.userType = type this.userType = type
@@ -2772,7 +2766,6 @@ export default {
this.modalShowRoleFlag = true this.modalShowRoleFlag = true
}, },
checkedRole2(data) { checkedRole2(data) {
console.log('1712', this.drawerTitle)
let idList = '' let idList = ''
let nameList = '' let nameList = ''
data.forEach(item => { data.forEach(item => {
@@ -2799,14 +2792,11 @@ export default {
selectAllStand(alldata) { selectAllStand(alldata) {
this.selectedItemList = [] this.selectedItemList = []
this.selectedItemList.push(alldata[alldata.length - 1]) this.selectedItemList.push(alldata[alldata.length - 1])
console.log('2333', this.selectedItemList)
}, },
editResolveList() { editResolveList() {
console.log('2337', this.selectedItemList)
if (this.selectedItemList.length > 0) { if (this.selectedItemList.length > 0) {
this.editResolveListShowflag = true this.editResolveListShowflag = true
let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0])) let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0]))
console.log('2518', editItem)
this.resolveListForm = editItem this.resolveListForm = editItem
this.resolveListForm.termsConditions = this.resolveListForm.termsConditions ? this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' ') : '' this.resolveListForm.termsConditions = this.resolveListForm.termsConditions ? this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' ') : ''
// this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):''
@@ -2817,7 +2807,6 @@ export default {
} }
}, },
saveEditInfo() { saveEditInfo() {
console.log('2530', typeof this.resolveListForm.xccssrq)
if (typeof this.resolveListForm.xccssrq !== 'string') { if (typeof this.resolveListForm.xccssrq !== 'string') {
this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',') this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',')
} }
@@ -2834,7 +2823,6 @@ export default {
_this: this, _this: this,
}, },
(res) => { (res) => {
console.log(res)
if (res.ok) { if (res.ok) {
this.$message.success('修改成功') this.$message.success('修改成功')
this.resetEditResolveListForm() this.resetEditResolveListForm()
@@ -2863,10 +2851,9 @@ export default {
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoById', {id: this.sarStandardsInfoEO.id}, { this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoById', {id: this.sarStandardsInfoEO.id}, {
_this: this _this: this
}, res => { }, res => {
console.log(res.data);
this.sarStandardsInfoEO = res.data || {} this.sarStandardsInfoEO = res.data || {}
this.itemExistList = this.sarStandardsInfoEO.attrInfoMap.itemExistList; this.itemExistList = this.sarStandardsInfoEO.attrInfoMap.itemExistList;
console.log(this.itemExistList)
console.log("hllo", this.sarStandardsInfoEO);
if (this.sarStandardsInfoEO.issueTime != null && this.sarStandardsInfoEO.issueTime !== '') { if (this.sarStandardsInfoEO.issueTime != null && this.sarStandardsInfoEO.issueTime !== '') {
this.sarStandardsInfoEO.issueTime = this.sarStandardsInfoEO.issueTime.split(' ')[0] this.sarStandardsInfoEO.issueTime = this.sarStandardsInfoEO.issueTime.split(' ')[0]
} }
@@ -3005,7 +2992,6 @@ export default {
.then(res => { .then(res => {
if (res) { if (res) {
const editFileInfo = res const editFileInfo = res
console.log(editFileInfo)
if (editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG') { if (editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG') {
window.open('book://ssreader/e0?url=' + editFileInfo.downLoadUrl) window.open('book://ssreader/e0?url=' + editFileInfo.downLoadUrl)
} else { } else {
@@ -3023,8 +3009,6 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log("res.data", res.data);
if (res.data) { if (res.data) {
let fileObj = {} let fileObj = {}
fileObj.fileId = res.data.attId fileObj.fileId = res.data.attId
@@ -3117,7 +3101,6 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res);
}) })
}else{ }else{
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
@@ -3127,7 +3110,6 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res);
}) })
} }
}, },
@@ -3159,7 +3141,6 @@ export default {
}, {}, res => { }, {}, res => {
this.selectedItemList = [] this.selectedItemList = []
if (res.ok) { if (res.ok) {
console.log('3092', res.data.list)
res.data.list.forEach(item => { res.data.list.forEach(item => {
let k = (item.applyArctic || "").split(',') let k = (item.applyArctic || "").split(',')
for (let i in this.applyArcticOptions.options) { for (let i in this.applyArcticOptions.options) {
@@ -3177,7 +3158,6 @@ export default {
} }
}, e => { }, e => {
}) })
console.log(this.standItemSearch);
}, },
downloadFile(attId) { downloadFile(attId) {
if (attId != null && attId !== '') { if (attId != null && attId !== '') {
@@ -3193,7 +3173,6 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res);
}) })
}else{ }else{
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
@@ -3203,7 +3182,6 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res);
}) })
} }
@@ -3226,7 +3204,6 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res);
}) })
}else{ }else{
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
@@ -3236,7 +3213,6 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res);
}) })
} }
}, },
@@ -3744,9 +3720,7 @@ export default {
// if (field.attrField === 'XGLC' && !this.$_has('6A52PZCAX8BAUUJ2TSQ4')) { // if (field.attrField === 'XGLC' && !this.$_has('6A52PZCAX8BAUUJ2TSQ4')) {
// return // return
// } // }
console.log(displayLocation)
displayLocation.forEach((location) => { displayLocation.forEach((location) => {
console.log(location.child)
location.isShowImp = '0' location.isShowImp = '0'
if (dynamicFormField) { if (dynamicFormField) {
let value = dynamicFormField[field.attrField] let value = dynamicFormField[field.attrField]
@@ -3773,7 +3747,6 @@ export default {
} }
}) })
}) })
console.log(displayLocation)
displayLocation.forEach(location => { displayLocation.forEach(location => {
// 动态属性字段-FBGBJBD 单独添加至基础信息 // 动态属性字段-FBGBJBD 单独添加至基础信息
const list = displayLocation.filter(item => item.label === '过程稿件'); const list = displayLocation.filter(item => item.label === '过程稿件');
@@ -3843,7 +3816,6 @@ export default {
} }
} }
}) })
console.log(child)
const fieldsIsTextAreaOrFile = child.filter(field => { const fieldsIsTextAreaOrFile = child.filter(field => {
return field.attrType === 'TEXTAREA' || field.attrType === 'FILE' return field.attrType === 'TEXTAREA' || field.attrType === 'FILE'
}) })
@@ -3873,6 +3845,7 @@ export default {
} }
}) })
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
console.log(displayLocation);
}) })
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false this.loading = false
@@ -3145,7 +3145,6 @@ export default {
}, },
handleSubmit() { handleSubmit() {
// this.form.country=this.countryArr; // this.form.country=this.countryArr;
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
@@ -121,7 +121,6 @@
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
sortable
label="章条编号" label="章条编号"
width="101px"> width="101px">
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
@@ -110,7 +110,6 @@
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
sortable
label="章条编号" label="章条编号"
width="101px"> width="101px">
</el-table-column> </el-table-column>
@@ -102,7 +102,6 @@
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
sortable
label="章条编号" label="章条编号"
width="101px"> width="101px">
</el-table-column> </el-table-column>
@@ -130,7 +130,6 @@
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
sortable
label="章条编号" label="章条编号"
width="101px"> width="101px">
</el-table-column> </el-table-column>
@@ -102,7 +102,6 @@
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
sortable
label="章条编号" label="章条编号"
width="101px"> width="101px">
</el-table-column> </el-table-column>
@@ -122,7 +122,6 @@
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
sortable
label="章条编号" label="章条编号"
width="101px"> width="101px">
</el-table-column> </el-table-column>
@@ -115,7 +115,6 @@
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
label="章条编号" label="章条编号"
sortable
width="101px"> width="101px">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -113,7 +113,6 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
sortable
align="center" align="center"
label="章条编号" label="章条编号"
width="101px"> width="101px">
@@ -114,7 +114,6 @@
<el-table-column <el-table-column
prop="chapterNumber" prop="chapterNumber"
align="center" align="center"
sortable
label="章条编号" label="章条编号"
width="101px"> width="101px">
</el-table-column> </el-table-column>
@@ -709,6 +709,7 @@
</el-form-item> </el-form-item>
</template> </template>
<template v-else-if="field.attrField === 'DTQBBHBUSS' || field.attrField === 'CYBZ' || field.attrField === 'YYBZ'"> <template v-else-if="field.attrField === 'DTQBBHBUSS' || field.attrField === 'CYBZ' || field.attrField === 'YYBZ'">
123
<custom-input-for-standards <custom-input-for-standards
:config="field" :config="field"
:class="field.attrField === 'BYYBJ' ? 'classDisplay' : ''" :class="field.attrField === 'BYYBJ' ? 'classDisplay' : ''"