| | |
| | | prefix-icon="Search" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="入库状态:"> |
| | | <el-select v-model="searchForm.stockStatus" |
| | | placeholder="请选择" |
| | | clearable |
| | | style="width: 140px" |
| | | @change="handleQuery"> |
| | | <el-option label="未入库" |
| | | :value="0" /> |
| | | <el-option label="部分入库" |
| | | :value="1" /> |
| | | <el-option label="已入库" |
| | | :value="2" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="录入日期:"> |
| | | <el-date-picker v-model="searchForm.entryDate" |
| | | value-format="YYYY-MM-DD" |
| | |
| | | prop="availableQuality" /> |
| | | <el-table-column label="退货数量" |
| | | prop="returnQuality" /> |
| | | <el-table-column label="入库状态" |
| | | width="100px" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-tag :type="getProductStockStatusType(scope.row.productStockStatus)" |
| | | size="small"> |
| | | {{ stockStatusText[scope.row.productStockStatus] || '未入库' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="税率(%)" |
| | | prop="taxRate" /> |
| | | <el-table-column label="含税单价(元)" |
| | |
| | | width="200" |
| | | show-overflow-tooltip |
| | | :formatter="formattedNumber" /> |
| | | <el-table-column label="入库状态" |
| | | width="120" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-tag :type="getStockStatusType(scope.row.stockStatus)" |
| | | size="small"> |
| | | {{ stockStatusText[scope.row.stockStatus] || '未入库' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="录入人" |
| | | prop="recorderName" |
| | | width="120" |
| | |
| | | return typeMap[status] || ""; |
| | | }; |
| | | |
| | | // 入库状态显示文本 |
| | | const stockStatusText = { |
| | | 0: "未入库", |
| | | 1: "部分入库", |
| | | 2: "已入库", |
| | | }; |
| | | |
| | | // 获取主表入库状态标签类型 |
| | | const getStockStatusType = status => { |
| | | const typeMap = { |
| | | 0: "info", |
| | | 1: "success", |
| | | 2: "success", |
| | | }; |
| | | return typeMap[status] || "info"; |
| | | }; |
| | | |
| | | // 获取产品入库状态标签类型 |
| | | const getProductStockStatusType = status => { |
| | | const typeMap = { |
| | | 0: "info", |
| | | 1: "warning", |
| | | 2: "success", |
| | | }; |
| | | return typeMap[status] || "info"; |
| | | }; |
| | | |
| | | const templateName = ref(""); |
| | | const filterInputValue = ref(""); |
| | | const templateList = ref([]); |
| | |
| | | purchaseContractNumber: "", // 采购合同编号 |
| | | salesContractNo: "", // 销售合同编号 |
| | | projectName: "", // 项目名称 |
| | | stockStatus: undefined, // 入库状态 |
| | | entryDate: null, // 录入日期 |
| | | entryDateStart: undefined, |
| | | entryDateEnd: undefined, |