Commit 829ac4ec authored by jingnan's avatar jingnan 👀

第二联外车间材料外车间材料损失字段修改

parent a3add72c
......@@ -236,8 +236,8 @@
</el-form-item>
</td>
<td class="text-indent">
{{ form.outMaterialLossCos }}
<!-- <el-input v-model="form.outMaterialLossCos" min="0" type="Number" placeholder="请输入" @input="outLoss" /> -->
{{ form.outMaterialLossCost }}
<!-- <el-input v-model="form.outMaterialLossCost" min="0" type="Number" placeholder="请输入" @input="outLoss" /> -->
</td>
</tr>
<tr>
......@@ -467,7 +467,7 @@ export default {
curTotalLossCost: 0, // | 本车间损失合计 |
outMaterialCount: null, // | 外车间材料数量 |
outMaterialCost: null, // | 外车间材料单价 |
outMaterialLossCos: 0, // | 外车间材料损失 |
outMaterialLossCost: 0, // | 外车间材料损失 |
workHourPCount: null, // | 工时人工数量 |
workHourPCost: null, // | 工时人工单价 |
workHourPLossCost: 0, // | 工时人工损失 |
......@@ -533,11 +533,11 @@ export default {
}
if (that.outMaterialCount && that.outMaterialCost) {
that.outMaterialLossCos =
that.outMaterialLossCost =
parseFloat(that.outMaterialCount) *
parseFloat(that.outMaterialCost)
} else if (!that.outMaterialCount || !that.outMaterialCost) {
that.outMaterialLossCos = 0
that.outMaterialLossCost = 0
}
if (that.workHourPCount && that.workHourPCost) {
that.workHourPLossCost =
......@@ -761,8 +761,8 @@ export default {
outLoss() {
var that = this.form
var totalCount = 0
if (that.outMaterialLossCos) {
totalCount += parseFloat(that.outMaterialLossCos)
if (that.outMaterialLossCost) {
totalCount += parseFloat(that.outMaterialLossCost)
}
if (that.workHourPLossCost) {
totalCount += parseFloat(that.workHourPLossCost)
......
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