|
|
|
@ -137,7 +137,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="next">
|
|
|
|
|
<div class="selected">
|
|
|
|
|
草稿箱(<span> {{ 100 }} 家</span>)
|
|
|
|
|
草稿箱(<span> {{ enterpriseTotal }} 家</span>)
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn" ref="next" @click="btnNext">下一步</div>
|
|
|
|
|
</div>
|
|
|
|
@ -153,6 +153,13 @@ import dictzh from "@/utils/dictzh.js";
|
|
|
|
|
// 行政区域
|
|
|
|
|
import executive from "../../yingji/echarts/executive.vue";
|
|
|
|
|
import { listNew, getNew, delNew, addNew, updateNew } from "@/api/yingji/new";
|
|
|
|
|
import {
|
|
|
|
|
listEnterprise,
|
|
|
|
|
getEnterprise,
|
|
|
|
|
delEnterprise,
|
|
|
|
|
addEnterprise,
|
|
|
|
|
updateEnterprise,
|
|
|
|
|
} from "@/api/yingji/enterprise";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
dicts: [
|
|
|
|
@ -203,12 +210,47 @@ export default {
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {},
|
|
|
|
|
// 查询计划企业参数
|
|
|
|
|
queryPlanEnterpriseParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
enterpriseId: null,
|
|
|
|
|
createId: null,
|
|
|
|
|
updateId: null,
|
|
|
|
|
userId: null,
|
|
|
|
|
deptId: null,
|
|
|
|
|
district: null,
|
|
|
|
|
plannedYear: null,
|
|
|
|
|
isPoint: "",
|
|
|
|
|
enterpriseName: null,
|
|
|
|
|
lawSort: null,
|
|
|
|
|
lawAreas: null,
|
|
|
|
|
lawLevel: null,
|
|
|
|
|
lawHierarchy: null,
|
|
|
|
|
plannedMonth: null,
|
|
|
|
|
status: 1,
|
|
|
|
|
checkStatus: null,
|
|
|
|
|
checkId: null,
|
|
|
|
|
checkAgeing: null,
|
|
|
|
|
},
|
|
|
|
|
enterpriseList: [],
|
|
|
|
|
enterpriseTotal: 0,
|
|
|
|
|
// 表单参数
|
|
|
|
|
formPlanEnterprise: {},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getPlanEnterpriseList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询计划企业列表 */
|
|
|
|
|
getPlanEnterpriseList() {
|
|
|
|
|
listEnterprise(this.queryPlanEnterpriseParams).then((response) => {
|
|
|
|
|
this.enterpriseList = response.data;
|
|
|
|
|
this.enterpriseTotal = response.data.length;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 查询企业新列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -222,7 +264,53 @@ export default {
|
|
|
|
|
this.$emit("nextTab", 1);
|
|
|
|
|
},
|
|
|
|
|
// 加入草稿箱
|
|
|
|
|
handleAddDrafts(row) {},
|
|
|
|
|
handleAddDrafts(row) {
|
|
|
|
|
// console.log("1", row);
|
|
|
|
|
this.resetPlanEnterprise();
|
|
|
|
|
this.formPlanEnterprise.plannedYear = this.$moment(new Date()).format(
|
|
|
|
|
"yyyy"
|
|
|
|
|
);
|
|
|
|
|
this.formPlanEnterprise.plannedMonth = "";
|
|
|
|
|
this.formPlanEnterprise.enterpriseId = row.enterpriseId;
|
|
|
|
|
this.formPlanEnterprise.enterpriseName = row.enterpriseName;
|
|
|
|
|
this.formPlanEnterprise.district = row.district;
|
|
|
|
|
this.formPlanEnterprise.status = 0;
|
|
|
|
|
// console.log("2", this.formPlanEnterprise);
|
|
|
|
|
addEnterprise(this.formPlanEnterprise).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("加入成功");
|
|
|
|
|
this.getList(); //对应草稿箱的消失需要后台写
|
|
|
|
|
this.getPlanEnterpriseList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 表单重置
|
|
|
|
|
resetPlanEnterprise() {
|
|
|
|
|
this.formPlanEnterprise = {
|
|
|
|
|
id: null,
|
|
|
|
|
enterpriseId: null,
|
|
|
|
|
createId: null,
|
|
|
|
|
createBy: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateId: null,
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
userId: null,
|
|
|
|
|
deptId: null,
|
|
|
|
|
district: null,
|
|
|
|
|
plannedYear: null,
|
|
|
|
|
isPoint: null,
|
|
|
|
|
enterpriseName: null,
|
|
|
|
|
lawSort: null,
|
|
|
|
|
lawAreas: null,
|
|
|
|
|
lawLevel: null,
|
|
|
|
|
lawHierarchy: null,
|
|
|
|
|
plannedMonth: null,
|
|
|
|
|
status: null,
|
|
|
|
|
checkStatus: null,
|
|
|
|
|
checkId: null,
|
|
|
|
|
checkAgeing: null,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
// 查看企业详情
|
|
|
|
|
handleInfo(row) {
|
|
|
|
|
this.$refs.firmDialog.open(row);
|
|
|
|
|