|
@@ -55,6 +55,27 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="3" class="col-txt"><span>到账银行账号</span></el-col>
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
+ <el-form-item>
|
|
|
+ <el-select
|
|
|
+ v-model="bankObject"
|
|
|
+ placeholder=""
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ @change="bankChange"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bankOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.bankName + (item.bankBranchName?item.bankBranchName:'') + item.bankNumber"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="3" class="col-txt"><span>备注</span></el-col>
|
|
|
<el-col :span="21" class="col-input">
|
|
@@ -124,7 +145,9 @@ export default {
|
|
|
addLoading: false,
|
|
|
serialNumber: '',
|
|
|
fileList: [],
|
|
|
- isView: false
|
|
|
+ isView: false,
|
|
|
+ bankOptions: [],
|
|
|
+ bankObject: ''
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -134,10 +157,12 @@ export default {
|
|
|
initData(data) {
|
|
|
this.form = data
|
|
|
this.isView = data.isView
|
|
|
+ this.getBankOptions()
|
|
|
this.initDict(this.dc_key).then(res => {
|
|
|
if (data.statusStr === '未收取') {
|
|
|
this.getSerialNumber(data)
|
|
|
this.form.receivableMoney = data.receivableMoney
|
|
|
+ // this.getBankByFloor()
|
|
|
} else {
|
|
|
this.getById(data.id)
|
|
|
}
|
|
@@ -156,6 +181,7 @@ export default {
|
|
|
if (this.form.fileList) {
|
|
|
this.fileList = JSON.parse(this.form.fileList)
|
|
|
}
|
|
|
+ this.bankObject = res.data.bankName + res.data.bankBranchName + res.data.bankNumber
|
|
|
})
|
|
|
},
|
|
|
getSerialNumber(val) {
|
|
@@ -214,11 +240,38 @@ export default {
|
|
|
this.fileList.push(res)
|
|
|
})
|
|
|
},
|
|
|
+ getBankOptions() {
|
|
|
+ this.bankRequest('listAll', {}).then(res => {
|
|
|
+ this.bankOptions = res.data || []
|
|
|
+ })
|
|
|
+ },
|
|
|
+ bankChange(data) {
|
|
|
+ const val = this.bankOptions.find((e) => { return data == e.id })
|
|
|
+ this.form.bankName = val.bankName
|
|
|
+ this.form.bankBranchName = val.bankBranchName
|
|
|
+ this.form.bankNumber = val.bankNumber
|
|
|
+ },
|
|
|
+ getBankByFloor() {
|
|
|
+ this.fundRequest('getBankByFloor', { contractId: this.contractId }).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ this.bankObject = res.data.bankFullName
|
|
|
+ this.form.bankName = res.data.bankName
|
|
|
+ this.form.bankBranchName = res.data.bankBranchName
|
|
|
+ this.form.bankNumber = res.data.bankNumber
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
baseRequest(opUrl, postData) {
|
|
|
return this.$channel.globeRequest('RoomSelectionInfoController', opUrl, postData, 'project')
|
|
|
},
|
|
|
baseInfoRequest: function(opUrl, postData) {
|
|
|
return this.$channel.baseRequest('ParkInfoController', opUrl, postData, 'User')
|
|
|
+ },
|
|
|
+ bankRequest(opUrl, postData) {
|
|
|
+ return this.$channel.globeRequest('InvoiceBankController', opUrl, postData, 'project')
|
|
|
+ },
|
|
|
+ fundRequest(opUrl, postData) {
|
|
|
+ return this.$channel.globeRequest('MaintenanceFundsManagementController', opUrl, postData, 'project')
|
|
|
}
|
|
|
|
|
|
}
|