feat(front):前端样式调整;

master
jiyufei 3 months ago
parent 548524916b
commit 0adaeefb96

@ -14,14 +14,14 @@
label-position="right">
<template v-if="!loading">
<!-- 具体表单 -->
<el-col :span="8">
<el-col :span="24">
<jnpf-form-tip-item label="账单号" prop="billNumbe">
<JnpfInput v-model="dataForm.billNumbe" @change="changeData('billNumbe', -1)"
placeholder="自动生成" disabled clearable :style='{ "width": "100%" }'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<el-col :span="24">
<jnpf-form-tip-item label="账单状态" prop="billStatus">
<JnpfSelect v-model="dataForm.billStatus" @change="changeData('billStatus', -1)"
placeholder="请选择账单状态" clearable :style='{ "width": "100%" }'
@ -29,7 +29,7 @@
</JnpfSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<el-col :span="24">
<jnpf-form-tip-item label="支付方式" prop="payStatus">
<JnpfSelect v-model="dataForm.payStatus" @change="changeData('payStatus', -1)"
placeholder="请选择支付方式" clearable :style='{ "width": "100%" }'
@ -37,14 +37,14 @@
</JnpfSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<el-col :span="24">
<jnpf-form-tip-item label="支付金额" prop="payAmount">
<JnpfInputNumber v-model="dataForm.payAmount" @change="changeData('payAmount', -1)"
placeholder="支付金额" :step="1">
</JnpfInputNumber>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<el-col :span="24">
<jnpf-form-tip-item label="相关附件" prop="billAttachment">
<JnpfUploadFile v-model="dataForm.billAttachment"
@change="changeData('billAttachment', -1)" :fileSize="10" sizeUnit="MB" :limit="9"

@ -63,57 +63,58 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod" @row-click="handleRowClick">
<el-table-column width="55" align="center">
<el-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod" @row-click="handleRowClick" border>
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
<el-table-column width="50" align="center" fixed="left" >
<template slot-scope="scope">
<input type="radio" :value="scope.row.id" v-model="selectedRowId"
@change="handleSelectionChange">
</template>
</el-table-column>
<el-table-column prop="contractNumber" label="合同编号" align="left">
<el-table-column prop="contractNumber" label="合同编号" align="center"width="150"fixed="left" >
</el-table-column>
<el-table-column prop="contractId" label="合同名称" align="left">
<el-table-column prop="contractId" label="合同名称" align="center"width="200"fixed="left" >
</el-table-column>
<el-table-column prop="merchantId" label="商户名称" align="left">
<el-table-column prop="merchantId" label="商户名称" align="center"width="200"fixed="left" >
</el-table-column>
<el-table-column label="账单状态" prop="billStatus" algin="left">
<el-table-column label="账单状态" prop="billStatus" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.billStatus }}
</template>
</el-table-column>
<el-table-column prop="billAmount" label="账单金额" align="left">
<el-table-column prop="billAmount" label="账单金额" align="center"width="150">
<template slot-scope="scope" v-if="scope.row.billAmount">
<JnpfNumber v-model="scope.row.billAmount" :thousands="false" />
</template>
</el-table-column>
<el-table-column label="支付方式" prop="payStatus" algin="left">
<el-table-column label="支付方式" prop="payStatus" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.payStatus }}
</template>
</el-table-column>
<el-table-column prop="payAmount" label="支付金额" align="left">
<el-table-column prop="payAmount" label="支付金额" align="center"width="150">
<template slot-scope="scope" v-if="scope.row.payAmount">
<JnpfNumber v-model="scope.row.payAmount" :thousands="false" />
</template>
</el-table-column>
<el-table-column label="通知方式" prop="notificationMethod" algin="left">
<el-table-column label="通知方式" prop="notificationMethod" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.notificationMethod }}
</template>
</el-table-column>
<el-table-column label="通知状态" prop="notificationState" algin="left">
<el-table-column label="通知状态" prop="notificationState" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.notificationState }}
</template>
</el-table-column>
<el-table-column prop="noticeTime" label="通知时间" align="left">
<el-table-column prop="noticeTime" label="通知时间" align="center"width="150">
</el-table-column>
<el-table-column prop="confirmPersonnel" label="确认人" align="left">
<el-table-column prop="confirmPersonnel" label="确认人" align="center" width="150">
</el-table-column>
<el-table-column prop="confirmTime" label="确认时间" align="left">
<el-table-column prop="confirmTime" label="确认时间" align="center"width="150">
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150"align="center">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button>
@ -124,7 +125,7 @@
</el-button>
</template>
</el-table-column>
</JNPF-table>
</el-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>

@ -2,7 +2,7 @@
<transition name="el-zoom-in-center">
<div class="JNPF-preview-main">
<div class="JNPF-common-page-header">
<el-page-header @back="goBack"/>变更合同
<el-page-header @back="goBack" />变更合同
<div class="options">
<el-dropdown class="dropdown" placement="bottom">
<el-button style="width:70px">
@ -58,10 +58,10 @@
<el-col :span="8">
<jnpf-form-tip-item label="签订日期" prop="signingDate">
<JnpfDatePicker v-model="dataForm.signingDate" disabled @change="changeData('signingDate', -1)"
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
placeholder="请选择签订日期" clearable :style='{ "width": "100%" }' type="date"
format="yyyy-MM-dd">
<JnpfDatePicker v-model="dataForm.signingDate" disabled
@change="changeData('signingDate', -1)" :startTime="dateTime(false, 1, 1, '', '')"
:endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择签订日期" clearable
:style='{ "width": "100%" }' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</jnpf-form-tip-item>
</el-col>
@ -75,9 +75,10 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="商户名称" prop="merchantName">
<JnpfSelect v-model="dataForm.merchantName" disabled @change="changeData('merchantName', -1)"
placeholder="请选择" clearable :style='{ "width": "100%" }' filterable
:options="merchantNameOptions" :props="merchantNameProps">
<JnpfSelect v-model="dataForm.merchantName" disabled
@change="changeData('merchantName', -1)" placeholder="请选择" clearable
:style='{ "width": "100%" }' filterable :options="merchantNameOptions"
:props="merchantNameProps">
</JnpfSelect>
</jnpf-form-tip-item>
</el-col>
@ -201,19 +202,19 @@
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="空间名称" prop="spaceName">
<el-table-column label="空间名称" prop="spaceId">
<template slot="header" v-if="false">
<span class="required-sign">*</span>空间名称
</template>
<template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.spaceName"
@change="changeData('spacecontract-spaceName', scope.$index)"
<JnpfPopupSelect v-model="scope.row.spaceId"
@change="changeData('spacecontract-spaceId', scope.$index)"
:rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.spacecontractspaceName" placeholder="请选择"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='name' :field="'spaceName' + scope.$index"
interfaceId="582491427901014533" :pageSize="20"
:columnOptions="spacecontractspaceNamecolumnOptions" clearable
:templateJson="interfaceRes.spacecontractspaceId" placeholder="请选择空间"
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
popupType="dialog" relationField='name' :field="'spaceId' + scope.$index"
interfaceId="584015452494104389" :pageSize="20"
:columnOptions="spacecontractspaceIdcolumnOptions" disabled clearable
:style='{ "width": "100%" }'>
</JnpfPopupSelect>
</template>
@ -236,7 +237,7 @@
<template slot-scope="scope">
<JnpfInput v-model="scope.row.totalRentalPrice"
@change="changeData('spacecontract-totalRentalPrice', scope.$index)"
placeholder="请输入租金总价" clearable :style='{ "width": "100%" }'>
placeholder="请输入租金总价" disabled clearable :style='{ "width": "100%" }'>
</JnpfInput>
</template>
</el-table-column>
@ -667,7 +668,7 @@ export default {
let template = {
paramList: templateJsonList
}
getDataInterfaceRes('582491427901014533', template).then(res => {
getDataInterfaceRes('584015452494104389', template).then(res => {
let data = res.data
this.parkIdOptions = data
this.changeDataFormData(1, 'parkId', 'parkId', index, '')
@ -761,26 +762,26 @@ export default {
} else {
this.btnLoading = true
}
request({
url: '/api/example/Contract/' + this.dataForm.id,
method: 'PUT',
data: _data
}).then((res) => {
this.$message({
message: res.msg,
type: 'success',
duration: 1000,
onClose: () => {
if (this.dataFormSubmitType == 2) return this.continueBtnLoading = false
this.visible = false
this.btnLoading = false
this.$emit('refresh', true)
}
})
}).catch(() => {
this.btnLoading = false
this.continueBtnLoading = false
request({
url: '/api/example/Contract/' + this.dataForm.id,
method: 'PUT',
data: _data
}).then((res) => {
this.$message({
message: res.msg,
type: 'success',
duration: 1000,
onClose: () => {
if (this.dataFormSubmitType == 2) return this.continueBtnLoading = false
this.visible = false
this.btnLoading = false
this.$emit('refresh', true)
}
})
}).catch(() => {
this.btnLoading = false
this.continueBtnLoading = false
})
},
addspacecontractList() {
let item = {

@ -79,61 +79,62 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod" @row-click="handleRowClick">
<el-table-column width="55" align="center">
<el-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod" @row-click="handleRowClick" border>
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
<el-table-column width="50" align="center" fixed="left">
<template slot-scope="scope">
<input type="radio" :value="scope.row.id" v-model="selectedRowId"
@change="handleSelectionChange">
</template>
</el-table-column>
<el-table-column prop="contractNumber" label="合同编号" align="left">
<el-table-column prop="contractNumber" label="合同编号" align="center"width="150"fixed="left">
</el-table-column>
<el-table-column prop="contractName" label="合同名称" align="left">
<el-table-column prop="contractName" label="合同名称" align="center"width="150"fixed="left">
</el-table-column>
<el-table-column label="合同状态" prop="contractStatus" algin="left">
<el-table-column label="合同状态" prop="contractStatus" align="center"width="150"fixed="left">
<template slot-scope="scope">
{{ scope.row.contractStatus }}
</template>
</el-table-column>
<el-table-column prop="parkId" label="园区名称" align="left">
<el-table-column prop="parkId" label="园区名称" align="center"width="150">
</el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="left">
<el-table-column prop="merchantName" label="商户名称" align="center"width="150">
</el-table-column>
<el-table-column prop="signingDate" label="签订日期" align="left">
<el-table-column prop="signingDate" label="签订日期" align="center"width="150">
</el-table-column>
<el-table-column prop="leaseTerm" label="租期" align="left">
<el-table-column prop="leaseTerm" label="租期" align="center"width="150">
</el-table-column>
<el-table-column prop="startTime" label="开始时间" align="left">
<el-table-column prop="startTime" label="开始时间" align="center"width="150">
</el-table-column>
<el-table-column prop="endTime" label="结束时间" align="left">
<el-table-column prop="endTime" label="结束时间" align="center"width="150">
</el-table-column>
<el-table-column prop="contacts" label="联系人" align="left">
<el-table-column prop="contacts" label="联系人" align="center"width="150">
</el-table-column>
<el-table-column prop="contactsPhone" label="联系电话" align="left">
<el-table-column prop="contactsPhone" label="联系电话" align="center"width="150">
</el-table-column>
<el-table-column prop="totalRentalPrice" label="租金总价" align="left">
<el-table-column prop="totalRentalPrice" label="租金总价" align="center"width="150">
</el-table-column>
<el-table-column label="计价方式" prop="pricingMethod" algin="left">
<el-table-column label="计价方式" prop="pricingMethod" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.pricingMethod }}
</template>
</el-table-column>
<el-table-column prop="totalDeposit" label="押金总计" align="left">
<el-table-column prop="totalDeposit" label="押金总计" align="center"width="150">
</el-table-column>
<el-table-column label="支付方式" prop="payDeposit" algin="left">
<el-table-column label="支付方式" prop="payDeposit" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.payDeposit }}
</template>
</el-table-column>
<el-table-column label="退还方式" prop="returnDeposit" algin="left">
<el-table-column label="退还方式" prop="returnDeposit" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.returnDeposit }}
</template>
</el-table-column>
<el-table-column prop="contractExplain" label="合同说明" align="left">
<el-table-column prop="contractExplain" label="合同说明" align="center"width="300">
</el-table-column>
<el-table-column label="操作" fixed="right" width="180">
<el-table-column label="操作" fixed="right" width="180"align="center">
<template slot-scope="scope">
<el-button type="text" v-show="scope.row.contractStatus === ''"
@click="addOrUpdateHandle(scope.row)">编辑
@ -148,7 +149,7 @@
</el-button>
</template>
</el-table-column>
</JNPF-table>
</el-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>

@ -25,12 +25,12 @@
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预计开始时间" prop="expectedStartTime">
<jnpf-form-tip-item label="开始时间" prop="expectedStartTime">
<p>{{ dataForm.expectedStartTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预计结束时间" prop="expectedEndTime">
<jnpf-form-tip-item label="结束时间" prop="expectedEndTime">
<p>{{ dataForm.expectedEndTime }}</p>
</jnpf-form-tip-item>
</el-col>

@ -48,7 +48,7 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预计开始时间" prop="expectedStartTime">
<jnpf-form-tip-item label="开始时间" prop="expectedStartTime">
<JnpfDatePicker v-model="dataForm.expectedStartTime"
@change="changeData('expectedStartTime', -1)" :startTime="dateTime(false, 1, 1, '', '')"
:endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择预计开始时间" clearable
@ -58,7 +58,7 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预计结束时间" prop="expectedEndTime">
<jnpf-form-tip-item label="结束时间" prop="expectedEndTime">
<JnpfDatePicker v-model="dataForm.expectedEndTime"
@change="changeData('expectedEndTime', -1)" :startTime="dateTime(false, 1, 1, '', '')"
:endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择预计结束时间" clearable

@ -61,39 +61,40 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod">
<el-table-column prop="applicationNumber" label="申请单号" align="left">
<el-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod" border>
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
<el-table-column prop="applicationNumber" label="申请单号" align="center" fixed="left"width="150">
</el-table-column>
<el-table-column prop="merchantId" label="商户名称" align="left">
<el-table-column prop="merchantId" label="商户名称" align="center" fixed="left"width="150">
</el-table-column>
<el-table-column prop="contractId" label="合同名称" align="left">
<el-table-column prop="contractId" label="合同名称" align="center"fixed="left"width="150">
</el-table-column>
<el-table-column prop="spaceId" label="空间名称" align="left">
<el-table-column prop="spaceId" label="空间名称" align="center"fixed="left"width="150">
</el-table-column>
<el-table-column prop="expectedStartTime" label="预计开始时间" align="left">
<el-table-column prop="expectedStartTime" label="预计开始时间" align="center"width="150">
</el-table-column>
<el-table-column prop="expectedEndTime" label="预计结束时间" align="left">
<el-table-column prop="expectedEndTime" label="预计结束时间" align="center"width="150">
</el-table-column>
<el-table-column prop="depositAmount" label="押金金额" align="left">
<el-table-column prop="depositAmount" label="押金金额" align="center"width="150">
</el-table-column>
<el-table-column label="押金是否退回" prop="isTheDepositRefunded" algin="left">
<el-table-column label="押金是否退回" prop="isTheDepositRefunded" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.isTheDepositRefunded }}
</template>
</el-table-column>
<el-table-column prop="depositRefundDate" label="押金退回日期" align="left">
<el-table-column prop="depositRefundDate" label="押金退回日期" align="center"width="150">
</el-table-column>
<el-table-column label="装修进度" prop="decorationProgress" algin="left">
<el-table-column label="装修进度" prop="decorationProgress" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.decorationProgress }}
</template>
</el-table-column>
<el-table-column prop="contacts" label="联系人" align="left">
<el-table-column prop="contacts" label="联系人" align="center"width="150">
</el-table-column>
<el-table-column prop="contactsPhone" label="联系电话" align="left">
<el-table-column prop="contactsPhone" label="联系电话" align="center"width="150">
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150" align="center">
<template slot-scope="scope">
<el-button type="text" v-show="scope.row.decorationProgress != '已装修'" @click="addOrUpdateHandle(scope.row)">
</el-button>
@ -103,7 +104,7 @@
</el-button>
</template>
</el-table-column>
</JNPF-table>
</el-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>

@ -1,179 +1,164 @@
<template>
<el-dialog title="详情"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="8" >
<jnpf-form-tip-item label="设备编码"
prop="code" >
<p>{{dataForm.code}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备名称"
prop="name" >
<p>{{dataForm.name}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备类型"
prop="type" >
<p>{{ dataForm.type }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备品牌"
prop="brand" >
<p>{{dataForm.brand}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备型号"
prop="model" >
<p>{{dataForm.model}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="批次号"
prop="batchNumber" >
<p>{{dataForm.batchNumber}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="供应商"
prop="supplier" >
<p>{{dataForm.supplier}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="供应商联系电话"
prop="supplierPhone" >
<p>{{dataForm.supplierPhone}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备状态"
prop="status" >
<p>{{ dataForm.status }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="保修期"
prop="defectsLiabilityPeriod" >
<p>{{dataForm.defectsLiabilityPeriod}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="保修开始时间"
prop="warrantyStartTime" >
<p>{{dataForm.warrantyStartTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="保修结束时间"
prop="warrantyEndTime" >
<p>{{dataForm.warrantyEndTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="设备描述"
prop="description" >
<p>{{dataForm.description}}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<jnpf-form-tip-item label="设备编码" prop="code">
<p>{{ dataForm.code }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备名称" prop="name">
<p>{{ dataForm.name }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备类型" prop="type">
<p>{{ dataForm.type }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备品牌" prop="brand">
<p>{{ dataForm.brand }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备型号" prop="model">
<p>{{ dataForm.model }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="批次号" prop="batchNumber">
<p>{{ dataForm.batchNumber }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="供应商" prop="supplier">
<p>{{ dataForm.supplier }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系电话" prop="supplierPhone">
<p>{{ dataForm.supplierPhone }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备状态" prop="status">
<p>{{ dataForm.status }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="保修期" prop="defectsLiabilityPeriod">
<p>{{ dataForm.defectsLiabilityPeriod }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="开始时间" prop="warrantyStartTime">
<p>{{ dataForm.warrantyStartTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="结束时间" prop="warrantyEndTime">
<p>{{ dataForm.warrantyEndTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item label="设备描述" prop="description">
<p>{{ dataForm.description }}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail },
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
code : '',
name : '',
type : "",
brand : '',
model : '',
batchNumber : '',
supplier : '',
supplierPhone : '',
status : "1",
defectsLiabilityPeriod : '',
warrantyStartTime : '',
warrantyEndTime : '',
description : '',
id: '',
code: '',
name: '',
type: "",
brand: '',
model: '',
batchNumber: '',
supplier: '',
supplierPhone: '',
status: "1",
defectsLiabilityPeriod: '',
warrantyStartTime: '',
warrantyEndTime: '',
description: '',
},
typeOptions:[{"fullName":"类型1","id":"10"},{"fullName":"类型2","id":"20"}],
typeProps:{"label":"fullName","value":"id" },
statusOptions:[{"fullName":"可用","id":"1"},{"fullName":"已租","id":"2"},{"fullName":"报废","id":"3"}],
statusProps:{"label":"fullName","value":"id" },
typeOptions: [{ "fullName": "类型1", "id": "10" }, { "fullName": "类型2", "id": "20" }],
typeProps: { "label": "fullName", "value": "id" },
statusOptions: [{ "fullName": "可用", "id": "1" }, { "fullName": "已租", "id": "2" }, { "fullName": "报废", "id": "3" }],
statusProps: { "label": "fullName", "value": "id" },
}
},
computed: {},
watch: {},
created() {
},
computed: {},
watch: {},
created() {
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
mounted() { },
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
})
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/example/Equipment/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/example/Equipment/detail/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
})
},
})
},
}
},
}
</script>

@ -56,7 +56,7 @@
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="供应商联系电话" prop="supplierPhone">
<jnpf-form-tip-item label="联系电话" prop="supplierPhone">
<JnpfInput v-model="dataForm.supplierPhone" @change="changeData('supplierPhone',-1)" placeholder="请输入"
clearable :style='{"width":"100%"}'>
</JnpfInput>
@ -78,7 +78,7 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="保修开始时间" prop="warrantyStartTime">
<jnpf-form-tip-item label="开始时间" prop="warrantyStartTime">
<JnpfDatePicker v-model="dataForm.warrantyStartTime" @change="changeData('warrantyStartTime',-1)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" clearable
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
@ -87,7 +87,7 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="保修结束时间" prop="warrantyEndTime">
<jnpf-form-tip-item label="结束时间" prop="warrantyEndTime">
<JnpfDatePicker v-model="dataForm.warrantyEndTime" @change="changeData('warrantyEndTime',-1)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" clearable
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd">

@ -57,40 +57,41 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod">
<el-table-column prop="code" label="设备编码" align="left">
<el-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod" border>
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
<el-table-column prop="code" label="设备编码" align="center"width="150"fixed="left">
</el-table-column>
<el-table-column prop="name" label="设备名称" align="left">
<el-table-column prop="name" label="设备名称" align="center"width="150"fixed="left">
</el-table-column>
<el-table-column label="设备状态" prop="status" algin="left">
<el-table-column label="设备状态" prop="status" align="center"width="150"fixed="left">
<template slot-scope="scope">
{{ scope.row.status}}
</template>
</el-table-column>
<el-table-column prop="batchNumber" label="批次号" align="left">
<el-table-column prop="batchNumber" label="批次号" align="center"width="150">
</el-table-column>
<el-table-column label="设备类型" prop="type" algin="left">
<el-table-column label="设备类型" prop="type" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.type}}
</template>
</el-table-column>
<el-table-column prop="brand" label="设备品牌" align="left">
<el-table-column prop="brand" label="设备品牌" align="center"width="150">
</el-table-column>
<el-table-column prop="model" label="设备型号" align="left">
<el-table-column prop="model" label="设备型号" align="center"width="150">
</el-table-column>
<el-table-column prop="supplier" label="供应商" align="left">
<el-table-column prop="supplier" label="供应商" align="center"width="150">
</el-table-column>
<el-table-column prop="supplierPhone" label="供应商联系电话" align="left">
<el-table-column prop="supplierPhone" label="供应商联系电话" align="center"width="150">
</el-table-column>
<el-table-column prop="warrantyStartTime" label="保修开始时间" align="left">
<el-table-column prop="warrantyStartTime" label="保修开始时间" align="center"width="150">
</el-table-column>
<el-table-column prop="warrantyEndTime" label="保修结束时间" align="left">
<el-table-column prop="warrantyEndTime" label="保修结束时间" align="center"width="150">
</el-table-column>
<el-table-column prop="defectsLiabilityPeriod" label="保修期" align="left">
<el-table-column prop="defectsLiabilityPeriod" label="保修期" align="center"width="150">
</el-table-column>
<el-table-column prop="description" label="设备描述" align="left">
<el-table-column prop="description" label="设备描述" align="center"width="200">
</el-table-column>
<el-table-column label="操作" fixed="right" width="200">
<el-table-column label="操作" fixed="right" align="center" width="200">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button>
@ -102,7 +103,7 @@
</el-button>
</template>
</el-table-column>
</JNPF-table>
</el-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>

@ -55,21 +55,21 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod">
<el-table-column prop="inspectionTicketNumber" label="巡检单号" align="left">
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod" border>
<el-table-column prop="inspectionTicketNumber" label="巡检单号" align="center">
</el-table-column>
<el-table-column prop="spaceName" label="空间名称" align="left">
<el-table-column prop="spaceName" label="空间名称" align="center">
</el-table-column>
<el-table-column prop="equipmentNumber" label="设备编码" align="left">
<el-table-column prop="equipmentNumber" label="设备编码" align="center">
</el-table-column>
<el-table-column prop="equipmentName" label="设备名称" align="left">
<el-table-column prop="equipmentName" label="设备名称" align="center">
</el-table-column>
<el-table-column label="设备状态" prop="equipmentStatus" algin="left">
<el-table-column label="设备状态" prop="equipmentStatus" align="center">
<template slot-scope="scope">
{{ scope.row.equipmentStatus}}
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150"align="center">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button>

@ -1,194 +1,177 @@
<template>
<el-dialog title="详情"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="8" >
<jnpf-form-tip-item label="维修单号"
prop="repairOrderNumber" >
<p>{{dataForm.repairOrderNumber}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="报修单"
prop="repairOrderId" >
<p>{{dataForm.repairOrderId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备编码"
prop="number" >
<p>{{dataForm.number}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备名称"
prop="name" >
<p>{{dataForm.name}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="维修方式"
prop="maintenanceMethods" >
<p>{{ dataForm.maintenanceMethods }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="维修进度"
prop="maintenancePlan" >
<p>{{ dataForm.maintenancePlan }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="维修人"
prop="maintenancePersonnel" >
<p>{{dataForm.maintenancePersonnel}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="维修时间"
prop="maintenanceDate" >
<p>{{dataForm.maintenanceDate}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="是否产生费用"
prop="expensesIncurred" >
<p>{{ dataForm.expensesIncurred }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="费用金额"
prop="costAmount" >
<p>{{dataForm.costAmount}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="是否计入租户账单"
prop="tenantBill" >
<p>{{ dataForm.tenantBill }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="费用说明"
prop="costDetail" >
<p>{{dataForm.costDetail}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="维修描述"
prop="maintenanceDescribe" >
<p>{{dataForm.maintenanceDescribe}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="维修照片"
prop="repairPhoto" >
<JnpfUploadImg v-model="dataForm.repairPhoto"
disabled
detailed :fileSize="10" sizeUnit="MB" :limit="9" pathType="defaultPath" :isAccount="0" >
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<jnpf-form-tip-item label="维修单号" prop="repairOrderNumber">
<p>{{ dataForm.repairOrderNumber }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="报修单" prop="repairOrderId">
<p>{{ dataForm.repairOrderId }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备编码" prop="number">
<p>{{ dataForm.number }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备名称" prop="name">
<p>{{ dataForm.name }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="维修方式" prop="maintenanceMethods">
<p>{{ dataForm.maintenanceMethods }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="维修进度" prop="maintenancePlan">
<p>{{ dataForm.maintenancePlan }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="维修人" prop="maintenancePersonnel">
<p>{{ dataForm.maintenancePersonnel }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="维修时间" prop="maintenanceDate">
<p>{{ dataForm.maintenanceDate }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="是否有费用" prop="expensesIncurred">
<p>{{ dataForm.expensesIncurred }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="费用金额" prop="costAmount">
<p>{{ dataForm.costAmount }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="是否计入租户账单" prop="tenantBill">
<p>{{ dataForm.tenantBill }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="费用说明" prop="costDetail">
<p>{{ dataForm.costDetail }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item label="维修描述" prop="maintenanceDescribe">
<p>{{ dataForm.maintenanceDescribe }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="维修照片" prop="repairPhoto">
<JnpfUploadImg v-model="dataForm.repairPhoto" disabled detailed :fileSize="10" sizeUnit="MB"
:limit="9" pathType="defaultPath" :isAccount="0">
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail },
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
repairOrderNumber : '',
repairOrderId : "",
number : '',
name : '',
maintenanceMethods : "1",
maintenancePlan : "2",
maintenancePersonnel : '',
maintenanceDate : '',
expensesIncurred : "2",
costAmount : '',
tenantBill : "2",
costDetail : '',
maintenanceDescribe : '',
repairPhoto : [],
equipmentId : '',
id: '',
repairOrderNumber: '',
repairOrderId: "",
number: '',
name: '',
maintenanceMethods: "1",
maintenancePlan: "2",
maintenancePersonnel: '',
maintenanceDate: '',
expensesIncurred: "2",
costAmount: '',
tenantBill: "2",
costDetail: '',
maintenanceDescribe: '',
repairPhoto: [],
equipmentId: '',
},
maintenanceMethodsOptions:[{"fullName":"保修期内","id":"1"},{"fullName":"更换配件","id":"2"},{"fullName":"更换设备","id":"3"}],
maintenanceMethodsProps:{"label":"fullName","value":"id" },
maintenancePlanOptions:[{"fullName":"维修中","id":"1"},{"fullName":"已维修","id":"2"}],
maintenancePlanProps:{"label":"fullName","value":"id" },
expensesIncurredOptions:[{"fullName":"是","id":"1"},{"fullName":"否","id":"2"}],
expensesIncurredProps:{"label":"fullName","value":"id" },
tenantBillOptions:[{"fullName":"是 ","id":"1"},{"fullName":"否","id":"2"}],
tenantBillProps:{"label":"fullName","value":"id" },
maintenanceMethodsOptions: [{ "fullName": "保修期内", "id": "1" }, { "fullName": "更换配件", "id": "2" }, { "fullName": "更换设备", "id": "3" }],
maintenanceMethodsProps: { "label": "fullName", "value": "id" },
maintenancePlanOptions: [{ "fullName": "维修中", "id": "1" }, { "fullName": "已维修", "id": "2" }],
maintenancePlanProps: { "label": "fullName", "value": "id" },
expensesIncurredOptions: [{ "fullName": "是", "id": "1" }, { "fullName": "否", "id": "2" }],
expensesIncurredProps: { "label": "fullName", "value": "id" },
tenantBillOptions: [{ "fullName": "是 ", "id": "1" }, { "fullName": "否", "id": "2" }],
tenantBillProps: { "label": "fullName", "value": "id" },
}
},
computed: {},
watch: {},
created() {
},
computed: {},
watch: {},
created() {
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
mounted() { },
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
})
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/example/EquipmentMaintenanceRecords/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/example/EquipmentMaintenanceRecords/detail/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
})
},
})
},
}
},
}
</script>

@ -1,53 +1,44 @@
<template>
<div class="JNPF-common-layout">
<div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="16">
<el-form @submit.native.prevent>
<el-col :span="6">
<el-form-item label="维修时间">
<JnpfDateRangePicker v-model="query.maintenanceDate"
format="yyyy-MM-dd" startPlaceholder="开始日期"
endPlaceholder="结束日期" >
</JnpfDateRangePicker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="设备编码">
<el-input v-model="query.number" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="设备名称">
<el-input v-model="query.name" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<template v-if="showAll">
<el-col :span="6">
<el-form-item label="维修进度">
<JnpfSelect v-model="query.maintenancePlan" placeholder="请选择" clearable
:options="maintenancePlanOptions"
:props="maintenancePlanProps" multiple >
</JnpfSelect>
</el-form-item>
</el-col>
</template>
<el-col :span="6">
<el-form-item label="维修时间">
<JnpfDateRangePicker v-model="query.maintenanceDate" format="yyyy-MM-dd"
startPlaceholder="开始日期" endPlaceholder="结束日期">
</JnpfDateRangePicker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="设备编码">
<el-input v-model="query.number" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="设备名称">
<el-input v-model="query.name" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<template v-if="showAll">
<el-col :span="6">
<el-form-item label="维修进度">
<JnpfSelect v-model="query.maintenancePlan" placeholder="请选择" clearable
:options="maintenancePlanOptions" :props="maintenancePlanProps" multiple>
</JnpfSelect>
</el-form-item>
</el-col>
</template>
<el-col :span="6">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search()"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset()"></el-button>
<el-button type="text" icon="el-icon-arrow-down" @click="showAll=true" v-if="!showAll">
展开
</el-button>
<el-button type="text" icon="el-icon-arrow-up" @click="showAll=false" v-else>
收起
</el-button>
<el-button type="text" icon="el-icon-arrow-down" @click="showAll = true" v-if="!showAll">
展开
</el-button>
<el-button type="text" icon="el-icon-arrow-up" @click="showAll = false" v-else>
收起
</el-button>
</el-form-item>
</el-col>
</el-form>
@ -55,485 +46,454 @@
<div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head">
<div>
<el-button type="primary" icon="icon-ym icon-ym-btn-add" @click="addOrUpdateHandle()">
</el-button>
<el-button type="primary" icon="icon-ym icon-ym-btn-add" @click="addOrUpdateHandle()">
</el-button>
</div>
<div class="JNPF-common-head-right">
<el-tooltip content="高级查询" placement="top" v-if="true">
<el-link icon="icon-ym icon-ym-filter JNPF-common-head-icon" :underline="false"
@click="openSuperQuery()" />
</el-tooltip>
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false"
@click="initData()" />
</el-tooltip>
<el-tooltip content="高级查询" placement="top" v-if="true">
<el-link icon="icon-ym icon-ym-filter JNPF-common-head-icon" :underline="false"
@click="openSuperQuery()" />
</el-tooltip>
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false"
@click="initData()" />
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod"
>
<el-table-column
prop="repairOrderNumber"
label="维修单号" align="left"
>
</el-table-column>
<el-table-column
prop="number"
label="设备编码" align="left"
>
</el-table-column>
<el-table-column
prop="name"
label="设备名称" align="left"
>
</el-table-column>
<el-table-column
prop="maintenancePersonnel"
label="维修人" align="left"
>
</el-table-column>
<el-table-column
prop="maintenanceDate"
label="维修时间" align="left"
>
</el-table-column>
<el-table-column label="维修方式" prop="maintenanceMethods" algin="left"
>
<template slot-scope="scope">
{{ scope.row.maintenanceMethods}}
</template>
</el-table-column>
<el-table-column
prop="maintenanceDescribe"
label="维修描述" align="left"
>
</el-table-column>
<el-table-column label="维修进度" prop="maintenancePlan" algin="left"
>
<template slot-scope="scope">
{{ scope.row.maintenancePlan}}
</template>
</el-table-column>
<el-table-column label="是否产生费用" prop="expensesIncurred" algin="left"
>
<template slot-scope="scope">
{{ scope.row.expensesIncurred}}
</template>
</el-table-column>
<el-table-column
prop="costAmount"
label="费用金额" align="left"
>
</el-table-column>
<el-table-column
prop="costDetail"
label="费用说明" align="left"
>
</el-table-column>
<el-table-column label="是否计入租户账单" prop="tenantBill" algin="left"
>
<template slot-scope="scope">
{{ scope.row.tenantBill}}
</template>
</el-table-column>
<el-table-column label="操作"
fixed="right" width="150" >
<template slot-scope="scope" >
<el-button type="text"
@click="addOrUpdateHandle(scope.row)" >编辑
</el-button>
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">
</el-button>
<el-button type="text"
@click="goDetail(scope.row.id)">详情
</el-button>
</template>
</el-table-column>
</JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initData"/>
</div>
<el-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod" border>
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
<el-table-column prop="repairOrderNumber" label="维修单号" align="center" width="150"fixed="left">
</el-table-column>
<el-table-column prop="number" label="设备编码" align="center"width="150"fixed="left">
</el-table-column>
<el-table-column prop="name" label="设备名称" align="center"width="150"fixed="left">
</el-table-column>
<el-table-column prop="maintenancePersonnel" label="维修人" align="center"width="150">
</el-table-column>
<el-table-column prop="maintenanceDate" label="维修时间" align="center"width="150">
</el-table-column>
<el-table-column label="维修方式" prop="maintenanceMethods" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.maintenanceMethods }}
</template>
</el-table-column>
<el-table-column label="维修进度" prop="maintenancePlan" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.maintenancePlan }}
</template>
</el-table-column>
<el-table-column label="是否产生费用" prop="expensesIncurred" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.expensesIncurred }}
</template>
</el-table-column>
<el-table-column prop="costAmount" label="费用金额" align="center"width="150">
</el-table-column>
<el-table-column prop="costDetail" label="费用说明" align="center"width="150">
</el-table-column>
<el-table-column label="是否计入租户账单" prop="tenantBill" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.tenantBill }}
</template>
</el-table-column>
<el-table-column prop="maintenanceDescribe" label="维修描述" align="center"width="300">
</el-table-column>
<el-table-column label="操作" fixed="right" width="150" align="center">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button>
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">
</el-button>
<el-button type="text" @click="goDetail(scope.row.id)">
</el-button>
</template>
</el-table-column>
</el-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>
</div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh"/>
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/>
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible = false" />
<ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" @close="toFormDetailVisible = false" />
<SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson"
@superQuery="superQuery" />
<SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson"
@superQuery="superQuery" />
</div>
</template>
<script>
import request from '@/utils/request'
import {mapGetters} from "vuex";
import {getDictionaryDataSelector} from '@/api/systemData/dictionary'
import JNPFForm from './form'
import Detail from './Detail'
import ExportBox from '@/components/ExportBox'
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
import {getDataInterfaceRes} from '@/api/systemData/dataInterface'
import { getConfigData } from '@/api/onlineDev/visualDev'
import { getDefaultCurrentValueUserIdAsync } from '@/api/permission/user'
import { getDefaultCurrentValueDepartmentIdAsync } from '@/api/permission/organize'
import columnList from './columnList'
import { thousandsFormat } from "@/components/Generator/utils/index"
import SuperQuery from '@/components/SuperQuery'
import superQueryJson from './superQueryJson'
import request from '@/utils/request'
import { mapGetters } from "vuex";
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
import JNPFForm from './form'
import Detail from './Detail'
import ExportBox from '@/components/ExportBox'
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
import { getConfigData } from '@/api/onlineDev/visualDev'
import { getDefaultCurrentValueUserIdAsync } from '@/api/permission/user'
import { getDefaultCurrentValueDepartmentIdAsync } from '@/api/permission/organize'
import columnList from './columnList'
import { thousandsFormat } from "@/components/Generator/utils/index"
import SuperQuery from '@/components/SuperQuery'
import superQueryJson from './superQueryJson'
export default {
components: {
JNPFForm,
Detail,
ExportBox,ToFormDetail , SuperQuery
},
data() {
return {
export default {
components: {
JNPFForm,
Detail,
ExportBox, ToFormDetail, SuperQuery
},
data() {
return {
keyword:'',
expandsTree: true,
refreshTree: true,
toFormDetailVisible:false,
expandObj:{},
columnOptions: [],
mergeList: [],
exportList:[],
columnList,
keyword: '',
expandsTree: true,
refreshTree: true,
toFormDetailVisible: false,
expandObj: {},
columnOptions: [],
mergeList: [],
exportList: [],
columnList,
showAll: false,
superQueryVisible: false,
superQueryJson,
uploadBoxVisible: false,
detailVisible: false,
query: {
maintenanceDate:undefined,
number:undefined,
name:undefined,
maintenancePlan:undefined,
showAll: false,
superQueryVisible: false,
superQueryJson,
uploadBoxVisible: false,
detailVisible: false,
query: {
maintenanceDate: undefined,
number: undefined,
name: undefined,
maintenancePlan: undefined,
},
treeProps: {
children: 'children',
label: 'fullName',
value: 'id',
isLeaf: 'isLeaf'
children: 'children',
label: 'fullName',
value: 'id',
isLeaf: 'isLeaf'
},
list: [],
listLoading: true,
total: 0,
total: 0,
queryData: {},
listQuery: {
superQueryJson: '',
currentPage: 1,
pageSize: 20,
superQueryJson: '',
currentPage: 1,
pageSize: 20,
sort: "desc",
sidx: "",
sidx: "",
},
formVisible: false,
flowVisible: false,
flowListVisible: false,
flowList: [],
exportBoxVisible: false,
maintenanceMethodsOptions:[{"fullName":"保修期内","id":"1"},{"fullName":"更换配件","id":"2"},{"fullName":"更换设备","id":"3"}],
maintenanceMethodsProps:{"label":"fullName","value":"id" },
maintenancePlanOptions:[{"fullName":"维修中","id":"1"},{"fullName":"已维修","id":"2"}],
maintenancePlanProps:{"label":"fullName","value":"id" },
expensesIncurredOptions:[{"fullName":"是","id":"1"},{"fullName":"否","id":"2"}],
expensesIncurredProps:{"label":"fullName","value":"id" },
tenantBillOptions:[{"fullName":"是 ","id":"1"},{"fullName":"否","id":"2"}],
tenantBillProps:{"label":"fullName","value":"id" },
maintenanceMethodsOptions: [{ "fullName": "保修期内", "id": "1" }, { "fullName": "更换配件", "id": "2" }, { "fullName": "更换设备", "id": "3" }],
maintenanceMethodsProps: { "label": "fullName", "value": "id" },
maintenancePlanOptions: [{ "fullName": "维修中", "id": "1" }, { "fullName": "已维修", "id": "2" }],
maintenancePlanProps: { "label": "fullName", "value": "id" },
expensesIncurredOptions: [{ "fullName": "是", "id": "1" }, { "fullName": "否", "id": "2" }],
expensesIncurredProps: { "label": "fullName", "value": "id" },
tenantBillOptions: [{ "fullName": "是 ", "id": "1" }, { "fullName": "否", "id": "2" }],
tenantBillProps: { "label": "fullName", "value": "id" },
interfaceRes: {
repairOrderId:[] ,
},
}
},
computed: {
...mapGetters(['userInfo']),
menuId() {
return this.$route.meta.modelId || ''
}
},
created() {
this.getColumnList(),
this.initSearchDataAndListData()
this.queryData = JSON.parse(JSON.stringify(this.query))
},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.toFormDetailVisible = true
this.$nextTick(() => {
this.$refs.toFormDetail.init(formData, modelId, defaultValue)
})
})
repairOrderId: [],
},
toggleTreeExpand(expands) {
this.refreshTree = false
this.expandsTree = expands
}
},
computed: {
...mapGetters(['userInfo']),
menuId() {
return this.$route.meta.modelId || ''
}
},
created() {
this.getColumnList(),
this.initSearchDataAndListData()
this.queryData = JSON.parse(JSON.stringify(this.query))
},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.toFormDetailVisible = true
this.$nextTick(() => {
this.refreshTree = true
this.$nextTick(() => {
this.$refs.treeBox.setCurrentKey(null)
})
this.$refs.toFormDetail.init(formData, modelId, defaultValue)
})
},
filterNode(value, data) {
if (!value) return true;
return data[this.treeProps.label].indexOf(value) !== -1;
},
loadNode(node, resolve) {
const nodeData = node.data
const config ={
treeInterfaceId:"",
treeTemplateJson:[]
}
if (config.treeInterfaceId) {
//
if (config.treeTemplateJson && config.treeTemplateJson.length) {
for (let i = 0; i < config.treeTemplateJson.length; i++) {
const element = config.treeTemplateJson[i];
element.defaultValue = nodeData[element.relationField] || ''
}
}
//
let query = {
paramList: config.treeTemplateJson || [],
}
//
getDataInterfaceRes(config.treeInterfaceId, query).then(res => {
let data = res.data
if (Array.isArray(data)) {
resolve(data);
} else {
resolve([]);
}
})
}
},
getColumnList() {
//
this.columnOptions = this.transformColumnList(this.columnList)
},
transformColumnList(columnList) {
let list = []
for (let i = 0; i < columnList.length; i++) {
const e = columnList[i];
if (!e.prop.includes('-')) {
list.push(e)
} else {
let prop = e.prop.split('-')[0]
let label = e.label.split('-')[0]
let vModel = e.prop.split('-')[1]
let newItem = {
align: "center",
jnpfKey: "table",
prop,
label,
children: []
}
e.vModel = vModel
if (!this.expandObj.hasOwnProperty(`${prop}Expand`)) this.$set(this.expandObj, `${prop}Expand`, false)
if (!list.some(o => o.prop === prop)) list.push(newItem)
for (let i = 0; i < list.length; i++) {
if (list[i].prop === prop) {
list[i].children.push(e)
break
}
}
})
},
toggleTreeExpand(expands) {
this.refreshTree = false
this.expandsTree = expands
this.$nextTick(() => {
this.refreshTree = true
this.$nextTick(() => {
this.$refs.treeBox.setCurrentKey(null)
})
})
},
filterNode(value, data) {
if (!value) return true;
return data[this.treeProps.label].indexOf(value) !== -1;
},
loadNode(node, resolve) {
const nodeData = node.data
const config = {
treeInterfaceId: "",
treeTemplateJson: []
}
if (config.treeInterfaceId) {
//
if (config.treeTemplateJson && config.treeTemplateJson.length) {
for (let i = 0; i < config.treeTemplateJson.length; i++) {
const element = config.treeTemplateJson[i];
element.defaultValue = nodeData[element.relationField] || ''
}
}
this.getMergeList(list)
this.getExportList(list)
return list
},
arraySpanMethod({ column }) {
for (let i = 0; i < this.mergeList.length; i++) {
if (column.property == this.mergeList[i].prop) {
return [this.mergeList[i].rowspan, this.mergeList[i].colspan]
}
//
let query = {
paramList: config.treeTemplateJson || [],
}
},
getMergeList(list) {
let newList = JSON.parse(JSON.stringify(list))
newList.forEach(item => {
if (item.children && item.children.length) {
let child = {
prop: item.prop + '-child-first'
}
item.children.unshift(child)
}
})
newList.forEach(item => {
if (item.children && item.children.length ) {
item.children.forEach((child, index) => {
if (index == 0) {
this.mergeList.push({
prop: child.prop,
rowspan: 1,
colspan: item.children.length
})
} else {
this.mergeList.push({
prop: child.prop,
rowspan: 0,
colspan: 0
})
}
})
//
getDataInterfaceRes(config.treeInterfaceId, query).then(res => {
let data = res.data
if (Array.isArray(data)) {
resolve(data);
} else {
this.mergeList.push({
prop: item.prop,
rowspan: 1,
colspan: 1
})
resolve([]);
}
})
},
getExportList(list) {
let exportList = []
for (let i = 0; i < list.length; i++) {
if (list[i].jnpfKey === 'table') {
for (let j = 0; j < list[i].children.length; j++) {
exportList.push(list[i].children[j])
}
},
getColumnList() {
//
this.columnOptions = this.transformColumnList(this.columnList)
},
transformColumnList(columnList) {
let list = []
for (let i = 0; i < columnList.length; i++) {
const e = columnList[i];
if (!e.prop.includes('-')) {
list.push(e)
} else {
let prop = e.prop.split('-')[0]
let label = e.label.split('-')[0]
let vModel = e.prop.split('-')[1]
let newItem = {
align: "center",
jnpfKey: "table",
prop,
label,
children: []
}
e.vModel = vModel
if (!this.expandObj.hasOwnProperty(`${prop}Expand`)) this.$set(this.expandObj, `${prop}Expand`, false)
if (!list.some(o => o.prop === prop)) list.push(newItem)
for (let i = 0; i < list.length; i++) {
if (list[i].prop === prop) {
list[i].children.push(e)
break
}
} else {
exportList.push(list[i])
}
}
this.exportList = exportList
},
goDetail(id){
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(id)
})
},
sortChange({column, prop, order}) {
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
this.listQuery.sidx = !order ? '' : prop
this.initData()
},
async initSearchDataAndListData() {
await this.initSearchData()
this.initData()
},
//
async initSearchData() {
},
initData() {
this.listLoading = true;
let _query = {
...this.listQuery,
...this.query,
keyword: this.keyword,
dataType: 0,
menuId:this.menuId,
moduleId:'583194294618161349',
type:1,
};
request({
url: `/api/example/EquipmentMaintenanceRecords/getList`,
method: 'post',
data: _query
}).then(res => {
var _list =res.data.list;
this.list = _list.map(o => ({
...o,
...this.expandObj,
}))
this.total = res.data.pagination.total
this.listLoading = false
})
},
handleDel(id) {
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
type: 'warning'
}).then(() => {
request({
url: `/api/example/EquipmentMaintenanceRecords/${id}`,
method: 'DELETE'
}).then(res => {
this.$message({
type: 'success',
message: res.msg,
onClose: () => {
this.initData()
}
});
}
this.getMergeList(list)
this.getExportList(list)
return list
},
arraySpanMethod({ column }) {
for (let i = 0; i < this.mergeList.length; i++) {
if (column.property == this.mergeList[i].prop) {
return [this.mergeList[i].rowspan, this.mergeList[i].colspan]
}
}
},
getMergeList(list) {
let newList = JSON.parse(JSON.stringify(list))
newList.forEach(item => {
if (item.children && item.children.length) {
let child = {
prop: item.prop + '-child-first'
}
item.children.unshift(child)
}
})
newList.forEach(item => {
if (item.children && item.children.length) {
item.children.forEach((child, index) => {
if (index == 0) {
this.mergeList.push({
prop: child.prop,
rowspan: 1,
colspan: item.children.length
})
} else {
this.mergeList.push({
prop: child.prop,
rowspan: 0,
colspan: 0
})
}
})
}).catch(() => {
});
},
handelUpload(){
this.uploadBoxVisible = true
this.$nextTick(() => {
this.$refs.UploadBox.init("","example/EquipmentMaintenanceRecords")
})
},
openSuperQuery() {
this.superQueryVisible = true
this.$nextTick(() => {
this.$refs.SuperQuery.init()
} else {
this.mergeList.push({
prop: item.prop,
rowspan: 1,
colspan: 1
})
},
superQuery(queryJson) {
this.listQuery.superQueryJson = queryJson
this.listQuery.currentPage = 1
this.initData()
},
addOrUpdateHandle(row, isDetail) {
let id = row?row.id:""
this.formVisible = true
this.$nextTick(() => {
this.$refs.JNPFForm.init(id, isDetail,this.list)
})
},
exportData() {
this.exportBoxVisible = true
this.$nextTick(() => {
this.$refs.ExportBox.init(this.exportList)
})
},
download(data) {
let query = {...data, ...this.listQuery, ...this.query,menuId:this.menuId}
}
})
},
getExportList(list) {
let exportList = []
for (let i = 0; i < list.length; i++) {
if (list[i].jnpfKey === 'table') {
for (let j = 0; j < list[i].children.length; j++) {
exportList.push(list[i].children[j])
}
} else {
exportList.push(list[i])
}
}
this.exportList = exportList
},
goDetail(id) {
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(id)
})
},
sortChange({ column, prop, order }) {
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
this.listQuery.sidx = !order ? '' : prop
this.initData()
},
async initSearchDataAndListData() {
await this.initSearchData()
this.initData()
},
//
async initSearchData() {
},
initData() {
this.listLoading = true;
let _query = {
...this.listQuery,
...this.query,
keyword: this.keyword,
dataType: 0,
menuId: this.menuId,
moduleId: '583194294618161349',
type: 1,
};
request({
url: `/api/example/EquipmentMaintenanceRecords/getList`,
method: 'post',
data: _query
}).then(res => {
var _list = res.data.list;
this.list = _list.map(o => ({
...o,
...this.expandObj,
}))
this.total = res.data.pagination.total
this.listLoading = false
})
},
handleDel(id) {
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
type: 'warning'
}).then(() => {
request({
url: `/api/example/EquipmentMaintenanceRecords/Actions/Export`,
method: 'post',
data: query
url: `/api/example/EquipmentMaintenanceRecords/${id}`,
method: 'DELETE'
}).then(res => {
if (!res.data.url) return
this.jnpf.downloadFile(res.data.url)
this.$refs.ExportBox.visible = false
this.exportBoxVisible = false
this.$message({
type: 'success',
message: res.msg,
onClose: () => {
this.initData()
}
});
})
},
search() {
this.listQuery.currentPage=1
this.listQuery.pageSize=20
this.listQuery.sort="desc"
this.listQuery.sidx=""
this.initData()
},
refresh(isrRefresh) {
this.formVisible = false
if (isrRefresh) this.reset()
},
reset() {
this.query = JSON.parse(JSON.stringify(this.queryData))
this.search()
},
colseFlow(isrRefresh) {
this.flowVisible = false
if (isrRefresh) this.reset()
},
}
}).catch(() => {
});
},
handelUpload() {
this.uploadBoxVisible = true
this.$nextTick(() => {
this.$refs.UploadBox.init("", "example/EquipmentMaintenanceRecords")
})
},
openSuperQuery() {
this.superQueryVisible = true
this.$nextTick(() => {
this.$refs.SuperQuery.init()
})
},
superQuery(queryJson) {
this.listQuery.superQueryJson = queryJson
this.listQuery.currentPage = 1
this.initData()
},
addOrUpdateHandle(row, isDetail) {
let id = row ? row.id : ""
this.formVisible = true
this.$nextTick(() => {
this.$refs.JNPFForm.init(id, isDetail, this.list)
})
},
exportData() {
this.exportBoxVisible = true
this.$nextTick(() => {
this.$refs.ExportBox.init(this.exportList)
})
},
download(data) {
let query = { ...data, ...this.listQuery, ...this.query, menuId: this.menuId }
request({
url: `/api/example/EquipmentMaintenanceRecords/Actions/Export`,
method: 'post',
data: query
}).then(res => {
if (!res.data.url) return
this.jnpf.downloadFile(res.data.url)
this.$refs.ExportBox.visible = false
this.exportBoxVisible = false
})
},
search() {
this.listQuery.currentPage = 1
this.listQuery.pageSize = 20
this.listQuery.sort = "desc"
this.listQuery.sidx = ""
this.initData()
},
refresh(isrRefresh) {
this.formVisible = false
if (isrRefresh) this.reset()
},
reset() {
this.query = JSON.parse(JSON.stringify(this.queryData))
this.search()
},
colseFlow(isrRefresh) {
this.flowVisible = false
if (isrRefresh) this.reset()
},
}
}
</script>

@ -66,45 +66,46 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod">
<el-table-column prop="leaseNumber" label="租赁单号" align="left">
<el-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod" border>
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
<el-table-column prop="leaseNumber" label="租赁单号" align="center" width="150" fixed="left">
</el-table-column>
<el-table-column prop="equipmentCoding" label="设备编码" align="left">
<el-table-column prop="equipmentCoding" label="设备编码" align="center"width="150" fixed="left">
</el-table-column>
<el-table-column prop="equipmentName" label="设备名称" align="left">
<el-table-column prop="equipmentName" label="设备名称" align="center"width="150" fixed="left">
</el-table-column>
<el-table-column label="租赁状态" prop="leaseStatus" algin="left">
<el-table-column label="租赁状态" prop="leaseStatus" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.leaseStatus }}
</template>
</el-table-column>
<el-table-column prop="merchantId" label="商户名称" align="left">
<el-table-column prop="merchantId" label="商户名称" align="center"width="200">
</el-table-column>
<el-table-column prop="contacts" label="联系人" align="left">
<el-table-column prop="contacts" label="联系人" align="center"width="150">
</el-table-column>
<el-table-column prop="contactsPhone" label="联系电话" align="left">
<el-table-column prop="contactsPhone" label="联系电话" align="center"width="150">
</el-table-column>
<el-table-column prop="totalLeasePrice" label="租赁总价" align="left">
<el-table-column prop="totalLeasePrice" label="租赁总价" align="center"width="150">
</el-table-column>
<el-table-column prop="leaseDeposit" label="租赁押金" align="left">
<el-table-column prop="leaseDeposit" label="租赁押金" align="center"width="150">
</el-table-column>
<el-table-column prop="startTime" label="开始时间" align="left">
<el-table-column prop="startTime" label="开始时间" align="center"width="150">
</el-table-column>
<el-table-column prop="endTime" label="结束时间" align="left">
<el-table-column prop="endTime" label="结束时间" align="center"width="150">
</el-table-column>
<el-table-column prop="returnedBy" label="归还人" align="left">
<el-table-column prop="returnedBy" label="归还人" align="center"width="150">
</el-table-column>
<el-table-column prop="returnTime" label="归还时间" align="left">
<el-table-column prop="returnTime" label="归还时间" align="center"width="150">
</el-table-column>
<el-table-column label="归还状态" prop="returnStatus" algin="left">
<el-table-column label="归还状态" prop="returnStatus" align="center"width="150">
<template slot-scope="scope">
{{ scope.row.returnStatus }}
</template>
</el-table-column>
<el-table-column prop="remarks" label="归还说明" align="left">
<el-table-column prop="remarks" label="归还说明" align="center"width="300">
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150"align="center">
<template slot-scope="scope">
<el-button type="text" v-show="scope.row.leaseStatus === '已租'" @click="addOrUpdateHandle(scope.row)">
</el-button>
@ -114,7 +115,7 @@
</el-button>
</template>
</el-table-column>
</JNPF-table>
</el-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>

@ -1,166 +1,153 @@
<template>
<el-dialog title="详情"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="8" >
<jnpf-form-tip-item label="报修单号"
prop="repairNumber" >
<p>{{dataForm.repairNumber}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备"
prop="equipmentId" >
<p>{{dataForm.equipmentId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="空间"
prop="spaceId" >
<p>{{dataForm.spaceId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="报修人"
prop="repairName" >
<p>{{dataForm.repairName}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="联系方式"
prop="contractInformation" >
<p>{{dataForm.contractInformation}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="期望维修时间"
prop="repairTime" >
<p>{{dataForm.repairTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="是否紧急"
prop="urgent" >
<p>{{ dataForm.urgent }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="消息状态"
prop="messageStatus" >
<p>{{ dataForm.messageStatus }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="故障原因"
prop="causeOmalfunction" >
<p>{{dataForm.causeOmalfunction}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="故障照片"
prop="faultPhotos" >
<JnpfUploadImg v-model="dataForm.faultPhotos"
disabled
detailed :fileSize="10" sizeUnit="MB" :limit="9" pathType="defaultPath" :isAccount="0" >
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<jnpf-form-tip-item label="报修单号" prop="repairNumber">
<p>{{ dataForm.repairNumber }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备" prop="equipmentId">
<p>{{ dataForm.equipmentId }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="空间" prop="spaceId">
<p>{{ dataForm.spaceId }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="报修人" prop="repairName">
<p>{{ dataForm.repairName }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系方式" prop="contractInformation">
<p>{{ dataForm.contractInformation }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="期望时间" prop="repairTime">
<p>{{ dataForm.repairTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="是否紧急" prop="urgent">
<p>{{ dataForm.urgent }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="消息状态" prop="messageStatus">
<p>{{ dataForm.messageStatus }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item label="故障原因" prop="causeOmalfunction">
<p>{{ dataForm.causeOmalfunction }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="故障照片" prop="faultPhotos">
<JnpfUploadImg v-model="dataForm.faultPhotos" disabled detailed :fileSize="10" sizeUnit="MB"
:limit="9" pathType="defaultPath" :isAccount="0">
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail },
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
repairNumber : '',
equipmentId : "",
equipmentNumber : '',
equipmentName : '',
spaceId : "",
repairName : '',
contractInformation : '',
repairTime : '',
urgent : "1",
messageStatus : "2",
causeOmalfunction : '',
faultPhotos : [],
spaceName : '',
regionId : '',
regionName : '',
id: '',
repairNumber: '',
equipmentId: "",
equipmentNumber: '',
equipmentName: '',
spaceId: "",
repairName: '',
contractInformation: '',
repairTime: '',
urgent: "1",
messageStatus: "2",
causeOmalfunction: '',
faultPhotos: [],
spaceName: '',
regionId: '',
regionName: '',
},
urgentOptions:[{"fullName":"非紧急","id":"1"},{"fullName":"紧急","id":"2"}],
urgentProps:{"label":"fullName","value":"id" },
messageStatusOptions:[{"fullName":"已读","id":"1"},{"fullName":"未读","id":"2"}],
messageStatusProps:{"label":"fullName","value":"id" },
urgentOptions: [{ "fullName": "非紧急", "id": "1" }, { "fullName": "紧急", "id": "2" }],
urgentProps: { "label": "fullName", "value": "id" },
messageStatusOptions: [{ "fullName": "已读", "id": "1" }, { "fullName": "未读", "id": "2" }],
messageStatusProps: { "label": "fullName", "value": "id" },
}
},
computed: {},
watch: {},
created() {
},
computed: {},
watch: {},
created() {
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
mounted() { },
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
})
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/example/EquipmentRepairRecords/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/example/EquipmentRepairRecords/detail/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
})
},
})
},
}
},
}
</script>

@ -57,34 +57,34 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod">
<el-table-column prop="repairNumber" label="报修单号" align="left">
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod"border>
<el-table-column prop="repairNumber" label="报修单号" align="center">
</el-table-column>
<el-table-column prop="equipmentNumber" label="设备编码" align="left">
<el-table-column prop="equipmentNumber" label="设备编码" align="center">
</el-table-column>
<el-table-column prop="equipmentName" label="设备名称" align="left">
<el-table-column prop="equipmentName" label="设备名称" align="center">
</el-table-column>
<el-table-column prop="spaceId" label="空间" align="left">
<el-table-column prop="spaceId" label="空间" align="center">
</el-table-column>
<el-table-column prop="causeOmalfunction" label="故障原因" align="left">
<el-table-column prop="causeOmalfunction" label="故障原因" align="center">
</el-table-column>
<el-table-column prop="repairName" label="报修人" align="left">
<el-table-column prop="repairName" label="报修人" align="center">
</el-table-column>
<el-table-column prop="contractInformation" label="联系方式" align="left">
<el-table-column prop="contractInformation" label="联系方式" align="center">
</el-table-column>
<el-table-column label="是否紧急" prop="urgent" algin="left">
<el-table-column label="是否紧急" prop="urgent" align="center">
<template slot-scope="scope">
{{ scope.row.urgent}}
</template>
</el-table-column>
<el-table-column prop="repairTime" label="期望维修时间" align="left">
<el-table-column prop="repairTime" label="期望维修时间" align="center">
</el-table-column>
<el-table-column label="消息状态" prop="messageStatus" algin="left">
<el-table-column label="消息状态" prop="messageStatus" align="center">
<template slot-scope="scope">
{{ scope.row.messageStatus}}
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150" align="center">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button>

@ -1,231 +1,211 @@
<template>
<transition name="el-zoom-in-center">
<div class="JNPF-preview-main">
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<div class="JNPF-common-page-header">
<el-page-header @back="goBack"
content="详情"/>
<div class="options">
<el-button @click="goBack"> </el-button>
<transition name="el-zoom-in-center">
<div class="JNPF-preview-main">
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<div class="JNPF-common-page-header">
<el-page-header @back="goBack" content="详情" />
<div class="options">
<el-button @click="goBack"> </el-button>
</div>
</div>
<el-row :gutter="15" class=" main" :style="{ margin: '0 auto', width: '100%' }">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<jnpf-form-tip-item label="设备编码" prop="equipmentCoding">
<p>{{ dataForm.equipmentCoding }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备名称" prop="deviceName">
<p>{{ dataForm.deviceName }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备类型" prop="equipmentType">
<p>{{ dataForm.equipmentType }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备品牌" prop="equipmentBrand">
<p>{{ dataForm.equipmentBrand }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="供应商" prop="supplier">
<p>{{ dataForm.supplier }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系电话" prop="supplierPhone">
<p>{{ dataForm.supplierPhone }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备保修期" prop="equipmentWarranty">
<p>{{ dataForm.equipmentWarranty }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="开始时间" prop="warrantyStartTime">
<p>{{ dataForm.warrantyStartTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="结束时间" prop="warrantyEndTime">
<p>{{ dataForm.warrantyEndTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="状态" prop="state">
<p>{{ dataForm.state }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备状态" prop="deviceStatus">
<p>{{ dataForm.deviceStatus }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="MAC地址" prop="deviceMacAddress">
<p>{{ dataForm.deviceMacAddress }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="空间" prop="spaceId">
<p>{{ dataForm.spaceId }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="区域名称" prop="regionName">
<p>{{ dataForm.regionName }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item label="设备描述" prop="deviceDescription">
<p>{{ dataForm.deviceDescription }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="安装时间" prop="installationTime">
<p>{{ dataForm.installationTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="负责人" prop="personInCharge">
<p>{{ dataForm.personInCharge }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系电话" prop="chargePhone">
<p>{{ dataForm.chargePhone }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备码" prop="equipmentCode">
<p>{{ dataForm.equipmentCode }}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
</div>
</div>
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="8" >
<jnpf-form-tip-item label="设备编码"
prop="equipmentCoding" >
<p>{{dataForm.equipmentCoding}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备名称"
prop="deviceName" >
<p>{{dataForm.deviceName}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备类型"
prop="equipmentType" >
<p>{{ dataForm.equipmentType }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备品牌"
prop="equipmentBrand" >
<p>{{dataForm.equipmentBrand}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="供应商"
prop="supplier" >
<p>{{dataForm.supplier}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="供应商联系电话"
prop="supplierPhone" >
<p>{{dataForm.supplierPhone}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备保修期"
prop="equipmentWarranty" >
<p>{{dataForm.equipmentWarranty}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="保修开始时间"
prop="warrantyStartTime" >
<p>{{dataForm.warrantyStartTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="保修结束时间"
prop="warrantyEndTime" >
<p>{{dataForm.warrantyEndTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="状态"
prop="state" >
<p>{{ dataForm.state }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备状态(正常、异常)"
prop="deviceStatus" >
<p>{{ dataForm.deviceStatus }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备MAC地址"
prop="deviceMacAddress" >
<p>{{dataForm.deviceMacAddress}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="空间"
prop="spaceId" >
<p>{{dataForm.spaceId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="区域名称"
prop="regionName" >
<p>{{dataForm.regionName}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="设备描述"
prop="deviceDescription" >
<p>{{dataForm.deviceDescription}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="安装时间"
prop="installationTime" >
<p>{{dataForm.installationTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="负责人"
prop="personInCharge" >
<p>{{dataForm.personInCharge}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="负责人联系电话"
prop="chargePhone" >
<p>{{dataForm.chargePhone}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="设备码"
prop="equipmentCode" >
<p>{{dataForm.equipmentCode}}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
</div>
</transition>
</transition>
</template>
<script>
import request from '@/utils/request'
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail },
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
equipmentCoding : '',
deviceName : '',
equipmentType : "",
equipmentBrand : '',
supplier : '',
supplierPhone : '',
equipmentWarranty : '',
warrantyStartTime : '',
warrantyEndTime : '',
state : "1",
deviceStatus : "1",
deviceMacAddress : '',
spaceId : "",
regionName : '',
spaceName : '',
regionId : '',
deviceDescription : '',
installationTime : '',
personInCharge : '',
chargePhone : '',
equipmentCode : '',
id: '',
equipmentCoding: '',
deviceName: '',
equipmentType: "",
equipmentBrand: '',
supplier: '',
supplierPhone: '',
equipmentWarranty: '',
warrantyStartTime: '',
warrantyEndTime: '',
state: "1",
deviceStatus: "1",
deviceMacAddress: '',
spaceId: "",
regionName: '',
spaceName: '',
regionId: '',
deviceDescription: '',
installationTime: '',
personInCharge: '',
chargePhone: '',
equipmentCode: '',
},
equipmentTypeOptions:[{"fullName":"类型1","id":"10"},{"fullName":"类型2","id":"20"}],
equipmentTypeProps:{"label":"fullName","value":"id" },
stateOptions:[{"fullName":"启用","id":"1"},{"fullName":"禁用","id":"2"}],
stateProps:{"label":"fullName","value":"id" },
deviceStatusOptions:[{"fullName":"正常","id":"1"},{"fullName":"异常","id":"2"}],
deviceStatusProps:{"label":"fullName","value":"id" },
equipmentTypeOptions: [{ "fullName": "类型1", "id": "10" }, { "fullName": "类型2", "id": "20" }],
equipmentTypeProps: { "label": "fullName", "value": "id" },
stateOptions: [{ "fullName": "启用", "id": "1" }, { "fullName": "禁用", "id": "2" }],
stateProps: { "label": "fullName", "value": "id" },
deviceStatusOptions: [{ "fullName": "正常", "id": "1" }, { "fullName": "异常", "id": "2" }],
deviceStatusProps: { "label": "fullName", "value": "id" },
}
},
computed: {},
watch: {},
created() {
},
mounted() { },
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
})
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
},
computed: {},
watch: {},
created() {
goBack() {
this.$emit('refresh')
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/example/ParkEquipment/detail/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
goBack() {
this.$emit('refresh')
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/example/ParkEquipment/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
}
})
},
})
},
}
},
}
</script>

@ -77,7 +77,7 @@
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="供应商联系电话" prop="supplierPhone">
<jnpf-form-tip-item label="联系电话" prop="supplierPhone">
<JnpfInput v-model="dataForm.supplierPhone" @change="changeData('supplierPhone', -1)"
placeholder="请输入" clearable :style='{ "width": "100%" }'>
</JnpfInput>
@ -93,7 +93,7 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="保修开始时间" prop="warrantyStartTime">
<jnpf-form-tip-item label="开始时间" prop="warrantyStartTime">
<JnpfDatePicker v-model="dataForm.warrantyStartTime"
@change="changeData('warrantyStartTime', -1)"
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
@ -104,7 +104,7 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="保修结束时间" prop="warrantyEndTime">
<jnpf-form-tip-item label="结束时间" prop="warrantyEndTime">
<JnpfDatePicker v-model="dataForm.warrantyEndTime"
@change="changeData('warrantyEndTime', -1)"
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
@ -121,7 +121,7 @@
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备状态(正常、异常)" prop="deviceStatus">
<jnpf-form-tip-item label="设备状态" prop="deviceStatus">
<JnpfSelect v-model="dataForm.deviceStatus" @change="changeData('deviceStatus', -1)"
placeholder="请选择" clearable :style='{ "width": "100%" }'
:options="deviceStatusOptions" :props="deviceStatusProps">
@ -129,7 +129,7 @@
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="设备MAC地址" prop="deviceMacAddress">
<jnpf-form-tip-item label="MAC地址" prop="deviceMacAddress">
<JnpfInput v-model="dataForm.deviceMacAddress"
@change="changeData('deviceMacAddress', -1)" placeholder="请输入" clearable
:style='{ "width": "100%" }'>
@ -186,7 +186,7 @@
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="负责人联系电话" prop="chargePhone">
<jnpf-form-tip-item label="联系电话" prop="chargePhone">
<JnpfInput v-model="dataForm.chargePhone" @change="changeData('chargePhone', -1)"
placeholder="请输入" clearable :style='{ "width": "100%" }'>
</JnpfInput>

@ -1,149 +1,138 @@
<template>
<el-dialog title="详情"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="8" >
<jnpf-form-tip-item label="用户编码"
prop="userCode" >
<p>{{dataForm.userCode}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="用户名"
prop="userName" >
<p>{{dataForm.userName}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="身份证号"
prop="idCard" >
<p>{{dataForm.idCard}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="联系电话"
prop="phone" >
<p>{{dataForm.phone}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="人员归属"
prop="userAscription" >
<p>{{ dataForm.userAscription }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="有效开始时间"
prop="effectiveStartTime" >
<p>{{dataForm.effectiveStartTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="有效结束时间"
prop="effectiveEndTime" >
<p>{{dataForm.effectiveEndTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="出入码"
prop="entryCodes" >
<p>{{dataForm.entryCodes}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="商户"
prop="merchantId" >
<p>{{dataForm.merchantId}}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<jnpf-form-tip-item label="用户编码" prop="userCode">
<p>{{ dataForm.userCode }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="用户名" prop="userName">
<p>{{ dataForm.userName }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系电话" prop="phone">
<p>{{ dataForm.phone }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="人员归属" prop="userAscription">
<p>{{ dataForm.userAscription }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="身份证号" prop="idCard">
<p>{{ dataForm.idCard }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="有效开始时间" prop="effectiveStartTime">
<p>{{ dataForm.effectiveStartTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="有效结束时间" prop="effectiveEndTime">
<p>{{ dataForm.effectiveEndTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="出入码" prop="entryCodes">
<p>{{ dataForm.entryCodes }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="商户" prop="merchantId">
<p>{{ dataForm.merchantId }}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail },
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
userCode : '',
userName : '',
idCard : '',
phone : '',
userAscription : "1",
effectiveStartTime : '',
effectiveEndTime : '',
entryCodes : '',
merchantId : "",
id: '',
userCode: '',
userName: '',
idCard: '',
phone: '',
userAscription: "1",
effectiveStartTime: '',
effectiveEndTime: '',
entryCodes: '',
merchantId: "",
},
userAscriptionOptions:[{"fullName":"商户","id":"1"},{"fullName":"公司","id":"2"}],
userAscriptionProps:{"label":"fullName","value":"id" },
userAscriptionOptions: [{ "fullName": "商户", "id": "1" }, { "fullName": "公司", "id": "2" }],
userAscriptionProps: { "label": "fullName", "value": "id" },
}
},
computed: {},
watch: {},
created() {
},
computed: {},
watch: {},
created() {
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
mounted() { },
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
})
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/example/Person/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/example/Person/detail/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
})
},
})
},
}
},
}
</script>

@ -20,13 +20,7 @@
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="身份证号" prop="idCard">
<JnpfInput v-model="dataForm.idCard" @change="changeData('idCard',-1)" placeholder="请输入" clearable
:style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系电话" prop="phone">
<JnpfInput v-model="dataForm.phone" @change="changeData('phone',-1)" placeholder="请输入" clearable
@ -41,9 +35,15 @@
</JnpfSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="有效开始时间" prop="effectiveStartTime">
<jnpf-form-tip-item label="身份证号" prop="idCard">
<JnpfInput v-model="dataForm.idCard" @change="changeData('idCard',-1)" placeholder="请输入" clearable
:style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="开始时间" prop="effectiveStartTime">
<JnpfDatePicker v-model="dataForm.effectiveStartTime" @change="changeData('effectiveStartTime',-1)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" clearable
:style='{"width":"100%"}' type="datetime" format="yyyy-MM-dd HH:mm:ss">
@ -52,7 +52,7 @@
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="有效结束时间" prop="effectiveEndTime">
<jnpf-form-tip-item label="结束时间" prop="effectiveEndTime">
<JnpfDatePicker v-model="dataForm.effectiveEndTime" @change="changeData('effectiveEndTime',-1)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" clearable
:style='{"width":"100%"}' type="datetime" format="yyyy-MM-dd HH:mm:ss">
@ -207,12 +207,12 @@
}, ],
effectiveStartTime: [{
required: true,
message: '请选择',
message: '请选择身份证有效开始时间',
trigger: 'change'
}, ],
effectiveEndTime: [{
required: true,
message: '请选择',
message: '请选择身份证有效结束时间',
trigger: 'change'
}, ],
entryCodes: [{

@ -37,10 +37,10 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod">
<el-table-column prop="userCode" label="用户编码" align="left">
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod" border>
<el-table-column prop="userCode" label="用户编码" align="center">
</el-table-column>
<el-table-column prop="userName" label="用户名" align="left">
<el-table-column prop="userName" label="用户名" align="center">
</el-table-column>
<el-table-column prop="userAscription" label="归属" align="center" width="150">
<template slot-scope="scope">
@ -48,23 +48,23 @@
<el-tag type="success" v-else-if="scope.row.userAscription == 2">公司</el-tag>
</template>
</el-table-column>
<el-table-column prop="idCard" label="身份证号" align="left">
<el-table-column prop="idCard" label="身份证号" align="center">
</el-table-column>
<el-table-column prop="phone" label="联系电话" align="left">
<el-table-column prop="phone" label="联系电话" align="center">
</el-table-column>
<el-table-column prop="merchantName" label="归属名称" align="left">
<el-table-column prop="merchantName" label="归属名称" align="center">
</el-table-column>
<el-table-column prop="effectiveStartTime" label="有效开始时间" align="left">
<el-table-column prop="effectiveStartTime" label="有效开始时间" align="center">
<template slot-scope="scope">
{{ scope.row.effectiveStartTime | toDate("yyyy-MM-dd HH:mm:ss") }}
</template>
</el-table-column>
<el-table-column prop="effectiveEndTime" label="有效结束时间" align="left">
<el-table-column prop="effectiveEndTime" label="有效结束时间" align="center">
<template slot-scope="scope">
{{ scope.row.effectiveEndTime | toDate("yyyy-MM-dd HH:mm:ss") }}
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150"align="center">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button>

@ -1,161 +1,148 @@
<template>
<el-dialog title="详情"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="600px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="8" >
<jnpf-form-tip-item label="车牌号"
prop="vehicleNumber" >
<p>{{dataForm.vehicleNumber}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="车辆类型"
prop="vehicleType" >
<p>{{ dataForm.vehicleType }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="车辆品牌"
prop="vehicleBrand" >
<p>{{dataForm.vehicleBrand}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="车辆颜色"
prop="vehicleColor" >
<p>{{dataForm.vehicleColor}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="联系人"
prop="contactsName" >
<p>{{dataForm.contactsName}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="联系电话"
prop="contactsPhone" >
<p>{{dataForm.contactsPhone}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="车辆照片"
prop="vehiclePhotos" >
<JnpfUploadImg v-model="dataForm.vehiclePhotos"
disabled
detailed :fileSize="10" sizeUnit="MB" :limit="9" pathType="defaultPath" :isAccount="0" >
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="车辆归属"
prop="vehicleAscription" >
<p>{{ dataForm.vehicleAscription }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="归属"
prop="ascriptionId" >
<p>{{dataForm.ascriptionId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="归属名称"
prop="ascriptionName" >
<p>{{dataForm.ascriptionName}}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<jnpf-form-tip-item label="车牌号" prop="vehicleNumber">
<p>{{ dataForm.vehicleNumber }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="车辆类型" prop="vehicleType">
<p>{{ dataForm.vehicleType }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="车辆品牌" prop="vehicleBrand">
<p>{{ dataForm.vehicleBrand }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="车辆颜色" prop="vehicleColor">
<p>{{ dataForm.vehicleColor }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系人" prop="contactsName">
<p>{{ dataForm.contactsName }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系电话" prop="contactsPhone">
<p>{{ dataForm.contactsPhone }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item label="车辆照片" prop="vehiclePhotos">
<JnpfUploadImg v-model="dataForm.vehiclePhotos" disabled detailed :fileSize="10"
sizeUnit="MB" :limit="9" pathType="defaultPath" :isAccount="0">
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="车辆归属" prop="vehicleAscription">
<p>{{ dataForm.vehicleAscription }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="归属" prop="ascriptionId">
<p>{{ dataForm.ascriptionId }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="归属名称" prop="ascriptionName">
<p>{{ dataForm.ascriptionName }}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail },
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
vehicleNumber : '',
vehicleType : "",
vehicleBrand : '',
vehicleColor : '',
contactsName : '',
contactsPhone : '',
vehiclePhotos : [],
vehicleAscription : "1",
ascriptionId : '',
ascriptionName : "",
id: '',
vehicleNumber: '',
vehicleType: "",
vehicleBrand: '',
vehicleColor: '',
contactsName: '',
contactsPhone: '',
vehiclePhotos: [],
vehicleAscription: "1",
ascriptionId: '',
ascriptionName: "",
},
vehicleTypeOptions:[{"fullName":"选项一","id":"1"},{"fullName":"选项二","id":"2"}],
vehicleTypeProps:{"label":"fullName","value":"id" },
vehicleAscriptionOptions:[{"fullName":"商户","id":"1"},{"fullName":"公司","id":"2"}],
vehicleAscriptionProps:{"label":"fullName","value":"id" },
vehicleTypeOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }],
vehicleTypeProps: { "label": "fullName", "value": "id" },
vehicleAscriptionOptions: [{ "fullName": "商户", "id": "1" }, { "fullName": "公司", "id": "2" }],
vehicleAscriptionProps: { "label": "fullName", "value": "id" },
}
},
computed: {},
watch: {},
created() {
},
computed: {},
watch: {},
created() {
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
mounted() { },
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
})
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/example/Vehicle/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/example/Vehicle/detail/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
})
},
})
},
}
},
}
</script>

@ -39,8 +39,8 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod">
<el-table-column prop="vehicleNumber" label="车牌号" align="left">
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod" border>
<el-table-column prop="vehicleNumber" label="车牌号" align="center">
</el-table-column>
<el-table-column prop="vehicleType" label="车辆类型" align="center" width="150">
<template slot-scope="scope">
@ -48,17 +48,17 @@
<el-tag type="success" v-else-if="scope.row.vehicleType == 2">类型2</el-tag>
</template>
</el-table-column>
<el-table-column prop="vehicleBrand" label="车辆品牌" align="left">
<el-table-column prop="vehicleBrand" label="车辆品牌" align="center">
</el-table-column>
<el-table-column prop="vehicleColor" label="车辆颜色" align="left">
<el-table-column prop="vehicleColor" label="车辆颜色" align="center">
</el-table-column>
<el-table-column prop="contactsName" label="联系人" align="left">
<el-table-column prop="contactsName" label="联系人" align="center">
</el-table-column>
<el-table-column prop="contactsPhone" label="联系电话" align="left">
<el-table-column prop="contactsPhone" label="联系电话" align="center">
</el-table-column>
<el-table-column prop="ascriptionName" label="归属" align="left">
<el-table-column prop="ascriptionName" label="归属" align="center">
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150"align="center">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button>

@ -1,159 +1,147 @@
<template>
<el-dialog title="详情"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="8" >
<jnpf-form-tip-item label="申请单号"
prop="applicationNumber" >
<p>{{dataForm.applicationNumber}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="商户名称"
prop="merchantId" >
<p>{{dataForm.merchantId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="空间名称"
prop="spaceId" >
<p>{{dataForm.spaceId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="开始时间"
prop="startTime" >
<p>{{dataForm.startTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="结束时间"
prop="endTime" >
<p>{{dataForm.endTime}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="联系人"
prop="contacts" >
<p>{{dataForm.contacts}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="联系电话"
prop="contactsPhone" >
<p>{{dataForm.contactsPhone}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="预约人数"
prop="reservationsNumber" >
<p>{{dataForm.reservationsNumber}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="预约事由"
prop="reservationsThing" >
<p>{{dataForm.reservationsThing}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="预约进度"
prop="usageProgress" >
<p>{{ dataForm.usageProgress }} </p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<jnpf-form-tip-item label="申请单号" prop="applicationNumber">
<p>{{ dataForm.applicationNumber }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="商户名称" prop="merchantId">
<p>{{ dataForm.merchantId }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="空间名称" prop="spaceId">
<p>{{ dataForm.spaceId }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="开始时间" prop="startTime">
<p>{{ dataForm.startTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="结束时间" prop="endTime">
<p>{{ dataForm.endTime }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系人" prop="contacts">
<p>{{ dataForm.contacts }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="联系电话" prop="contactsPhone">
<p>{{ dataForm.contactsPhone }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预约人数" prop="reservationsNumber">
<p>{{ dataForm.reservationsNumber }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预约进度" prop="usageProgress">
<p>{{ dataForm.usageProgress }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预约事由" prop="reservationsThing">
<p>{{ dataForm.reservationsThing }}</p>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail },
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
applicationNumber : '',
merchantId : "",
spaceId : "",
startTime : '',
endTime : '',
contacts : '',
contactsPhone : '',
reservationsNumber : '',
reservationsThing : '',
usageProgress : "1",
creationTime : "",
spaceName : '',
merchantName : '',
id: '',
applicationNumber: '',
merchantId: "",
spaceId: "",
startTime: '',
endTime: '',
contacts: '',
contactsPhone: '',
reservationsNumber: '',
reservationsThing: '',
usageProgress: "1",
creationTime: "",
spaceName: '',
merchantName: '',
},
usageProgressOptions:[{"fullName":"预约中","id":"1"},{"fullName":"已结束","id":"2"}],
usageProgressProps:{"label":"fullName","value":"id" },
usageProgressOptions: [{ "fullName": "预约中", "id": "1" }, { "fullName": "已结束", "id": "2" }],
usageProgressProps: { "label": "fullName", "value": "id" },
}
},
computed: {},
watch: {},
created() {
},
computed: {},
watch: {},
created() {
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
mounted() { },
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
})
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/example/VenueReservationRecord/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/example/VenueReservationRecord/detail/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
})
},
})
},
}
},
}
</script>

@ -77,14 +77,6 @@
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预约事由" prop="reservationsThing">
<JnpfTextarea v-model="dataForm.reservationsThing"
@change="changeData('reservationsThing', -1)" placeholder="请输入预约事由"
:style='{ "width": "100%" }' true type="textarea" :autosize='{ "minRows": 4, "maxRows": 4 }'>
</JnpfTextarea>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预约进度" prop="usageProgress">
<JnpfSelect v-model="dataForm.usageProgress" @change="changeData('usageProgress', -1)"
@ -93,6 +85,14 @@
</JnpfSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8">
<jnpf-form-tip-item label="预约事由" prop="reservationsThing">
<JnpfTextarea v-model="dataForm.reservationsThing"
@change="changeData('reservationsThing', -1)" placeholder="请输入预约事由"
:style='{ "width": "100%" }' true type="textarea" :autosize='{ "minRows": 4, "maxRows": 4 }'>
</JnpfTextarea>
</jnpf-form-tip-item>
</el-col>
<!-- 表单结束 -->
</template>
</el-form>

@ -62,31 +62,31 @@
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange'
:span-method="arraySpanMethod">
<el-table-column prop="applicationNumber" label="申请单号" align="left">
:span-method="arraySpanMethod" border>
<el-table-column prop="applicationNumber" label="申请单号" align="center">
</el-table-column>
<el-table-column prop="merchantId" label="商户名称" align="left">
<el-table-column prop="merchantId" label="商户名称" align="center">
</el-table-column>
<el-table-column prop="spaceId" label="空间名称" align="left">
<el-table-column prop="spaceId" label="空间名称" align="center">
</el-table-column>
<el-table-column prop="contacts" label="联系人" align="left">
<el-table-column prop="contacts" label="联系人" align="center">
</el-table-column>
<el-table-column prop="contactsPhone" label="联系电话" align="left">
<el-table-column prop="contactsPhone" label="联系电话" align="center">
</el-table-column>
<el-table-column prop="reservationsThing" label="预约事由" align="left">
<el-table-column prop="reservationsThing" label="预约事由" align="center">
</el-table-column>
<el-table-column prop="reservationsNumber" label="预约人数" align="left">
<el-table-column prop="reservationsNumber" label="预约人数" align="center">
</el-table-column>
<el-table-column label="预约进度" prop="usageProgress" algin="left">
<el-table-column label="预约进度" prop="usageProgress" align="center">
<template slot-scope="scope">
{{ scope.row.usageProgress }}
</template>
</el-table-column>
<el-table-column prop="startTime" label="开始时间" align="left">
<el-table-column prop="startTime" label="开始时间" align="center">
</el-table-column>
<el-table-column prop="endTime" label="结束时间" align="left">
<el-table-column prop="endTime" label="结束时间" align="center">
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<el-table-column label="操作" fixed="right" width="150"align="center">
<template slot-scope="scope">
<el-button type="text" v-show="scope.row.usageProgress === '预约中'" @click="addOrUpdateHandle(scope.row)">
</el-button>

Loading…
Cancel
Save