Commit a0906b45 authored by Bill's avatar Bill
parents 9d8a83bd d35603ab
...@@ -672,6 +672,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({ ...@@ -672,6 +672,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
purchasePrice: item.price, purchasePrice: item.price,
purchaseCount: item.quantity, purchaseCount: item.quantity,
purchaseAmount: +(item.price * item.quantity).toFixed(2), purchaseAmount: +(item.price * item.quantity).toFixed(2),
type: item.spec,
replaceCount: '', replaceCount: '',
replaceReason: '', replaceReason: '',
extraData: { extraData: {
......
...@@ -536,7 +536,7 @@ const RepairForm: React.FC<BillsFormProps> = ({ ...@@ -536,7 +536,7 @@ const RepairForm: React.FC<BillsFormProps> = ({
brand: item.brand, brand: item.brand,
unit: item.unit, unit: item.unit,
purchaseCount: item.quantity, purchaseCount: item.quantity,
type: item.type, type: item.spec,
repairReason: '', repairReason: '',
extraData: { extraData: {
id: item.id, id: item.id,
......
...@@ -697,7 +697,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({ ...@@ -697,7 +697,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
purchaseCount: item.quantity, purchaseCount: item.quantity,
purchaseAmount: +(item.price * item.quantity).toFixed(2), purchaseAmount: +(item.price * item.quantity).toFixed(2),
payAmount: item.paidAmount, payAmount: item.paidAmount,
type: item.type, type: item.spec,
returnCount: '', returnCount: '',
refundAmount: undefined, refundAmount: undefined,
extraData: { extraData: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment