|
|
|
@ -181,13 +181,13 @@ |
|
|
|
|
<el-table :data="dataPlatform" class="orderTable" stripe header-align="center" :summary-method="getSummaries"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="productName" label="产品名称" align="center"> |
|
|
|
|
<el-table-column prop="productName" label="产品名称" align="center" width="200"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="使用期限" align="center" width="200"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="course-input"> |
|
|
|
|
<el-input onkeyup="value=this.value.replace(/\D+/g,'')" :class="!scope.row.periodOfUse&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" maxlength="4" @change="deadLine($event,scope.row),zero($event,scope.row)" oninput="value=value.replace(/[^0-9.]/g,'')" v-model="scope.row.periodOfUse" placeholder="输入时间"></el-input> |
|
|
|
|
<span>月</span> |
|
|
|
|
<span >月</span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
@ -199,38 +199,39 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="剩余期限" align="center" width="160px"> |
|
|
|
|
<el-table-column label="剩余期限" align="center" width="200"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="small"> |
|
|
|
|
<el-input disabled v-model="scope.row.remainingPeriod" placeholder="请输入"type="text"></el-input> |
|
|
|
|
<span>天</span> |
|
|
|
|
<span style="margin-left:5px">天</span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="市场价" align="center" width="185"> |
|
|
|
|
<el-table-column label="市场价" align="center" width="200"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="small"> |
|
|
|
|
<el-input disabled v-model="scope.row.marketValue" placeholder="请输入"type="text"></el-input> |
|
|
|
|
<span>元 / 账号</span> |
|
|
|
|
<span style="margin-left:5px">元 / 账号</span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="成交价" align="center" width="185"> |
|
|
|
|
<el-table-column label="成交价" align="center" width="200"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="small"> |
|
|
|
|
<el-input :class="!scope.row.finalPrice&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" @change="[dealComputers($event,scope.row),calculateDiscount($event,scope.row),userAmount($event,scope.row)]" v-model="scope.row.finalPrice" placeholder="请输入"type="text"></el-input> |
|
|
|
|
<span>元 / 账号</span> |
|
|
|
|
<span style="margin-left:5px">元 / 账号</span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="折扣率" align="center" width="140"> |
|
|
|
|
<el-table-column label="折扣率" align="center" width="200"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="discountRate"> |
|
|
|
|
<!-- <div class="discountRate"> --> |
|
|
|
|
<div class="small"> |
|
|
|
|
<el-input disabled v-model="scope.row.discountRate" placeholder=""type="text"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="账号数" align="center" width="150"> |
|
|
|
|
<el-table-column label="账号数" align="center" width="200"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="small"> |
|
|
|
|
<el-input :class="!scope.row.accountNum&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" @change="[dealComputers($event,scope.row),dealBargain($event,scope.row),calculateDiscount($event,scope.row)]" v-model="scope.row.accountNum" placeholder="请输入"type="text"></el-input> |
|
|
|
@ -238,7 +239,7 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- 金额自动计算,计算方式:账号数*成交价,且可以手动修改,保留两位小数 --> |
|
|
|
|
<el-table-column label="总金额(元)" align="center" width="180"> |
|
|
|
|
<el-table-column label="总金额(元)" align="center" width="200"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="small"> |
|
|
|
|
<el-input :class="!scope.row.totalAmount&&whetherSubmit?'red':''" :disabled="disabled||editDisabled" @blur="[allAmount($event,scope.row),allAmountChange($event,scope.row),calculateDiscount($event,scope.row)]" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" v-model="scope.row.totalAmount" placeholder="请输入"type="text"></el-input> |
|
|
|
@ -394,7 +395,7 @@ |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<!-- 添加数据平台权限弹框 --> |
|
|
|
|
<el-dialog :visible.sync="showPlatform" width="50%" center> |
|
|
|
|
<el-dialog :visible.sync="showPlatform" width="50%" center > |
|
|
|
|
<div class="flex-between mgb20"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
@ -404,7 +405,7 @@ |
|
|
|
|
<el-input placeholder="请输入产品名称" prefix-icon="el-icon-search" v-model="productName" @keyup.enter.native="addDataJurisdiction('search')" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="boxDataPlatform" stripe header-align="center" @selection-change="boxDataPlatformSelection" :row-key="getRowKeys"> |
|
|
|
|
<el-table v-loading="dataLoading" :data="boxDataPlatform" stripe header-align="center" @selection-change="boxDataPlatformSelection" :row-key="getRowKeys"> |
|
|
|
|
<el-table-column type="selection" :selectable="selectable" width="55" align="center"></el-table-column> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="productName" label="产品名称" align="center"></el-table-column> |
|
|
|
@ -497,6 +498,7 @@ export default { |
|
|
|
|
disabled:false,// 查看禁用。 |
|
|
|
|
editDisabled:false,// 编辑禁用 |
|
|
|
|
renewDisabled:false,// 续费禁用 |
|
|
|
|
dataLoading:false,// 产品弹框加载 |
|
|
|
|
|
|
|
|
|
whetherSubmit:false,/* 提交否 */ |
|
|
|
|
|
|
|
|
@ -515,7 +517,7 @@ export default { |
|
|
|
|
customerName:'',// 客户名称 |
|
|
|
|
}, |
|
|
|
|
jurisdictionData: [],// 课程权限 |
|
|
|
|
dataPlatform:[],// 数据平台data |
|
|
|
|
dataPlatform:[{}],// 数据平台data |
|
|
|
|
|
|
|
|
|
contract:{ // 合同信息 |
|
|
|
|
contractName:'', // 合同名称 |
|
|
|
@ -861,10 +863,14 @@ export default { |
|
|
|
|
status:1, |
|
|
|
|
productName:this.productName |
|
|
|
|
} |
|
|
|
|
this.dataLoading = true |
|
|
|
|
this.$post(this.api.listByEntity,param).then(res=>{ |
|
|
|
|
this.boxDataPlatform = res.pageList.records |
|
|
|
|
this.platfromTotals = res.pageList.total |
|
|
|
|
this.dataLoading = false |
|
|
|
|
}).catch(err=>{ |
|
|
|
|
this.dataLoading = false |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|