feat: There is no way the,

This commit is contained in:
super_liu
2022-01-24 20:03:26 +08:00
parent 167eb37ade
commit 357874db8a
@@ -277,6 +277,10 @@
size="mini" @click="OCRAdd('2')"
v-btn-permission="'247cebaefa7cf1683092af160af11502'"><i class="iconfont">&#xe611;</i>编辑
</el-button>
<el-button class="common-button-default"
size="mini" @click="selectBuss()" style="float: right;margin-top: 11px;"
v-btn-permission="''"><i class="iconfont">&#xe606;</i>企标复审计划
</el-button>
</div>
<!--表格-->
<div class="content">
@@ -1335,6 +1339,118 @@
</el-button>
</div>
</el-drawer>
<el-dialog
title="企标复审计划"
:visible.sync="replaceLawsNumModel"
width="875px"
:close-on-click-modal="false"
@close="replaceLawsNumModelCancel"
>
<div class="search-area">
<div class="left">
<el-form :modal="replaceLawsNumForm" :inline="true" class="label-input-form" @keyup.enter.native="getReplaceLawsNumRowFirst">
<el-form-item label="编号/名称" class="search-item">
<el-input
v-model="replaceLawsNumForm.standCode"
placeholder="根据企标编号查找"
clearable
:maxlength="100"></el-input>
</el-form-item>
<el-form-item label="发布日期" class="search-item">
<el-datePicker v-model="replaceLawsNumForm.issueTimeArr"
:editable="false"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
placeholder="请选择发布日期"
value-format="yyyy-MM-dd"
clearable></el-datePicker>
</el-form-item>
<el-form-item label="复审日期" class="search-item">
<el-datePicker v-model="replaceLawsNumForm.reviewTimeArr"
:editable="false"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
placeholder="请选择复审日期"
value-format="yyyy-MM-dd"
clearable></el-datePicker>
</el-form-item>
<el-form-item class="search-item btn-box">
<el-button
type="primary"
class="common-button-primary"
round
@click="getReplaceLawsNumRowFirst">查询
</el-button>
</el-form-item>
<el-form-item class="search-item btn-box">
<el-button
class="common-button-default"
round
type="default"
@click="getResetLawsNumRow">清空</el-button>
</el-form-item>
</el-form>
</div>
</div>
<el-table
ref="selections"
:data="replaceLawsNumRow"
tooltip-effect="dark"
style="width: 100%;overflow-y: auto;overflow-x: hidden;"
border
:height="300"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectReplaceStandNumRowChange">
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
label="企标编号">
<template slot-scope="scope">
<a v-if="scope.row.standCode" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standCode }}</a>
</template>
</el-table-column>
<el-table-column
prop="issueTime"
label="发布日期"
width="130">
<template slot-scope="scope">{{ formatIssueDate(scope.row.issueTime)}}</template>
</el-table-column>
<el-table-column
prop="reviewTime"
label="复审日期"
width="130">
<template slot-scope="scope">{{ formatIssueDate(scope.row.reviewTime) }}</template>
</el-table-column>
<el-table-column
prop="reviewResults"
label="复审结果"
width="130">
<template slot-scope="scope">
<span>{{ filterOp(scope.row.reviewResults) }}</span>
</template>
</el-table-column>
</el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
<!--分页-->
<pagination
style="position: relative;"
:page="replacePage"
:total="replaceTotal"
@pageChange="pageChangeReplace"
@pageSizeChange="pageSizeChangeReplace"></pagination>
<div slot="footer" class="demo-drawer-footer">
<el-button class="common-button-default" round icon="el-icon-close" @click="replaceLawsNumModel = false">取消</el-button>
<!-- <el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button>-->
</div>
</el-dialog>
<Role-tree
:is-title="drawerTitle"
:is-visible.sync="modalShowRoleFlag"
@@ -1522,6 +1638,27 @@ export default {
props: {},
data() {
return {
replaceLawsNumModel: false,
replaceLawType: '',
sarBussionessLawsEO: {
replaceLawsNum: ''
},
replaceLawsNumRow: [], // 代替政策号 数组内容
replaceLoading: true,
// 代替标准号
replaceLawsNumForm: {
standCode: '', // 标准编号
reviewTimeArr:'',
reviewTimeStart:'',
reviewTimeEnd:'',
issueTimeArr:'',
issueTimeStart:'',
issueTimeEnd:'',
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
total: 0,
validFlag: '0',
},
OCRType: '',
OCRTitle: '',
ocrList: [],
@@ -2248,6 +2385,113 @@ export default {
}
},
methods: {
formatIssueDate(str) {
if(str && str.length > 10){
str = str.substring(0,10)
}
return str
},
filterOp(data){
if(!data || data === ""){
return ""
}
const map = new Map();
map.set(1,"修订");
map.set(2,"废止");
map.set(3,"继续有效");
return map.get(data)
},
selectBuss(){
this.replaceLawsNumModel = true
this.getReplaceLawsNumRow()
},
replaceLawsNumModelCancel () {
// this.replaceLawsNumModel = false
this.$refs.selections.clearSelection()
},
pageChangeReplace (page) {
this.replacePage = page
this.replaceLawsNumForm.page = page
this.getReplaceLawsNumRow()
},
pageSizeChangeReplace (pageSize) {
// this.replaceRows = pageSize
this.replaceLawsNumForm.pageSize = pageSize
this.getReplaceLawsNumRow()
},
getResetLawsNumRow () {
this.replaceLawsNumForm = {
standCode: '', // 标准编号
reviewTimeArr:'',
reviewTimeStart:'',
reviewTimeEnd:'',
issueTimeArr:'',
issueTimeStart:'',
issueTimeEnd:'',
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
total: 0,
validFlag: '0',
}
this.getReplaceLawsNumRow()
},
getReplaceLawsNumRow () {
if(this.replaceLawsNumForm.issueTimeArr && this.replaceLawsNumForm.issueTimeArr.length > 0){
this.replaceLawsNumForm.issueTimeStart = this.replaceLawsNumForm.issueTimeArr[0] || null
this.replaceLawsNumForm.issueTimeEnd = this.replaceLawsNumForm.issueTimeArr[1] || null
}
if(this.replaceLawsNumForm.reviewTimeArr && this.replaceLawsNumForm.reviewTimeArr.length > 0){
this.replaceLawsNumForm.reviewTimeStart = this.replaceLawsNumForm.reviewTimeArr[0] || null
this.replaceLawsNumForm.reviewTimeEnd = this.replaceLawsNumForm.reviewTimeArr[1] || null
}
this.$http.get('lawss/sarBussionessStandState/getSarBussionStandPage', this.replaceLawsNumForm, {
_this: this,
loading: 'replaceLoading'
}, res => {
this.replaceLawsNumRow = res.data.list
this.replaceTotal = res.data.count
// if (this.selectedListRep.length !== 0) {
// this.selectedListRep.map((list) => {
// this.replaceLawsNumRow.map((item) => {
// if (list.id === item.id) {
// item._checked = true
// }
// })
// })
// }
}, e => {
})
},
getReplaceLawsNumRowFirst () {
this.replaceLawsNumForm.page = 1
this.replacePage = 1
if(this.replaceLawsNumForm.issueTimeArr && this.replaceLawsNumForm.issueTimeArr.length > 0){
console.log(this.replaceLawsNumForm.issueTimeArr)
this.replaceLawsNumForm.issueTimeStart = this.replaceLawsNumForm.issueTimeArr[0] || null
this.replaceLawsNumForm.issueTimeEnd = this.replaceLawsNumForm.issueTimeArr[1] || null
}
if(this.replaceLawsNumForm.reviewTimeArr && this.replaceLawsNumForm.reviewTimeArr.length > 0){
this.replaceLawsNumForm.reviewTimeStart = this.replaceLawsNumForm.reviewTimeArr[0] || null
this.replaceLawsNumForm.reviewTimeEnd = this.replaceLawsNumForm.reviewTimeArr[1] || null
}
this.$http.get('lawss/sarBussionessStandState/getSarBussionStandPage', this.replaceLawsNumForm, {
_this: this,
loading: 'replaceLoading'
}, res => {
this.replaceLawsNumRow = res.data.list
this.replaceTotal = res.data.count
// if (this.selectedListRep.length !== 0) {
// this.selectedListRep.map((list) => {
// this.replaceLawsNumRow.map((item) => {
// if (list.id === item.id) {
// item._checked = true
// }
// })
// })
// }
}, e => {
})
},
// 左右拖动事件
dragControllerLR: function () {
var resize = document.getElementById("resize");
@@ -4614,7 +4858,7 @@ export default {
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear() + 5;
let month = (date.getMonth() + 1).toString();
let month = (date.getMonth()).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;