|
@@ -49,19 +49,19 @@
|
|
|
:prop="`types[${index}].fee`"
|
|
|
:label-width="formLabelWidth"
|
|
|
:rules="[
|
|
|
- { required: true, message: '请输入折扣比例', trigger: 'blur' },
|
|
|
- { pattern: /^(\d{1,2}(\.[1-9]{1,8})?)$|^100$/, message: '请输入正确的折扣' }
|
|
|
+ { required: true, message: '请输入经营报表确认收入', trigger: 'blur' },
|
|
|
+ { pattern: /^(\d{1,}(\.[0-9]{1,2})?)$/, message: '请输入正确的经营报表确认收入' }
|
|
|
// { pattern: /^\d+(\.\d{1,8})?$/, message: '请输入正确的折扣' }
|
|
|
]">
|
|
|
<el-input v-model.trim="form.types[index].fee"
|
|
|
autocomplete="off"
|
|
|
type="number"
|
|
|
- placeholder="请输入折扣比例"
|
|
|
+ placeholder="请输入经营报表"
|
|
|
controls-position="right"
|
|
|
class="number-input"
|
|
|
:min="0"
|
|
|
:max="100">
|
|
|
- <template slot="append">%</template>
|
|
|
+ <template slot="append">元</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -137,7 +137,7 @@ export default {
|
|
|
label: this.typesList[i].label,
|
|
|
chargeTypeId: this.typesList[i].value,
|
|
|
goodsDiscountRate: '',
|
|
|
- fee: 100
|
|
|
+ fee: null
|
|
|
})
|
|
|
}
|
|
|
list = list.sort((a, b) => a.label - b.label)
|