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