|
|
|
@ -53,7 +53,7 @@
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" align="center" width="50" fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
|
|
|
|
<span>{{(queryParams.current - 1) * queryParams.size + scope.$index + 1}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="enterpriseDirectory" label="申报任务标题" :show-overflow-tooltip="true" min-width="190"></el-table-column>
|
|
|
|
@ -123,8 +123,8 @@
|
|
|
|
|
id="L-pagination"
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
:page.sync="queryParams.current"
|
|
|
|
|
:limit.sync="queryParams.size"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
<!-- 添加或修改申报企业名录对话框 -->
|
|
|
|
@ -308,6 +308,13 @@ export default {
|
|
|
|
|
// 'sys_show_hide', 'sys_normal_disable', 'bms_template_type',
|
|
|
|
|
dicts: ['bms_responsibility_unit', 'bms_declaration_channels', 'bms_level', 'jjh_project_type'],
|
|
|
|
|
data() {
|
|
|
|
|
let validateTime = (rule, value, callback) => {
|
|
|
|
|
if (new Date(value[1]) < new Date()) {
|
|
|
|
|
callback(new Error('选择结束时间需大于当前时间'))
|
|
|
|
|
} else {
|
|
|
|
|
callback()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
@ -330,8 +337,8 @@ export default {
|
|
|
|
|
enterpriseDirectory: undefined,
|
|
|
|
|
templateName: undefined,
|
|
|
|
|
responsibilityUnit: undefined,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
current: 1,
|
|
|
|
|
size: 10,
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {
|
|
|
|
@ -358,7 +365,8 @@ export default {
|
|
|
|
|
{ required: true, message: "请选择申报途径", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
reportTime: [
|
|
|
|
|
{ required: true, message: "请选择日期", trigger: "blur" }
|
|
|
|
|
{ required: true, message: "请选择日期", trigger: "blur" },
|
|
|
|
|
{validator: validateTime, trigger: 'blur'},
|
|
|
|
|
],
|
|
|
|
|
isFrame: [
|
|
|
|
|
{ required: true, message: "名录维护方式不能为空", trigger: "blur" }
|
|
|
|
@ -481,6 +489,7 @@ export default {
|
|
|
|
|
let isFrame
|
|
|
|
|
fileList.length > 0 ? isFrame = 1 : isFrame = 0
|
|
|
|
|
this.$set(this.form, 'isFrame', isFrame)
|
|
|
|
|
// this.enterpriseDirectoryList = this.form.enterpriseDirectoryList
|
|
|
|
|
} else {
|
|
|
|
|
this.$set(this.form, 'isFrame', 0)
|
|
|
|
|
}
|
|
|
|
@ -532,6 +541,11 @@ export default {
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if(this.title == "申报补录") {
|
|
|
|
|
if(this.form.isFrame == 0) {
|
|
|
|
|
delete this.form['enterpriseDirectoryList'];
|
|
|
|
|
delete this.form['fileName'];
|
|
|
|
|
delete this.form['fileList'];
|
|
|
|
|
}
|
|
|
|
|
supplementation(this.form).then(res=>{
|
|
|
|
|
this.$modal.msgSuccess("补录成功");
|
|
|
|
|
this.open = false;
|
|
|
|
@ -609,8 +623,9 @@ export default {
|
|
|
|
|
// this.templateList = this.templateListLock.filter((item) => {
|
|
|
|
|
// return item.responsibilityUnit == valid
|
|
|
|
|
// })
|
|
|
|
|
this.templateList = []
|
|
|
|
|
allList({responsibilityUnit:Number(valid),projectClassify:Number(this.projectId)}).then(res=>{
|
|
|
|
|
console.log(res);
|
|
|
|
|
// console.log(res);
|
|
|
|
|
this.templateList = res.data || []
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -624,8 +639,9 @@ export default {
|
|
|
|
|
// this.templateList = this.templateListLock.filter((item) => {
|
|
|
|
|
// return item.responsibilityUnit == valId
|
|
|
|
|
// })
|
|
|
|
|
this.templateList = []
|
|
|
|
|
allList({responsibilityUnit:Number(this.unitId),projectClassify:Number(valId)}).then(res=>{
|
|
|
|
|
console.log(res);
|
|
|
|
|
// console.log(res);
|
|
|
|
|
this.templateList = res.data || []
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -675,8 +691,10 @@ export default {
|
|
|
|
|
uploadFile(form).then(response => {
|
|
|
|
|
this.fileList = []
|
|
|
|
|
this.fileList.push(file)
|
|
|
|
|
this.form.fileList = this.fileList
|
|
|
|
|
console.log('this.fileList: ', this.fileList);
|
|
|
|
|
// this.form.fileList = this.fileList
|
|
|
|
|
this.$set(this.form, 'fileList', this.fileList)
|
|
|
|
|
// console.log('this.fileList: ', this.fileList);
|
|
|
|
|
// console.log('this.form.fileList: ', this.form.fileList);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|