|
@@ -4,6 +4,8 @@
|
|
|
<el-row>
|
|
|
<el-col style="padding-bottom: 10px">
|
|
|
<span class="card_title">增购登记</span>
|
|
|
+ <span v-if="!isView"> 买受人当前最新产权份额占比为(%):</span>
|
|
|
+ <span v-if="!isView">{{ form.buyerProportion }}</span>
|
|
|
<el-card shadow="always" style="padding-top: 10px">
|
|
|
<el-row>
|
|
|
<el-col :span="4" class="col-txt"><span>*增购编号</span></el-col>
|
|
@@ -13,7 +15,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
+ <el-row v-if="!isView&&!id">
|
|
|
<el-col :span="4" class="col-txt"><span>*原签约信息</span></el-col>
|
|
|
<el-col :span="20" class="col-input">
|
|
|
<el-form-item>
|
|
@@ -66,31 +68,19 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="4" class="col-txt"><span>买受人产权份额占比为(%)</span></el-col>
|
|
|
- <el-col :span="20" class="col-input">
|
|
|
- <el-form-item>
|
|
|
- <el-input v-model="form.buyerProportion" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <!-- <el-row>-->
|
|
|
+ <!-- <el-col :span="4" class="col-txt"><span>买受人产权份额占比为(%)</span></el-col>-->
|
|
|
+ <!-- <el-col :span="20" class="col-input">-->
|
|
|
+ <!-- <el-form-item>-->
|
|
|
+ <!-- <el-input v-model="form.buyerProportion" />-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!-- </el-row>-->
|
|
|
<el-row>
|
|
|
<el-col :span="4" class="col-txt"><span>转让份额</span></el-col>
|
|
|
<el-col :span="20" class="col-input">
|
|
|
- <el-form-item prop="invoiceTax">
|
|
|
- <el-select
|
|
|
- v-model="form.transferProportion"
|
|
|
- filterable
|
|
|
- placeholder="请选择"
|
|
|
- @change="proportionChange"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in dc_data.TRANSFER_PROPORTION"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-form-item>
|
|
|
+ <el-input v-model="form.transferProportion" @input="proportionChange" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -98,7 +88,7 @@
|
|
|
<el-col :span="4" class="col-txt"><span>转让后买受人产权份额占比为(%)</span></el-col>
|
|
|
<el-col :span="20" class="col-input">
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="form.transferBuyerProportion" readonly />
|
|
|
+ <el-input v-model="form.transferBuyerProportionAfter" readonly />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -106,7 +96,7 @@
|
|
|
<el-col :span="4" class="col-txt"><span>转让后安居公司产权份额占比为(%)</span></el-col>
|
|
|
<el-col :span="20" class="col-input">
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="form.transferCompanyProportion" readonly />
|
|
|
+ <el-input v-model="form.transferCompanyProportionAfter" readonly />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -114,7 +104,7 @@
|
|
|
<el-col :span="4" class="col-txt"><span>转让单价(元/每平方)</span></el-col>
|
|
|
<el-col :span="20" class="col-input">
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="form.transferPrice" oninput="value=value.replace(/[^\d.]/g,'')"/>
|
|
|
+ <el-input v-model="form.transferPrice" oninput="value=value.replace(/[^\d.]/g,'')" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -188,7 +178,6 @@
|
|
|
:append-to-body="true"
|
|
|
:modal-append-to-body="true"
|
|
|
custom-class="tagdialog"
|
|
|
- @close="getData"
|
|
|
>
|
|
|
<contract-index v-if="dialogVisible" ref="contractIndex" from-address="addInvoice" @getChildrenData="getChildrenData" />
|
|
|
</el-dialog>
|
|
@@ -203,7 +192,7 @@ import { upload } from '@/static/utils/channel'
|
|
|
import ContractIndex from '@/views/signingManagement/contractManagement/index.vue'
|
|
|
|
|
|
export default {
|
|
|
- name: 'BuyingMoreAdd',
|
|
|
+ name: 'BuyingBackAdd',
|
|
|
components: { ContractIndex },
|
|
|
mixins: [Base, BaseData],
|
|
|
data() {
|
|
@@ -217,7 +206,8 @@ export default {
|
|
|
bankOptions: [],
|
|
|
loadingFlag: false,
|
|
|
fileList: [],
|
|
|
- username: ''
|
|
|
+ username: '',
|
|
|
+ id: ''
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -229,12 +219,13 @@ export default {
|
|
|
methods: {
|
|
|
initData(data) {
|
|
|
this.isView = data.isView
|
|
|
- this.getBankOptions()
|
|
|
- if (data) {
|
|
|
+ this.id = data.id
|
|
|
+ if (data.id) {
|
|
|
this.getData(data)
|
|
|
}
|
|
|
},
|
|
|
getData(data) {
|
|
|
+ console.log(data)
|
|
|
const postData = {
|
|
|
id: data.id
|
|
|
}
|
|
@@ -255,7 +246,7 @@ export default {
|
|
|
_this.loadingFlag = true
|
|
|
const soaUrl = 'add'
|
|
|
const extraData = {
|
|
|
- type: '1'
|
|
|
+ type: '2'
|
|
|
}
|
|
|
const postData = Object.assign({}, _this.form, extraData)
|
|
|
this.baseRequest(soaUrl, postData).then(res => {
|
|
@@ -276,8 +267,8 @@ export default {
|
|
|
this.dialogTitle = ''
|
|
|
},
|
|
|
getChildrenData(data) {
|
|
|
- console.log('data', data)
|
|
|
this.dialogVisible = false
|
|
|
+ if (!data) return
|
|
|
const postData = {
|
|
|
contractId: data
|
|
|
}
|
|
@@ -293,9 +284,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
proportionChange() {
|
|
|
+ // 最新买受人份额占比
|
|
|
const buyerProportion = Number(this.form.buyerProportion)
|
|
|
- this.form.transferBuyerProportion = buyerProportion + Number(this.form.transferProportion)
|
|
|
- this.form.transferCompanyProportion = buyerProportion - Number(this.form.transferProportion)
|
|
|
+ this.form.transferBuyerProportionAfter = buyerProportion - this.form.transferProportion
|
|
|
+ this.form.transferCompanyProportionAfter = 100 - Number(this.form.transferBuyerProportionAfter)
|
|
|
},
|
|
|
baseRequest(opUrl, postData) {
|
|
|
return this.$channel.globeRequest('BuyingMoreController', opUrl, postData, 'project')
|