|
|
|
@ -3,8 +3,8 @@
|
|
|
|
|
* @version:
|
|
|
|
|
* @Author: JC9527
|
|
|
|
|
* @Date: 2023-09-28 11:25:48
|
|
|
|
|
* @LastEditors: JC9527
|
|
|
|
|
* @LastEditTime: 2023-10-11 11:06:21
|
|
|
|
|
* @LastEditors: laozt 2721205210@qq.com
|
|
|
|
|
* @LastEditTime: 2023-12-19 10:56:26
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<el-dialog
|
|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
<el-input v-model="form.enterpriseId" :disabled="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="行政区划:" class="form-input">
|
|
|
|
|
<el-input v-model="form.district" :disabled="true"></el-input>
|
|
|
|
|
<el-input v-model="cdistrict" :disabled="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="发布时间:" class="form-input">
|
|
|
|
|
<el-input v-model="form.createTime" :disabled="true"></el-input>
|
|
|
|
@ -52,8 +52,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="计划月份:" class="form-input">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="plannedMonth"
|
|
|
|
|
multiple
|
|
|
|
|
v-model="form.plannedMonth"
|
|
|
|
|
collapse-tags
|
|
|
|
|
style="margin-left: 20px"
|
|
|
|
|
placeholder="请选择月份"
|
|
|
|
@ -90,12 +89,19 @@
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
listEnterprise,
|
|
|
|
|
getEnterprise,
|
|
|
|
|
delEnterprise,
|
|
|
|
|
addEnterprise,
|
|
|
|
|
updateEnterprise,
|
|
|
|
|
} from "@/api/yingji/enterprise";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
mydistrict: "",
|
|
|
|
|
plannedMonth: 1,
|
|
|
|
|
cdistrict: "",
|
|
|
|
|
form: {
|
|
|
|
|
plannedYear: "",
|
|
|
|
|
plannedMonth: "",
|
|
|
|
@ -206,22 +212,26 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
multipleChange(e) {
|
|
|
|
|
// console.log(e.join(","));
|
|
|
|
|
this.form.plannedMonth = e.join(",");
|
|
|
|
|
// console.log(e);
|
|
|
|
|
this.form.plannedMonth = e;
|
|
|
|
|
},
|
|
|
|
|
openDialog(row) {
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
row.district = this.componendDistrict(row.district);
|
|
|
|
|
|
|
|
|
|
this.cdistrict = this.componendDistrict(row.district);
|
|
|
|
|
this.form = row;
|
|
|
|
|
this.form.plannedMonth = "1";
|
|
|
|
|
console.log(this.form);
|
|
|
|
|
// console.log(this.form);
|
|
|
|
|
},
|
|
|
|
|
closeDialog() {
|
|
|
|
|
this.dialogVisible = false;
|
|
|
|
|
},
|
|
|
|
|
onSubmit() {},
|
|
|
|
|
onSubmit() {
|
|
|
|
|
// console.log(this.form);
|
|
|
|
|
updateEnterprise(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.closeDialog()
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 匹配行政区划
|
|
|
|
|
componendDistrict(district) {
|
|
|
|
|
let fullName;
|
|
|
|
|