|
@@ -2,16 +2,20 @@
|
|
|
<div class="flex flex-col">
|
|
<div class="flex flex-col">
|
|
|
<div class="flex flex-center flex-justify-between margin">
|
|
<div class="flex flex-center flex-justify-between margin">
|
|
|
<span class="grey font-18 bold">项目详情</span>
|
|
<span class="grey font-18 bold">项目详情</span>
|
|
|
- <base-button :title="btnTips" icon="EditPen" width="60" @click="edit"/>
|
|
|
|
|
|
|
+ <div class="flex flex-center">
|
|
|
|
|
+ <base-button v-if="option.detail === false" :width="60" icon="Close" title="取消编辑" @click="cancel"/>
|
|
|
|
|
+ <base-button :title="btnTips" :width="60" icon="EditPen" @click="edit"/>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <basic-form :data="data" :option="option"/>
|
|
|
|
|
|
|
+ <basic-form :data="data" :option="option" class="mt-10"/>
|
|
|
<div class="flex flex-col mt-20">
|
|
<div class="flex flex-col mt-20">
|
|
|
<div class="flex flex-center flex-justify-between margin">
|
|
<div class="flex flex-center flex-justify-between margin">
|
|
|
<span class="grey font-18 bold">发行明细</span>
|
|
<span class="grey font-18 bold">发行明细</span>
|
|
|
- <base-button icon="Plus" title="新增" width="60"/>
|
|
|
|
|
|
|
+ <base-button :width="60" icon="Plus" title="新增" @click="showAdd = true"/>
|
|
|
</div>
|
|
</div>
|
|
|
<!-------发行明细------>
|
|
<!-------发行明细------>
|
|
|
- <div class="flex flex-col flex-center padding mb-20">
|
|
|
|
|
|
|
+ <el-empty v-if="issue.length === 0" description="暂无数据"/>
|
|
|
|
|
+ <div v-else class="flex flex-col flex-center padding mb-20">
|
|
|
<div class="flex flex-center grey bold full-width mr-10 border"
|
|
<div class="flex flex-center grey bold full-width mr-10 border"
|
|
|
style="background-color: #FAFAFA;height: 50px;">
|
|
style="background-color: #FAFAFA;height: 50px;">
|
|
|
<span class="flex-child-average">发行时间</span>
|
|
<span class="flex-child-average">发行时间</span>
|
|
@@ -19,7 +23,6 @@
|
|
|
<span class="flex-child-average">发行期限</span>
|
|
<span class="flex-child-average">发行期限</span>
|
|
|
<span class="flex-child-average">发行利率</span>
|
|
<span class="flex-child-average">发行利率</span>
|
|
|
</div>
|
|
</div>
|
|
|
- {{ issue }}
|
|
|
|
|
<div v-for="item in issue"
|
|
<div v-for="item in issue"
|
|
|
class="flex flex-center grey full-width border-bottom border-right border-left mr-10"
|
|
class="flex flex-center grey full-width border-bottom border-right border-left mr-10"
|
|
|
style="height: 50px">
|
|
style="height: 50px">
|
|
@@ -30,6 +33,37 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <el-dialog v-model='showAdd' append-to-body width='40%'>
|
|
|
|
|
+ <div class="flex flex-col">
|
|
|
|
|
+ <el-form ref="ruleFormRef"
|
|
|
|
|
+ :model="issueInfo"
|
|
|
|
|
+ class="demo-ruleForm"
|
|
|
|
|
+ label-width="120px"
|
|
|
|
|
+ status-icon>
|
|
|
|
|
+ <el-form-item label="发行时间">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="issueInfo.issueDate"
|
|
|
|
|
+ format="YYYY-MM-DD"
|
|
|
|
|
+ placeholder="选择发行时间"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="发行金额">
|
|
|
|
|
+ <el-input v-model="issueInfo.issueAmount"/>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="发行期限">
|
|
|
|
|
+ <el-input v-model="issueInfo.issueRate"/>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="发行利率">
|
|
|
|
|
+ <el-input v-model="issueInfo.issueTerm"/>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div class="full-width flex flex-center mt-10">
|
|
|
|
|
+ <base-button icon="Lock" title="保存" type="1" @click="issueAdd"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -45,6 +79,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ showAdd: false,
|
|
|
keyWords: '',
|
|
keyWords: '',
|
|
|
loading: false,
|
|
loading: false,
|
|
|
btnTips: '编辑',
|
|
btnTips: '编辑',
|
|
@@ -194,7 +229,7 @@ export default {
|
|
|
prop: 'introduction',
|
|
prop: 'introduction',
|
|
|
type: 'textarea',
|
|
type: 'textarea',
|
|
|
span: 24,
|
|
span: 24,
|
|
|
- rows: 2
|
|
|
|
|
|
|
+ rows: 4
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
type: 'row',
|
|
type: 'row',
|
|
@@ -249,43 +284,49 @@ export default {
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
- info: {
|
|
|
|
|
- name: '',
|
|
|
|
|
- totalAmount: '',
|
|
|
|
|
- provinceCode: '',
|
|
|
|
|
- cityCode: '',
|
|
|
|
|
- districtCode: '',
|
|
|
|
|
- capital: '',
|
|
|
|
|
- dictName: '',
|
|
|
|
|
- implementingAgency: '',
|
|
|
|
|
- portfolioFinancing: '',
|
|
|
|
|
- startDate: '',
|
|
|
|
|
- debtsAsCapital: '',
|
|
|
|
|
- operationStartDate: '',
|
|
|
|
|
- expectedReturn: '',
|
|
|
|
|
- cost: '',
|
|
|
|
|
- sourceIncome: '',
|
|
|
|
|
- introduction: '',
|
|
|
|
|
- projectSubject: '',
|
|
|
|
|
- costIncomePercent: '',
|
|
|
|
|
- lawFirm: '',
|
|
|
|
|
- coverageMultiple: ''
|
|
|
|
|
- },
|
|
|
|
|
- issue: []
|
|
|
|
|
|
|
+ issueInfo: {
|
|
|
|
|
+ issueDate: '',
|
|
|
|
|
+ issueAmount: '',
|
|
|
|
|
+ issueRate: '',
|
|
|
|
|
+ issueTerm: '',
|
|
|
|
|
+ projectId: ''
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
edit() {
|
|
edit() {
|
|
|
if (this.btnTips === '编辑') {
|
|
if (this.btnTips === '编辑') {
|
|
|
- console.log('false')
|
|
|
|
|
this.option.detail = false
|
|
this.option.detail = false
|
|
|
this.btnTips = '保存'
|
|
this.btnTips = '保存'
|
|
|
} else {
|
|
} else {
|
|
|
this.option.detail = true
|
|
this.option.detail = true
|
|
|
- console.log('true')
|
|
|
|
|
|
|
+ this.$api.project.proUpdate(this.data).then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.$message.success(res.msg)
|
|
|
|
|
+ this.$emit('refInfo')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
this.btnTips = '编辑'
|
|
this.btnTips = '编辑'
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ cancel() {
|
|
|
|
|
+ this.option.detail = true
|
|
|
|
|
+ this.btnTips = '编辑'
|
|
|
|
|
+ },
|
|
|
|
|
+ issueAdd() {
|
|
|
|
|
+ this.issueInfo.projectId = this.data.id
|
|
|
|
|
+ this.$api.project.issueAdd(this.issueInfo).then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.showAdd = false
|
|
|
|
|
+ this.$message.success(res.msg)
|
|
|
|
|
+ this.$emit('refresh')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|