|
|
@ -1473,7 +1473,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
|
}, |
|
|
|
|
|
|
|
])) |
|
|
|
const singlePriceFormart = (row, column, cellValue) => { |
|
|
|
const priceFormart = (row, column, cellValue) => { |
|
|
|
cellValue= Number(cellValue).toFixed(2) |
|
|
|
cellValue = cellValue + '' || '' |
|
|
|
|
|
|
@ -1487,6 +1487,20 @@ const singlePriceFormart = (row, column, cellValue) => { |
|
|
|
return x1+x2 |
|
|
|
} |
|
|
|
|
|
|
|
const singlePriceFormart = (row, column, cellValue) => { |
|
|
|
cellValue= Number(cellValue).toFixed(4) |
|
|
|
cellValue = cellValue + '' || '' |
|
|
|
|
|
|
|
let x = cellValue.split('.') |
|
|
|
let x1 = x[0] |
|
|
|
let x2 = x.length > 1 ? '.' + x[1] : '' |
|
|
|
const reg = /(\d+)(\d{3})/ |
|
|
|
while(reg.test(x1)){ |
|
|
|
x1 = x1.replace(reg, '$1,$2') |
|
|
|
} |
|
|
|
return x1+x2 |
|
|
|
} |
|
|
|
|
|
|
|
function validateTaxRate(rule, value, callback) { |
|
|
|
if (value>0) { |
|
|
|
callback() |
|
|
@ -1695,13 +1709,13 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
precision: 4, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
precision: 4, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1716,20 +1730,20 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
precision: 4, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
type: 'InputNumber', |
|
|
|
disabled: true, |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
precision: 4, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价差额', |
|
|
|
field: 'differencePrice', |
|
|
|
formatter: singlePriceFormart, |
|
|
|
formatter: priceFormart, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|