Commit 829ac4ec authored by jingnan's avatar jingnan 👀

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

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