diff --git a/src/views/invoicing/components/consumableList.vue b/src/views/invoicing/components/consumableList.vue index 46be62b..e5bd15a 100644 --- a/src/views/invoicing/components/consumableList.vue +++ b/src/views/invoicing/components/consumableList.vue @@ -24,7 +24,11 @@ - + + + {{ scope.row.stockNumber - scope.row.stockConsume }} + + 选择 diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue index a5ee6b7..6b5c941 100644 --- a/src/views/invoicing/operation_in.vue +++ b/src/views/invoicing/operation_in.vue @@ -110,7 +110,8 @@ { queryForm.totalAmount = formatDecimal(e * scope.row.price) }"> - 入库前:{{ scope.row.number }}{{ scope.row.conUnit }} + 入库前:{{ scope.row.number }}{{ scope.row.conUnit }} + @@ -322,7 +323,8 @@ export default { selectConsumable(res) { const n_res = { ...res } res.costPrice = n_res.price - res.number = n_res.stockNumber + res.number = n_res.stockNumber - n_res.stockConsume + res.stockNumber = 0 this.tableData.list = [res] this.queryForm.totalAmount = formatDecimal(res.price * res.stockNumber) }, diff --git a/src/views/invoicing/operation_out.vue b/src/views/invoicing/operation_out.vue index 5254d19..253102d 100644 --- a/src/views/invoicing/operation_out.vue +++ b/src/views/invoicing/operation_out.vue @@ -320,7 +320,8 @@ export default { selectConsumable(res) { const n_res = { ...res } res.costPrice = n_res.price - res.number = n_res.stockNumber + res.number = n_res.stockNumber - n_res.stockConsume + res.stockNumber = 0 this.tableData.list = [res] this.queryForm.totalAmount = formatDecimal(res.price * res.stockNumber) },