diff --git a/src/views/modules/quote/detail/primary/quoteDetailCost.vue b/src/views/modules/quote/detail/primary/quoteDetailCost.vue index 575f0a7..28b7b17 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailCost.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailCost.vue @@ -19,51 +19,7 @@ export default { data(){ return { computeLoading:false, - quoteDetail: { - id: null, - otherCost: null, - elseCost: null, - machineCost: null, - profitAmount: null, - totalPrice: null, - adjustToolCost: null, - adjustLabourCost: null, - currencyTotalCost1: null, - adjustBomUnYield: null, - currencyTotalCost2: null, - toolCost: null, - quoteCurrencyTotalCost1: null, - adjustElseCost: null, - quoteCurrencyTotalCost2: null, - unitPrice: null, - quoteProfitRate: null, - testCost: null, - shippingCost: null, - taxTotalPrice: null, - quoteProfitAmount: null, - adjustFabricateCost: null, - adjustTestCost: null, - profitRate: null, - partCost: null, - calculatedItems: null, - adjustMachineCost: null, - taxUnitPrice: null, - manageCost: null, - taxRate: null, - quoteTaxTotalPrice: null, - labourCost: null, - fabricateCost: null, - currency1: null, - bomUnYield: null, - currency2: null, - exchangeRate1: null, - exchangeRate2: null, - packCost: null, - quoteTaxRate: null, - totalCost: null, - adjustPartCost: null, - status: '', - }, + // 注意:quoteDetail 从 props 获取,不要在 data 中重复定义,否则会覆盖 props 中的数据 rules:{ adjustPartCost: [ { required: true, message: "请输入材料成本", trigger: ["blur","change"] }