Commit 99496338 by 无尘

fix: 修改保存导购

parent 9c42c485
.task-set-content[data-v-45c0b00a]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-45c0b00a]{width:105px}.task-set-content .w-120[data-v-45c0b00a]{width:120px}.task-set-content .w-161[data-v-45c0b00a]{width:161px}.task-set-content .m-b-15[data-v-45c0b00a]{margin-bottom:15px}.task-set-content .p-l-8[data-v-45c0b00a]{padding-left:8px}.task-set-content .p-l-18[data-v-45c0b00a]{padding-left:18px}.task-set-content .p-l-24[data-v-45c0b00a]{padding-left:24px}.task-set-content .p-l-175[data-v-45c0b00a]{padding-left:175px}.task-set-content .color-1890ff[data-v-45c0b00a]{color:#2f54eb}.task-set-content .color-f5222d[data-v-45c0b00a]{color:#f5222d}.task-set-content .colorFirst[data-v-45c0b00a]{color:#303133;font-weight:600}
\ No newline at end of file
.task-set-content[data-v-6cf84b3e]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-6cf84b3e]{width:105px}.task-set-content .w-120[data-v-6cf84b3e]{width:120px}.task-set-content .w-161[data-v-6cf84b3e]{width:161px}.task-set-content .m-b-15[data-v-6cf84b3e]{margin-bottom:15px}.task-set-content .p-l-8[data-v-6cf84b3e]{padding-left:8px}.task-set-content .p-l-18[data-v-6cf84b3e]{padding-left:18px}.task-set-content .p-l-24[data-v-6cf84b3e]{padding-left:24px}.task-set-content .p-l-175[data-v-6cf84b3e]{padding-left:175px}.task-set-content .color-1890ff[data-v-6cf84b3e]{color:#2f54eb}.task-set-content .color-f5222d[data-v-6cf84b3e]{color:#f5222d}.task-set-content .colorFirst[data-v-6cf84b3e]{color:#303133;font-weight:600}
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-11-27 09:18:00
* @LastEditTime: 2020-11-27 09:25:05
-->
<template>
<div class="common-app-right">
......@@ -30,7 +30,7 @@
<el-table-column label="月指标">
<template slot-scope="scope">
<div>
<el-input class="w-120 p-l-8" maxlength="11" v-model="scope.row.performanceValue" placeholder="请输入" :disabled="disableSetting" @blur="value => inputPerformance(value, scope.$index, scope.row)">
<el-input class="w-120 p-l-8" maxlength="11" v-model="scope.row.performanceValue" placeholder="请输入" :disabled="disableSetting" @blur="value => inputPerformance(value, scope.$index, scope.row)" @input="inputValue">
<i slot="prefix" style="font-style: normal;position: absolute;top: 4px;left: 12px;"></i>
</el-input>
</div>
......@@ -146,7 +146,14 @@ export default {
that.$forceUpdate();
console.log(that.performanceSum);
},
inputValue() {
const that = this;
let sumData = 0;
that.tableData.forEach(ele => {
sumData += Number(ele.performanceValue);
});
that.performanceSum = Number(sumData).toFixed(2);
},
diffData() {
const that = this;
let dataFlag = Number(that.performanceSum) > Number(that.clerkObj.storePerformance) || Number(that.performanceSum) == Number(that.clerkObj.storePerformance);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment