| | |
| | | <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" width="150"></el-table-column> |
| | | <el-table-column fixed="right" label="操作" min-width="60" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" size="small" @click="openForm(scope.row);">领用</el-button> |
| | | <el-button link type="primary" size="small" @click="openForm(scope.row);">发料</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-table-column label="剩余库存" prop="inboundNum0" width="90" show-overflow-tooltip /> |
| | | <el-table-column fixed="right" label="操作" width="100" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" size="small" @click="openForm(scope.row);">领用</el-button> |
| | | <el-button link type="primary" size="small" @click="openForm(scope.row);">发料</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | params.timeStr = searchForm.value.timeStr |
| | | } |
| | | params.productCategory = searchForm.value.productCategory |
| | | params.flag = true |
| | | let apiCall |
| | | if (activeTab.value === 'production') { |
| | | apiCall = getStockInPageByProduction(params) |
| | |
| | | const getDialogTitle = () => { |
| | | const titleMap = { |
| | | production: '新增发货', |
| | | purchase: '新增领用', |
| | | manual: '新增领用' |
| | | purchase: '新增发料', |
| | | manual: '新增发料' |
| | | }; |
| | | return titleMap[activeTab.value] || '新增出库'; |
| | | }; |
| | |
| | | const getAvailableQuantityText = () => { |
| | | const textMap = { |
| | | production: '可发货数量', |
| | | purchase: '可领用数量', |
| | | manual: '可领用数量' |
| | | purchase: '可发料数量', |
| | | manual: '可发料数量' |
| | | }; |
| | | return textMap[activeTab.value] || '可出库数量'; |
| | | }; |
| | |
| | | const getQuantityLabel = () => { |
| | | const labelMap = { |
| | | production: '发货数量:', |
| | | purchase: '领用数量:', |
| | | manual: '领用数量:' |
| | | purchase: '发料数量:', |
| | | manual: '发料数量:' |
| | | }; |
| | | return labelMap[activeTab.value] || '出库数量:'; |
| | | }; |
| | |
| | | const getDateLabel = () => { |
| | | const labelMap = { |
| | | production: '发货日期:', |
| | | purchase: '领用日期:', |
| | | manual: '领用日期:' |
| | | purchase: '发料日期:', |
| | | manual: '发料日期:' |
| | | }; |
| | | return labelMap[activeTab.value] || '出库日期:'; |
| | | }; |
| | |
| | | const getPersonLabel = () => { |
| | | const labelMap = { |
| | | production: '发货人:', |
| | | purchase: '领用人:', |
| | | manual: '领用人:' |
| | | purchase: '发料人:', |
| | | manual: '发料人:' |
| | | }; |
| | | return labelMap[activeTab.value] || '出库人:'; |
| | | }; |