|
|
@ -55,6 +55,7 @@ export default { |
|
|
this.quoteDetail.totalCost = |
|
|
this.quoteDetail.totalCost = |
|
|
this.quoteDetail.adjustPartCost + |
|
|
this.quoteDetail.adjustPartCost + |
|
|
this.quoteDetail.adjustBomUnYield + |
|
|
this.quoteDetail.adjustBomUnYield + |
|
|
|
|
|
this.quoteDetail.adjustQuoteCost + |
|
|
this.quoteDetail.adjustMachineCost + |
|
|
this.quoteDetail.adjustMachineCost + |
|
|
this.quoteDetail.adjustFabricateCost + |
|
|
this.quoteDetail.adjustFabricateCost + |
|
|
this.quoteDetail.adjustLabourCost + |
|
|
this.quoteDetail.adjustLabourCost + |
|
|
@ -89,6 +90,8 @@ export default { |
|
|
this.quoteDetail.adjustPartCost = data.row.unitQuotePrice; |
|
|
this.quoteDetail.adjustPartCost = data.row.unitQuotePrice; |
|
|
this.quoteDetail.bomUnYield = data.row.actualQuotePrice; |
|
|
this.quoteDetail.bomUnYield = data.row.actualQuotePrice; |
|
|
this.quoteDetail.adjustBomUnYield = data.row.actualQuotePrice; |
|
|
this.quoteDetail.adjustBomUnYield = data.row.actualQuotePrice; |
|
|
|
|
|
this.quoteDetail.quoteCost = data.row.quoteCost; |
|
|
|
|
|
this.quoteDetail.adjustQuoteCost = data.row.quoteCost; |
|
|
this.quoteDetail.labourCost = data.row.labourCost; |
|
|
this.quoteDetail.labourCost = data.row.labourCost; |
|
|
this.quoteDetail.adjustLabourCost = data.row.labourCost; |
|
|
this.quoteDetail.adjustLabourCost = data.row.labourCost; |
|
|
this.quoteDetail.machineCost = data.row.machineCost; |
|
|
this.quoteDetail.machineCost = data.row.machineCost; |
|
|
@ -123,6 +126,12 @@ export default { |
|
|
} |
|
|
} |
|
|
this.computeTotalCost(); |
|
|
this.computeTotalCost(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
'quoteDetail.adjustQuoteCost'(newValue, oldValue){ |
|
|
|
|
|
if (newValue === undefined || newValue === null){ |
|
|
|
|
|
this.quoteDetail.adjustQuoteCost = 0; |
|
|
|
|
|
} |
|
|
|
|
|
this.computeTotalCost(); |
|
|
|
|
|
}, |
|
|
'quoteDetail.adjustMachineCost'(newValue, oldValue){ |
|
|
'quoteDetail.adjustMachineCost'(newValue, oldValue){ |
|
|
if (newValue === undefined || newValue === null){ |
|
|
if (newValue === undefined || newValue === null){ |
|
|
this.quoteDetail.adjustMachineCost = 0; |
|
|
this.quoteDetail.adjustMachineCost = 0; |
|
|
@ -184,7 +193,7 @@ export default { |
|
|
<fieldset |
|
|
<fieldset |
|
|
style="height:80px;margin-top: 2px;border-color: rgb(255,255,255);"> |
|
|
style="height:80px;margin-top: 2px;border-color: rgb(255,255,255);"> |
|
|
<legend>系统自动计算结果(料工费/工具)</legend> |
|
|
<legend>系统自动计算结果(料工费/工具)</legend> |
|
|
<el-row :gutter=" 10"> |
|
|
|
|
|
|
|
|
<el-row :gutter="10" type="flex"> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="材料标准成本:" prop="partCost" :show-message="false"> |
|
|
<el-form-item label="材料标准成本:" prop="partCost" :show-message="false"> |
|
|
<el-input-number style="width: 100%; " :controls="false" |
|
|
<el-input-number style="width: 100%; " :controls="false" |
|
|
@ -197,6 +206,12 @@ export default { |
|
|
v-model="quoteDetail.bomUnYield" :precision="4" disabled/> |
|
|
v-model="quoteDetail.bomUnYield" :precision="4" disabled/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item label="材料报价成本:" prop="bomUnYield" :show-message="false"> |
|
|
|
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
|
|
|
v-model="quoteDetail.quoteCost" :precision="4" disabled/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="机器成本:" prop="machineCost" :show-message="false"> |
|
|
<el-form-item label="机器成本:" prop="machineCost" :show-message="false"> |
|
|
<el-input-number style="width: 100%; " :controls="false" |
|
|
<el-input-number style="width: 100%; " :controls="false" |
|
|
@ -226,7 +241,7 @@ export default { |
|
|
<fieldset |
|
|
<fieldset |
|
|
style="height:80px;margin-top: 5px;border-color: rgb(255,255,255);"> |
|
|
style="height:80px;margin-top: 5px;border-color: rgb(255,255,255);"> |
|
|
<legend>调整后成本(料工费/工具)</legend> |
|
|
<legend>调整后成本(料工费/工具)</legend> |
|
|
<el-row :gutter=" 10"> |
|
|
|
|
|
|
|
|
<el-row :gutter="10" type="flex"> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="材料标准成本:" prop="adjustPartCost" :show-message="false"> |
|
|
<el-form-item label="材料标准成本:" prop="adjustPartCost" :show-message="false"> |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
@ -239,6 +254,12 @@ export default { |
|
|
v-model="quoteDetail.adjustBomUnYield" :disabled="quoteDetail.status === '下达'" :step="0" :precision="4" :min="0"/> |
|
|
v-model="quoteDetail.adjustBomUnYield" :disabled="quoteDetail.status === '下达'" :step="0" :precision="4" :min="0"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item label="材料报价成本:" prop="adjustBomUnYield" :show-message="false"> |
|
|
|
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
|
|
|
v-model="quoteDetail.adjustQuoteCost" :disabled="quoteDetail.status === '下达'" :step="0" :precision="4" :min="0"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="机器成本:" prop="adjustMachineCost" :show-message="false"> |
|
|
<el-form-item label="机器成本:" prop="adjustMachineCost" :show-message="false"> |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
@ -268,7 +289,7 @@ export default { |
|
|
<fieldset |
|
|
<fieldset |
|
|
style="height:80px;margin-top: 5px;border-color: rgb(255,255,255)"> |
|
|
style="height:80px;margin-top: 5px;border-color: rgb(255,255,255)"> |
|
|
<legend>其他成本</legend> |
|
|
<legend>其他成本</legend> |
|
|
<el-row :gutter=" 10"> |
|
|
|
|
|
|
|
|
<el-row :gutter="10" type="flex"> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="管理成本:" prop="manageCost" :show-message="false"> |
|
|
<el-form-item label="管理成本:" prop="manageCost" :show-message="false"> |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
@ -299,11 +320,15 @@ export default { |
|
|
v-model="quoteDetail.totalCost" :step="0" :precision="4" :min="0" disabled/> |
|
|
v-model="quoteDetail.totalCost" :step="0" :precision="4" :min="0" disabled/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
<fieldset style="height:80px;margin-top: 5px;border-color: rgb(255,255,255);"> |
|
|
<fieldset style="height:80px;margin-top: 5px;border-color: rgb(255,255,255);"> |
|
|
<legend>利润</legend> |
|
|
<legend>利润</legend> |
|
|
<el-row :gutter=" 10"> |
|
|
|
|
|
|
|
|
<el-row :gutter="10" type="flex"> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="利润率%:" prop="profitRate" :show-message="false"> |
|
|
<el-form-item label="利润率%:" prop="profitRate" :show-message="false"> |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
@ -316,11 +341,21 @@ export default { |
|
|
v-model="quoteDetail.profitAmount" :step="0" :precision="4" :min="0" disabled/> |
|
|
v-model="quoteDetail.profitAmount" :step="0" :precision="4" :min="0" disabled/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
<fieldset style="height:80px;margin-top: 5px;border-color: rgb(255,255,255);"> |
|
|
<fieldset style="height:80px;margin-top: 5px;border-color: rgb(255,255,255);"> |
|
|
<legend>最终价格</legend> |
|
|
<legend>最终价格</legend> |
|
|
<el-row :gutter=" 10"> |
|
|
|
|
|
|
|
|
<el-row :gutter="10" type="flex"> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="未税总额:" prop="totalPrice" :show-message="false"> |
|
|
<el-form-item label="未税总额:" prop="totalPrice" :show-message="false"> |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
<el-input-number style="width: 100%;" :controls="false" |
|
|
@ -351,6 +386,10 @@ export default { |
|
|
v-model="quoteDetail.taxUnitPrice" :step="0" :precision="6" :min="0" disabled/> |
|
|
v-model="quoteDetail.taxUnitPrice" :step="0" :precision="6" :min="0" disabled/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|