测试问题修改

This commit is contained in:
zzyuan 2025-07-10 09:50:12 +08:00
parent e8fdea8b78
commit 37d227dc0a
14 changed files with 27 additions and 27 deletions

View File

@ -187,11 +187,11 @@
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="个人钱包" prop="walletLimitBalance"> <el-form-item label="个人钱包" prop="walletLimitBalance">
<el-input v-model="form.walletLimitBalance" placeholder="请输入允许最低余额" maxlength="8" clearable style="width: 300px;" <el-input v-model="form.walletLimitBalance" placeholder="请输入允许最低余额" maxlength="8" clearable style="width: 300px;"
@input="(v)=>(form.walletLimitBalance=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> @input="(v)=>(form.walletLimitBalance=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</el-form-item> </el-form-item>
<el-form-item label="补贴钱包" prop="subLimitBalance"> <el-form-item label="补贴钱包" prop="subLimitBalance">
<el-input v-model="form.subLimitBalance" placeholder="请输入允许最低余额" maxlength="8" clearable style="width: 300px;" <el-input v-model="form.subLimitBalance" placeholder="请输入允许最低余额" maxlength="8" clearable style="width: 300px;"
@input="(v)=>(form.subLimitBalance=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> @input="(v)=>(form.subLimitBalance=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</el-form-item> </el-form-item>
<el-form-item label="有账户有效期" prop="accEndDate"> <el-form-item label="有账户有效期" prop="accEndDate">
<el-date-picker <el-date-picker
@ -278,7 +278,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="补贴金额" prop="amount"> <el-form-item label="补贴金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="form.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -349,7 +349,7 @@
<el-form ref="batchForm" :model="batchForm" :rules="batchRules" label-width="100px"> <el-form ref="batchForm" :model="batchForm" :rules="batchRules" label-width="100px">
<el-form-item label="补贴金额" prop="amount"> <el-form-item label="补贴金额" prop="amount">
<el-input v-model="batchForm.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="batchForm.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(batchForm.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -460,7 +460,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="充值金额" prop="amount"> <el-form-item label="充值金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入充值金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="form.amount" placeholder="请输入充值金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -529,7 +529,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="提现金额" prop="amount"> <el-form-item label="提现金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入提现金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="form.amount" placeholder="请输入提现金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>

View File

@ -171,7 +171,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="充值金额" prop="amount"> <el-form-item label="充值金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入充值金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="form.amount" placeholder="请输入充值金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -241,7 +241,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="提现金额" prop="amount"> <el-form-item label="提现金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入提现金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="form.amount" placeholder="请输入提现金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>

View File

@ -179,7 +179,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="补贴金额" prop="amount"> <el-form-item label="补贴金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="form.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -263,7 +263,7 @@
<el-form ref="batchForm" :model="batchForm" :rules="batchRules" label-width="100px"> <el-form ref="batchForm" :model="batchForm" :rules="batchRules" label-width="100px">
<el-form-item label="补贴金额" prop="amount"> <el-form-item label="补贴金额" prop="amount">
<el-input v-model="batchForm.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="batchForm.amount" placeholder="请输入补贴金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(batchForm.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -406,7 +406,7 @@
</el-form-item> </el-form-item>
<el-form-item label="操作金额" prop="amount"> <el-form-item label="操作金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入操作金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="form.amount" placeholder="请输入操作金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -482,7 +482,7 @@
</el-form-item> </el-form-item>
<el-form-item label="操作金额" prop="amount"> <el-form-item label="操作金额" prop="amount">
<el-input v-model="batchForm.amount" placeholder="请输入操作金额" maxlength="9" clearable style="width: 300px;" <el-input v-model="batchForm.amount" placeholder="请输入操作金额" maxlength="9" clearable style="width: 300px;"
@input="(v)=>(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"> @input="(v)=>(batchForm.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>

View File

@ -182,12 +182,12 @@
</el-table-column> </el-table-column>
<el-table-column label="当餐售价" align="center" prop="price"> <el-table-column label="当餐售价" align="center" prop="price">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.price" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.price=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.price" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.price=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当餐优惠价" align="center" prop="salePrice"> <el-table-column label="当餐优惠价" align="center" prop="salePrice">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.salePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.salePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.salePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.salePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="最大供应量" align="center" prop="supplyNum"> <el-table-column label="最大供应量" align="center" prop="supplyNum">

View File

@ -182,12 +182,12 @@
</el-table-column> </el-table-column>
<el-table-column label="当餐售价" align="center" prop="price"> <el-table-column label="当餐售价" align="center" prop="price">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.price" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.price=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.price" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.price=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当餐优惠价" align="center" prop="salePrice"> <el-table-column label="当餐优惠价" align="center" prop="salePrice">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.salePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.salePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.salePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.salePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="最大供应量" align="center" prop="supplyNum"> <el-table-column label="最大供应量" align="center" prop="supplyNum">

View File

@ -464,7 +464,7 @@
<span>{{ (rowData.refundAmount/100).toFixed(2) }}</span> <span>{{ (rowData.refundAmount/100).toFixed(2) }}</span>
</el-form-item> </el-form-item>
<el-form-item label="本次退款金额:" prop="refundMoney"> <el-form-item label="本次退款金额:" prop="refundMoney">
<el-input v-model="rowData.refundMoney" placeholder="请输入本次退款金额" maxlength="20" clearable @input="(v)=>(rowData.refundMoney=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))" style="width: 200px;"/> <el-input v-model="rowData.refundMoney" placeholder="请输入本次退款金额" maxlength="20" clearable @input="(v)=>(rowData.refundMoney=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))" style="width: 200px;"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -434,7 +434,7 @@
<span>{{ (rowData.refundAmount/100).toFixed(2) }}</span> <span>{{ (rowData.refundAmount/100).toFixed(2) }}</span>
</el-form-item> </el-form-item>
<el-form-item label="本次退款金额:" prop="refundMoney"> <el-form-item label="本次退款金额:" prop="refundMoney">
<el-input v-model="rowData.refundMoney" placeholder="请输入本次退款金额" maxlength="20" clearable @input="(v)=>(rowData.refundMoney=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))" style="width: 200px;"/> <el-input v-model="rowData.refundMoney" placeholder="请输入本次退款金额" maxlength="20" clearable @input="(v)=>(rowData.refundMoney=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))" style="width: 200px;"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -134,7 +134,7 @@
</el-table-column> </el-table-column>
<el-table-column label="单价(元)" align="center" prop="singlePrice" :show-overflow-tooltip="true"> <el-table-column label="单价(元)" align="center" prop="singlePrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.singlePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.singlePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.singlePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.singlePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数量" align="center" prop="orderNum" :show-overflow-tooltip="true"> <el-table-column label="数量" align="center" prop="orderNum" :show-overflow-tooltip="true">

View File

@ -90,7 +90,7 @@
</el-table-column> </el-table-column>
<el-table-column label="单价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true"> <el-table-column label="单价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="订货数量" align="center" prop="orderNum" :show-overflow-tooltip="true"> <el-table-column label="订货数量" align="center" prop="orderNum" :show-overflow-tooltip="true">

View File

@ -121,7 +121,7 @@
</el-table-column> </el-table-column>
<el-table-column label="单价(元)" align="center" prop="singlePrice" :show-overflow-tooltip="true"> <el-table-column label="单价(元)" align="center" prop="singlePrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.singlePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.singlePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.singlePrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.singlePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数量" align="center" prop="orderNum" :show-overflow-tooltip="true"> <el-table-column label="数量" align="center" prop="orderNum" :show-overflow-tooltip="true">

View File

@ -82,7 +82,7 @@
</el-table-column> </el-table-column>
<el-table-column label="参考价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true"> <el-table-column label="参考价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="采购数量" align="center" prop="purchaseNum" :show-overflow-tooltip="true"> <el-table-column label="采购数量" align="center" prop="purchaseNum" :show-overflow-tooltip="true">

View File

@ -100,7 +100,7 @@
</el-table-column> </el-table-column>
<el-table-column label="单价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true"> <el-table-column label="单价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> <el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="10" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="入库数量" align="center" prop="purNum" :show-overflow-tooltip="true"> <el-table-column label="入库数量" align="center" prop="purNum" :show-overflow-tooltip="true">

View File

@ -325,13 +325,13 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="去年度营业收入" prop="lastYearOperatingIncome"> <el-form-item label="去年度营业收入" prop="lastYearOperatingIncome">
<el-input v-model="form.lastYearOperatingIncome" placeholder="请输入去年度营业收入" maxlength="30" clearable <el-input v-model="form.lastYearOperatingIncome" placeholder="请输入去年度营业收入" maxlength="30" clearable
@input="(v)=>(form.lastYearOperatingIncome=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> @input="(v)=>(form.lastYearOperatingIncome=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="前年度营业收入" prop="beforeYearOperatingIncome"> <el-form-item label="前年度营业收入" prop="beforeYearOperatingIncome">
<el-input v-model="form.beforeYearOperatingIncome" placeholder="请输入前年度营业收入" maxlength="30" clearable <el-input v-model="form.beforeYearOperatingIncome" placeholder="请输入前年度营业收入" maxlength="30" clearable
@input="(v)=>(form.beforeYearOperatingIncome=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> @input="(v)=>(form.beforeYearOperatingIncome=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">

View File

@ -180,7 +180,7 @@
<el-form-item label="重量(Kg):" prop="weight"> <el-form-item label="重量(Kg):" prop="weight">
<el-input v-model="form.weight" <el-input v-model="form.weight"
placeholder="请输入重量" placeholder="请输入重量"
maxlength="4" @input="(v)=>(form.weight=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))" maxlength="4" @input="(v)=>(form.weight=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -196,7 +196,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="售卖金额(元):" prop="saleAmount" v-if="form.dealType==3"> <el-form-item label="售卖金额(元):" prop="saleAmount" v-if="form.dealType==3">
<el-input v-model="form.saleAmount" placeholder="请输入售卖金额" maxlength="6" <el-input v-model="form.saleAmount" placeholder="请输入售卖金额" maxlength="6"
@input="(v)=>(form.saleAmount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/> @input="(v)=>(form.saleAmount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">