Commit 6e155ba3 by 周子尧

单位and小数后两位

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