|
@@ -2,17 +2,23 @@
|
|
|
<div>
|
|
|
<div class="cmain">
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
- <el-form-item label="本月投资金额" prop="">
|
|
|
+ <el-form-item label="年月" prop="month">
|
|
|
+ <el-date-picker v-model="form.month" type="month" placeholder="选择月" value-format="yyyy-MM">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="投资金额" prop="price">
|
|
|
<el-input
|
|
|
type="number"
|
|
|
- v-model="form.name"
|
|
|
- placeholder=""
|
|
|
+ v-model="form.price"
|
|
|
+ placeholder="请输入投资金额"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="形象进度" prop="">
|
|
|
+
|
|
|
+ <el-form-item label="形象进度" prop="schedule">
|
|
|
<el-input
|
|
|
- v-model="form.name"
|
|
|
- placeholder=""
|
|
|
+ v-model="form.schedule"
|
|
|
+ placeholder="请输入形象进度"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -25,26 +31,63 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {
|
|
|
+ listARTICLE,
|
|
|
+ getARTICLE,
|
|
|
+ delARTICLE,
|
|
|
+ addARTICLE,
|
|
|
+ updateARTICLE,
|
|
|
+ addDATAFILLING,
|
|
|
+} from "@/api/portal/ARTICLE/ARTICLE.js";
|
|
|
export default {
|
|
|
props: {
|
|
|
+ param: {
|
|
|
+ type: Object,
|
|
|
+ default: () => {
|
|
|
+ return {};
|
|
|
+ },
|
|
|
+ },
|
|
|
layerid: {
|
|
|
type: String,
|
|
|
},
|
|
|
},
|
|
|
+ created() {
|
|
|
+ // console.log(this.param.param);
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 表单参数
|
|
|
- form: {},
|
|
|
+ form: {
|
|
|
+ articleld: this.param.param.id,
|
|
|
+ deptId: this.param.deptId,
|
|
|
+ month: "",
|
|
|
+ plan: this.param.param.deptId,
|
|
|
+ price: "",
|
|
|
+ schedule: "",
|
|
|
+ },
|
|
|
rules: {
|
|
|
- preview: [
|
|
|
- { required: true, message: "项目情况概述不能为空", trigger: "blur" },
|
|
|
+ month: [
|
|
|
+ { required: true, message: "年月不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ price: [
|
|
|
+ { required: true, message: "投资金额不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ schedule: [
|
|
|
+ { required: true, message: "形象进度不能为空", trigger: "blur" },
|
|
|
],
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
submitForm() {
|
|
|
- this.$layer.close(this.layerid);
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ addDATAFILLING(this.form).then((res) => {
|
|
|
+ this.$modal.msgSuccess("填报成功!");
|
|
|
+ this.$layer.close(this.layerid);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
};
|