zhangtao
laozt 1 year ago
parent e08a87b2d1
commit c3e60ab508

@ -8,11 +8,11 @@
*/ */
import request from '@/utils/request' import request from '@/utils/request'
// 首页表格 // // 首页表格
export function indexRegionalism(params) { // export function indexRegionalism(params) {
return request({ // return request({
url: "/pharmaceuticals/division/tree", // url: "",
method: "get", // method: "get",
params, // params,
}); // });
} // }

@ -1,117 +1,110 @@
import request from '@/utils/request' import request from "@/utils/request";
// 分页条件查询省重点企业 // 分页条件查询省重点企业
export function listEnterprise(query) { export function listEnterprise(query) {
return request({ return request({
url: '/pharmaceuticals/bKeyEnterprise', url: "/pharmaceuticals/bKeyEnterprise",
method: 'get', method: "get",
params: query params: query,
}) });
} }
// 新增省重点企业 // 新增省重点企业
export function addEnterprise(data) { export function addEnterprise(data) {
return request({ return request({
url: '/pharmaceuticals/bKeyEnterprise', url: "/pharmaceuticals/bKeyEnterprise",
method: 'post', method: "post",
data data,
}) });
} }
//修改省重点企业 //修改省重点企业
export function updateEnterprise(data) { export function updateEnterprise(data) {
return request({ return request({
url: '/pharmaceuticals/bKeyEnterprise', url: "/pharmaceuticals/bKeyEnterprise",
method: 'put', method: "put",
data data,
}) });
} }
//删除省重点企业 //删除省重点企业
export function deleteEnterprise(data) { export function deleteEnterprise(data) {
return request({ return request({
url: '/pharmaceuticals/bKeyEnterprise', url: "/pharmaceuticals/bKeyEnterprise",
method: 'delete', method: "delete",
params: data params: data,
}) });
} }
//导入省重点企业 //导入省重点企业
export function exportEnterprise(data) { export function exportEnterprise(data) {
return request({ return request({
url: '/pharmaceuticals/bKeyEnterprise/common/importExcel', url: "/pharmaceuticals/bKeyEnterprise/common/importExcel",
method: 'post', method: "post",
data, data,
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded' "Content-Type": "application/x-www-form-urlencoded",
} },
}) });
} }
//通过主键查询单条省重点企业 //通过主键查询单条省重点企业
export function getEnterprise(id) { export function getEnterprise(id) {
return request({ return request({
url: `/pharmaceuticals/bKeyEnterprise/${id}`, url: `/pharmaceuticals/bKeyEnterprise/${id}`,
method: 'get', method: "get",
}) });
} }
//查询企业信息列表 //查询企业信息列表
export function businessList(data) { export function businessList(data) {
return request({ return request({
url: `/pharmaceuticals/info/list`, url: `/pharmaceuticals/info/list`,
method: 'get', method: "get",
params: data params: data,
}) });
} }
//查询执法列表 //查询执法列表
export function enforcingDetail(data) { export function enforcingDetail(data) {
return request({ return request({
url: `/pharmaceuticals/bPlanEnterprise/getZhifa`, url: `/pharmaceuticals/bPlanEnterprise/getZhifa`,
method: 'get', method: "get",
params: data params: data,
});
})
} }
//执法列表详情 //执法列表详情
export function enforcingGet(id) { export function enforcingGet(id) {
return request({ return request({
url: `/pharmaceuticals/examine/${id}`, url: `/pharmaceuticals/examine/${id}`,
method: 'get', method: "get",
}) });
} }
// 根据字段查询字典信息 // 根据字段查询字典信息
export function listDist(query) { export function listDist(query) {
return request({ return request({
url: '/pharmaceuticals/dictdata', url: "/pharmaceuticals/dictdata",
method: 'get', method: "get",
params: query params: query,
}) });
}
//计划企业表数结构
export function planeEnTree(data) {
return request({
url: '/pharmaceuticals/division/tree',
method: 'get',
params:data
})
} }
// 行政区划树结构 // 行政区划树结构
export function xzTree() { export function xzTree() {
return request({ return request({
url: '/pharmaceuticals/division/tree', url: "/pharmaceuticals/division/tree",
method: 'get', method: "get",
}) });
} }
//执法计划工作情况统计 //执法计划工作情况统计
export function workStatistics(data) { export function workStatistics(data) {
return request({ return request({
url: '/pharmaceuticals/bPlanEnterprise/getZhifaCount', url: "/pharmaceuticals/bPlanEnterprise/getZhifaCount",
method: 'get', method: "get",
params:data params: data,
}) });
} }
//各区域执法计划 //各区域执法计划
export function quyuPlan(data) { export function quyuPlan(data) {
return request({ return request({
url: '/pharmaceuticals/bPlanEnterprise/getplan', url: "/pharmaceuticals/bPlanEnterprise/getplan",
method: 'get', method: "get",
params:data params: data,
}) });
} }

@ -198,7 +198,6 @@ export default {
}, },
// //
xzList() { xzList() {
// xzTree().then((res) => {
let treeData = JSON.parse(localStorage.getItem("TREE_DATA")) let treeData = JSON.parse(localStorage.getItem("TREE_DATA"))
treeData.forEach((value, index) => { treeData.forEach((value, index) => {
this.areaData.push({ this.areaData.push({
@ -215,7 +214,6 @@ export default {
}); });
} }
}); });
// });
}, },
// //
componendDistrict(district) { componendDistrict(district) {

@ -161,7 +161,7 @@
/> />
</div> </div>
<!-- 发布计划 --> <!-- 发布计划 -->
<add-dialog ref="addDialog" v-on:close="padlockOne" /> <add-dialog ref="addDialog" v-on:close="closeAddDialog" />
</div> </div>
</template> </template>
<script> <script>
@ -226,8 +226,11 @@ export default {
rules: {}, rules: {},
}; };
}, },
methods: { methods: {
//
closeAddDialog() {
this.getList();
},
/** 查询计划企业列表 */ /** 查询计划企业列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -289,39 +292,39 @@ export default {
/** 详情按钮操作 */ handleInfo() {}, /** 详情按钮操作 */ handleInfo() {},
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); // this.reset();
const id = row.id || this.ids; // const id = row.id || this.ids;
getEnterprise(id).then((response) => { // getEnterprise(id).then((response) => {
this.form = response.data; // this.form = response.data;
this.open = true; // this.open = true;
this.title = "修改计划企业"; // this.title = "";
}); // });
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.$refs["form"].validate((valid) => { // this.$refs["form"].validate((valid) => {
if (valid) { // if (valid) {
if (this.form.id != null) { // if (this.form.id != null) {
updateEnterprise(this.form).then((response) => { // updateEnterprise(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); // this.$modal.msgSuccess("");
this.open = false; // this.open = false;
this.getList(); // this.getList();
}); // });
} else { // } else {
addEnterprise(this.form).then((response) => { // addEnterprise(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); // this.$modal.msgSuccess("");
this.open = false; // this.open = false;
this.getList(); // this.getList();
}); // });
} // }
} // }
}); // });
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id;
this.$modal this.$modal
.confirm('是否确认删除计划企业编号为"' + ids + '"的数据项?') .confirm('是否确认删除计划企业的数据项?')
.then(function () { .then(function () {
return delEnterprise(ids); return delEnterprise(ids);
}) })

Loading…
Cancel
Save