|
|
@@ -55,7 +55,6 @@
|
|
|
:append-to-body="false"
|
|
|
style="width: 100%;"
|
|
|
:options="TreeData"
|
|
|
- :props="{ multiple: true}"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-form-item>
|
|
|
@@ -63,7 +62,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="回购说明">
|
|
|
<el-input
|
|
|
- v-model="formData.payRemark"
|
|
|
+ v-model="formData.remark"
|
|
|
:autosize="{minRows: 4, maxRows: 4}"
|
|
|
:style="{width: '100%'}"
|
|
|
placeholder="请填写"
|
|
|
@@ -114,7 +113,7 @@
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-show="true" id="containeraddwork1" style="width: 100%" />
|
|
|
+ <div v-show="true" id="containeraddwork6" style="width: 100%" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
@@ -473,7 +472,7 @@ export default {
|
|
|
},
|
|
|
createNodeCanvas() {
|
|
|
this.$nextTick(() => {
|
|
|
- const chartDom = document.getElementById('containeraddwork1')
|
|
|
+ const chartDom = document.getElementById('containeraddwork6')
|
|
|
var myCharts = echarts.init(chartDom)
|
|
|
const charts = {
|
|
|
nodes: this.nodes,
|
|
|
@@ -547,7 +546,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
async getUserInfo() {
|
|
|
- const { data: userinfo } = await this.baseRequest1('ApplyCheckInController', 'getUserInfoByUserId', { userId: '' })
|
|
|
+ const { data: userinfo } = await this.baseRequest1('ApplyBuyingMoreController', 'getUserInfoByUserId', { userId: '' })
|
|
|
this.userinfo = userinfo
|
|
|
this.formData.truename = userinfo.truename
|
|
|
this.formData.deptName = userinfo.deptName
|
|
|
@@ -579,6 +578,7 @@ export default {
|
|
|
},
|
|
|
async handelConfirm() {
|
|
|
const _this = this
|
|
|
+ console.log('_this.formData.houseIds', _this.formData.houseIds)
|
|
|
if (_this.formData.houseIds == undefined || _this.formData.houseIds.length < 1) {
|
|
|
_this.$message({
|
|
|
message: '请选择出租载体',
|
|
|
@@ -586,15 +586,13 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
} else {
|
|
|
- _this.formData.houseIds.forEach(item => {
|
|
|
- if (item.length < 4) {
|
|
|
- _this.$message({
|
|
|
- message: '有房间尚未选择,请校验后重新选择',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- })
|
|
|
+ if (_this.formData.houseIds.length < 4) {
|
|
|
+ _this.$message({
|
|
|
+ message: '有房间尚未选择,请校验后重新选择',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
this.$refs['elForm'].validate(async valid => {
|
|
|
if (!valid) return
|
|
|
@@ -607,11 +605,12 @@ export default {
|
|
|
}).toString()
|
|
|
}
|
|
|
const formData = {
|
|
|
- ...this.formData
|
|
|
+ ...this.formData,
|
|
|
+ houseId: _this.formData.houseIds[3]
|
|
|
}
|
|
|
this.loading = true
|
|
|
|
|
|
- const { data } = await this.baseRequest1('ApplyCheckInController', 'addApplyCheckIn', { ...formData })
|
|
|
+ const { data } = await this.baseRequest1('ApplyBuyingMoreController', 'addApplyBuyingMore', { ...formData })
|
|
|
if (data.code == 200) {
|
|
|
this.loading = false
|
|
|
this.$message.success('回购申请发起成功')
|
|
|
@@ -642,7 +641,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#containeraddwork1 {
|
|
|
+#containeraddwork6 {
|
|
|
height: 600px;
|
|
|
width: 100%;
|
|
|
background: #F5F5F5;
|