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

# Conflicts:
#	src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue
This commit is contained in:
zhutianqi
2021-08-10 15:52:33 +08:00
7 changed files with 267 additions and 225 deletions
@@ -409,6 +409,7 @@ export default {
// 查询相关参数
searching: false,
commentText:'',
fileType: 'FBGBJBD',
standardSearch: {
standType: "",
standName: ""
@@ -847,6 +848,7 @@ export default {
this.$http.post("SarStandItems/sar-stand-items/findStand", {
page: this.page,
size: this.pageSize,
fileType: this.fileType,
...this.standardSearch
}, {
_this: this
@@ -396,6 +396,7 @@ export default {
drawerTitle: "", //drawer标题
// 查询相关参数
searching: false,
fileType: 'FBGBJBD',
standardSearch: {
standType: "",
standName: ""
@@ -822,6 +823,7 @@ export default {
this.$http.post("SarStandItems/sar-stand-items/findStand", {
page: this.page,
size: this.pageSize,
fileType: this.fileType,
...this.standardSearch
}, {
_this: this
@@ -369,6 +369,16 @@ export default {
this.listForm.breakdownList = [];
for (let i = 0; i < item.pepdtos.length; i++) {
for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) {
if(item.pepdtos[i].xCXSSRQ === null){
this.listForm.breakdownList.xCXSSRQ = ""
} else {
this.listForm.breakdownList.xCXSSRQ = item.pepdtos[i].xCXSSRQ
}
if(item.pepdtos[i].zCCSSRQ === null){
this.listForm.breakdownList.zCCSSRQ = ""
} else {
this.listForm.breakdownList.zCCSSRQ = item.pepdtos[i].zCCSSRQ
}
this.listForm.breakdownList.push({
itemsName: item.pepdtos[i].breakdownList[j].itemsName,
itemNum: item.pepdtos[i].breakdownList[j].itemsNum,
@@ -386,8 +396,6 @@ export default {
qualityEngineerName: item.pepdtos[i].qualityEngineerName,
standNumber: item.pepdtos[i].standNumber,
standName: item.pepdtos[i].standName,
xCXSSRQ: item.pepdtos[i].xCXSSRQ,
zCCSSRQ: item.pepdtos[i].zCCSSRQ
});
}
}
@@ -68,8 +68,10 @@
label="标准号"
>
<template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }} {{ scope.row.standNumber }}</a>
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
{{ scope.row.standNumber }}</a>
</template>
</el-table-column>
<el-table-column
@@ -484,6 +486,7 @@ export default {
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, {
_this: this
}, res => {
console.log(res.data.records);
this.listForm.dataList = res.data.records;
this.dataList = res.data.records;
this.listForm.dataList.forEach(item => {
@@ -517,7 +520,12 @@ export default {
{
_this: this
}, res => {
if (!res.data.length) {
this.dataList = []
this.$message.warning("请选择带有分解单的标准");
} else {
this.listForm.breakdownList = res.data;
}
});
},
//标准的多选框改变
@@ -597,13 +605,13 @@ export default {
// 点击查看
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
name: "OtherStandardDetails",
params: {
id: item.standId,
pageType: 'INLAND_STAND'
pageType: "INLAND_STAND"
}
})
window.open(routeUrl.href, '_blank')
});
window.open(routeUrl.href, "_blank");
},
choiceZRR(type, title, id) {
this.nodeList = [];
@@ -15,10 +15,14 @@
clearable></el-input>
</el-form-item>
<el-form-item label="" class="search-item btn-box">
<el-button class="common-button-primary" type="primary" size="mini" @click="searchStandAndLaws" v-btn-permission="'314ad07cd81834dfdd3c58476cdcde68'">查询</el-button>
<el-button class="common-button-primary" type="primary" size="mini" @click="searchStandAndLaws"
v-btn-permission="'314ad07cd81834dfdd3c58476cdcde68'">查询
</el-button>
</el-form-item>
<el-form-item label="" class="search-item btn-box">
<el-button class="common-button-default" @click="resetSelect" size="mini" v-btn-permission="'eb402ab8306d437c7d33e9e4b4e4341a'">清空</el-button>
<el-button class="common-button-default" @click="resetSelect" size="mini"
v-btn-permission="'eb402ab8306d437c7d33e9e4b4e4341a'">清空
</el-button>
</el-form-item>
</el-form>
</div>
@@ -125,14 +129,16 @@
class="common-button-primary"
size="mini"
v-btn-permission="'f0ea68cb2c01cd0063ea639ee9bd4cec'"
@click="querySarProStateZero">查询</el-button>
@click="querySarProStateZero">查询
</el-button>
</el-form-item>
<el-form-item class="search-item btn-box">
<el-button
class="common-button-default"
size="mini"
v-btn-permission="'aa4d6d0cc28d016f8241159c9e7d4c80'"
@click="clearSearchProState">清空</el-button>
@click="clearSearchProState">清空
</el-button>
</el-form-item>
</el-form>
</div>
@@ -204,6 +210,9 @@
align="center"
prop="researchImplementationTime"
label="实施时间">
<template slot-scope="scope">
<span>{{ scope.row.researchImplementationTime ? $moment(scope.row.researchImplementationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column>
<el-table-column
width="150px"
@@ -232,6 +241,9 @@
align="center"
prop="researchCompletionTime"
label="完成时间">
<template slot-scope="scope">
<span>{{ scope.row.researchCompletionTime ? $moment(scope.row.researchCompletionTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column>
</el-table-column>
</el-table-column>
@@ -244,6 +256,9 @@
align="center"
prop="productionImplementationTime"
label="实施时间">
<template slot-scope="scope">
<span>{{ scope.row.productionImplementationTime ? $moment(scope.row.productionImplementationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column>
<el-table-column
width="150px"
@@ -266,6 +281,9 @@
align="center"
prop="productionCompletionTime"
label="完成时间">
<template slot-scope="scope">
<span>{{ scope.row.productionCompletionTime ? $moment(scope.row.productionCompletionTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column>
</el-table-column>
</el-table-column>
@@ -283,12 +301,12 @@
<script>
export default {
name: 'standInvolveProjectDetail',
name: "standInvolveProjectDetail",
data() {
return {
sarProject: {
standName: '', // 标准政策名称
standNumber: '', // 标准/政策号
standName: "", // 标准政策名称
standNumber: "", // 标准/政策号
standApplicationType: 1
}, // 条件查询
showSarProStateModal: false, // 查看drawer开关
@@ -302,71 +320,72 @@ export default {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
sarProStateEO: {
productName: '',
standId: ''
productName: "",
standId: ""
},
sarProStateTotal: 0,
sarProStateTotalPage: 1,
sarProStatePageSize: this.$store.getters.userInfo.configContent,
sarProStateListDatas: [], // 符合性项目列表数据
sarProStateTableHeight: null, // 符合性项目列表高度
standId: '' // 符合性项目Id
}
standId: "" // 符合性项目Id
};
},
methods: {
searchStandAndLaws() {
this.page = 1
this.queryStandAndLaws()
this.page = 1;
this.queryStandAndLaws();
}, // 查询
pageChange(page) {
this.page = page
this.queryStandAndLaws()
this.page = page;
this.queryStandAndLaws();
},
pageSizeChange(pageSize) {
this.pageSize = pageSize
this.$store.getters.userInfo.configContent = pageSize
this.queryStandAndLaws()
this.pageSize = pageSize;
this.$store.getters.userInfo.configContent = pageSize;
this.queryStandAndLaws();
},
//点击查看详情
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
name: "OtherStandardDetails",
params: {
id: item.standId,
pageType: 'INLAND_STAND'
pageType: "INLAND_STAND"
}
})
window.open(routeUrl.href, '_blank')
});
window.open(routeUrl.href, "_blank");
},
queryStandAndLaws() {
this.sarProject.current = this.page
this.sarProject.size = this.pageSize
this.$http.get('sarStandardComplianceAssessResult/standard', this.sarProject, {
this.sarProject.current = this.page;
this.sarProject.size = this.pageSize;
this.$http.get("sarStandardComplianceAssessResult/standard", this.sarProject, {
_this: this,
loading: 'loading',
loading: "loading"
}, res => {
this.sarProjectListDatas = res.data.records
this.total = res.data.total
}, e=> {})
this.sarProjectListDatas = res.data.records;
this.total = res.data.total;
}, e => {
});
}, // 分页查询
resetSelect() {
this.sarProject.country = ''
this.sarProject.standCode=''
this.sarProject.standName = ''
this.sarProject.standNumber=''
this.queryStandAndLaws()
this.sarProject.country = "";
this.sarProject.standCode = "";
this.sarProject.standName = "";
this.sarProject.standNumber = "";
this.queryStandAndLaws();
}, // 外层清空条件查询
handleProjectCompliance(row) {
this.standId = row.standId
this.querySarProStateZero()
this.standId = row.standId;
this.querySarProStateZero();
}, // 查看项目符合性
querySarProStateZero() {
this.sarProStateTotalPage = 1
var form = this.sarProStateEO
this.sarProStateTotalPage = 1;
var form = this.sarProStateEO;
// form.standId = this.standId
form.current = this.sarProStateTotalPage
form.size = this.sarProStatePageSize
this.$http.get('sarStandardComplianceAssessResult/product', form, {
form.current = this.sarProStateTotalPage;
form.size = this.sarProStatePageSize;
this.$http.get("sarStandardComplianceAssessResult/product", form, {
_this: this
}, res => {
if (res.ok) {
@@ -377,49 +396,50 @@ export default {
// }
// }
// })
this.sarProStateListDatas = res.data.records
this.sarProStateTotal = res.data.total
this.sarProStateListDatas = res.data.records;
this.sarProStateTotal = res.data.total;
}
})
this.showSarProStateModal = true
});
this.showSarProStateModal = true;
}, // 查询项目数据
clearSearchProState() {
this.sarProStateEO.productName = ''
this.sarProStateEO.standId = ''
this.sarProStateTotalPage = 1
this.querySarProStateZero()
this.sarProStateEO.productName = "";
this.sarProStateEO.standId = "";
this.sarProStateTotalPage = 1;
this.querySarProStateZero();
}, // 清空条件查询
clearSearchPro() {
this.sarProStateEO.productName = ''
this.sarProStateEO.standId = ''
this.showSarProStateModal = false
this.standId = ''
this.sarProStateEO.productName = "";
this.sarProStateEO.standId = "";
this.showSarProStateModal = false;
this.standId = "";
}, // 关闭查看事件
pageProStateChange(page) {
this.sarProStateTotalPage = page
this.querySarProStateZero()
this.sarProStateTotalPage = page;
this.querySarProStateZero();
},
pageProStateSizeChange(pageSize) {
this.sarProStatePageSize = pageSize
this.$store.getters.userInfo.configContent = pageSize
this.querySarProStateZero()
},
this.sarProStatePageSize = pageSize;
this.$store.getters.userInfo.configContent = pageSize;
this.querySarProStateZero();
}
},
mounted() {
this.queryStandAndLaws()
this.tableHeight = $('.regulatory-repository').height() - 159
this.sarProStateTableHeight=$('.regulatory-repository').height() -120
this.queryStandAndLaws();
this.tableHeight = $(".regulatory-repository").height() - 159;
this.sarProStateTableHeight = $(".regulatory-repository").height() - 120;
window.onresize = () => {
this.tableHeight = $('.regulatory-repository').height() - 159
this.sarProStateTableHeight=$('.regulatory-repository').height() - 120
}
}
this.tableHeight = $(".regulatory-repository").height() - 159;
this.sarProStateTableHeight = $(".regulatory-repository").height() - 120;
};
}
};
</script>
<style lang="less" scoped>
.stand-involve-project-detail {
height: 100%;
.laws-details-header {
background: #fff;
// height: 30px;
@@ -430,6 +450,7 @@ export default {
display: inline-block;
margin-right: 10px;
}
.title {
display: inline-block;
font-weight: bold;
@@ -439,6 +460,7 @@ export default {
text-align: center;
}
}
.contaiiner {
background: #fff;
padding: 5px 10px;
@@ -13,7 +13,7 @@
</h5>
</div>
<div v-if="!kindtext" style="position: absolute;right: 110px;display: flex">
<el-input v-model="standForm.selectValue" :placeholder="$t('m.standSelect')" @keyup.enter.native="btnSearch"
<el-input v-model.trim="standForm.selectValue" :placeholder="$t('m.standSelect')" @keyup.enter.native="btnSearch"
clearable>
</el-input>
<el-button type="primary" @click="btnSearch" style="width: 98px;background:#3391CE
@@ -899,8 +899,8 @@
v-if="selectIndex !== 'items'"
width="130">
<template slot-scope="scope">
<div v-if="scope.row.issue_time !== null && scope.row.issue_time !== undefined">
{{ $dateFormat(new Date(scope.row.issue_time), "yyyy-MM-dd") }}
<div v-if="scope.row.issue_time !== null && scope.row.issueTime !== undefined">
{{ $dateFormat(new Date(scope.row.issueTime), "yyyy-MM-dd") }}
</div>
<div v-else></div>
</template>
@@ -910,8 +910,8 @@
:label="$t('m.putTime')"
width="130">
<template slot-scope="scope">
<div v-if="scope.row.put_time !== null && scope.row.put_time !== undefined">
{{ $dateFormat(new Date(scope.row.put_time), "yyyy-MM-dd") }}
<div v-if="scope.row.SSRQ !== null && scope.row.SSRQ !== undefined && scope.row.SSRQ !== ''">
{{ $dateFormat(new Date(scope.row.SSRQ), "yyyy-MM-dd") }}
</div>
<div v-else></div>
</template>
@@ -919,7 +919,7 @@
<el-table-column
align="center"
width="180"
:label="selectIndex === 'INLAND_STAND' ? '标准状态' : (this.selectIndex === 'INLAND_LAWS' ? '文件状态' : '企业标准状态')">
:label="selectIndex === 'INLAND_STAND' ? '文本状态' : (this.selectIndex === 'INLAND_LAWS' ? '文件状态' : '企业标准状态')">
<template slot-scope="scope">
<div>
{{ scope.row.standstateshow }}
@@ -11,7 +11,7 @@
<el-input
placeholder="请输入查询条件"
clearable
v-model="keywords"
v-model.trim="keywords"
@keyup.enter.native="searchSarByInputKeyByCondition">
</el-input>
</div>