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

This commit is contained in:
zhangjun
2022-09-30 13:26:19 +08:00
4 changed files with 67 additions and 0 deletions
@@ -112,6 +112,19 @@
align="center"
label="条款名称">
</el-table-column>
<el-table-column
prop="termsConditions"
min-width="200"
label="条款内容"
align="center"
:resizable="false"
>
<template slot-scope="scope">
<div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">
{{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}
</div>
</template>
</el-table-column>
<el-table-column
prop="ssrq"
width="200"
@@ -490,6 +503,13 @@
</el-button>
</div>
</el-drawer>
<!--内容简介-->
<el-dialog :visible.sync="itemsTextDialogs" title="内容简介" :close-on-click-modal="false">
<div v-html="itemsText" class="itemsTextBox"></div>
<div slot="footer">
<el-button type="primary" size="large" @click="itemsTextDialogs = false">关闭</el-button>
</div>
</el-dialog>
</div>
</template>
@@ -513,7 +533,9 @@ export default {
currentPage: 1,
pageSize: 20,
nodeList: [],
itemsTextDialogs:false,
isTransfer: false,
itemsText:'',
// 调整处理人抽屉状态
drawerModal: false,
batchEditForm: {
@@ -671,6 +693,10 @@ export default {
});
window.open(routeUrl.href, "_blank");
},
itemsTextDialog(itemsNum, text) {
this.itemsTextDialogs = true
this.itemsText = '<p>' + itemsNum + '</p>' + text.replace(/''/g, '\'')
},
//查询项目下的标准
getStandData() {
this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", {
@@ -764,6 +790,7 @@ export default {
this.$set(items, "standYear", item.standYear);
this.$set(items, "standSort", item.standSort);
this.$set(items, "standNumber", item.standNumber);
this.$set(items, "termsConditions", item.termsConditions);
}
})
})
@@ -777,12 +804,28 @@ export default {
if(index > -1){
dataListChildren.splice(index, 1)
}
let idList = []
dataListChildren.forEach(item => {
idList.push(item.id)
item.workPeople = this.$store.getters.userInfo.userName
item.workPeopleId = this.$store.getters.userInfo.userId
})
this.$http.post("SarStandItems/sar-stand-items/findTermsConditions",{
idList: idList
}, {
_this:this
}, res => {
res.data.forEach(val => {
dataListChildren.forEach(item => {
if(item.id == val.id){
item.termsConditions = val.termsConditions
}
})
})
})
this.dataList = dataListChildren;
this.total = this.dataList.length;
this.$forceUpdate()
} else {
let dataChildren = [];
let dataListChildren = [];
@@ -896,11 +939,23 @@ export default {
this.$message.warning("请填写完整的不符合项信息");
this.comFlag = 0;
} else {
this.listForm.breakdownList.forEach(item => {
if (item.termsConditions) {
item.termsConditions = ''
}
});
this.listForm.dataList.forEach(item => {
// item.userId = this.$store.getters.userInfo.userId
if (item.workPeople === "请选择责任人") {
item.workPeople = "";
}
if(item.children){
item.children.forEach(val => {
if(val.termsConditions){
delete val.termsConditions
}
})
}
});
this.isSubmit = true;
this.listForm.commentText = this.commentText;
@@ -54,6 +54,9 @@
:label="item"
:value="item"
:name="item">
<el-tooltip slot="label" effect="dark" :content="item" placement="bottom-start">
<span>{{ item }}</span>
</el-tooltip>
</el-tab-pane>
</el-tabs>
<el-table
@@ -54,6 +54,9 @@
:label="item"
:value="item"
:name="item">
<el-tooltip slot="label" effect="dark" :content="item" placement="bottom-start">
<span>{{ item }}</span>
</el-tooltip>
</el-tab-pane>
</el-tabs>
<el-table
@@ -979,6 +979,12 @@
if (data.list && data.list.length > 0) {
// 获取数值
let resultdata = data.list[0]['groupdata']
let NYLXCLASS = resultdata['NYLXCLASS'] || {}
let NYLX = resultdata['NYLX'] || {}
if (Object.keys(NYLX).length > 0 && Object.keys(NYLXCLASS).length === 0) {
NYLXCLASS = NYLX
}
resultdata['NYLXCLASS'] = NYLXCLASS
for (let i = 0; i < seniortype.length; i++) {
let nowdata = [{}]