| | |
| | | <el-table-column label="产品大类" prop="productCategory" /> |
| | | <el-table-column label="规格型号" prop="specificationModel" /> |
| | | <el-table-column label="单位" prop="unit" /> |
| | | <el-table-column label="件数" prop="packagingSpec" /> |
| | | <el-table-column label="入库审核状态" prop="stockInApprovalStatus" width="120"> |
| | | <template #default="scope"> |
| | | <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)" size="small"> |
| | |
| | | <el-table-column label="入库状态" prop="stockInStatus" width="100" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | <el-tag :type="getStockInStatusType(scope.row.stockInStatus)" size="small"> |
| | | {{ scope.row.stockInStatus || '--' }} |
| | | {{ formatStockInStatus(scope.row.stockInStatus) || '--' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="供应商名称:" prop="supplierId"> |
| | | <el-select v-model="form.supplierId" placeholder="请选择" filterable clearable> |
| | | <el-option v-for="item in supplierList" :key="item.id" :label="item.supplierName" :value="item.id">{{ item.supplierType ? item.supplierName + '---' + item.supplierType : item.supplierName }}</el-option> |
| | | <el-option v-for="item in supplierList" :key="item.id" :label="item.supplierName" :value="item.id">{{ item.supplierName }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-table-column label="产品大类" prop="productCategory" /> |
| | | <el-table-column label="规格型号" prop="specificationModel" /> |
| | | <el-table-column label="单位" prop="unit" width="70" /> |
| | | <el-table-column label="件数" prop="packagingSpec" width="120" show-overflow-tooltip /> |
| | | <el-table-column label="数量" prop="quantity" width="70" /> |
| | | <!-- <el-table-column label="库存预警数量" prop="warnNum" width="120" show-overflow-tooltip />--> |
| | | <el-table-column label="税率(%)" prop="taxRate" width="80" /> |
| | |
| | | <el-select v-model="productForm.taxRate" placeholder="请选择" clearable @change="mathNum"> |
| | | <el-option v-for="dict in tax_rate" :key="dict.value" :label="dict.label" :value="dict.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="件数:" prop="packagingSpec"> |
| | | <el-input v-model="productForm.packagingSpec" clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | return typeMap[status] || ""; |
| | | }; |
| | | |
| | | // 入库状态显示:入库中也展示为完全入库 |
| | | const formatStockInStatus = status => { |
| | | if (status === "入库中") return "完全入库"; |
| | | return status; |
| | | }; |
| | | |
| | | // 获取入库状态标签类型 |
| | | const getStockInStatusType = status => { |
| | | const typeMap = { |
| | | "待入库": "info", // 待入库 - 灰色 |
| | | "入库中": "warning", // 入库中 - 橙色 |
| | | "入库中": "success", // 入库中 - 绿色 |
| | | "完全入库": "success", // 完全入库 - 绿色 |
| | | }; |
| | | return typeMap[status] || ""; |
| | |
| | | productModelId: "", |
| | | specificationModel: "", |
| | | unit: "", |
| | | packagingSpec: "", |
| | | quantity: "", |
| | | taxInclusiveUnitPrice: "", |
| | | taxRate: "", |