| | |
| | | prop="inboundNum" |
| | | width="90" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="库存预警" |
| | | prop="warnNum" |
| | | width="90" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="缺货数量" |
| | | prop="outStockQuantity" |
| | | width="100" |
| | |
| | | clearable /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="库存预警" prop="warnNum" width="150"> |
| | | <template #default="scope"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.warnNum" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="税率(%)" |
| | | prop="taxRate" |
| | | width="120" /> |
| | |
| | | :render-after-expand="false" |
| | | style="width: 100%" /> |
| | | </el-form-item> |
| | | <el-form-item label="规格型号"> |
| | | <el-form-item v-if="typeValue !== 'edit'" label="规格型号"> |
| | | <el-select v-model="directQuery.productModelId" |
| | | placeholder="请先选择产品大类" |
| | | clearable |
| | |
| | | :label="item.model" |
| | | :value="item.id" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="typeValue === 'edit'" label="规格型号"> |
| | | <el-input v-model="directQuery.specificationModel" |
| | | placeholder="输入规格型号" |
| | | clearable |
| | | disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="入库数量"> |
| | | <el-input v-model="directQuery.inboundQuantity" |
| | |
| | | productList.value = productRes.data.map(item => ({ |
| | | ...item, |
| | | quantityStock: 0, |
| | | warnNum: 0, |
| | | originalQuantityStock: Number( |
| | | item.quantityStock ?? item.inboundQuantity ?? 0 |
| | | ), |
| | |
| | | // 如果没有productId字段,尝试根据productCategory查找 |
| | | // 这里需要根据实际情况调整查找逻辑 |
| | | directQuery.value.productId = row.productCategory || ""; |
| | | directQuery.value.productModelId = row.specificationModel; |
| | | directQuery.value.productModelId = row.productModelId; |
| | | directQuery.value.specificationModel = row.specificationModel; |
| | | } |
| | | } |
| | | } |
| | |
| | | nickName: userStore.nickName, |
| | | details: selectedRows.value.map(product => ({ |
| | | id: product.id, |
| | | warnNum: product.warnNum, |
| | | // id: product.salesLedgerProductId, |
| | | inboundQuantity: Number(product.quantityStock), |
| | | productModelId: product.productModelId, |