Commit 0dfa082a by xinla

--no commit message

1 parent 415651ce
...@@ -111,10 +111,10 @@ ...@@ -111,10 +111,10 @@
</el-form-item> </el-form-item>
<el-form-item label="单日员工发红包总数(元)" prop="singleCustomerReceiveMoney"> <el-form-item label="单日员工发红包总数(元)" prop="singleCustomerReceiveMoney">
<el-input-number <el-input-number
v-model="limitForm.singleCustomerReceiveMoney" v-model="addMemberForm.singleCustomerReceiveMoney"
placeholder="请输入" placeholder="请输入"
:precision="2" :precision="2"
:step="0." :step="0.1"
:min="0.3" :min="0.3"
:max="5000" :max="5000"
></el-input-number> ></el-input-number>
...@@ -217,10 +217,15 @@ export default { ...@@ -217,10 +217,15 @@ export default {
this.loading = true this.loading = true
getList(this.query) getList(this.query)
.then((res) => { .then((res) => {
if (res.code == 200) { rows.forEach((e) => {
// 单位换算 分转元
e.singleCustomerReceiveMoney = (e.singleCustomerReceiveMoney / 100).toFixed(2)
e.todayIssuedAmount = (e.todayIssuedAmount / 100).toFixed(2)
e.todayNoIssuedAmount = (e.todayNoIssuedAmount / 100).toFixed(2)
e.totalIssuedAmount = (e.totalIssuedAmount / 100).toFixed(2)
})
this.list = res.rows this.list = res.rows
this.total = +res.total this.total = +res.total
}
}) })
.finally(() => (this.loading = false)) .finally(() => (this.loading = false))
}, },
...@@ -231,7 +236,6 @@ export default { ...@@ -231,7 +236,6 @@ export default {
}, },
edit(row = defaultForm) { edit(row = defaultForm) {
this.addMemberForm = Object.assign({}, row) this.addMemberForm = Object.assign({}, row)
this.addMemberForm.singleCustomerReceiveMoney /= 100
this.addVisible = true this.addVisible = true
this.$nextTick(() => this.$refs.addMemberForm.clearValidate()) this.$nextTick(() => this.$refs.addMemberForm.clearValidate())
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!