|
@@ -37,7 +37,7 @@
|
|
|
<a-col :span="4" v-if="!isSpecial">
|
|
|
<a-input-number :min="0" :max="100" v-model="parentAllotRate" @change="rateSupChange" placeholder="请输入比例"/> %
|
|
|
</a-col>
|
|
|
- <a-col :span="2" v-if="zdDealearList.length==0&&!isSpecial">
|
|
|
+ <a-col :span="2" v-if="!isSpecial && zdDealearList.length<3">
|
|
|
<a-button
|
|
|
type="primary"
|
|
|
ghost
|
|
@@ -55,14 +55,14 @@
|
|
|
<a-input-number :min="0" :max="100" v-model="item.allotRate" @change="(v)=>rateChange(v,index)" placeholder="请输入比例"/> %
|
|
|
</a-col>
|
|
|
<a-col :span="2">
|
|
|
- <a-button
|
|
|
+ <!-- <a-button
|
|
|
style="margin-right:5px;"
|
|
|
v-if="index==zdDealearList.length-1 && zdDealearList.length<3"
|
|
|
@click="addItem(item,index)"
|
|
|
title="添加"
|
|
|
size="small"
|
|
|
shape="circle"
|
|
|
- icon="plus" />
|
|
|
+ icon="plus" /> -->
|
|
|
<a-button
|
|
|
@click="delItem(item,index)"
|
|
|
type="primary"
|
|
@@ -90,11 +90,10 @@
|
|
|
<categoryTree v-if="showTable&&!isSpecial&&!form.dealerUpsSn" ref="categoryTree"></categoryTree>
|
|
|
</div>
|
|
|
<div class="btn-cont">
|
|
|
- <a-button size="large" @click="isShow = false" style="font-size: 12px;">取消</a-button>
|
|
|
+ <a-button @click="isShow = false" style="font-size: 12px;">取消</a-button>
|
|
|
<a-button
|
|
|
- size="large"
|
|
|
type="primary"
|
|
|
- style="margin-left: 30px;"
|
|
|
+ style="margin-left: 20px;"
|
|
|
@click="handleSave"
|
|
|
>确定</a-button>
|
|
|
</div>
|
|
@@ -334,6 +333,7 @@ export default {
|
|
|
this.zdDealearList = []
|
|
|
this.hAllotRate = ''
|
|
|
this.parentAllotRate = 100
|
|
|
+ this.showTable = false
|
|
|
},
|
|
|
// 校验数据
|
|
|
validateFormData (data) {
|
|
@@ -379,8 +379,8 @@ export default {
|
|
|
delete item.id
|
|
|
})
|
|
|
console.log(formData)
|
|
|
- console.log(pa)
|
|
|
- if (pa != 1) {
|
|
|
+ console.log(Number(pa).toFixed(2))
|
|
|
+ if (Number(pa).toFixed(2) != 1) {
|
|
|
_this.$message.error('差价比例之和必须是100%')
|
|
|
return
|
|
|
}
|
|
@@ -442,9 +442,6 @@ export default {
|
|
|
.btn-cont {
|
|
|
text-align: center;
|
|
|
margin: 15px 0 10px;
|
|
|
- button{
|
|
|
- width: 80px;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
</style>
|