|
@@ -0,0 +1,296 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <el-row class="handle-box" style="margin-bottom: 10px">
|
|
|
+ <el-col :span="24">
|
|
|
+ <span>
|
|
|
+ 姓名
|
|
|
+ </span>
|
|
|
+ <el-input
|
|
|
+ v-model="search.buyerName"
|
|
|
+ style="margin-left:16px ;"
|
|
|
+ size="small"
|
|
|
+ placeholder="请输入"
|
|
|
+ class="ch-input ch-input-size"
|
|
|
+ />
|
|
|
+ <el-radio-group v-model="search.status" style="margin-left:16px ;">
|
|
|
+ <el-radio
|
|
|
+ v-for="item in dc_data.BUYING_HOUSE_STATUS"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.value"
|
|
|
+ >
|
|
|
+ {{ item.label }}
|
|
|
+ </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <div style="display: flex;align-items: center">
|
|
|
+ <div style=" white-space: break-spaces;">项目</div>
|
|
|
+ <div class="listBox">
|
|
|
+ <div
|
|
|
+ v-for="item in dc_data.BUYING_HOUSE_STATUS"
|
|
|
+ :key="item.value"
|
|
|
+ class="list"
|
|
|
+ :class="{ checked: groupIds.includes(item.value) }"
|
|
|
+ @click="checkedBox(item.value)"
|
|
|
+ >
|
|
|
+ {{ item.label }}
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <div style="display: flex;align-items: center">
|
|
|
+ <div style=" white-space: break-spaces;">分期</div>
|
|
|
+ <div class="listBox">
|
|
|
+ <div
|
|
|
+ v-for="item in dc_data.BUYING_HOUSE_STATUS"
|
|
|
+ :key="item.value"
|
|
|
+ class="list"
|
|
|
+ :class="{ checked: disIds.includes(item.value) }"
|
|
|
+ @click="checkedBox(item.value)"
|
|
|
+ >
|
|
|
+ {{ item.label }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" style="margin-top: 20px">
|
|
|
+ <el-button size="small" class="ch-button" style="float: right; margin-top: 4px" @click="downLoad"><i class="el-icon-menu" /> 选房通知单</el-button>
|
|
|
+ <el-button size="small" class="ch-button-danger" style="float: right; margin-top: 4px;margin-right: 10px;" @click="handleRemove"><i class="el-icon-menu" /> 删除</el-button>
|
|
|
+ <el-button size="small" class="ch-button-export" style="float: right;margin-top: 4px" @click="batchImport()"><i class="el-icon-menu" /> 批量导入</el-button>
|
|
|
+ <el-button size="small" class="ch-button" style="float: right; margin-right: 10px; margin-top: 4px" @click="handleAdd()"><i class="el-icon-menu" /> 新增</el-button>
|
|
|
+ <el-button size="small" class="ch-button" style="float: right; margin-top: 4px" @click="handleSearch()"><i class="el-icon-menu" /> 查询</el-button>
|
|
|
+ <el-button size="small" class="ch-button-warning" style="float: right;margin-top: 4px" @click="handleReset()"><i class="el-icon-menu" /> 重置</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="handle-box">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-table
|
|
|
+ ref="multipleTable"
|
|
|
+ v-loading="loading"
|
|
|
+ :data="AllData"
|
|
|
+ stripe
|
|
|
+ row-class-name="g_table_row"
|
|
|
+ :header-cell-style="{textAlign: 'center'}"
|
|
|
+ :cell-style="{ textAlign: 'center' }"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ >
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ type="selection"
|
|
|
+ width="55"
|
|
|
+ />
|
|
|
+ <el-table-column type="index" label="序号" width="60" />
|
|
|
+ <el-table-column label="小区-分期" prop="groupDiscName" width="180" />
|
|
|
+ <el-table-column label="批次号" prop="" />
|
|
|
+ <el-table-column label="选房号" prop="" />
|
|
|
+ <el-table-column label="买受人" prop="buyerName" width="300" />
|
|
|
+ <el-table-column label="选房日期" prop="" width="180" />
|
|
|
+ <el-table-column label="购房状态" prop="statusStr" />
|
|
|
+ <el-table-column label="意向房屋" prop="houseName" width="180" />
|
|
|
+ <el-table-column label="操作" width="180">
|
|
|
+ <template scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleEdit(scope.row)"
|
|
|
+ >应收调整
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div class="table-page">
|
|
|
+ <el-pagination
|
|
|
+ :current-page.sync="currentPage"
|
|
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
|
+ :page-size="pageSize"
|
|
|
+ background
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="allpage"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <!--新增-->
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="dialogAddVisible"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ title="新增"
|
|
|
+ width="90%"
|
|
|
+ top="20px"
|
|
|
+ append-to-body
|
|
|
+ @close="getData"
|
|
|
+ >
|
|
|
+ <add-customer v-if="dialogAddVisible" ref="addCustomer" @cancel="cancel" />
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import Base from '@/views/base/base'
|
|
|
+import BaseData from '@/views/base/baseData'
|
|
|
+import { upload } from '@/static/utils/channel'
|
|
|
+import BaseDept from '@/views/base/baseDept.vue'
|
|
|
+import AddCustomer from '@/views/customerManagement/numberManagement/addCustomer.vue'
|
|
|
+// const axios = require('axios')
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'NumberManagement',
|
|
|
+ components: { AddCustomer },
|
|
|
+ mixins: [Base, BaseData, BaseDept],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dc_key: ['BUYING_HOUSE_STATUS'],
|
|
|
+ search: {},
|
|
|
+ AllData: [],
|
|
|
+ loading: false,
|
|
|
+ groupIds: [],
|
|
|
+ disIds: [],
|
|
|
+ dialogAddVisible: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.initDict(this.dc_key).then((res) => {
|
|
|
+ this.getData()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getData: function() {
|
|
|
+ const _this = this
|
|
|
+ _this.loading = true
|
|
|
+ _this.AllData = []
|
|
|
+
|
|
|
+ this.search.pageNum = this.currentPage
|
|
|
+ this.search.pageSize = this.pageSize
|
|
|
+ this.baseRequest('list', this.search).then((res) => {
|
|
|
+ if (res.data.rows) {
|
|
|
+ res.data.rows.forEach(function(item) {
|
|
|
+ const json = _this.getItemJson(item)
|
|
|
+ _this.AllData.push(json)
|
|
|
+ })
|
|
|
+ _this.allpage = res.data.total
|
|
|
+ }
|
|
|
+ _this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleSearch() {
|
|
|
+ this.getData()
|
|
|
+ },
|
|
|
+ handleReset() {
|
|
|
+ for (const i in this.search) {
|
|
|
+ if (i !== 'pageNum' && i !== 'pageSize') {
|
|
|
+ this.search[i] = ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.handleSearch()
|
|
|
+ },
|
|
|
+ handleAdd() {
|
|
|
+ // 新增账单
|
|
|
+ this.dialogAddVisible = true
|
|
|
+ // 新vue时调用的方法
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.addCustomer.initData()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ batchImport() {
|
|
|
+
|
|
|
+ },
|
|
|
+ handleRemove() {
|
|
|
+
|
|
|
+ },
|
|
|
+ /* 编辑*/
|
|
|
+ handleEdit: function(val) {
|
|
|
+
|
|
|
+ },
|
|
|
+ getItemJson: function(item) {
|
|
|
+
|
|
|
+ },
|
|
|
+ checkedBox(i) {
|
|
|
+ if (this.groupIds.includes(i)) {
|
|
|
+ // includes()方法判断是否包含某一元素,返回true或false表示是否包含元素,对NaN一样有效
|
|
|
+ // filter()方法用于把Array的某些元素过滤掉,filter()把传入的函数依次作用于每个元素,然后根据返回值是true还是false决定保留还是丢弃该元素:生成新的数组
|
|
|
+ this.groupIds = this.groupIds.filter(function(ele) {
|
|
|
+ return ele !== i
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.groupIds.push(i)
|
|
|
+ }
|
|
|
+ this.search.groupIds = this.groupIds.join(',')
|
|
|
+ },
|
|
|
+ baseRequest(opUrl, postData) {
|
|
|
+ return this.$channel.globeRequest('CustomerManagementController', opUrl, postData, '')
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.ch-input .el-input__inner {
|
|
|
+ border-color: #32323A;
|
|
|
+}
|
|
|
+
|
|
|
+.ch-input-size {
|
|
|
+ width: 150px;
|
|
|
+}
|
|
|
+
|
|
|
+.ch-button {
|
|
|
+ border-color: #32323A;
|
|
|
+ background-color: #32323A;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.ch-button-warning {
|
|
|
+ margin-left: 10px;
|
|
|
+ border-color: #E6A23C;
|
|
|
+ background-color: #E6A23C;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.ch-button-export {
|
|
|
+ margin-left: 10px;
|
|
|
+ border-color: #98CC1F;
|
|
|
+ background-color: #98CC1F;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.listBox {
|
|
|
+ margin-left: 20px;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
+
|
|
|
+.list {
|
|
|
+
|
|
|
+ border-radius: 4px;
|
|
|
+ margin-right: 20px;
|
|
|
+ margin-top: 15px;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-bottom: 15px;
|
|
|
+ width: 138px;
|
|
|
+ height: 28px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 28px;
|
|
|
+ background: #EBEBEB;
|
|
|
+ color: #777777;
|
|
|
+}
|
|
|
+
|
|
|
+.checked {
|
|
|
+ color: #2C27D0;
|
|
|
+ background: #EAEAF8;
|
|
|
+ /*border: 1px solid #3377ff;*/
|
|
|
+}
|
|
|
+
|
|
|
+.ch-button-danger {
|
|
|
+ margin-left: 10px;
|
|
|
+ border-color: #ff4949;
|
|
|
+ background-color: #ff4949;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+</style>
|