first commit
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
|
||||
<div id="app" v-cloak>
|
||||
<guava ref="guava">
|
||||
<syr-table :smm.sync="smm" auditval="填报" ref="syrTable" request="/platfotm/syr/info/zqtb/pageData">
|
||||
<template slot="operation">
|
||||
<el-table-column label="操作" fixed="right" width="100">
|
||||
<template slot-scope="{row}">
|
||||
<el-button size="mini" type="primary"
|
||||
@click="openView(row,false)"
|
||||
:title="row.zqtbjzsj<moment().format('YYYY-MM-DD HH:mm:ss')?'时间已过':''"
|
||||
:disabled="row.zqtbjzsj<moment().format('YYYY-MM-DD HH:mm:ss')"
|
||||
v-if="row.state===70">
|
||||
填报
|
||||
</el-button>
|
||||
<el-button @click="openView(row,true)" size="mini" v-else>
|
||||
查看
|
||||
</el-button>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
</syr-table>
|
||||
|
||||
<template #edit>
|
||||
<syr-info-new ref="auditInfo">
|
||||
<template slot="handle">
|
||||
<el-tab-pane label="填报中期检查表" name="tbzqjcb">
|
||||
<el-form :model="formData" :rules="rules" label-position="top" ref="Form">
|
||||
<el-form-item label="项目的进展情况及存在的问题(不超过300字)" prop="zqxmjzqk" prop="zqxmjzqk">
|
||||
<el-input maxlength="300" rows="5" type="textarea"
|
||||
v-model="formData.zqxmjzqk"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="经费预算明细(不超过100字)" prop="zqjfysmx" prop="zqjfysmx">
|
||||
<el-input maxlength="100" rows="3" type="textarea"
|
||||
v-model="formData.zqjfysmx"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注(不超过50字)" prop="zqbz" prop="zqbz">
|
||||
<el-input maxlength="50" rows="2" type="textarea" v-model="formData.zqbz"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row class="mt20 text-center">
|
||||
<el-button @click="smm.status='table'">返 回</el-button>
|
||||
<el-button @click="doHandle(true)" type="primary">提 交</el-button>
|
||||
</el-row>
|
||||
</el-tab-pane>
|
||||
</template>
|
||||
</syr-info-new>
|
||||
</template>
|
||||
|
||||
<template #view>
|
||||
<syr-info-new ref="viewInfo"></syr-info-new>
|
||||
</template>
|
||||
</guava>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
let vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [initTableMixins],
|
||||
data() {
|
||||
return {
|
||||
smm: {
|
||||
status: 'table'
|
||||
},
|
||||
formData: {},
|
||||
rules: {
|
||||
zqxmjzqk: [{required: true, message: '请填写项目的进展情况及存在的问题', trigger: ['blur', 'change']}],
|
||||
zqjfysmx: [{required: true, message: '请填写经费预算明细', trigger: ['blur', 'change']}]
|
||||
},
|
||||
tableShow: true,
|
||||
handleShow: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
'syr-table': httpVueLoader('/components/syr/syrtable.vue'),
|
||||
'syr-info': httpVueLoader('/components/syr/syrinfo.vue'),
|
||||
'syr-info-new': httpVueLoader('/components/syr/SyrInfoNew.vue'),
|
||||
},
|
||||
methods: {
|
||||
openView(row, isView) {
|
||||
if (isView) {
|
||||
this.$refs.guava.view()
|
||||
this.$refs.viewInfo.openView(row.id)
|
||||
} else {
|
||||
this.$refs.guava.edit()
|
||||
this.$refs.auditInfo.openView(row.id, 'tbzqjcb')
|
||||
this.formData = {
|
||||
id: row.id,
|
||||
zqxmjzqk: '',
|
||||
zqjfysmx: '',
|
||||
zqbz: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
async doHandle(res) {
|
||||
this.$refs['Form'].validate(async valid => {
|
||||
if (valid) {
|
||||
const resp = await $.post('/platfotm/syr/info/zqtb/doHandle', this.formData)
|
||||
if (resp.code === 0) {
|
||||
this.$refs.guava.index()
|
||||
this.notifySuccess(resp.msg)
|
||||
this.$refs['syrTable'].doSearch()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
|
||||
Reference in New Issue
Block a user