|
@@ -28,6 +28,16 @@
|
|
|
:curObj="curObj"
|
|
|
@close="closeQPopup"
|
|
|
/>
|
|
|
+ <index-record
|
|
|
+ :isShow="isQShow"
|
|
|
+ :curObj="curObj"
|
|
|
+ @close="closeQPopup"
|
|
|
+ />
|
|
|
+ <state-edit
|
|
|
+ :isShow="isStateShow"
|
|
|
+ :curObj="curObj"
|
|
|
+ @close="closeStatePopup"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -35,12 +45,14 @@ import { arrToObj } from '@/utils'
|
|
|
import SearchForm from './components/searchForm/Index'
|
|
|
import IndexRecord from './components/popup/IndexRecord'
|
|
|
import PopupEdit from './components/popup/IndexEdit'
|
|
|
+import StateEdit from './components/popup/StateEdit'
|
|
|
import baseTable from '_m/baseTable.js'
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
components: {
|
|
|
SearchForm,
|
|
|
PopupEdit,
|
|
|
+ StateEdit,
|
|
|
IndexRecord,
|
|
|
},
|
|
|
provide() {
|
|
@@ -57,6 +69,7 @@ export default {
|
|
|
curObj: {},
|
|
|
isQShow: false,
|
|
|
isAShow: false,
|
|
|
+ isStateShow: false,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -73,6 +86,8 @@ export default {
|
|
|
mounted() {
|
|
|
this.listConfig = {
|
|
|
rows: [
|
|
|
+ { label: '状态', prop: 'trade_state', type: 'tag', tags: arrToObj(this.$dictData.trade_state), tagTypeObj: {'1': 'success', '2': 'danger'} },
|
|
|
+ { label: '状态描述', prop: 'trade_state_des'},
|
|
|
{ label: '房屋类型', prop: 'house_type', fullShow: true, type: 'flag', flags: arrToObj(this.$dictData.trade_house_type) },
|
|
|
{ label: '成交店员', prop: 'deal_clerk' },
|
|
|
{ label: '成交楼盘', prop: 'deal_item' },
|
|
@@ -86,10 +101,11 @@ export default {
|
|
|
{ label: '面积(㎡)', prop: 'area' },
|
|
|
{ label: '总价(元)', prop: 'price' },
|
|
|
{ label: '创建时间', prop: 'create_at' },
|
|
|
- { label: '操作', width: 200, type: 'handle2', operations:
|
|
|
+ { label: '操作', width: 230, type: 'handle2', operations:
|
|
|
[
|
|
|
+ { label: '维护', func: this.openStatePopup, btnType: 'info' },
|
|
|
{ label: '编辑', func: this.openPopup, btnType: 'success' },
|
|
|
- { label: '成交详情', func: this.openQPopup, btnType: 'primary' },
|
|
|
+ { label: '详情', func: this.openQPopup, btnType: 'primary' },
|
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
]
|
|
|
}
|
|
@@ -111,6 +127,20 @@ export default {
|
|
|
this.fetchData()
|
|
|
}
|
|
|
},
|
|
|
+ openStatePopup (row) {
|
|
|
+ if (row && row.id) {
|
|
|
+ this.curObj = row
|
|
|
+ } else {
|
|
|
+ this.curObj = {}
|
|
|
+ }
|
|
|
+ this.isStateShow = true
|
|
|
+ },
|
|
|
+ closeStatePopup (obj) {
|
|
|
+ this.isStateShow = false
|
|
|
+ if (obj) {
|
|
|
+ this.fetchData()
|
|
|
+ }
|
|
|
+ },
|
|
|
delHandle(row) {
|
|
|
this.$msg(`您确定要删除该报备吗?`, 'confirm', () => {
|
|
|
this.$api.cust.admtradedel({
|