提交 94cd6ba0 authored 作者: 何忠建's avatar 何忠建

修复bug

上级 ea405e02
...@@ -88,7 +88,7 @@ const dispatchCommunityRepairApi = (params)=>postAction("/property-community/pro ...@@ -88,7 +88,7 @@ const dispatchCommunityRepairApi = (params)=>postAction("/property-community/pro
// 投诉管理 // 投诉管理
const querycommunityComplaintApi = (params)=>getAction("/property-community/property/communityComplaint/queryById",params); const querycommunityComplaintApi = (params)=>getAction("/property-community/property/communityComplaint/queryById",params);
const auditCommunityComplaintApi = (params)=>postAction("/property-community/property/communityComplaint/audit",params); const auditCommunityComplaintApi = (params)=>postAction("/property-community/property/communityComplaint/edit",params);
//数据字典 //数据字典
const addDict = (params)=>postAction("/sys/dict/add",params); const addDict = (params)=>postAction("/sys/dict/add",params);
......
...@@ -30,90 +30,112 @@ ...@@ -30,90 +30,112 @@
<a-input v-model="model.createTime" placeholder="请输入"></a-input> <a-input v-model="model.createTime" 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="complaintImg">
<j-image-upload bizPath="scott/pic" accept="image/png, image/jpeg"
v-model="model.complaintImg"></j-image-upload>
</a-form-model-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="问题描述" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol" prop="problemDesc"> <a-form-model-item label="问题描述" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol"
prop="problemDesc">
<a-textarea v-model="model.problemDesc" placeholder="请输入" style="width:80%" /> <a-textarea v-model="model.problemDesc" placeholder="请输入" style="width:80%" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>
<j-form-container v-if="!formDisabled"> <j-form-container v-if="!formDisabled || model.handleStatus == 'finish'"
:disabled="model.handleStatus == 'finish'">
<a-form-model ref="form" :model="form" slot="detail"> <a-form-model ref="form" :model="form" slot="detail">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="处理状态" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol" prop="complaintStatus"> <a-form-model-item label="处理状态" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol"
<a-select v-model="form.complaintStatus" placeholder="请选择与业主关系" style="width:50%"> prop="handleStatus">
<a-select v-model="form.handleStatus" placeholder="请选择处理状态" style="width:50%">
<a-select-option value="pending">处理中</a-select-option> <a-select-option value="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>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="处理结果" :labelCol="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol"
prop="handleResult">
<a-textarea v-model="form.handleResult" placeholder="请输入" style="width:80%" />
</a-form-model-item>
</a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>
<div style="text-align:center"> <div style="text-align:center">
<a-button @click="onReturn">返回</a-button> <a-button @click="onReturn">返回</a-button>
<a-button style="margin-left: 16px" type="primary" v-if="!formDisabled" @click="onSubmit">提交</a-button> <a-button style="margin-left: 16px" type="primary" v-if="!formDisabled" @click="onSubmit">提交</a-button>
</div> </div>
</a-spin> </a-spin>
</div> </div>
</template> </template>
<script> <script>
import { querycommunityComplaintApi, auditCommunityComplaintApi} from '@/api/api' import { querycommunityComplaintApi, auditCommunityComplaintApi } from '@/api/api'
export default { export default {
name: 'PropertyChargruleForm', name: 'PropertyChargruleForm',
inject:['closeCurrent'], inject: ['closeCurrent'],
data () { data() {
return { return {
currentStep: 1, currentStep: 1,
model:{}, model: {},
form: { form: {
complaintStatus: 'pending', handleStatus: 'pending',
auditOpinion: '' handleResult: '',
},
labelCol: {
xs: { span: 24 },
sm: { span: 4 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 20 },
},
confirmLoading: false,
}
},
computed: {
formDisabled(){
return this.$route.query.type === '1'
}, },
}, labelCol: {
created () { xs: { span: 24 },
//备份model原始值 sm: { span: 4 },
this.getDetail()
},
methods: {
async getDetail() {
this.confirmLoading = true
let {result} = await querycommunityComplaintApi({id: this.$route.query.id})
this.model = {...result}
this.confirmLoading = false
}, },
onReturn() { wrapperCol: {
this.closeCurrent() xs: { span: 24 },
sm: { span: 20 },
}, },
async onSubmit() { confirmLoading: false,
let res = await auditCommunityComplaintApi({
id: this.$route.query.id,
complaintStatus: this.form.complaintStatus
})
this.$message.success(res.message);
this.closeCurrent()
}
} }
} },
computed: {
formDisabled() {
return this.$route.query.type === '1'
},
},
created() {
//备份model原始值
this.getDetail()
},
methods: {
async getDetail() {
this.confirmLoading = true
let { result } = await querycommunityComplaintApi({ id: this.$route.query.id })
this.model = { ...result }
if (this.model.handleStatus == 'finish') {
this.form.handleStatus = this.model.handleStatus
this.form.handleResult = this.model.handleResult
}
this.confirmLoading = false
},
onReturn() {
this.$store.dispatch('tags/delView', this.$route.path)
this.$router.go(-1)
},
async onSubmit() {
let res = await auditCommunityComplaintApi({
id: this.$route.query.id,
handleStatus: this.form.handleStatus,
handleResult: this.form.handleResult,
})
this.$message.success(res.message)
this.$store.dispatch('tags/delView', this.$route.path)
this.$router.go(-1)
},
},
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<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="业主姓名">
<a-input placeholder="请输入业主姓名" v-model="queryParam.employeeName"></a-input> <a-input placeholder="请输入业主姓名" v-model="queryParam.ownerName"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
...@@ -243,8 +243,25 @@ export default { ...@@ -243,8 +243,25 @@ export default {
} }
}) })
}, },
onClickTree(value, optios) { onClickTree(value, option) {
console.log(value, optios) console.log(value, option)
let level = option.node.pos.split('-').length
if (level === 2) {
this.queryParam['buildingId'] = value[0]
this.queryParam['unitId'] = undefined
this.queryParam['roomId'] = undefined
}
if (level === 3) {
this.queryParam['buildingId'] = undefined
this.queryParam['unitId'] = value[0]
this.queryParam['roomId'] = undefined
}
if (level === 4) {
this.queryParam['buildingId'] = undefined
this.queryParam['unitId'] = undefined
this.queryParam['roomId'] = value[0]
}
this.searchQuery()
}, },
onLoadData(treeNode) { onLoadData(treeNode) {
return new Promise(async (resolve) => { return new Promise(async (resolve) => {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-model-item label="工单状态"> <a-form-model-item label="工单状态">
<a-select style="width: 100%" v-model="queryParam.useTo" placeholder="请选择工单状态"> <a-select style="width: 100%" v-model="queryParam.repairStatus" placeholder="请选择工单状态">
<a-select-option v-for="item in repairStatus" :key="item.value" :value="item.value">{{item.label}}</a-select-option> <a-select-option v-for="item in repairStatus" :key="item.value" :value="item.value">{{item.label}}</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<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="12"> <a-col :span="12">
<a-form-model-item label="支付订单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orderNo"> <a-form-model-item label="支付订单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="paymentNum">
<a-input v-model="model.orderNo" placeholder="请输入支付订单号"></a-input> <a-input v-model="model.paymentNum" 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="chargeMoney"> <a-form-model-item label="支付金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalAmount">
<a-input v-model="model.chargeMoney" placeholder="请输入支付金额"></a-input> <a-input v-model="model.totalAmount" 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="ownerName">
<a-input v-model="model.ownerName" placeholder="请输入业主"></a-input> <a-input v-model="model.ownerName" placeholder="请输入业主"></a-input>
...@@ -24,15 +24,13 @@ ...@@ -24,15 +24,13 @@
</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="chargeType"> <a-form-model-item label="缴费类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargeItem">
<a-select style="width: 100%" v-model="model.chargeType" placeholder="请选择缴费类型"> <a-input v-model="model.chargeItem" placeholder="请输入房屋编号"></a-input>
<a-select-option v-for="item in dictOptions" :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">
<a-form-model-item label="缴费金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chargeMoney"> <a-form-model-item label="缴费金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalAmount">
<a-input v-model="model.chargeMoney" placeholder="请输入缴费金额"></a-input> <a-input v-model="model.totalAmount" placeholder="请输入缴费金额"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
...@@ -41,16 +39,13 @@ ...@@ -41,16 +39,13 @@
</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="updateTime"> <a-form-model-item label="缴费时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="paymentTime">
<a-input v-model="model.updateTime" placeholder="请输入缴费时间"></a-input> <a-input v-model="model.paymentTime" 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="receiptStatus"> <a-form-model-item label="收据状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="receiptStatus">
<a-select style="width: 100%" v-model="model.receiptStatus" placeholder="请选择收据状态"> <span :style="{'color': model.receiptStatus === '1' ? 'green' : 'red'}">{{model.receiptStatus === '1' ? '是' : '否'}}</span>
<a-select-option value="1">在职</a-select-option>
<a-select-option value="0">离职</a-select-option>
</a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<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="订单编号">
<a-input placeholder="请输入订单编号" v-model="queryParam.orderNo"></a-input> <a-input placeholder="请输入订单编号" v-model="queryParam.paymentNum"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- <a-col :md="6" :sm="8"> <!-- <a-col :md="6" :sm="8">
...@@ -68,13 +68,13 @@ ...@@ -68,13 +68,13 @@
class="j-table-force-nowrap" class="j-table-force-nowrap"
@change="handleTableChange" @change="handleTableChange"
> >
<span slot="employeeStatus" slot-scope="text, record"> <span slot="receiptStatus" slot-scope="text, record">
<span :style="{'color': record.employeeStatus === '1' ? 'green' : 'red'}">{{record.employeeStatus === '1' ? '在职' : '离职'}}</span> <span :style="{'color': record.receiptStatus === '1' ? 'green' : 'red'}">{{record.receiptStatus === '1' ? '是' : '否'}}</span>
</span> </span>
<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)">开收据</a> <a @click="onIssueReceipt(record)" style="margin-left: 10px;">开收据</a>
<!-- <a-divider type="vertical"/> <!-- <a-divider type="vertical"/>
<a-dropdown> <a-dropdown>
...@@ -117,14 +117,14 @@ ...@@ -117,14 +117,14 @@
}, },
{ {
title: '业主', title: '业主',
dataIndex: 'ownerId', dataIndex: 'ownerName',
key: 'ownerId', key: 'ownerName',
align: 'center' align: 'center'
}, },
{ {
title: '订单编号', title: '订单编号',
dataIndex: 'orderNo', dataIndex: 'paymentNum',
key: 'orderNo', key: 'paymentNum',
align: 'center', align: 'center',
// customRender: function(text) { // customRender: function(text) {
// return filterDictTextByCache('duties', text); // return filterDictTextByCache('duties', text);
...@@ -132,8 +132,8 @@ ...@@ -132,8 +132,8 @@
}, },
{ {
title: '缴费类型', title: '缴费类型',
dataIndex: 'chargeType', dataIndex: 'chargeItem',
key: 'chargeType', key: 'chargeItem',
// scopedSlots: { customRender: 'employeeStatus' }, // scopedSlots: { customRender: 'employeeStatus' },
align: 'center' align: 'center'
}, },
...@@ -145,19 +145,20 @@ ...@@ -145,19 +145,20 @@
}, },
{ {
title: '缴费金额', title: '缴费金额',
dataIndex: 'chargeMoney', dataIndex: 'totalAmount',
key: 'chargeMoney', key: 'totalAmount',
align: 'center' align: 'center'
}, },
{ {
title: '缴费时间', title: '缴费时间',
dataIndex: 'createTime', dataIndex: 'paymentTime',
key: 'createTime', key: 'paymentTime',
align: 'center' align: 'center'
}, },
{ {
title: '收据状态', title: '收据状态',
dataIndex: 'receiptStatus', dataIndex: 'receiptStatus',
scopedSlots: { customRender: 'receiptStatus' },
key: 'receiptStatus', key: 'receiptStatus',
align: 'center' align: 'center'
}, },
...@@ -185,7 +186,7 @@ ...@@ -185,7 +186,7 @@
showSizeChanger: true showSizeChanger: true
}, },
url: { url: {
list: "/property-community/property/communityReceipt/list", list: "/property-community/payment/communityPayment/queryReceiptList",
delete: '/property-community/property/communityReceipt/delete', delete: '/property-community/property/communityReceipt/delete',
deleteBatch: '/property-community/property/communityReceipt/deleteBatch' deleteBatch: '/property-community/property/communityReceipt/deleteBatch'
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论