|
|
@ -207,7 +207,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="市场价" align="center" width="165"> |
|
|
|
<el-table-column label="市场价" align="center" width="185"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="small"> |
|
|
|
<div class="small"> |
|
|
|
<el-input disabled v-model="scope.row.marketValue" placeholder="请输入"type="text"></el-input> |
|
|
|
<el-input disabled v-model="scope.row.marketValue" placeholder="请输入"type="text"></el-input> |
|
|
@ -215,7 +215,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="成交价" align="center" width="165"> |
|
|
|
<el-table-column label="成交价" align="center" width="185"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="small"> |
|
|
|
<div class="small"> |
|
|
|
<el-input :disabled="disabled||editDisabled" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" @change="[dealComputers($event,scope.row),discount($event,scope.row),userAmount($event,scope.row)]" v-model="scope.row.finalPrice" placeholder="请输入"type="text"></el-input> |
|
|
|
<el-input :disabled="disabled||editDisabled" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" @change="[dealComputers($event,scope.row),discount($event,scope.row),userAmount($event,scope.row)]" v-model="scope.row.finalPrice" placeholder="请输入"type="text"></el-input> |
|
|
@ -230,7 +230,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="账号数" align="center"> |
|
|
|
<el-table-column label="账号数" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="small"> |
|
|
|
<div class="small"> |
|
|
|
<el-input :disabled="disabled||editDisabled" @change="dealComputers($event,scope.row)" v-model="scope.row.accountNum" placeholder="请输入"type="text"></el-input> |
|
|
|
<el-input :disabled="disabled||editDisabled" @change="dealComputers($event,scope.row)" v-model="scope.row.accountNum" placeholder="请输入"type="text"></el-input> |
|
|
@ -238,7 +238,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<!-- 金额自动计算,计算方式:账号数*成交价,且可以手动修改,保留两位小数 --> |
|
|
|
<!-- 金额自动计算,计算方式:账号数*成交价,且可以手动修改,保留两位小数 --> |
|
|
|
<el-table-column label="总金额(元)" align="center"> |
|
|
|
<el-table-column label="总金额(元)" align="center" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="small"> |
|
|
|
<div class="small"> |
|
|
|
<el-input :disabled="disabled||editDisabled" @change="[allAmount($event,scope.row),allAmountChange($event,scope.row)]" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" v-model="scope.row.totalAmount" placeholder="请输入"type="text"></el-input> |
|
|
|
<el-input :disabled="disabled||editDisabled" @change="[allAmount($event,scope.row),allAmountChange($event,scope.row)]" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" v-model="scope.row.totalAmount" placeholder="请输入"type="text"></el-input> |
|
|
@ -250,7 +250,7 @@ |
|
|
|
<el-button :disabled="disabled" @click="configure(scope.row)">配置</el-button> |
|
|
|
<el-button :disabled="disabled" @click="configure(scope.row)">配置</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column label="操作" align="center" width="330px"> |
|
|
|
<el-table-column label="操作" align="center" width="230px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="flex-c-c"> |
|
|
|
<div class="flex-c-c"> |
|
|
|
<el-button v-if="!editDisabled&&!disabled" style="margin-right:10px;" @click="delDataForm(scope.$index)">删除</el-button> |
|
|
|
<el-button v-if="!editDisabled&&!disabled" style="margin-right:10px;" @click="delDataForm(scope.$index)">删除</el-button> |
|
|
@ -923,7 +923,7 @@ export default { |
|
|
|
if(val){ |
|
|
|
if(val){ |
|
|
|
let all = val*10000 |
|
|
|
let all = val*10000 |
|
|
|
if(row.accountNum){// 若有账号 |
|
|
|
if(row.accountNum){// 若有账号 |
|
|
|
row.marketValue = all/row.accountNum |
|
|
|
row.finalPrice = all/row.accountNum |
|
|
|
} |
|
|
|
} |
|
|
|
if(row.finalPrice){ |
|
|
|
if(row.finalPrice){ |
|
|
|
row.accountNum = all/row.finalPrice |
|
|
|
row.accountNum = all/row.finalPrice |
|
|
@ -978,7 +978,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
let date2 = Date.parse(nowYear); |
|
|
|
let date2 = Date.parse(nowYear); |
|
|
|
let ms = Math.abs(date1 - date2) |
|
|
|
let ms = Math.abs(date1 - date2) |
|
|
|
let days = Math.floor(ms / (24 * 3600 * 1000)); |
|
|
|
let days = Math.floor(ms / (24 * 3600 * 1000)) + 1; |
|
|
|
console.log(Date.parse(endYear),nowYear,date1,date2,days,'剩余期限'); |
|
|
|
console.log(Date.parse(endYear),nowYear,date1,date2,days,'剩余期限'); |
|
|
|
row.remainingPeriod = days |
|
|
|
row.remainingPeriod = days |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1207,7 +1207,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .small .el-input__inner{ |
|
|
|
/deep/ .small .el-input__inner{ |
|
|
|
width: 70px; |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
margin-right: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/ .discountRate .el-input__inner{ |
|
|
|
/deep/ .discountRate .el-input__inner{ |
|
|
|
width: 85px; |
|
|
|
width: 85px; |
|
|
|