gaoluyang
2 天以前 06b919933d0aa639bebc616d2af3ee4372bdbe95
新疆海川开心
1.生产报工单价默认值修改
已修改1个文件
8 ■■■■ 文件已修改
src/views/productionManagement/productionReporting/components/formDia.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/components/formDia.vue
@@ -52,8 +52,8 @@
                v-model="scope.row.unitPrice"
                placeholder="请输入"
                :min="0"
                :step="0.01"
                :precision="2"
                :step="0.001"
                :precision="3"
                clearable
                style="width: 100%"
                @change="() => calculateTotalPrice(scope.row)"
@@ -154,7 +154,7 @@
            pendingFinishNum: pendingFinish, // 保存原始的待报工数量
            finishedNum: autoFill,
            unitPrice: unitPrice,
            totalPrice: (autoFill * unitPrice).toFixed(2),
            totalPrice: (autoFill * unitPrice).toFixed(3),
            schedulingUserId: row?.schedulingUserId ?? '',
            schedulingDate: row?.schedulingDate ?? '',
        };
@@ -180,7 +180,7 @@
    const unitPrice = Number(row.unitPrice ?? 0);
    
    if (quantity > 0 && unitPrice > 0) {
        row.totalPrice = (quantity * unitPrice).toFixed(2);
        row.totalPrice = (quantity * unitPrice).toFixed(3);
    } else {
        row.totalPrice = '0.00';
    }