提交 4b30296c authored 作者: 宋雄's avatar 宋雄

增加对账

上级 f98a35c0
NODE_ENV=development NODE_ENV=development
VUE_APP_API_BASE_URL='http://192.168.0.119:9999' # VUE_APP_API_BASE_URL='http://192.168.0.119:9999'
# VUE_APP_API_BASE_URL='http://192.168.0.100:9999' # VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9999' VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
......
...@@ -77,6 +77,13 @@ ...@@ -77,6 +77,13 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row>
<a-col :span="24">
<a-form-model-item label="管理员头像" :labelCol="{ xs:{ span: 24 }, sm:{ span: 3 } }" :wrapperCol="wrapperCol" prop="adminAvatar">
<j-image-upload :isMultiple="false" text="点击上传" bizPath="scott/pic" v-model="model.adminAvatar"></j-image-upload>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>
</a-spin> </a-spin>
...@@ -87,6 +94,7 @@ ...@@ -87,6 +94,7 @@
import { httpAction, getAction } from '@/api/manage' import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util' import { validateDuplicateValue } from '@/utils/util'
import {ajaxGetDictItems,getDictItemsFromCache} from '@/api/api' import {ajaxGetDictItems,getDictItemsFromCache} from '@/api/api'
import { isMobile } from '@/utils/validate'
const columns = [ const columns = [
{ {
title: '序号', title: '序号',
...@@ -122,6 +130,13 @@ ...@@ -122,6 +130,13 @@
} }
}, },
data () { data () {
const validateToNextPhone = (rule, value, callback)=> {
if (value && isMobile(value)) {
callback();
} else {
callback('请输入正确的联系人电话!');
}
}
return { return {
dictOptions: [], dictOptions: [],
model:{ model:{
...@@ -132,7 +147,8 @@ ...@@ -132,7 +147,8 @@
communityUnitList: [], communityUnitList: [],
haveLift: '1', haveLift: '1',
buildingAdmin: '', buildingAdmin: '',
adminPhone: '' adminPhone: '',
adminAvatar: ''
}, },
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
...@@ -146,7 +162,13 @@ ...@@ -146,7 +162,13 @@
validatorRules: { validatorRules: {
buildingName: [{ required: true, message: '请输入楼宇名称', trigger: 'blur' }], buildingName: [{ required: true, message: '请输入楼宇名称', trigger: 'blur' }],
communityUnitList: [{ required: true, message: '请输入单元数量', trigger: 'change' }], communityUnitList: [{ required: true, message: '请输入单元数量', trigger: 'change' }],
useTo: [{ required: true, message: '请选择房屋用途', trigger: 'change' }] useTo: [{ required: true, message: '请选择房屋用途', trigger: 'change' }],
buildingAdmin: [{ required: true, message: '请输入楼栋管理员', trigger: 'blur' }],
adminPhone: [
{ required: true, message: '请输入管理员联系电话', trigger: 'blur' },
{ validator: validateToNextPhone }
],
adminAvatar: [{ required: true, message: '请上传管理员头像', trigger: 'blur' }]
}, },
url: { url: {
add: "/property-community/building/communityBuilding/add", add: "/property-community/building/communityBuilding/add",
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<a-form-model-item label="处理状态" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol" <a-form-model-item label="处理状态" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol"
prop="handleStatus"> prop="handleStatus">
<a-select v-model="form.handleStatus" placeholder="请选择处理状态" style="width:50%"> <a-select v-model="form.handleStatus" placeholder="请选择处理状态" style="width:50%">
<a-select-option value="pending">处理中</a-select-option> <a-select-option value="pending" v-if="model.handleStatus !== 'pending'">处理中</a-select-option>
<a-select-option value="finish">处理完成</a-select-option> <a-select-option value="finish">处理完成</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
...@@ -114,6 +114,9 @@ export default { ...@@ -114,6 +114,9 @@ export default {
this.confirmLoading = true this.confirmLoading = true
let { result } = await querycommunityComplaintApi({ id: this.$route.query.id }) let { result } = await querycommunityComplaintApi({ id: this.$route.query.id })
this.model = { ...result } this.model = { ...result }
if (this.model.handleStatus == 'pending') {
this.form.handleStatus = 'finish'
}
if (this.model.handleStatus == 'finish') { if (this.model.handleStatus == 'finish') {
this.form.handleStatus = this.model.handleStatus this.form.handleStatus = this.model.handleStatus
this.form.handleResult = this.model.handleResult this.form.handleResult = this.model.handleResult
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<template v-if="record.handleStatus !== 'finish'"> <template v-if="record.handleStatus !== 'finish'">
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a @click="onDetail(record.id, '2')">处理</a> <a @click="onDetail(record.id, '2')">{{record.handleStatus === 'pending' ? '去完成' : '处理'}}</a>
</template> </template>
</span> </span>
</a-table> </a-table>
...@@ -133,7 +133,8 @@ ...@@ -133,7 +133,8 @@
dataIndex: 'action', dataIndex: 'action',
scopedSlots: { customRender: 'action' }, scopedSlots: { customRender: 'action' },
align: 'center', align: 'center',
width: 150 width: 150,
fixed: 'right'
} }
] ]
......
...@@ -110,7 +110,7 @@ const columns = [ ...@@ -110,7 +110,7 @@ const columns = [
title: '收费项目', title: '收费项目',
dataIndex: 'chargeItem', dataIndex: 'chargeItem',
key: 'chargeItem', key: 'chargeItem',
width: 120, width: 220,
align: 'center', align: 'center',
}, },
{ {
......
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论