diff --git a/src/views/modules/quote/detail/primary/quoteDetailCost.vue b/src/views/modules/quote/detail/primary/quoteDetailCost.vue index f7d3295..2bcbf52 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailCost.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailCost.vue @@ -6,12 +6,12 @@ import DictDataSelect from "../../../sys/dict-data-select.vue"; export default { name: "quoteDetailCost", components: {DictDataSelect}, - props: { - quoteDetail: { - type: Object, - required: true - }, - }, + // props: { + // quoteDetail: { + // type: Object, + // required: true + // }, + // }, model: { prop: "quoteDetail", event: "update", @@ -19,6 +19,50 @@ export default { data(){ return { computeLoading:false, + quoteDetail: { + 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: '', + }, rules:{ adjustPartCost: [ { required: true, message: "请输入材料成本", trigger: ["blur","change"] }