| | |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="含税单价" |
| | | prop="taxInclusiveUnitPrice" |
| | | label="含税单价(元)" |
| | | prop="entryDate" |
| | | width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="含税总价" |
| | | prop="taxInclusiveTotalPrice" |
| | | label="含税总价(元)" |
| | | prop="executionDate" |
| | | width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="税率" |
| | | prop="taxRate" |
| | | label="税率(%)" |
| | | prop="executionDate" |
| | | width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="不含税总价" |
| | | prop="taxExclusiveTotalPrice" |
| | | width="100" |
| | | label="不含税总价(元)" |
| | | prop="executionDate" |
| | | width="180" |
| | |
| | | import { userListNoPage } from "@/api/system/user.js"; |
| | | import { |
| | | getStockOutPage, |
| | | addStockOut, |
| | | updateStockOut, |
| | | delStockOut, |
| | | exportStockOut, |
| | | getStockManageById |
| | | } from "@/api/inventoryManagement/stockOut.js"; |
| | | |
| | | const userStore = useUserStore(); |
| | | const { proxy } = getCurrentInstance(); |
| | | const tableData = ref([]); |
| | | // const productData = ref([]); |
| | | const selectedRows = ref([]); |
| | | const userList = ref([]); |
| | | // const customerOption = ref([]); |
| | | const tableLoading = ref(false); |
| | | const supplierList = ref([]) |
| | | const productList = ref([]) |
| | | const productModelList = ref([]) |
| | | const page = reactive({ |
| | | current: 1, |
| | | size: 100, |
| | |
| | | inboundBatch: '', |
| | | inboundQuantity: '' |
| | | }, |
| | | rules: { |
| | | supplierId: [{ required: true, message: '请选择供应商', trigger: 'change' }], |
| | | productRecordid: [{ required: true, message: '请选择产品', trigger: 'change' }], |
| | | inboundTime: [{ required: true, message: '请选择入库时间', trigger: 'change' }], |
| | | inboundQuantity: [{ required: true, message: '请输入入库数量', trigger: 'blur' }] |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | | |
| | |
| | | tableLoading.value = false; |
| | | }); |
| | | }; |
| | | // const findNodeById = (nodes, productId) => { |
| | | // for (let i = 0; i < nodes.length; i++) { |
| | | // if (nodes[i].value === productId) { |
| | | // return nodes[i].label; // 找到节点,返回该节点 |
| | | // } |
| | | // if (nodes[i].children && nodes[i].children.length > 0) { |
| | | // const foundNode = findNodeById(nodes[i].children, productId); |
| | | // if (foundNode) { |
| | | // return foundNode.label; // 在子节点中找到,返回该节点 |
| | | // } |
| | | // } |
| | | // } |
| | | // return null; // 没有找到节点,返回null |
| | | // }; |
| | | |
| | | // 表格选择数据 |
| | | const handleSelectionChange = (selection) => { |
| | | // 过滤掉子数据 |
| | |
| | | proxy.$modal.msg("已取消"); |
| | | }); |
| | | }; |
| | | |
| | | // 删除 |
| | | const handleDelete = () => { |
| | | let ids = []; |