提交 9c272cb3 authored 作者: 何忠建's avatar 何忠建

7.28

上级 e65d223b
const api = { const api = {
Login: '/sys/login', Login: '/sys/partnerLogin',
Logout: '/sys/logout', Logout: '/sys/logout',
ForgePassword: '/auth/forge-password', ForgePassword: '/auth/forge-password',
Register: '/auth/register', Register: '/auth/register',
......
...@@ -14,7 +14,7 @@ import { axios } from '@/utils/request' ...@@ -14,7 +14,7 @@ import { axios } from '@/utils/request'
*/ */
export function login(parameter) { export function login(parameter) {
return axios({ return axios({
url: '/sys/login', url: '/sys/partnerLogin',
method: 'post', method: 'post',
data: parameter data: parameter
}) })
......
...@@ -54,33 +54,32 @@ ...@@ -54,33 +54,32 @@
<a-form> <a-form>
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="对账总金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName" <a-form-model-item label="对账总金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name1"
style="width: 100%;"> style="width: 100%;">
<a-input v-model="model.propertyName" placeholder="对账总金额"></a-input> <a-input v-model="model.name1" placeholder="对账总金额"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="对账日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName" <a-form-model-item label="对账日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name2"
style="width: 100%;"> style="width: 100%;">
<a-input v-model="model.propertyName" placeholder="对账日期"></a-input> <a-input v-model="model.name2" placeholder="对账日期"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="对账明细" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName" <a-form-model-item label="对账明细" :labelCol="labelCol" :wrapperCol="wrapperCol" style="width: 100%;">
style="width: 100%;">
<a @click="checkDetails()">查看明细</a> <a @click="checkDetails()">查看明细</a>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName" <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" style="width: 100%;">
style="width: 100%;"> <a-textarea v-model="model.name3" :auto-size="{ minRows: 4, maxRows: 6 }" />
<a-textarea v-model="model.propertyName" :auto-size="{ minRows: 4, maxRows: 6 }" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
</a-modal> </a-modal>
<a-modal centered title="对账明细" :visible="visibleReconciliationDetail" :confirm-loading="confirmLoading" :footer="null" width="60%" @cancel="handleCancelDetail"> <a-modal centered title="对账明细" :visible="visibleReconciliationDetail" :confirm-loading="confirmLoading"
:footer="null" width="60%" @cancel="handleCancelDetail">
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns1" <a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns1"
:dataSource="selectedList" :pagination="false" :loading="loading" class="j-table-force-nowrap"> :dataSource="selectedList" :pagination="false" :loading="loading" class="j-table-force-nowrap">
</a-table> </a-table>
...@@ -228,11 +227,11 @@ const columns1 = [ ...@@ -228,11 +227,11 @@ const columns1 = [
// customRender: function (text) { // customRender: function (text) {
// return filterDictTextByCache('companyAuditStatus', text) // return filterDictTextByCache('companyAuditStatus', text)
// }, // },
} },
] ]
export default { export default {
components: { }, components: {},
name: 'ReconciliationList', name: 'ReconciliationList',
mixins: [JeecgListMixin], mixins: [JeecgListMixin],
data() { data() {
...@@ -307,11 +306,13 @@ export default { ...@@ -307,11 +306,13 @@ export default {
confirmLoading: false, confirmLoading: false,
selectedList: [], selectedList: [],
selectedRowKeys: [], selectedRowKeys: [],
visibleReconciliationDetail:false visibleReconciliationDetail: false,
} }
}, },
created() { created() {
//this.getChargeList() //this.getChargeList()
let data = new Date().toLocaleString();
console.log(data)
}, },
methods: { methods: {
// async getChargeList() { // async getChargeList() {
...@@ -329,11 +330,18 @@ export default { ...@@ -329,11 +330,18 @@ export default {
}, },
//申请对账 //申请对账
toReconciliation(type, record) { toReconciliation(type, record) {
this.selectedList = []; this.selectedList = []
this.model.name1 = 0;
if (type == 1) { if (type == 1) {
if (this.selectionRows.length > 0) { if (this.selectionRows.length > 0) {
this.visibleReconciliation = true this.visibleReconciliation = true
this.selectedList = this.selectionRows this.selectedList = this.selectionRows
let list = this.selectedList
let sum = 0
for (var i = 0; i < list.length; i++) {
sum += list[i].propertyName
}
this.model.name1 = sum
console.log(this.selectedList) console.log(this.selectedList)
console.log(333) console.log(333)
} else { } else {
...@@ -341,12 +349,12 @@ export default { ...@@ -341,12 +349,12 @@ export default {
} }
} else if (type == 2) { } else if (type == 2) {
this.visibleReconciliation = true this.visibleReconciliation = true
this.selectedList.push(record); this.selectedList.push(record)
this.selectedRowKeys = []; this.selectedRowKeys = []
this.model.name1 = record.propertyName;
} }
}, },
handleOk(e) { handleOk(e) {
this.ModalText = 'The modal will be closed after two seconds'
this.confirmLoading = true this.confirmLoading = true
setTimeout(() => { setTimeout(() => {
this.visibleReconciliation = false this.visibleReconciliation = false
...@@ -366,12 +374,12 @@ export default { ...@@ -366,12 +374,12 @@ export default {
this.selectedRowKeys = selectedRowKeys this.selectedRowKeys = selectedRowKeys
this.selectionRows = selectedRows this.selectionRows = selectedRows
}, },
checkDetails(){ checkDetails() {
this.visibleReconciliationDetail = true this.visibleReconciliationDetail = true
}, },
handleCancelDetail(){ handleCancelDetail() {
this.visibleReconciliationDetail = false this.visibleReconciliationDetail = false
} },
}, },
} }
</script> </script>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="title-top"> <div class="title-top">
<h3>{{title}}</h3> <h3>{{title}}</h3>
<div class="button"> <div class="button">
<a-button @click="onCancel">返回</a-button> <a-button @click="toReturn">返回</a-button>
<a-button type="danger" @click="onExamine(2)" v-if="pageType == '2'">审核驳回</a-button> <a-button type="danger" @click="onExamine(2)" v-if="pageType == '2'">审核驳回</a-button>
<a-button type="primary" @click="onExamine(1)" v-if="pageType == '2'">审核通过</a-button> <a-button type="primary" @click="onExamine(1)" v-if="pageType == '2'">审核通过</a-button>
<a-button type="primary" @click="onExamine(3)" v-if="pageType == '3'">确认</a-button> <a-button type="primary" @click="onExamine(3)" v-if="pageType == '3'">确认</a-button>
...@@ -133,7 +133,7 @@ const columns = [ ...@@ -133,7 +133,7 @@ const columns = [
] ]
export default { export default {
name: 'SettlementDetails', name: 'SettlementDetails',
inject: ['closeCurrent'], inject: [],
mixins: [JeecgListMixin], mixins: [JeecgListMixin],
data() { data() {
return { return {
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
) )
} }
}, },
onCancel() { toReturn() {
this.$router.go(-1) this.$router.go(-1)
}, },
contactPhoneChange(e) { contactPhoneChange(e) {
...@@ -249,7 +249,6 @@ export default { ...@@ -249,7 +249,6 @@ export default {
this.visible = true this.visible = true
}, },
onExamine(type) { onExamine(type) {
this.closeCurrent()
// const that = this // const that = this
// if (type == 1) { // if (type == 1) {
// return auditPropertyApi({ // return auditPropertyApi({
...@@ -258,7 +257,7 @@ export default { ...@@ -258,7 +257,7 @@ export default {
// }).then((res) => { // }).then((res) => {
// that.$message.success('审核通过成功') // that.$message.success('审核通过成功')
// that.$emit('ok') // that.$emit('ok')
// this.closeCurrent() // this.toReturn()
// }) // })
// } else if (type == 2) { // } else if (type == 2) {
// return auditPropertyApi({ // return auditPropertyApi({
...@@ -266,7 +265,7 @@ export default { ...@@ -266,7 +265,7 @@ export default {
// auditStatus: 'refuse', // auditStatus: 'refuse',
// }).then((res) => { // }).then((res) => {
// that.$message.success('审核驳回成功') // that.$message.success('审核驳回成功')
// this.closeCurrent() // this.toReturn()
// }) // })
// } // }
}, },
...@@ -381,7 +380,7 @@ export default { ...@@ -381,7 +380,7 @@ export default {
if (res.success) { if (res.success) {
that.$message.success(res.message) that.$message.success(res.message)
that.$emit('ok') that.$emit('ok')
this.closeCurrent() this.toReturn()
} else { } else {
that.$message.warning(res.message) that.$message.warning(res.message)
} }
...@@ -392,9 +391,6 @@ export default { ...@@ -392,9 +391,6 @@ export default {
} }
}) })
}, },
loadData() {
console.log('不请求')
},
}, },
mounted() { mounted() {
//备份model原始值 //备份model原始值
......
...@@ -305,7 +305,6 @@ export default { ...@@ -305,7 +305,6 @@ export default {
this.visibleReconciliation = true this.visibleReconciliation = true
}, },
handleOk(e) { handleOk(e) {
this.ModalText = 'The modal will be closed after two seconds'
this.confirmLoading = true this.confirmLoading = true
setTimeout(() => { setTimeout(() => {
this.visibleReconciliation = false this.visibleReconciliation = false
...@@ -313,12 +312,8 @@ export default { ...@@ -313,12 +312,8 @@ export default {
}, 2000) }, 2000)
}, },
handleCancel(e) { handleCancel(e) {
console.log('Clicked cancel button')
this.visibleReconciliation = false this.visibleReconciliation = false
}, },
loadData() {
console.log('不请求')
},
}, },
} }
</script> </script>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<div class="title-top"> <div class="title-top">
<h3>{{title}}</h3> <h3>{{title}}</h3>
<div class="button"><a-button @click="onCancel">返回</a-button> <div class="button"><a-button @click="toReturn">返回</a-button>
<a-button type="primary" @click="submitForm" v-if="pageType == 'edit' || pageType == 'add' ">保存</a-button> <a-button type="primary" @click="submitForm" v-if="pageType == 'edit' || pageType == 'add' ">保存</a-button>
<a-button type="danger" @click="onExamine(2)" v-if="pageType == 'audit'">审核驳回</a-button> <a-button type="danger" @click="onExamine(2)" v-if="pageType == 'audit'">审核驳回</a-button>
<a-button type="primary" @click="onExamine(1)" v-if="pageType == 'audit'">审核通过</a-button> <a-button type="primary" @click="onExamine(1)" v-if="pageType == 'audit'">审核通过</a-button>
...@@ -168,7 +168,7 @@ import SelectShopsModal from './modules/SelectShopsModal' ...@@ -168,7 +168,7 @@ import SelectShopsModal from './modules/SelectShopsModal'
export default { export default {
name: 'ShopsDetails', name: 'ShopsDetails',
inject: ['closeCurrent'], inject: [],
components: { components: {
SelectCommunityModal, SelectCommunityModal,
SelectShopsModal, SelectShopsModal,
...@@ -323,7 +323,7 @@ export default { ...@@ -323,7 +323,7 @@ export default {
) )
} }
}, },
onCancel() { toReturn() {
this.$router.go(-1) this.$router.go(-1)
}, },
//选择小区 //选择小区
...@@ -375,7 +375,7 @@ export default { ...@@ -375,7 +375,7 @@ export default {
// }).then((res) => { // }).then((res) => {
// that.$message.success('审核通过成功') // that.$message.success('审核通过成功')
// that.$emit('ok') // that.$emit('ok')
// this.closeCurrent() // this.toReturn()
// }) // })
// } else if (type == 2) { // } else if (type == 2) {
// return auditPropertyApi({ // return auditPropertyApi({
...@@ -383,7 +383,7 @@ export default { ...@@ -383,7 +383,7 @@ export default {
// auditStatus: 'refuse', // auditStatus: 'refuse',
// }).then((res) => { // }).then((res) => {
// that.$message.success('审核驳回成功') // that.$message.success('审核驳回成功')
// this.closeCurrent() // this.toReturn()
// }) // })
// } // }
}, },
...@@ -498,7 +498,7 @@ export default { ...@@ -498,7 +498,7 @@ export default {
if (res.success) { if (res.success) {
that.$message.success(res.message) that.$message.success(res.message)
that.$emit('ok') that.$emit('ok')
this.closeCurrent() this.toReturn()
} else { } else {
that.$message.warning(res.message) that.$message.warning(res.message)
} }
...@@ -510,10 +510,6 @@ export default { ...@@ -510,10 +510,6 @@ export default {
}) })
}, },
}, },
beforeDestroy() {
clearTimeout(timer)
this.mapRef.removeEventListener('click', (e) => this.getAddress(e))
},
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
...@@ -539,4 +535,7 @@ export default { ...@@ -539,4 +535,7 @@ export default {
.area-select { .area-select {
width: 100% !important; width: 100% !important;
} }
.anchorBL{
visibility: hidden;
}
</style> </style>
\ No newline at end of file
...@@ -138,7 +138,6 @@ export default { ...@@ -138,7 +138,6 @@ export default {
components: {}, components: {},
data() { data() {
return { return {
// 表头
columns: columns, columns: columns,
loading: false, loading: false,
pagination: { pagination: {
...@@ -149,8 +148,6 @@ export default { ...@@ -149,8 +148,6 @@ export default {
}, },
url: { url: {
list: '/property-central/property/propertySettled/list', list: '/property-central/property/propertySettled/list',
delete: '/property-central/property/propertySettled/delete',
deleteBatch: '/property-central/property/propertySettled/deleteBatch',
}, },
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论