feat: 在多个记录页面添加导出过磅单功能
为发货记录和收货记录页面添加操作列,包含“导出过磅单”按钮。点击按钮时调用下载方法,使用行的weighbridgeDocPath作为参数。同时在耗材物流收货记录页面添加调试日志。
| | |
| | | prop="licensePlateNo" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column label="操作" |
| | | width="120" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button type="primary" |
| | | size="mini" |
| | | @click="handlePreview(scope.row)">导出过磅单</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total > 0" |
| | |
| | | }; |
| | | const expandedRowKeys = ref([]); |
| | | |
| | | // 导出过磅单 |
| | | const handlePreview = (row) => { |
| | | proxy.$download.name(row.weighbridgeDocPath); |
| | | } |
| | | |
| | | // 导出 |
| | | const handleOut = () => { |
| | | ElMessageBox.confirm("是否确认导出?", "导出", { |
| | |
| | | prop="weighingOperator" |
| | | v-if="type === '0'" |
| | | show-overflow-tooltip/> |
| | | <el-table-column label="操作" |
| | | width="120" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button type="primary" |
| | | size="mini" |
| | | @click="handlePreview(scope.row)">导出过磅单</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination v-show="total > 0" |
| | | :total="total" |
| | |
| | | return stockRecordTypeOptions.value.find(item => item.value === recordType)?.label || '' |
| | | } |
| | | |
| | | // 导出过磅单 |
| | | const handlePreview = (row) => { |
| | | console.log(row); |
| | | console.log(row.weighbridgeDocPath); |
| | | proxy.$download.name(row.weighbridgeDocPath); |
| | | } |
| | | |
| | | const pageProductChange = obj => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | |
| | | prop="weighingOperator" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column label="操作" |
| | | width="120" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button type="primary" |
| | | size="mini" |
| | | @click="handlePreview(scope.row)">导出过磅单</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total > 0" |
| | |
| | | }; |
| | | const expandedRowKeys = ref([]); |
| | | |
| | | // 导出过磅单 |
| | | const handlePreview = (row) => { |
| | | proxy.$download.name(row.weighbridgeDocPath); |
| | | } |
| | | |
| | | // 导出 |
| | | const handleOut = () => { |
| | | ElMessageBox.confirm("是否确认导出?", "导出", { |
| | |
| | | prop="weighingOperator" |
| | | v-if="type === '0'" |
| | | show-overflow-tooltip/> |
| | | <el-table-column label="操作" |
| | | width="120" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button type="primary" |
| | | size="mini" |
| | | @click="handlePreview(scope.row)">导出过磅单</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination v-show="total > 0" |
| | | :total="total" |
| | |
| | | |
| | | const expandedRowKeys = ref([]); |
| | | |
| | | // 导出过磅单 |
| | | const handlePreview = (row) => { |
| | | proxy.$download.name(row.weighbridgeDocPath); |
| | | } |
| | | |
| | | // 导出 |
| | | const handleOut = () => { |
| | | ElMessageBox.confirm("是否确认导出?", "导出", { |
| | |
| | | |
| | | // 点击领用 |
| | | const showSubtractModal = (row) => { |
| | | console.log('row', row) |
| | | record.value = row |
| | | isShowSubtractModal.value = true |
| | | } |