国内外政策-政策文号必填、修改配置政策字段
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="tree">
|
<div class="tree">
|
||||||
|
<loading :loading="loading">加载中...</loading>
|
||||||
<el-tree
|
<el-tree
|
||||||
:data="data"
|
:data="data"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
@@ -100,6 +101,7 @@ export default {
|
|||||||
drawerTitle: '',
|
drawerTitle: '',
|
||||||
drawerVisible: false,
|
drawerVisible: false,
|
||||||
addModel: {},
|
addModel: {},
|
||||||
|
loading: false,
|
||||||
rules
|
rules
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -111,7 +113,12 @@ export default {
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
},
|
},
|
||||||
async getData () {
|
async getData () {
|
||||||
const res = await this.$http._getData(this.api.getListStandLimit,{dicId:'9m4qqqaansxmox5e82zm'})
|
const res = await this.$http._getData(this.api.getListStandLimit,{
|
||||||
|
dicId:'9m4qqqaansxmox5e82zm'
|
||||||
|
},{
|
||||||
|
_this:this,
|
||||||
|
loading: 'loading'
|
||||||
|
})
|
||||||
if (res.ok && res.data) {
|
if (res.ok && res.data) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<!-- <el-input v-model="sarConfigStandSearch.standName" @keyup.enter.native="searchConfiguraStand"-->
|
<!-- <el-input v-model="sarConfigStandSearch.standName" @keyup.enter.native="searchConfiguraStand"-->
|
||||||
<!-- placeholder="根据标准名称查找" clearable/>-->
|
<!-- placeholder="根据标准名称查找" clearable/>-->
|
||||||
<!-- </el-formItem>-->
|
<!-- </el-formItem>-->
|
||||||
<el-formItem label="政策编号" prop="lawsNumber" class="search-item">
|
<el-formItem label="政策文号" prop="lawsNo" class="search-item">
|
||||||
<el-input v-model="sarConfigStandSearch.lawsNumber" @keyup.enter.native="searchConfiguraStand"
|
<el-input v-model="sarConfigStandSearch.lawsNo" @keyup.enter.native="searchConfiguraStand"
|
||||||
placeholder="根据政策编号查找" clearable/>
|
placeholder="根据政策文号查找" clearable/>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<!-- <el-formItem label="企标类别" prop="standSort" class="search-item">-->
|
<!-- <el-formItem label="企标类别" prop="standSort" class="search-item">-->
|
||||||
<!-- <el-select v-model="sarConfigStandSearch.standSort" placeholder="根据企标类别查找"-->
|
<!-- <el-select v-model="sarConfigStandSearch.standSort" placeholder="根据企标类别查找"-->
|
||||||
@@ -26,8 +26,8 @@
|
|||||||
<!-- </el-option>-->
|
<!-- </el-option>-->
|
||||||
<!-- </el-select>-->
|
<!-- </el-select>-->
|
||||||
<!-- </el-formItem>-->
|
<!-- </el-formItem>-->
|
||||||
<el-formItem label="政策名称" prop="numberName" class="search-item">
|
<el-formItem label="政策名称" prop="lawsName" class="search-item">
|
||||||
<el-input v-model="sarConfigStandSearch.numberName" @keyup.enter.native="searchConfiguraStand" placeholder="根据政策名称查找" clearable :maxlength="100"/>
|
<el-input v-model="sarConfigStandSearch.lawsName" @keyup.enter.native="searchConfiguraStand" placeholder="根据政策名称查找" clearable :maxlength="100"/>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -68,8 +68,8 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="lawsNumber"
|
prop="lawsNo"
|
||||||
label="政策编号"
|
label="政策文号"
|
||||||
width="150"
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
@@ -90,22 +90,23 @@
|
|||||||
width="120"
|
width="120"
|
||||||
sortable
|
sortable
|
||||||
align="center">
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{formatDate(scope.row.issueTime)}}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="XCXSSRQLAWS"
|
prop="ssrqlaws"
|
||||||
label="实施日期"
|
label="实施日期"
|
||||||
width="120"
|
width="120"
|
||||||
sortable
|
sortable
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
|
<span>{{formatDate(scope.row.ssrqlaws)}}</span>
|
||||||
<span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
|
|
||||||
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.XCXSSRQLAWS ? scope.row.XCXSSRQLAWS.slice(0, 10) : ''}}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standStatusShow"
|
prop="standStatusShow"
|
||||||
label="标准状态"
|
label="文本状态"
|
||||||
width="100"
|
width="100"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -154,8 +155,8 @@ export default {
|
|||||||
validFlag: '0',
|
validFlag: '0',
|
||||||
// menuId: '',
|
// menuId: '',
|
||||||
// classifyCode: '',
|
// classifyCode: '',
|
||||||
// numberName: '',
|
lawsName: '',
|
||||||
// lawsNumber: '',
|
lawsNo: '',
|
||||||
// quoteStand: '',
|
// quoteStand: '',
|
||||||
// standCode: '',
|
// standCode: '',
|
||||||
// standName: '',
|
// standName: '',
|
||||||
@@ -193,8 +194,8 @@ export default {
|
|||||||
this.selectConfiguraStand()
|
this.selectConfiguraStand()
|
||||||
},
|
},
|
||||||
clearAllSearch (flag) {
|
clearAllSearch (flag) {
|
||||||
this.sarConfigStandSearch.lawsNumber=''
|
this.sarConfigStandSearch.lawsNo=''
|
||||||
this.sarConfigStandSearch.numberName=''
|
this.sarConfigStandSearch.lawsName=''
|
||||||
this.configPage = 1
|
this.configPage = 1
|
||||||
this.sarConfigStandSearch.page = 1
|
this.sarConfigStandSearch.page = 1
|
||||||
this.selectConfiguraStand()
|
this.selectConfiguraStand()
|
||||||
@@ -202,8 +203,8 @@ export default {
|
|||||||
// 取消配置标准
|
// 取消配置标准
|
||||||
cancelConfigStand () {
|
cancelConfigStand () {
|
||||||
this.configStandFlag = false
|
this.configStandFlag = false
|
||||||
this.sarConfigStandSearch.lawsNumber=''
|
this.sarConfigStandSearch.lawsNo=''
|
||||||
this.sarConfigStandSearch.numberName=''
|
this.sarConfigStandSearch.lawsName=''
|
||||||
this.configPage = 1
|
this.configPage = 1
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = []
|
||||||
},
|
},
|
||||||
@@ -299,6 +300,13 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
formatDate (dateStr) {
|
||||||
|
if (dateStr && dateStr!== '') {
|
||||||
|
let dateArr = dateStr.split(',')
|
||||||
|
return dateArr.map(date => date.slice(0,10)).join(',')
|
||||||
|
}
|
||||||
|
return dateStr
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -767,7 +767,7 @@ export default {
|
|||||||
{validator: this.verify.valiateEnName, trigger: 'change'}
|
{validator: this.verify.valiateEnName, trigger: 'change'}
|
||||||
],
|
],
|
||||||
lawsNo: [
|
lawsNo: [
|
||||||
// {required: true, type: 'string', message: '政策文号不能为空', trigger: 'change'},
|
{required: true, type: 'string', message: '政策文号不能为空', trigger: 'change'},
|
||||||
{type: 'string', max: 100, message: '政策文号不能超过100个字符', trigger: 'change'}
|
{type: 'string', max: 100, message: '政策文号不能超过100个字符', trigger: 'change'}
|
||||||
],
|
],
|
||||||
issueTime: [
|
issueTime: [
|
||||||
@@ -796,7 +796,7 @@ export default {
|
|||||||
// {required: true, type: 'string', message: '政策编号不能为空', trigger: 'change'},
|
// {required: true, type: 'string', message: '政策编号不能为空', trigger: 'change'},
|
||||||
// {type: 'string', max: 100, message: '政策编号不能超过100个字符', trigger: 'change'}
|
// {type: 'string', max: 100, message: '政策编号不能超过100个字符', trigger: 'change'}
|
||||||
// ],
|
// ],
|
||||||
},// 完整校验
|
},
|
||||||
littleSarLawsStandRules: {
|
littleSarLawsStandRules: {
|
||||||
lawsTypeFirstLevel: [
|
lawsTypeFirstLevel: [
|
||||||
{required: true, message: '1级政策分类不能为空', trigger: 'change'}
|
{required: true, message: '1级政策分类不能为空', trigger: 'change'}
|
||||||
@@ -814,7 +814,24 @@ export default {
|
|||||||
{required: true, message: '政策名称不能为空', trigger: 'change'},
|
{required: true, message: '政策名称不能为空', trigger: 'change'},
|
||||||
{type: 'string', max: 500, message: '政策名称不能超过500个字符', trigger: 'change'},
|
{type: 'string', max: 500, message: '政策名称不能超过500个字符', trigger: 'change'},
|
||||||
{validator: this.verify.checkSpecialCharacterOftags, trigger: 'change'}
|
{validator: this.verify.checkSpecialCharacterOftags, trigger: 'change'}
|
||||||
]
|
],
|
||||||
|
lawsEnName: [
|
||||||
|
{type: 'string', max: 500, message: '英文名称不能超过500个字符', trigger: 'change'},
|
||||||
|
{validator: this.verify.valiateEnName, trigger: 'change'}
|
||||||
|
],
|
||||||
|
lawsNo: [
|
||||||
|
{required: true, type: 'string', message: '政策文号不能为空', trigger: 'change'},
|
||||||
|
{type: 'string', max: 100, message: '政策文号不能超过100个字符', trigger: 'change'}
|
||||||
|
],
|
||||||
|
issueCompany: [
|
||||||
|
{type: 'string', max: 100, message: '发文单位不能超过100个字符', trigger: 'change'}
|
||||||
|
],
|
||||||
|
lawsNotisyncNum: [
|
||||||
|
{type: 'string', max: 500, message: '福田转发通知文号不能超过500个字符', trigger: 'change'}
|
||||||
|
],
|
||||||
|
lawsRemark: [
|
||||||
|
{type: 'string', max: 500, message: '备注不能超过500个字符', trigger: 'change'}
|
||||||
|
],
|
||||||
},// 认证清单为否 的校验
|
},// 认证清单为否 的校验
|
||||||
commentCycleDate2:'',
|
commentCycleDate2:'',
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
|
|||||||
Reference in New Issue
Block a user