提交 2c47334f authored 作者: 宋雄's avatar 宋雄

解决bug

上级 d818f5c3
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.113:9999'
# VUE_APP_API_BASE_URL='http://192.168.0.101:9999' # VUE_APP_API_BASE_URL='http://192.168.0.101: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
......
...@@ -69,7 +69,7 @@ const deleteLog = (params)=>deleteAction("/sys/log/delete",params); ...@@ -69,7 +69,7 @@ const deleteLog = (params)=>deleteAction("/sys/log/delete",params);
const deleteLogList = (params)=>deleteAction("/sys/log/deleteBatch",params); const deleteLogList = (params)=>deleteAction("/sys/log/deleteBatch",params);
//收费类型列表 //收费类型列表
const getChargeListApi = (params)=>getAction("/property-community/system/chargeType/chargeTypelist",params); const getChargeListApi = (params)=>getAction("/property-company/system/chargeType/chargeTypelist",params);
const addReceiptTemplate = (params)=>postAction("/property-community/system/receiptTemplate/add",params); const addReceiptTemplate = (params)=>postAction("/property-community/system/receiptTemplate/add",params);
// 楼栋列表、单元列表、房间列表 // 楼栋列表、单元列表、房间列表
const getBuildingListApi = (params)=>getAction("/property-community/building/communityBuilding/buildingList",params); const getBuildingListApi = (params)=>getAction("/property-community/building/communityBuilding/buildingList",params);
...@@ -108,9 +108,14 @@ const auditCommunityComplaintApi = (params)=>postAction("/property-community/pro ...@@ -108,9 +108,14 @@ const auditCommunityComplaintApi = (params)=>postAction("/property-community/pro
const auditMoveComplaintApi = (params)=>getAction("/property-community/property/communityComplaint/moveComplaint",params); const auditMoveComplaintApi = (params)=>getAction("/property-community/property/communityComplaint/moveComplaint",params);
// 对账管理 // 对账管理
const auditPropertyApi = (params)=>postAction("/property-central/property/propertySettled/audit",params);
const freezeOrPropertyApi = (params)=>getAction(`/property-central/property/propertySettled/freezeOrThaw/${params.id}/${params.status}`,{}); const freezeOrPropertyApi = (params)=>getAction(`/property-central/property/propertySettled/freezeOrThaw/${params.id}/${params.status}`,{});
const getPropertyChargruleListApi = (params)=>getAction("/property-central/property/propertyChargrule/propertyChargruleList",params); const getPropertyChargruleListApi = (params)=>getAction("/property-central/property/propertyChargrule/propertyChargruleList",params);
const addCommunityAccountPageApi = (params)=>postAction("/property-community/property/communityReconciliation/add",params);
const getDetailReconciliationApi = (params)=>getAction("/property-community/property/communityReconciliation/queryById",params);
const getAccountListByIdApi = (params)=>getAction("/property-community/property/communityReconciliation/getAccountListById",params);
const communityAuditAccountPageApi = (params)=>postAction("/property-community/property/communityReconciliation/communityAudit",params);
const getCommunityRecordListApi = (params)=>getAction("/property-central/property/auditRecord/getRecordList",params);
const communitySubCompanyApi = (params)=>postAction("/property-community/property/communityReconciliation/communitySubCompany",params);
//数据字典 //数据字典
const addDict = (params)=>postAction("/sys/dict/add",params); const addDict = (params)=>postAction("/sys/dict/add",params);
...@@ -244,7 +249,12 @@ export { ...@@ -244,7 +249,12 @@ export {
auditCommunityComplaintApi, auditCommunityComplaintApi,
auditMoveComplaintApi, auditMoveComplaintApi,
getPropertyChargruleListApi, getPropertyChargruleListApi,
auditPropertyApi, addCommunityAccountPageApi,
getDetailReconciliationApi,
getAccountListByIdApi,
communityAuditAccountPageApi,
getCommunityRecordListApi,
communitySubCompanyApi,
freezeOrPropertyApi, freezeOrPropertyApi,
setOwnerLabelApi, setOwnerLabelApi,
editOwnerLabelApi, editOwnerLabelApi,
......
...@@ -77,6 +77,29 @@ export const OWNER_LEBEL = [ ...@@ -77,6 +77,29 @@ export const OWNER_LEBEL = [
{label: '残', value: 'labelDestituteCan'} {label: '残', value: 'labelDestituteCan'}
] ]
// 付费周期
export const CHARGING_CYCLE = [
{label: '每月', value: '1'},
{label: '每季度', value: '2'},
{label: '每年', value: '3'},
{label: '一次性付清', value: '4'},
{label: '预付', value: '5'}
]
// 小区对账审核状态
export const RECONCILIATION_STATUS = [
{label: '小区待审核', value: 'communityWaitAudit'},
{label: '小区审核通过', value: 'communityAuditPass'},
{label: '小区审核驳回', value: 'communityRefuse'}
]
// 物业对账审核状态
export const COMPANY_AUDIT_STATUS = [
{label: '物业待审核', value: 'companyWaitAudit'},
{label: '物业审核通过', value: 'companyAuditPass'},
{label: '物业审核驳回', value: 'companyRefuse'}
]
/** /**
* 翻译字段值对应的文本 * 翻译字段值对应的文本
* @param children * @param children
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</div> </div>
<!-- table区域-end --> <!-- table区域-end -->
<notice-modal ref="modalForm" @ok="modalFormOk"></notice-modal> <notice-modal ref="modalForm" @ok="searchQuery"></notice-modal>
</a-card> </a-card>
</template> </template>
......
...@@ -20,11 +20,6 @@ ...@@ -20,11 +20,6 @@
<a-input v-model="model.roomAllName" placeholder="请输入"></a-input> <a-input v-model="model.roomAllName" placeholder="请输入"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12">
<a-form-model-item label="业主" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ownerName">
<a-input v-model="model.ownerName" placeholder="请输入"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="与业主关系" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="relationShip"> <a-form-model-item label="与业主关系" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="relationShip">
<!-- <a-input v-model="model.relationShip" placeholder="请输入"></a-input> --> <!-- <a-input v-model="model.relationShip" placeholder="请输入"></a-input> -->
...@@ -220,7 +215,6 @@ export default { ...@@ -220,7 +215,6 @@ export default {
roomId: '', roomId: '',
roomName: '', roomName: '',
floorSpace: '', floorSpace: '',
ownerName: '',
ownerPhone: '', ownerPhone: '',
residentName: '', residentName: '',
residentPhone: '', residentPhone: '',
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="业主姓名"> <a-form-item label="住户姓名">
<j-input placeholder="请输入业主姓名" v-model="queryParam.ownerName"></j-input> <j-input placeholder="请输入住户姓名" v-model="queryParam.residentName"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
...@@ -62,9 +62,6 @@ ...@@ -62,9 +62,6 @@
onChange: onSelectChange, onChange: onSelectChange,
getCheckboxProps: onCheckboxProps getCheckboxProps: onCheckboxProps
}" class="j-table-force-nowrap" @change="handleTableChange"> }" class="j-table-force-nowrap" @change="handleTableChange">
<span slot="ownerId" slot-scope="text, record">
<span>{{record.ownerName}}{{record.ownerPhone}}</span>
</span>
<span slot="residentPhone" slot-scope="text, record"> <span slot="residentPhone" slot-scope="text, record">
<span>{{record.residentName}}{{record.residentPhone}}</span> <span>{{record.residentName}}{{record.residentPhone}}</span>
</span> </span>
...@@ -87,7 +84,7 @@ ...@@ -87,7 +84,7 @@
</div> </div>
</div> </div>
<notice-modal ref="modalForm" @ok="modalFormOk"></notice-modal> <notice-modal ref="modalForm" @ok="searchQuery"></notice-modal>
</a-card> </a-card>
</template> </template>
...@@ -111,14 +108,6 @@ const columns = [ ...@@ -111,14 +108,6 @@ const columns = [
key: 'chargeItem', key: 'chargeItem',
align: 'center', align: 'center',
}, },
{
title: '业主',
dataIndex: 'ownerId',
key: 'ownerId',
scopedSlots: { customRender: 'ownerId' },
align: 'center',
ellipsis: true
},
{ {
title: '与业主关系', title: '与业主关系',
dataIndex: 'relationShip', dataIndex: 'relationShip',
......
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="业主" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ownerName"> <a-form-model-item label="住户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentName">
<a-input v-model="model.ownerName" placeholder="请输入" disabled></a-input> <a-input v-model="model.residentName" placeholder="请输入" disabled></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="住户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentName"> <a-form-model-item label="电话" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentPhone">
<a-input v-model="model.residentName" placeholder="请输入" disabled></a-input> <a-input v-model="model.residentPhone" placeholder="请输入" disabled></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -143,8 +143,6 @@ ...@@ -143,8 +143,6 @@
roomId: '', roomId: '',
roomName: '', roomName: '',
floorSpace: '', floorSpace: '',
ownerName: '',
ownerPhone: '',
residentName: '', residentName: '',
residentPhone: '', residentPhone: '',
relationShip: '', relationShip: '',
...@@ -254,7 +252,7 @@ ...@@ -254,7 +252,7 @@
} }
}, },
async onqueryLastDegreesById() { async onqueryLastDegreesById() {
let res = await queryLastDegreesByIdApi({ownerId: this.model.ownerId,chargeTypeId: this.model.chargeTypeId}) let res = await queryLastDegreesByIdApi({roomId: this.model.roomId,chargeTypeId: this.model.chargeTypeId})
this.model.lastDegrees = res.result this.model.lastDegrees = res.result
if(this.model.currentDegrees) { if(this.model.currentDegrees) {
this.onDegreesChange(this.model.currentDegrees) this.onDegreesChange(this.model.currentDegrees)
...@@ -263,12 +261,12 @@ ...@@ -263,12 +261,12 @@
async onqueryByRoomId() { async onqueryByRoomId() {
let res = await queryByRoomIdApi({roomId: this.model.roomId}) let res = await queryByRoomIdApi({roomId: this.model.roomId})
if(res.code === 200) { if(res.code === 200) {
this.model.ownerName = res.result.ownerName let ownerRow = res.result.find(item=>item.relationShip === 'self')
this.model.ownerPhone = res.result.ownerPhone if(!ownerRow) ownerRow = {...res.result[0]}
this.model.residentName = res.result.residentName this.model.residentName = ownerRow.residentName
this.model.residentPhone = res.result.residentPhone this.model.residentPhone = ownerRow.residentPhone
this.model.relationShip = res.result.relationShip this.model.relationShip = ownerRow.relationShip
this.model.ownerId = res.result.id this.model.ownerId = ownerRow.id
if(this.model.designFormulas === 3 && this.model.chargeTypeId) { if(this.model.designFormulas === 3 && this.model.chargeTypeId) {
this.onqueryLastDegreesById() this.onqueryLastDegreesById()
} }
......
...@@ -3,13 +3,20 @@ ...@@ -3,13 +3,20 @@
<j-form-container :disabled="formDisabled"> <j-form-container :disabled="formDisabled">
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="12">
<a-form-model-item label="收费标准" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol" prop="chargingStandardId"> <a-form-model-item label="收费标准" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargingStandardId">
<a-select style="width:50%" v-model="model.chargingStandardId" placeholder="请选择收费标准" @change="onStandardChange"> <a-select v-model="model.chargingStandardId" placeholder="请选择收费标准" @change="onStandardChange">
<a-select-option v-for="item in ruleList" :key="item.id" :value="item.id">{{item.chargeTypeCodeName}}</a-select-option> <a-select-option v-for="item in ruleList" :key="item.id" :value="item.id">{{item.chargeTypeCodeName}}</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12">
<a-form-model-item label="收费周期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargeCycle">
<a-select v-model="model.chargeCycle" placeholder="请选择收费周期" disabled>
<a-select-option v-for="item in chargingCycle" :key="item.value" :value="item.value">{{item.label}}</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="收费类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargeTypeName"> <a-form-model-item label="收费类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargeTypeName">
<a-input v-model="model.chargeTypeName" placeholder="请输入" disabled></a-input> <a-input v-model="model.chargeTypeName" placeholder="请输入" disabled></a-input>
...@@ -42,13 +49,13 @@ ...@@ -42,13 +49,13 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="业主" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ownerName"> <a-form-model-item label="住户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentName">
<a-input v-model="model.ownerName" placeholder="请输入" disabled></a-input> <a-input v-model="model.residentName" placeholder="请输入" disabled></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="住户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentName"> <a-form-model-item label="电话" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentPhone">
<a-input v-model="model.residentName" placeholder="请输入" disabled></a-input> <a-input v-model="model.residentPhone" placeholder="请输入" disabled></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -107,6 +114,7 @@ ...@@ -107,6 +114,7 @@
import { httpAction, getAction } from '@/api/manage' import { httpAction, getAction } from '@/api/manage'
import { formatDate } from '@/utils/util' import { formatDate } from '@/utils/util'
import { getBuildingListApi, getUnitListApi, getRoomListApi, companyPropertyChargerulesApi, queryByRoomIdApi, queryLastDegreesByIdApi} from '@/api/api' import { getBuildingListApi, getUnitListApi, getRoomListApi, companyPropertyChargerulesApi, queryByRoomIdApi, queryLastDegreesByIdApi} from '@/api/api'
import { CHARGING_CYCLE } from '@/assets/static.js'
export default { export default {
name: 'PropertyChargruleForm', name: 'PropertyChargruleForm',
...@@ -123,6 +131,7 @@ ...@@ -123,6 +131,7 @@
data () { data () {
return { return {
ruleList: [], ruleList: [],
chargingCycle: CHARGING_CYCLE,
treeData: [], treeData: [],
amount: 0, amount: 0,
model:{ model:{
...@@ -143,8 +152,6 @@ ...@@ -143,8 +152,6 @@
roomId: '', roomId: '',
roomName: '', roomName: '',
floorSpace: '', floorSpace: '',
ownerName: '',
ownerPhone: '',
residentName: '', residentName: '',
residentPhone: '', residentPhone: '',
relationShip: '', relationShip: '',
...@@ -219,11 +226,17 @@ ...@@ -219,11 +226,17 @@
this.model.designFormulas = row.designFormulas this.model.designFormulas = row.designFormulas
this.amount = row.amount this.amount = row.amount
this.model.unitPrice = this.model.designFormulas === 1 ? '' : row.amount this.model.unitPrice = this.model.designFormulas === 1 ? '' : row.amount
if(this.model.designFormulas === 1) { if(this.model.designFormulas === 1) { // 固定金额
this.model.totalAmount = this.amount.toFixed(2) this.model.totalAmount = this.amount.toFixed(2)
} }
if(this.model.designFormulas === 2 && this.model.roomId) { // 获取上期度数 if(this.model.designFormulas === 2 && this.model.roomId) { // 建面 * 单价
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace).toFixed(2) if(this.model.chargeCycle === '2') { // 每季度
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace * 3).toFixed(2)
} else if(this.model.chargeCycle === '3') { // 每年
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace * 12).toFixed(2)
} else {
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace).toFixed(2)
}
} }
if(this.model.designFormulas === 3 && this.model.roomId) { // 获取上期度数 if(this.model.designFormulas === 3 && this.model.roomId) { // 获取上期度数
this.onqueryLastDegreesById() this.onqueryLastDegreesById()
...@@ -250,7 +263,13 @@ ...@@ -250,7 +263,13 @@
this.model.buildingName = data.parent.parent.label this.model.buildingName = data.parent.parent.label
this.onqueryByRoomId() this.onqueryByRoomId()
if(this.model.designFormulas === 2) { if(this.model.designFormulas === 2) {
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace).toFixed(2) if(this.model.chargeCycle === '2') { // 每季度
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace * 3).toFixed(2)
} else if(this.model.chargeCycle === '3') { // 每年
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace * 12).toFixed(2)
} else {
this.model.totalAmount = (this.model.unitPrice * this.model.floorSpace).toFixed(2)
}
} }
}, },
async onqueryLastDegreesById() { async onqueryLastDegreesById() {
...@@ -263,12 +282,12 @@ ...@@ -263,12 +282,12 @@
async onqueryByRoomId() { async onqueryByRoomId() {
let res = await queryByRoomIdApi({roomId: this.model.roomId}) let res = await queryByRoomIdApi({roomId: this.model.roomId})
if(res.code === 200) { if(res.code === 200) {
this.model.ownerName = res.result.ownerName let ownerRow = res.result.find(item=>item.relationShip === 'self')
this.model.ownerPhone = res.result.ownerPhone if(!ownerRow) ownerRow = {...res.result[0]}
this.model.residentName = res.result.residentName this.model.residentName = ownerRow.residentName
this.model.residentPhone = res.result.residentPhone this.model.residentPhone = ownerRow.residentPhone
this.model.relationShip = res.result.relationShip this.model.relationShip = ownerRow.relationShip
this.model.ownerId = res.result.id this.model.ownerId = ownerRow.id
if(this.model.designFormulas === 3 && this.model.chargeTypeId) { if(this.model.designFormulas === 3 && this.model.chargeTypeId) {
this.onqueryLastDegreesById() this.onqueryLastDegreesById()
} }
......
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
<a-input v-model="model.roomAllName" placeholder="请输入"></a-input> <a-input v-model="model.roomAllName" placeholder="请输入"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <!-- <a-col :span="12">
<a-form-model-item label="业主" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ownerName"> <a-form-model-item label="业主" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentName">
<a-input v-model="model.ownerName" placeholder="请输入"></a-input> <a-input v-model="model.residentName" placeholder="请输入"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col> -->
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="与业主关系" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="relationShip"> <a-form-model-item label="与业主关系" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="relationShip">
<!-- <a-input v-model="model.relationShip" placeholder="请输入"></a-input> --> <!-- <a-input v-model="model.relationShip" placeholder="请输入"></a-input> -->
...@@ -220,8 +220,6 @@ export default { ...@@ -220,8 +220,6 @@ export default {
roomId: '', roomId: '',
roomName: '', roomName: '',
floorSpace: '', floorSpace: '',
ownerName: '',
ownerPhone: '',
residentName: '', residentName: '',
residentPhone: '', residentPhone: '',
relationShip: '', relationShip: '',
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="业主姓名"> <a-form-item label="住户姓名">
<j-input placeholder="请输入业主姓名" v-model="queryParam.ownerName"></j-input> <j-input placeholder="请输入住户姓名" v-model="queryParam.residentName"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
...@@ -62,9 +62,6 @@ ...@@ -62,9 +62,6 @@
onChange: onSelectChange, onChange: onSelectChange,
getCheckboxProps: onCheckboxProps getCheckboxProps: onCheckboxProps
}" class="j-table-force-nowrap" @change="handleTableChange"> }" class="j-table-force-nowrap" @change="handleTableChange">
<span slot="ownerId" slot-scope="text, record">
<span>{{record.ownerName}}{{record.ownerPhone}}</span>
</span>
<span slot="residentPhone" slot-scope="text, record"> <span slot="residentPhone" slot-scope="text, record">
<span>{{record.residentName}}{{record.residentPhone}}</span> <span>{{record.residentName}}{{record.residentPhone}}</span>
</span> </span>
...@@ -87,7 +84,7 @@ ...@@ -87,7 +84,7 @@
</div> </div>
</div> </div>
<notice-modal ref="modalForm" @ok="modalFormOk"></notice-modal> <notice-modal ref="modalForm" @ok="searchQuery"></notice-modal>
</a-card> </a-card>
</template> </template>
...@@ -113,14 +110,6 @@ const columns = [ ...@@ -113,14 +110,6 @@ const columns = [
width: 220, width: 220,
align: 'center', align: 'center',
}, },
{
title: '业主',
dataIndex: 'ownerId',
key: 'ownerId',
width: 160,
scopedSlots: { customRender: 'ownerId' },
align: 'center',
},
{ {
title: '与业主关系', title: '与业主关系',
dataIndex: 'relationShip', dataIndex: 'relationShip',
...@@ -199,7 +188,7 @@ const columns = [ ...@@ -199,7 +188,7 @@ const columns = [
align: 'center', align: 'center',
width: 150, width: 150,
fixed: 'right', fixed: 'right',
}, }
] ]
export default { export default {
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
</a-form-model-item> </a-form-model-item>
</a-col> --> </a-col> -->
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="业主" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ownerName"> <a-form-model-item label="住户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="residentName">
<a-input v-model="model.ownerName" placeholder="请输入业主"></a-input> <a-input v-model="model.residentName" placeholder="请输入住户"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
...@@ -35,7 +35,10 @@ ...@@ -35,7 +35,10 @@
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="缴费周期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargeCycle"> <a-form-model-item label="缴费周期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargeCycle">
<a-input v-model="model.chargeCycle" placeholder="请输入缴费周期"></a-input> <!-- <a-input v-model="model.chargeCycle" placeholder="请输入缴费周期"></a-input> -->
<a-select v-model="model.chargeCycle" placeholder="请选择缴费周期">
<a-select-option v-for="item in chargingCycle" :key="item.value" :value="item.value">{{item.label}}</a-select-option>
</a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
...@@ -64,9 +67,9 @@ ...@@ -64,9 +67,9 @@
<script> <script>
import { httpAction, getAction } from '@/api/manage' import { httpAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
import {ajaxGetDictItems,getDictItemsFromCache} from '@/api/api' import {ajaxGetDictItems,getDictItemsFromCache} from '@/api/api'
import { CHARGING_CYCLE } from '@/assets/static.js'
export default { export default {
name: 'PropertyChargruleForm', name: 'PropertyChargruleForm',
...@@ -82,6 +85,7 @@ ...@@ -82,6 +85,7 @@
}, },
data () { data () {
return { return {
chargingCycle: CHARGING_CYCLE,
dictOptions: [], dictOptions: [],
model:{ model:{
employeeName: '', employeeName: '',
......
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
<span slot="roomName" slot-scope="text, record"> <span slot="roomName" slot-scope="text, record">
<span>{{record.buildingName}}{{record.unitName}}{{record.roomName}}</span> <span>{{record.buildingName}}{{record.unitName}}{{record.roomName}}</span>
</span> </span>
<span slot="ownerName" slot-scope="text, record"> <span slot="residentName" slot-scope="text, record">
<span>{{record.ownerName}}{{record.ownerPhone}}</span> <span>{{record.residentName}}{{record.residentPhone}}</span>
</span> </span>
<span slot="receiptStatus" slot-scope="text, record"> <span slot="receiptStatus" slot-scope="text, record">
<span :style="{'color': record.receiptStatus === '1' ? 'green' : 'red'}">{{record.receiptStatus === '1' ? '是' : '否'}}</span> <span :style="{'color': record.receiptStatus === '1' ? 'green' : 'red'}">{{record.receiptStatus === '1' ? '是' : '否'}}</span>
...@@ -80,7 +80,10 @@ ...@@ -80,7 +80,10 @@
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<!-- <a @click="handleEdit(record)">编辑</a> --> <!-- <a @click="handleEdit(record)">编辑</a> -->
<a @click="handleDetail(record)">查看</a> <a @click="handleDetail(record)">查看</a>
<a @click="onIssueReceipt(record)" style="margin-left: 10px;">开收据</a> <template v-if="record.receiptStatus !== '1'">
<a-divider type="vertical" />
<a @click="onIssueReceipt(record)">开收据</a>
</template>
</span> </span>
</a-table> </a-table>
...@@ -107,10 +110,10 @@ ...@@ -107,10 +110,10 @@
align: 'center' align: 'center'
}, },
{ {
title: '业主', title: '住户',
dataIndex: 'ownerName', dataIndex: 'residentName',
scopedSlots: { customRender: 'ownerName' }, scopedSlots: { customRender: 'residentName' },
key: 'ownerName', key: 'residentName',
align: 'center' align: 'center'
}, },
{ {
...@@ -188,8 +191,7 @@ ...@@ -188,8 +191,7 @@
}, },
methods: { methods: {
onIssueReceipt(row) { onIssueReceipt(row) {
console.log(this.$refs.templateModal) this.$refs.templateModal.onLoadTemplate(row)
this.$refs.templateModal.onLoadTemplate()
}, },
handleOk() {}, handleOk() {},
handleCancel() {}, handleCancel() {},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论