接口对接
This commit is contained in:
parent
e7e7820d50
commit
1f693138cf
|
|
@ -5,4 +5,4 @@ VITE_BUILD_MODE = 'dev'
|
|||
# 开发环境接口地址
|
||||
VITE_API_URL = '/proxyApi'
|
||||
|
||||
VITE_proxyTarget = 'http://10.40.92.16:9502'
|
||||
VITE_proxyTarget = 'http://10.40.92.16:9206'
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>施工承载力管控系统</title>
|
||||
<title>南网机具租赁共享平台</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ export const apiGetCompanyInfoById = (id: any) => {
|
|||
|
||||
//=============================================企业业务开通管理
|
||||
// business/open/exportExcel
|
||||
export const apiBusinessOpenExportExcel = (params: any) => {
|
||||
export const apiBusinessOpenExportExcel = ( ) => {
|
||||
let strUrl = `business/open/exportExcel`
|
||||
return get(strUrl,{})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
import { post, get, detele } from '../index'
|
||||
|
||||
// 下架列表
|
||||
export const apiOffList = (data: any) => {
|
||||
return post('/off/selectList', data)
|
||||
}
|
||||
// 新增或者修改企业类型
|
||||
export const apiUpOffList = (data: any) => {
|
||||
// 1 上 2下
|
||||
return post('/off/upOffList', data)
|
||||
}
|
||||
|
||||
// 下架列表
|
||||
export const apiSelectInfo = (params: any) => {
|
||||
return post(`/off/selectInfo`, params)
|
||||
}
|
||||
|
|
@ -67,5 +67,21 @@ export const throttle = <T extends (...args: any[]) => ReturnType<T>>(
|
|||
}
|
||||
}
|
||||
|
||||
export const exportBlob =(res:any)=>{
|
||||
const blob = new Blob([res]); //res为后台返回的文件流,注意参数是以数组的形式上传
|
||||
const href = URL.createObjectURL(blob); //URL都要大写,这点也要注意
|
||||
const link = document.createElement("a") //生成a标签用于模拟下载
|
||||
link.download = "test.xlsx"; //自定义下载文件名称
|
||||
link.href = href //把生成的href赋值到a标签上,在这里我遇到一个问题,
|
||||
//直接赋值无法把href赋值到a标签的href上(不知道是不是因为封装框架的问题)
|
||||
//我采用了原生的方法
|
||||
//link.setAttribute("href", href);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
//释放空间
|
||||
document.body.removeChild("link");
|
||||
URL.removeObjectURL(href);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,204 @@
|
|||
/** 设备id */
|
||||
@Excel(name = "设备id")
|
||||
@ApiModelProperty(value = "设备id")
|
||||
private Long maId;
|
||||
|
||||
/** 系统编码 */
|
||||
@Excel(name = "系统编码")
|
||||
@ApiModelProperty(value = "系统编码")
|
||||
private String code;
|
||||
|
||||
/** 类型id */
|
||||
@Excel(name = "类型id")
|
||||
@ApiModelProperty(value = "类型id")
|
||||
private Long typeId;
|
||||
|
||||
/** 设备状态(自有,待上架,上架,在租,下架)考虑数据字典 */
|
||||
@Excel(name = "设备状态(自有,待上架,上架,在租,下架)考虑数据字典")
|
||||
@ApiModelProperty(value = "设备状态(自有,待上架,上架,在租,下架)考虑数据字典")
|
||||
private String maStatus;
|
||||
|
||||
/** 租赁范围 */
|
||||
@Excel(name = "租赁范围")
|
||||
@ApiModelProperty(value = "租赁范围")
|
||||
private Long leaseScope;
|
||||
|
||||
/** 设备所在地 */
|
||||
@Excel(name = "设备所在地")
|
||||
@ApiModelProperty(value = "设备所在地")
|
||||
private String location;
|
||||
|
||||
@Excel(name = "设备所在省id")
|
||||
@ApiModelProperty(value = "设备所在省id")
|
||||
private Integer provinceId;
|
||||
|
||||
@Excel(name = "设备所在市id")
|
||||
@ApiModelProperty(value = "设备所在市id")
|
||||
private Integer cityId;
|
||||
|
||||
@Excel(name = "设备所在区id")
|
||||
@ApiModelProperty(value = "设备所在省id")
|
||||
private Integer areaId;
|
||||
|
||||
/** 设备品牌 */
|
||||
@Excel(name = "设备品牌")
|
||||
@ApiModelProperty(value = "设备品牌")
|
||||
private String brand;
|
||||
|
||||
/** 设备型号 */
|
||||
@Excel(name = "设备型号")
|
||||
@ApiModelProperty(value = "设备型号")
|
||||
private String modelName;
|
||||
|
||||
/** 出厂日期 */
|
||||
@Excel(name = "出厂日期")
|
||||
@ApiModelProperty(value = "出厂日期")
|
||||
private String productionDate;
|
||||
|
||||
/** 工作时长 */
|
||||
@Excel(name = "工作时长")
|
||||
@ApiModelProperty(value = "工作时长")
|
||||
private String workingHours;
|
||||
|
||||
/** 整机序列号 */
|
||||
@Excel(name = "整机序列号")
|
||||
@ApiModelProperty(value = "整机序列号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 设备月租价 */
|
||||
@Excel(name = "设备月租价")
|
||||
@ApiModelProperty(value = "设备月租价")
|
||||
private Float monthLeasePrice;
|
||||
|
||||
/** 设备天租价 */
|
||||
@Excel(name = "设备天租价")
|
||||
@ApiModelProperty(value = "设备天租价")
|
||||
private Float dayLeasePrice;
|
||||
|
||||
/** 设备主照片 */
|
||||
@Excel(name = "设备主照片")
|
||||
@ApiModelProperty(value = "设备主照片")
|
||||
private String picUrl;
|
||||
|
||||
/** 机手月租金 */
|
||||
@Excel(name = "机手月租金")
|
||||
@ApiModelProperty(value = "机手月租金")
|
||||
private Float jsMonthPrice;
|
||||
|
||||
/** 机手天租金 */
|
||||
@Excel(name = "机手天租金")
|
||||
@ApiModelProperty(value = "机手天租金")
|
||||
private Float jsDayPrice;
|
||||
|
||||
/** 详细描述 */
|
||||
@Excel(name = "详细描述")
|
||||
@ApiModelProperty(value = "详细描述")
|
||||
private String description;
|
||||
|
||||
/** gps编号 */
|
||||
@Excel(name = "gps编号")
|
||||
@ApiModelProperty(value = "gps编号")
|
||||
private String gpsCode;
|
||||
|
||||
/** 设备所属公司 */
|
||||
@Excel(name = "设备所属公司")
|
||||
@ApiModelProperty(value = "设备所属公司")
|
||||
private Long ownCo;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Long creator;
|
||||
|
||||
/** 设备规格 */
|
||||
@Excel(name = "设备规格")
|
||||
@ApiModelProperty(value = "设备规格")
|
||||
private String specification;
|
||||
|
||||
/** 订金 */
|
||||
@Excel(name = "订金")
|
||||
@ApiModelProperty(value = "订金")
|
||||
private BigDecimal deposit;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否配备机手")
|
||||
@ApiModelProperty(value = "是否配备机手")
|
||||
private String isOperator;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否删除")
|
||||
@ApiModelProperty(value = "是否删除")
|
||||
private String isActive;
|
||||
/**文件附件*/
|
||||
private List<SysFileInfo> fileList;
|
||||
/**城市*/
|
||||
private String city;
|
||||
|
||||
|
||||
//企业名称
|
||||
@ApiModelProperty(value = "企业名称", required = true)
|
||||
private String companyName;
|
||||
|
||||
//装备类型 父级类型typeName
|
||||
@ApiModelProperty(value = "装备类型", required = true)
|
||||
private String parentDevType;
|
||||
|
||||
//类型名称 当前设备类型名称typeName
|
||||
@ApiModelProperty(value = "类型名称", required = true)
|
||||
private String devTypeName;
|
||||
|
||||
//装备名称 devTypeName+model_name
|
||||
@ApiModelProperty(value = "装备名称", required = true)
|
||||
private String devName;
|
||||
|
||||
//设备检验信息图片路径
|
||||
@ApiModelProperty(value = "设备检验信息图片路径", required = true)
|
||||
private String inspectImageUrl;
|
||||
|
||||
//设备保险信息图片路径
|
||||
@ApiModelProperty(value = "设备保险信息图片路径", required = true)
|
||||
private String insureImageUrl;
|
||||
|
||||
|
||||
//系统编码
|
||||
@ApiModelProperty(value = "系统编码", required = true)
|
||||
private String code;
|
||||
|
||||
//装备名称
|
||||
@ApiModelProperty(value = "装备名称", required = true)
|
||||
private String name;
|
||||
|
||||
//企业名称
|
||||
@ApiModelProperty(value = "企业名称", required = true)
|
||||
private String companyName;
|
||||
|
||||
//类型id 根据这个查谁的父id是这个
|
||||
@ApiModelProperty(value = "类型id", required = true)
|
||||
private Integer typeId;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "系统编码", required = true)
|
||||
private String code;
|
||||
|
||||
//装备名称
|
||||
@ApiModelProperty(value = "装备名称", required = true)
|
||||
private String name;
|
||||
|
||||
//企业名称
|
||||
@ApiModelProperty(value = "企业名称", required = true)
|
||||
private String companyName;
|
||||
|
||||
//类型id 根据这个查谁的父id是这个
|
||||
@ApiModelProperty(value = "类型id", required = true)
|
||||
private Integer typeId;
|
||||
|
||||
|
||||
/** 设备月租价 */
|
||||
@Excel(name = "设备月租价")
|
||||
@ApiModelProperty(value = "设备月租价")
|
||||
private Float monthLeasePrice;
|
||||
|
||||
/** 设备天租价 */
|
||||
@Excel(name = "设备天租价")
|
||||
@ApiModelProperty(value = "设备天租价")
|
||||
private Float dayLeasePrice;
|
||||
|
|
@ -1,12 +1,53 @@
|
|||
<template>
|
||||
<el-dialog v-model="addShow" :title="title" width="30%" draggable :close-on-click-modal="false">
|
||||
<el-form :model="form" ref="ruleFormRef" label-width="102px" :rules="formRules" style="padding: 0 80px 0px 0;">
|
||||
<el-form-item label="企业类型:" prop="enterprise">
|
||||
<el-input v-model.trim="form.enterprise" placeholder="请输入企业类型" clearable maxlength="30" />
|
||||
<el-dialog v-model="addShow" :title="title" width="1200px" draggable :close-on-click-modal="false">
|
||||
<el-form :model="form" ref="ruleFormRef" :inline="true" label-width="102px" :rules="formRules" style="padding: 0 80px 0px 0;">
|
||||
<el-form-item label="企业名称:" prop="enterprise">
|
||||
{{ form.companyName }}
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用:" prop="isEnable">
|
||||
<el-switch v-model="form.isEnable" :before-change="beforeChange" />
|
||||
<el-form-item label="租赁范围:" prop="isEnable">
|
||||
{{ form.leaseScope }}
|
||||
</el-form-item>
|
||||
<el-form-item label="出场时间:" prop="enterprise">
|
||||
{{ form.productionDate }}
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="装备名称:" prop="enterprise">
|
||||
{{ form.devName }}
|
||||
</el-form-item>
|
||||
<el-form-item label="装备编号:" prop="isEnable">
|
||||
{{ form.code }}
|
||||
</el-form-item>
|
||||
<el-form-item label="装备类别:" prop="enterprise">
|
||||
{{ form.parentDevType }}
|
||||
</el-form-item>
|
||||
<el-form-item label="品牌:" prop="isEnable">
|
||||
{{ form.brand }}
|
||||
</el-form-item>
|
||||
<el-form-item label="装备规格:" prop="enterprise">
|
||||
{{ form.companyName }}
|
||||
</el-form-item>
|
||||
<el-form-item label="装备位置:" prop="isEnable">
|
||||
{{ form.specification }}
|
||||
</el-form-item>
|
||||
<el-form-item label="装备组别:" prop="enterprise">
|
||||
{{ form.devTypeName }}
|
||||
</el-form-item>
|
||||
<el-form-item label="租金:" prop="isEnable">
|
||||
{{ form.monthLeasePrice}}
|
||||
</el-form-item>
|
||||
<el-form-item label="是否配备机手:" prop="enterprise">
|
||||
{{ form.isOperator}}
|
||||
</el-form-item>
|
||||
<el-form-item label="检验信息:" prop="isEnable">
|
||||
{{ form.inspectImageUrl}}
|
||||
</el-form-item>
|
||||
<el-form-item label="保险信息:" prop="enterprise">
|
||||
{{ form.insureImageUrl}}
|
||||
</el-form-item>
|
||||
<el-form-item label="工作时长:" prop="enterprise">
|
||||
{{ form.workingHours}}
|
||||
</el-form-item>
|
||||
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
|
|
@ -20,13 +61,14 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
|
||||
|
||||
import type { FormInstance, FormRules } from 'element-plus'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { apiSelectInfo } from "http/api/equip"
|
||||
|
||||
const emits = defineEmits(['send'])
|
||||
const addShow = ref(false)
|
||||
let title = ref("新增")
|
||||
let title = ref("审批详情")
|
||||
const ruleFormRef: any = ref()
|
||||
const form = reactive({
|
||||
enterprise: '',
|
||||
|
|
@ -43,8 +85,8 @@ const formRules = reactive<FormRules<any>>({
|
|||
enterprise: [
|
||||
{ required: true, message: '请输入企业类型', trigger: 'blur' },
|
||||
],
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
const publishFn = () => {
|
||||
|
|
@ -78,15 +120,22 @@ const beforeChange = (ev: any) => {
|
|||
|
||||
}
|
||||
|
||||
|
||||
const initData=async(val:any)=>{
|
||||
const params= {
|
||||
ids:val.maId+""
|
||||
}
|
||||
const res = await apiSelectInfo(params)
|
||||
console.log("res=apiSelectInfo",res)
|
||||
}
|
||||
|
||||
const open = (val: any) => {
|
||||
title.value = "新增"
|
||||
console.log("openopenopen",val)
|
||||
addShow.value = true
|
||||
initData(val)
|
||||
}
|
||||
|
||||
const edit = () => {
|
||||
title.value = "编辑"
|
||||
|
||||
addShow.value = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,21 +2,21 @@
|
|||
<el-card shadow="always" class="search_header_top_row1">
|
||||
|
||||
<el-form :inline="true" :model="filterForm" class="demo-form-inline">
|
||||
<el-form-item label="关键字">
|
||||
<!-- <el-form-item label="关键字">
|
||||
<el-input v-model="filterForm.keyword" placeholder="请输入关键字" clearable />
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
|
||||
<el-form-item label="编码">
|
||||
<el-input v-model="filterForm.code" placeholder="请输入编码" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="装备名称">
|
||||
<el-input v-model="filterForm.equipment" placeholder="请输入装备名称" clearable />
|
||||
<el-input v-model="filterForm.name" placeholder="请输入装备名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="企业名称">
|
||||
<el-input v-model="filterForm.compnayName" placeholder="请输入企业名称" clearable />
|
||||
<el-input v-model="filterForm.companyName" placeholder="请输入企业名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="企业名称">
|
||||
<el-input v-model="filterForm.equipmentType" placeholder="请输入企业名称" clearable />
|
||||
<el-input v-model="filterForm.typeId" placeholder="请输入企业名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item >
|
||||
<el-button type="primary" @click="serachFn">查询</el-button>
|
||||
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
</el-form-item>
|
||||
<el-form-item >
|
||||
<el-button type="primary" @click="auditBatchFn">批量审批</el-button>
|
||||
<el-button type="primary" @click="deleteBatchFn">批量下架</el-button>
|
||||
<el-button type="primary" :disabled="props.selectItemList.length==0" @click="auditBatchFn">批量审批</el-button>
|
||||
<el-button type="primary" :disabled="props.selectItemList.length==0" @click="deleteBatchFn">批量下架</el-button>
|
||||
<el-button type="primary" @click="exportFn">导出</el-button>
|
||||
</el-form-item>
|
||||
|
||||
|
|
@ -38,13 +38,17 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
const emits = defineEmits(['search','reset','auditBatch','export','deleteBatch'])
|
||||
|
||||
const props = defineProps({
|
||||
selectItemList:{
|
||||
type:Array,
|
||||
default:[]
|
||||
}
|
||||
})
|
||||
const filterForm = reactive({
|
||||
keyword: '',
|
||||
code:'',
|
||||
equipment:"",
|
||||
compnayName:'',
|
||||
equipmentType:''
|
||||
code:"",
|
||||
name:'',
|
||||
companyName:"",
|
||||
typeId:''
|
||||
})
|
||||
|
||||
const serachFn = () => {
|
||||
|
|
|
|||
|
|
@ -1,34 +1,47 @@
|
|||
<template>
|
||||
<headerTop @search="searchFn" @reset="resetFn" @export="exportFn" @deleteBatch="deleteBatchFn" @auditBatch="auditBatchFn" ></headerTop>
|
||||
<headerTop @search="searchFn" @reset="resetFn" @export="exportFn" @deleteBatch="deleteBatchFn" @auditBatch="auditBatchFn" :selectItemList="selectItemList"></headerTop>
|
||||
<addCom ref="addComRef"></addCom>
|
||||
<el-card shadow="always" class="content_body_row">
|
||||
<el-table :data="tableListInfo.list" border style="width: 100%" show-overflow-tooltip
|
||||
:max-height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'"
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'">
|
||||
<el-table-column type="index" width="72" label="序号" />
|
||||
<el-table-column prop="v_company" label="企业名称" min-width="150" />
|
||||
<el-table-column prop="v_code" label="编码" min-width="160">
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'"
|
||||
:row-key="getRowKeys" @selection-change="handleSelectionChange"
|
||||
:header-cell-style="{ background: '#F2F3F5' }">
|
||||
<el-table-column type="selection" width="55" :reserve-selection="true" />
|
||||
<el-table-column type="index" width="72" label="序号" />
|
||||
<el-table-column prop="companyName" label="企业名称" min-width="150" />
|
||||
<el-table-column prop="code" label="编码" min-width="160">
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_mnoney" label="租赁范围" min-width="160">
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_equipmentType" label="装备类型" min-width="160">
|
||||
<el-table-column prop="parentDevType" label="装备类型" min-width="160">
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_equipmentCount" label="装备数量" min-width="160">
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_equipmentName" label="装备名称" min-width="160">
|
||||
|
||||
<el-table-column prop="devName" label="装备名称" min-width="160">
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_money" label="租金" min-width="160">
|
||||
<template #default="scope">
|
||||
<div>
|
||||
{{scope.row.monthLeasePrice }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" min-width="160">
|
||||
<template #default="scope">
|
||||
<div class="todo_status_c" v-if="scope.row.v_status=='1'">
|
||||
待审批
|
||||
<div class="todo_status_c" v-if="scope.row.v_status=='15'">
|
||||
待上架审批
|
||||
</div>
|
||||
<div class="pass_status_c" v-else-if="scope.row.v_status=='2'">
|
||||
已通过
|
||||
<div class="pass_status_c" v-else-if="scope.row.v_status=='16'">
|
||||
待租
|
||||
</div>
|
||||
<div class="reject_status_c" v-else-if="scope.row.v_status=='3'">
|
||||
已驳回
|
||||
<div class="pass_status_c" v-else-if="scope.row.v_status=='17'">
|
||||
在租
|
||||
</div>
|
||||
<div class="reject_status_c" v-else-if="scope.row.v_status=='18'">
|
||||
下架
|
||||
</div>
|
||||
<div class="pass_status_c" v-else-if="scope.row.v_status=='43'">
|
||||
自有
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -58,74 +71,18 @@
|
|||
import headerTop from "./com/headerTop.vue"
|
||||
import addCom from "./com/addCom.vue"
|
||||
import { ElConfirmBeforeOpert } from "utils/elementCom"
|
||||
import { apiOffList, apiUpOffList } from "http/api/equip"
|
||||
const addComRef = ref()
|
||||
const paginationInfo = reactive({
|
||||
currentPage: 1,
|
||||
pageNum: 1,
|
||||
pageSize: 15
|
||||
})
|
||||
const tableData = [
|
||||
{
|
||||
v_id: '1',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_mnoney: 'California',
|
||||
v_equipmentType: 'Los Angeles',
|
||||
v_equipmentCount: 'No. 189, Grove St, Los Angeles',
|
||||
v_equipmentName: 'CA 90036',
|
||||
v_money:'255',
|
||||
v_status: '1',
|
||||
},
|
||||
{
|
||||
v_id: '2',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_mnoney: 'California',
|
||||
v_equipmentType: 'Los Angeles',
|
||||
v_equipmentCount: 'No. 189, Grove St, LosNo. 189, Grove St, Los Angeles Angeles',
|
||||
v_equipmentName: 'CA 90036',
|
||||
v_money:'255',
|
||||
v_status: '1',
|
||||
},
|
||||
{
|
||||
v_id: '3',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_mnoney: 'California',
|
||||
v_equipmentType: 'Los Angeles',
|
||||
v_equipmentCount: 'No. 189, Grove St, Los Angeles',
|
||||
v_equipmentName: 'CA 90036',
|
||||
v_money:'255',
|
||||
v_status: '1',
|
||||
},
|
||||
{
|
||||
v_id: '4',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_mnoney: 'California',
|
||||
v_equipmentType: 'Los Angeles',
|
||||
v_equipmentCount: 'No. 189, Grove St, Los Angeles',
|
||||
v_equipmentName: 'CA 90036',
|
||||
v_money:'255',
|
||||
v_status: '1',
|
||||
|
||||
},
|
||||
{
|
||||
v_id: '5',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_mnoney: 'California',
|
||||
v_equipmentType: 'Los Angeles',
|
||||
v_equipmentCount: 'No. 189, Grove St, Los Angeles',
|
||||
v_equipmentName: 'CA 90036',
|
||||
v_money:'255',
|
||||
v_status: '2',
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
let total = ref(0)
|
||||
let tableListInfo = reactive({
|
||||
list: tableData
|
||||
list: []
|
||||
})
|
||||
let searchParams: any = {}
|
||||
const selectItemList =ref([])
|
||||
|
||||
|
||||
const editRowFn = (row: any) => {
|
||||
|
|
@ -152,8 +109,9 @@ const deleteRowFn = (row: any) => {
|
|||
|
||||
}
|
||||
|
||||
const searchFn = (val:any) => {
|
||||
|
||||
const searchFn = (params:any) => {
|
||||
searchParams = params
|
||||
initTableList()
|
||||
}
|
||||
|
||||
const resetFn = (val:any) => {
|
||||
|
|
@ -164,25 +122,49 @@ const exportFn = (val:any) => {
|
|||
|
||||
}
|
||||
const auditFn = (row: any) => {
|
||||
|
||||
addComRef.value.open(row)
|
||||
}
|
||||
const showFn = (row: any) => {
|
||||
|
||||
addComRef.value.open(row)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const getPageFn = (val: any) => {
|
||||
paginationInfo.currentPage = val.currentPage
|
||||
paginationInfo.pageNum = val.pageNum
|
||||
paginationInfo.pageSize = val.pageSize
|
||||
initTableList()
|
||||
}
|
||||
|
||||
const initTableList = () => {
|
||||
|
||||
const initTableList = async () => {
|
||||
const params = {
|
||||
...searchParams,
|
||||
...paginationInfo
|
||||
}
|
||||
const res: any = await apiOffList(params)
|
||||
console.log("apiGetCompanyInfoSelectList", res)
|
||||
tableListInfo.list = res.rows
|
||||
// tableListInfo.list =
|
||||
total.value = res.total
|
||||
}
|
||||
|
||||
const getRowKeys =(row:any)=>{
|
||||
return row.maId
|
||||
}
|
||||
|
||||
const handleSelectionChange =(val:any)=>{
|
||||
console.log("valhandleSelectionChange",val)
|
||||
selectItemList.value=val
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
initTableList()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
<el-card shadow="always" class="content_body_row">
|
||||
<el-table :data="tableListInfo.list" border style="width: 100%" show-overflow-tooltip
|
||||
:max-height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'"
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'">
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'"
|
||||
:header-cell-style="{ background: '#F2F3F5' }">
|
||||
<el-table-column type="index" width="72" label="序号" />
|
||||
<el-table-column prop="companyName" label="企业名称" min-width="150" />
|
||||
<el-table-column prop="businessType" label="开通业务类型" min-width="150" />
|
||||
|
|
@ -38,13 +39,14 @@
|
|||
<el-table-column label="操作" align="center" width="160">
|
||||
|
||||
<template #default="scope">
|
||||
<el-button type="primary" size="small" @click.prevent="editRowFn(scope.row)" v-if="scope.row.status == '0'">
|
||||
<el-button type="primary" size="small" @click.prevent="editRowFn(scope.row)"
|
||||
v-if="scope.row.status == '0'">
|
||||
审批
|
||||
</el-button>
|
||||
<el-button type="plain" size="small" @click.prevent="showRowFn(scope.row)">
|
||||
查看
|
||||
</el-button>
|
||||
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -59,7 +61,9 @@
|
|||
import headerTop from "./com/headerTop.vue"
|
||||
import addCom from "./com/addCom.vue"
|
||||
import { ElConfirmBeforeOpert } from "utils/elementCom"
|
||||
import {apiBusinessOpenselectList} from "http/api/enterprise"
|
||||
import { ElMessage } from "element-plus"
|
||||
import {exportBlob} from "utils/index"
|
||||
import { apiBusinessOpenselectList, apiBusinessOpenExportExcel } from "http/api/enterprise"
|
||||
const router = useRouter()
|
||||
const addComRef = ref()
|
||||
const paginationInfo = reactive({
|
||||
|
|
@ -74,24 +78,24 @@ let searchParams: any = {}
|
|||
|
||||
const editRowFn = (row: any) => {
|
||||
router.push({
|
||||
name:'entryAuditDetails',
|
||||
query:{
|
||||
type:'open',
|
||||
subType:'edit',
|
||||
id:row.id,
|
||||
coId:row.coId
|
||||
name: 'entryAuditDetails',
|
||||
query: {
|
||||
type: 'open',
|
||||
subType: 'edit',
|
||||
id: row.id,
|
||||
coId: row.coId
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
const showRowFn = (row: any) => {
|
||||
router.push({
|
||||
name:'entryAuditDetails',
|
||||
query:{
|
||||
type:'open',
|
||||
subType:'show',
|
||||
id:row.id,
|
||||
coId:row.coId
|
||||
name: 'entryAuditDetails',
|
||||
query: {
|
||||
type: 'open',
|
||||
subType: 'show',
|
||||
id: row.id,
|
||||
coId: row.coId
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -115,16 +119,23 @@ const deleteRowFn = (row: any) => {
|
|||
|
||||
}
|
||||
|
||||
const searchFn = () => {
|
||||
|
||||
const searchFn = (params:any) => {
|
||||
searchParams = params
|
||||
initTableList()
|
||||
}
|
||||
|
||||
const resetFn = () => {
|
||||
|
||||
}
|
||||
|
||||
const exportFn = () => {
|
||||
const exportFn = async () => {
|
||||
const res:any = await apiBusinessOpenExportExcel()
|
||||
ElMessage({
|
||||
type: "success",
|
||||
message: "导出成功"
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
const getPageFn = (val: any) => {
|
||||
paginationInfo.pageNum = val.pageNum
|
||||
|
|
@ -132,7 +143,7 @@ const getPageFn = (val: any) => {
|
|||
initTableList()
|
||||
}
|
||||
|
||||
const initTableList =async () => {
|
||||
const initTableList = async () => {
|
||||
const params = {
|
||||
...searchParams,
|
||||
...paginationInfo
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
<el-card shadow="always" class="content_body_row">
|
||||
<el-table :data="tableListInfo.list" border style="width: 100%" show-overflow-tooltip
|
||||
:max-height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 48px)'"
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 48px)'">
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 48px)'"
|
||||
:header-cell-style="{ background: '#F2F3F5' }">
|
||||
<el-table-column type="index" width="72" label="序号" />
|
||||
<el-table-column prop="companyName" label="企业名称" min-width="150" />
|
||||
<el-table-column prop="creditCode" label="统一社会信用代码" min-width="160">
|
||||
|
|
@ -57,8 +58,10 @@
|
|||
<script lang="ts" setup>
|
||||
import headerTop from "./com/headerTop.vue"
|
||||
import addCom from "./com/addCom.vue"
|
||||
import { apiGetCompanyInfoSelectList} from "http/api/enterprise"
|
||||
import moment from "moment";
|
||||
import { apiGetCompanyInfoSelectList, apiCompanyExportExcel } from "http/api/enterprise"
|
||||
import moment from "moment";
|
||||
import { ElMessage } from "element-plus"
|
||||
import {exportBlob} from "utils/index"
|
||||
const router = useRouter()
|
||||
const addComRef = ref()
|
||||
const paginationInfo = reactive({
|
||||
|
|
@ -66,40 +69,40 @@ const paginationInfo = reactive({
|
|||
pageSize: 15
|
||||
})
|
||||
let total = ref(0)
|
||||
|
||||
|
||||
let tableListInfo:any = reactive({
|
||||
list:[]
|
||||
|
||||
let tableListInfo: any = reactive({
|
||||
list: []
|
||||
})
|
||||
|
||||
const auditFn=(row: any) => {
|
||||
const auditFn = (row: any) => {
|
||||
|
||||
router.push({
|
||||
name:'entryAuditDetails',
|
||||
query:{
|
||||
type:'settleIn',
|
||||
subType:'edit',
|
||||
id:row.companyId
|
||||
}
|
||||
})
|
||||
}
|
||||
const showRowFn=(row: any) => {
|
||||
router.push({
|
||||
name:'entryAuditDetails',
|
||||
query:{
|
||||
type:'settleIn',
|
||||
subType:'show',
|
||||
id:row.companyId
|
||||
name: 'entryAuditDetails',
|
||||
query: {
|
||||
type: 'settleIn',
|
||||
subType: 'edit',
|
||||
id: row.companyId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const showRowFn = (row: any) => {
|
||||
router.push({
|
||||
name: 'entryAuditDetails',
|
||||
query: {
|
||||
type: 'settleIn',
|
||||
subType: 'show',
|
||||
id: row.companyId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let searchParams: any = {}
|
||||
const searchFn = (params: any) => {
|
||||
searchParams = params
|
||||
console.log("searchParams",params)
|
||||
searchParams.beginTime= moment(params.dataRange[0]).format('yyyy-MM-DD')
|
||||
searchParams.endTime= moment(params.dataRange[1]).format('yyyy-MM-DD')
|
||||
console.log("searchParams", params)
|
||||
searchParams.beginTime = moment(params.dataRange[0]).format('yyyy-MM-DD')
|
||||
searchParams.endTime = moment(params.dataRange[1]).format('yyyy-MM-DD')
|
||||
initTableList()
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +110,20 @@ const resetFn = () => {
|
|||
|
||||
}
|
||||
|
||||
const exportFn = () => {
|
||||
const exportFn = async () => {
|
||||
|
||||
const res: any = await apiCompanyExportExcel({})
|
||||
// console.log("res-apiCompanyExportExcel", res)
|
||||
|
||||
const data = res.data.body
|
||||
console.log("res-apiCompanyExportExcel", data)
|
||||
|
||||
exportBlob(data)
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: "导出成功"
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
const getPageFn = (val: any) => {
|
||||
|
|
@ -116,7 +132,7 @@ const getPageFn = (val: any) => {
|
|||
initTableList()
|
||||
}
|
||||
|
||||
const initTableList =async () => {
|
||||
const initTableList = async () => {
|
||||
const params = {
|
||||
...searchParams,
|
||||
...paginationInfo
|
||||
|
|
|
|||
|
|
@ -2,17 +2,14 @@
|
|||
<el-card shadow="always" class="search_header_top_row1">
|
||||
|
||||
<el-form :inline="true" :model="filterForm" class="demo-form-inline">
|
||||
<el-form-item label="关键字">
|
||||
<el-input v-model="filterForm.keyword" placeholder="请输入关键字" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="企业名称">
|
||||
<el-input v-model="filterForm.compnayName" placeholder="请输入企业名称" clearable />
|
||||
<el-input v-model="filterForm.companyName" placeholder="请输入企业名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="统一社会信用代码">
|
||||
<el-input v-model="filterForm.code" placeholder="请输入统一社会信用代码" clearable />
|
||||
<el-input v-model="filterForm.creditCode" placeholder="请输入统一社会信用代码" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户名">
|
||||
<el-input v-model="filterForm.name" placeholder="请输入用户名" clearable />
|
||||
<el-input v-model="filterForm.userName" placeholder="请输入用户名" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="入驻日期">
|
||||
<el-date-picker v-model="filterForm.dataRange" type="daterange" range-separator="To" start-placeholder="Start date"
|
||||
|
|
@ -31,12 +28,11 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
const emits = defineEmits(['search','reset','add','export'])
|
||||
|
||||
const filterForm = reactive({
|
||||
keyword: '',
|
||||
compnayName:'',
|
||||
code:'',
|
||||
name:'',
|
||||
import {getdatatime} from "utils/time"
|
||||
const filterForm:any = reactive({
|
||||
companyName:'',
|
||||
creditCode:'',
|
||||
userName:'',
|
||||
dataRange:''
|
||||
})
|
||||
|
||||
|
|
@ -54,7 +50,9 @@ const exportFn =()=>{
|
|||
const addFn =()=>{
|
||||
emits('add')
|
||||
}
|
||||
|
||||
onMounted(()=>{
|
||||
filterForm.dataRange = getdatatime()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
|
|
|
|||
|
|
@ -4,30 +4,42 @@
|
|||
<el-card shadow="always" class="content_body_row">
|
||||
<el-table :data="tableListInfo.list" border style="width: 100%" show-overflow-tooltip
|
||||
:max-height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'"
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'">
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 88px)'"
|
||||
:header-cell-style="{ background: '#F2F3F5' }">
|
||||
<el-table-column type="index" width="72" label="序号" />
|
||||
<el-table-column prop="v_company" label="企业名称" min-width="150" />
|
||||
<el-table-column prop="v_code" label="统一社会信用代码" min-width="160">
|
||||
<el-table-column prop="companyName" label="企业名称" min-width="150" />
|
||||
<el-table-column prop="creditCode" label="统一社会信用代码" min-width="160">
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_represent" label="法定代表人" min-width="160">
|
||||
<el-table-column prop="legalPerson" label="法定代表人" min-width="160">
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_auth_name" label="被授权人姓名" min-width="160">
|
||||
<el-table-column prop="authPerson" label="被授权人姓名" min-width="160">
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_username" label="用户数" min-width="160">
|
||||
<el-table-column prop="userName" label="用户名" min-width="160">
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="v_applyTime" label="入驻时间" min-width="160">
|
||||
<el-table-column prop="createTime" label="申请时间" min-width="160">
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" min-width="160">
|
||||
<el-table-column label="状态" min-width="120">
|
||||
<template #default="scope">
|
||||
<div class="todo_status_c" v-if="scope.row.v_status=='1'">
|
||||
<div class="todo_status_c" v-if="scope.row.status == '0'">
|
||||
待审批
|
||||
</div>
|
||||
<div class="pass_status_c" v-else-if="scope.row.v_status=='2'">
|
||||
<div class="pass_status_c" v-else-if="scope.row.status == '1'">
|
||||
已通过
|
||||
</div>
|
||||
<div class="reject_status_c" v-else-if="scope.row.v_status=='3'">
|
||||
<div class="reject_status_c" v-else-if="scope.row.status == '2'">
|
||||
已驳回
|
||||
</div>
|
||||
<div class="reject_status_c" v-else-if="scope.row.status == '3'">
|
||||
已下架
|
||||
</div>
|
||||
<div class="reject_status_c" v-else-if="scope.row.status == '4'">
|
||||
已注销
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="160">
|
||||
|
|
@ -43,7 +55,7 @@
|
|||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="paination_out">
|
||||
<Pagination :currentPage="paginationInfo.currentPage" :pageSize="paginationInfo.pageSize" @sendPage="getPageFn">
|
||||
<Pagination :currentPage="paginationInfo.pageNum" :pageSize="paginationInfo.pageSize" @sendPage="getPageFn">
|
||||
</Pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
|
|
@ -53,71 +65,21 @@
|
|||
import headerTop from "./com/headerTop.vue"
|
||||
import addCom from "./com/addCom.vue"
|
||||
import { ElConfirmBeforeOpert } from "utils/elementCom"
|
||||
import { apiGetCompanyInfoSelectList, apiupdateCompanyInfo } from "http/api/enterprise"
|
||||
import { ElMessage } from 'element-plus'
|
||||
const router = useRouter()
|
||||
const addComRef = ref()
|
||||
const paginationInfo = reactive({
|
||||
currentPage: 1,
|
||||
pageNum: 1,
|
||||
pageSize: 15
|
||||
})
|
||||
const tableData = [
|
||||
{
|
||||
v_id: '1',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_represent: 'California',
|
||||
v_auth_name: 'Los Angeles',
|
||||
v_username: 'No. 189, Grove St, Los Angeles',
|
||||
v_applyTime: 'CA 90036',
|
||||
v_status: '1',
|
||||
},
|
||||
{
|
||||
v_id: '2',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_represent: 'California',
|
||||
v_auth_name: 'Los Angeles',
|
||||
v_username: 'No. 189, Grove St, Los Angeles',
|
||||
v_applyTime: 'CA 90036',
|
||||
v_status: '1',
|
||||
},
|
||||
{
|
||||
v_id: '3',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_represent: 'California',
|
||||
v_auth_name: 'Los Angeles',
|
||||
v_username: 'No. 189, Grove St, Los Angeles',
|
||||
v_applyTime: 'CA 90036',
|
||||
v_status: '1',
|
||||
},
|
||||
{
|
||||
v_id: '4',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_represent: 'California',
|
||||
v_auth_name: 'Los Angeles',
|
||||
v_username: 'No. 189, Grove St, Los Angeles',
|
||||
v_applyTime: 'CA 90036',
|
||||
v_status: '1',
|
||||
|
||||
},
|
||||
{
|
||||
v_id: '5',
|
||||
v_company: '2016-05-03',
|
||||
v_code: 'Tom',
|
||||
v_represent: 'California',
|
||||
v_auth_name: 'Los Angeles',
|
||||
v_username: 'No. 189, Grove St, Los Angeles',
|
||||
v_applyTime: 'CA 90036',
|
||||
v_status: '2',
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
let total = ref(0)
|
||||
let tableListInfo = reactive({
|
||||
list: tableData
|
||||
list: []
|
||||
})
|
||||
|
||||
let searchParams: any = {}
|
||||
|
||||
|
||||
const editRowFn = (row: any) => {
|
||||
addComRef.value.edit({
|
||||
|
|
@ -125,14 +87,31 @@ const editRowFn = (row: any) => {
|
|||
})
|
||||
|
||||
}
|
||||
const showRowFn=(row: any) => {
|
||||
const showRowFn = (row: any) => {
|
||||
router.push({
|
||||
name:'enterpriseInfoDetails'
|
||||
name: 'entryAuditDetails',
|
||||
query: {
|
||||
type: 'settleIn',
|
||||
subType: 'show',
|
||||
id: row.companyId
|
||||
}
|
||||
})
|
||||
}
|
||||
const deleteItem = (row: any) => {
|
||||
const itemID = row.v_id
|
||||
const deleteItem = async (row: any) => {
|
||||
const itemID = row.companyId
|
||||
console.log("ITEMid", row)
|
||||
let params = {
|
||||
bmCompanyInfo: {
|
||||
companyId: itemID,
|
||||
status: '3'
|
||||
}
|
||||
}
|
||||
const res = await apiupdateCompanyInfo(params)
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: "下架成功"
|
||||
})
|
||||
initTableList()
|
||||
}
|
||||
|
||||
const deleteRowFn = (row: any) => {
|
||||
|
|
@ -147,8 +126,9 @@ const deleteRowFn = (row: any) => {
|
|||
|
||||
}
|
||||
|
||||
const searchFn = () => {
|
||||
|
||||
const searchFn = (params: any) => {
|
||||
searchParams = params
|
||||
initTableList()
|
||||
}
|
||||
|
||||
const resetFn = () => {
|
||||
|
|
@ -166,15 +146,24 @@ const addFn = () => {
|
|||
|
||||
|
||||
const getPageFn = (val: any) => {
|
||||
paginationInfo.currentPage = val.currentPage
|
||||
paginationInfo.pageNum = val.pageNum
|
||||
paginationInfo.pageSize = val.pageSize
|
||||
initTableList()
|
||||
}
|
||||
|
||||
const initTableList = () => {
|
||||
|
||||
const initTableList = async () => {
|
||||
const params = {
|
||||
...searchParams,
|
||||
...paginationInfo
|
||||
}
|
||||
const res: any = await apiGetCompanyInfoSelectList(params)
|
||||
console.log("apiGetCompanyInfoSelectList", res)
|
||||
tableListInfo.list = res.rows
|
||||
// tableListInfo.list =
|
||||
total.value = res.total
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
initTableList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
<el-card shadow="always" class="content_body_row">
|
||||
<el-table :data="tableListInfo.list" border style="width: 100%" show-overflow-tooltip
|
||||
:max-height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 48px)'"
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 48px)'">
|
||||
:height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 48px)'"
|
||||
:header-cell-style="{ background: '#F2F3F5' }">
|
||||
<el-table-column type="index" width="72" label="序号" />
|
||||
<el-table-column prop="name" label="企业类型" min-width="150" />
|
||||
<el-table-column prop="status" label="是否启用" min-width="220">
|
||||
|
|
@ -105,6 +106,8 @@ const exportFn = async () => {
|
|||
type: 'success',
|
||||
message: "导出成功"
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue