Commit 6e155ba3 by 周子尧

单位and小数后两位

1 parent 6eb494ea
......@@ -210,7 +210,7 @@ export default {
// index:0
},
{
label: '预估成本',
label: '预估成本/元',
name: 'anticipatedCost',
width: '320px',
type: 'input',
......
......@@ -147,7 +147,7 @@ export default {
maxlength: 20
},
{
label: '预估成本',
label: '预估成本/元',
name: 'anticipatedCost',
width: '320px',
type: 'input',
......
......@@ -126,7 +126,7 @@ export default {
maxlength: 20
},
{
label: '预估成本',
label: '预估成本/元',
name: 'anticipatedCost',
width: '320px',
type: 'input',
......
......@@ -300,7 +300,7 @@ export default {
params.couponId = this.$route.query.couponId
detailService(params).then(res => {
this.ruleForm = res
this.ruleForm.anticipatedCost = res.anticipatedCost / 100
this.ruleForm.anticipatedCost = (res.anticipatedCost / 100).toFixed(2)
this.ruleForm.customUseLimit = res.useType
if (res.effectiveType == 1) {
......@@ -325,7 +325,7 @@ export default {
submitForm(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
if (this.title == '编辑') {
if (this.isEdit == true) {
this.updateService()
} else {
this.createService()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!