Browse Source

维修结算标准修改

pengyh 1 year ago
parent
commit
a000aceac9

+ 2 - 2
src/views/workOrder/basicConfiguration/settlementStandard/components/repair.vue

@@ -213,9 +213,9 @@ export default {
 				defaultData.render = (h, { row, index, column }) => {
 					return this.editIndex == index ? (
 						<div class="redbordererr">
-							<el-form-item prop={`tableData.${index}.normAmount`} rules={[{ required: true, message: '维修费结算比例不能为空', trigger: 'blur' }]}>
+							<el-form-item prop={`tableData.${index}.normAmount`} rules={[{ required: true, message: '维修费结算比例不能为空', trigger: 'blur' },{ pattern:/^[1-9]\d*$/, message: '请输入大于0的正整数', trigger: 'blur' }]}>
 								<div style="display:flex;">
-									<el-input type="text" value={row.normAmount} placeholder="请输入"
+									<el-input type="text" value={row.normAmount} placeholder="请输入大于0的正整数"
 										onInput={(val) => {
 											row.normAmount = val
 										}}>