|
@@ -266,11 +266,11 @@ export const PuechaseQuotationFormProductColumns: JVxeColumn[] = [
|
|
|
width:"200px",
|
|
|
defaultValue:'',
|
|
|
validateRules: [{ required: true, message: '' }],
|
|
|
- formatter({ cellValue, row, column }) {
|
|
|
- row.taxAmount = Number(row.quantity)*Number(row.taxPrice)
|
|
|
- row.taxAmount = isNaN( row.taxAmount)?'':Number(row.taxAmount).toFixed(4)
|
|
|
- return cellValue
|
|
|
- },
|
|
|
+ // formatter({ cellValue, row, column }) {
|
|
|
+ // row.taxAmount = Number(row.quantity)*Number(row.taxPrice)
|
|
|
+ // row.taxAmount = isNaN( row.taxAmount)?'':Number(row.taxAmount).toFixed(4)
|
|
|
+ // return cellValue
|
|
|
+ // },
|
|
|
},
|
|
|
{
|
|
|
title: '折扣(discount)',
|
|
@@ -279,7 +279,13 @@ export const PuechaseQuotationFormProductColumns: JVxeColumn[] = [
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
width:"200px",
|
|
|
- validateRules: [{ required: true, message: '' }],
|
|
|
+ validateRules: [
|
|
|
+ { required: true, message: '' },
|
|
|
+ {
|
|
|
+ pattern: /^(0|[1-9]\d?|100)(\.\d+)?$/, // 正则
|
|
|
+ message: '不得小于0或者大于100',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
title: '单价(price)',
|