|
|
|
|
@ -14,6 +14,26 @@ export default {
|
|
|
|
|
let dialog = new CreateDialog(
|
|
|
|
|
this,
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
show: this.type === 'editor',
|
|
|
|
|
key: 'let_id',
|
|
|
|
|
label: '关联招租',
|
|
|
|
|
render: h('div',[
|
|
|
|
|
h('el-button',{
|
|
|
|
|
props: {
|
|
|
|
|
type: 'primary',
|
|
|
|
|
size: 'small'
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
click: _ => {
|
|
|
|
|
this.letDialog = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},'关联招租'),
|
|
|
|
|
h('br'),
|
|
|
|
|
h('span', Object.keys(this.selectLet).length > 0 ? `${this.selectLet.juecezhuti}/${this.selectLet.zhaozufangshi}/${this.selectLet.zujindijiaquedingfangshi}/${this.selectLet.shouniannianzujin}` : '')
|
|
|
|
|
])
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
show: true,
|
|
|
|
|
key: "chengzufang",
|
|
|
|
|
@ -79,6 +99,10 @@ export default {
|
|
|
|
|
let oldDialog = new CreateDialog(
|
|
|
|
|
this,
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
show: false,
|
|
|
|
|
key: 'let_id'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
show: true,
|
|
|
|
|
key: "qiandingnianyue",
|
|
|
|
|
@ -716,6 +740,132 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
this.type === 'editor' ? (
|
|
|
|
|
<el-drawer
|
|
|
|
|
title="招租列表"
|
|
|
|
|
append-to-body={true}
|
|
|
|
|
visible={this.letDialog}
|
|
|
|
|
size="64%"
|
|
|
|
|
on={{
|
|
|
|
|
["update:visible"]: (val) => (this.letDialog = val)
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div style="padding: 0 10px;">
|
|
|
|
|
<div>
|
|
|
|
|
<Input
|
|
|
|
|
vModel={_this.letSelect.keyword}
|
|
|
|
|
style="width: 300px;"
|
|
|
|
|
placeholder="请填写关键词"
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
on={{
|
|
|
|
|
["click"]: (_) => {
|
|
|
|
|
this.$refs["letLinkTable"].getTableData(true);
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
搜索
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<xy-table
|
|
|
|
|
isHandlerKey={false}
|
|
|
|
|
height="600"
|
|
|
|
|
ref="letLinkTable"
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "selection",
|
|
|
|
|
label: "选择",
|
|
|
|
|
type: "selection",
|
|
|
|
|
width: 56,
|
|
|
|
|
align: "center",
|
|
|
|
|
reserveSelection: true,
|
|
|
|
|
fixed: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "id",
|
|
|
|
|
width: 60,
|
|
|
|
|
label: "序号",
|
|
|
|
|
formatter: (row, column, cellValue, index) => (this.$refs['letLinkTable'].selectOpt.page - 1) * this.$refs['letLinkTable'].selectOpt.page_size + index + 1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "juecezhuti",
|
|
|
|
|
label: "决策主体",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "zhaozufangshi",
|
|
|
|
|
label: "招租方式",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "xingshi",
|
|
|
|
|
label: "公开招租渠道/协议招租",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "zujindijiaquedingfangshi",
|
|
|
|
|
label: "租金底价确定方式",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "mianzuqi",
|
|
|
|
|
label: "免租期(天)",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "center",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "shouniannianzujin",
|
|
|
|
|
label: "首年年租金(万元)",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "right",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "danweimianjizhaozudijia",
|
|
|
|
|
label: "单位面积招租底价(首年)(元/m²)",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "right",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "zhaozunianxian",
|
|
|
|
|
label: "招租年限",
|
|
|
|
|
width: 0,
|
|
|
|
|
align: "center",
|
|
|
|
|
}
|
|
|
|
|
]}
|
|
|
|
|
action={this.index}
|
|
|
|
|
req-opt={_this.letSelect}
|
|
|
|
|
on={{
|
|
|
|
|
["loaded"]: (_) => {
|
|
|
|
|
if (this.selectLet.id) {
|
|
|
|
|
this.$refs['letLinkTable'].setCurrentRow(
|
|
|
|
|
this.$refs['letLinkTable'].getListData().find(row => row.id === this.selectLet.id)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
["select"]: (selection, row) => {
|
|
|
|
|
this.form.let_id = row.id
|
|
|
|
|
if (selection.length > 0) {
|
|
|
|
|
this.selectLet = row;
|
|
|
|
|
this.$refs['letLinkTable'].clearSelection();
|
|
|
|
|
this.$refs['letLinkTable'].toggleRowSelection(row, true);
|
|
|
|
|
} else {
|
|
|
|
|
this.selectLet = {};
|
|
|
|
|
this.$refs['letLinkTable'].clearSelection();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
></xy-table>
|
|
|
|
|
</div>
|
|
|
|
|
</el-drawer>
|
|
|
|
|
) : ''
|
|
|
|
|
}
|
|
|
|
|
<el-drawer
|
|
|
|
|
title="土地列表"
|
|
|
|
|
append-to-body={true}
|
|
|
|
|
@ -750,6 +900,8 @@ export default {
|
|
|
|
|
ref="landLinkTable"
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "selection",
|
|
|
|
|
label: "选择",
|
|
|
|
|
type: "selection",
|
|
|
|
|
width: 56,
|
|
|
|
|
align: "center",
|
|
|
|
|
@ -1002,6 +1154,8 @@ export default {
|
|
|
|
|
ref="houseLinkTable"
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "selection",
|
|
|
|
|
label: "选择",
|
|
|
|
|
type: "selection",
|
|
|
|
|
width: 56,
|
|
|
|
|
align: "center",
|
|
|
|
|
@ -1205,6 +1359,13 @@ export default {
|
|
|
|
|
table_name: "houses",
|
|
|
|
|
keyword: "",
|
|
|
|
|
},
|
|
|
|
|
selectLet: {},
|
|
|
|
|
letDialog: false,
|
|
|
|
|
letSelect: {
|
|
|
|
|
is_auth: 1,
|
|
|
|
|
table_name: "lets",
|
|
|
|
|
keyword: "",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
columns: 1,
|
|
|
|
|
row: {},
|
|
|
|
|
@ -1365,7 +1526,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.form.let_id = this.$route.params.letId;
|
|
|
|
|
this.form.let_id = !this.form.let_id ? this.$route.params.letId : this.form.let_id;
|
|
|
|
|
save(Object.assign(this.form, { table_name: "leases" })).then((res) => {
|
|
|
|
|
if (this.type !== "add") {
|
|
|
|
|
Promise.all([
|
|
|
|
|
|