| | |
| | | <div class="search_form"> |
| | | <div> |
| | | <span class="search_title">供应商名称:</span> |
| | | <el-input v-model="searchForm.customerName" style="width: 240px" placeholder="请输入" @change="handleQuery" |
| | | <el-input v-model="searchForm.supplierName" style="width: 240px" placeholder="请输入" @change="handleQuery" |
| | | clearable prefix-icon="Search" /> |
| | | <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button> |
| | | </div> |
| | |
| | | :summary-method="summarizeMainTable" height="calc(100vh - 18.5em)"> |
| | | <el-table-column align="center" type="selection" width="55" /> |
| | | <el-table-column align="center" label="序号" type="index" width="60" /> |
| | | <el-table-column label="入库时间" prop="salesContractNo" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="入库批次" prop="customerContractNo" width="160" show-overflow-tooltip /> |
| | | <el-table-column label="供应商名称" prop="customerName" width="160" show-overflow-tooltip /> |
| | | <el-table-column label="产品大类" prop="salesman" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="规格型号" prop="projectName" width="160" show-overflow-tooltip /> |
| | | <el-table-column label="单位" prop="contractAmount" width="70" show-overflow-tooltip /> |
| | | <el-table-column label="入库数量" prop="entryPersonName" width="90" show-overflow-tooltip /> |
| | | <el-table-column label="含税单价" prop="entryDate" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="含税总价" prop="executionDate" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="税率" prop="executionDate" width="80" show-overflow-tooltip /> |
| | | <el-table-column label="不含税总价" prop="executionDate" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="入库人" prop="executionDate" width="80" show-overflow-tooltip /> |
| | | <el-table-column label="入库时间" prop="inboundTime" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="入库批次" prop="inboundBatch" width="160" show-overflow-tooltip /> |
| | | <el-table-column label="供应商名称" prop="supplierName" width="160" show-overflow-tooltip /> |
| | | <el-table-column label="产品大类" prop="productCategory" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="规格型号" prop="specificationModel" width="160" show-overflow-tooltip /> |
| | | <el-table-column label="单位" prop="unit" width="70" show-overflow-tooltip /> |
| | | <el-table-column label="入库数量" prop="inboundQuantity" width="90" show-overflow-tooltip /> |
| | | <el-table-column label="含税单价" prop="taxInclusiveUnitPrice" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="含税总价" prop="taxInclusiveTotalPrice" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="税率(%)" prop="taxRate" width="80" show-overflow-tooltip /> |
| | | <el-table-column label="不含税总价" prop="taxExclusiveTotalPrice" width="100" show-overflow-tooltip /> |
| | | <el-table-column label="入库人" prop="nickname" width="80" show-overflow-tooltip /> |
| | | <el-table-column fixed="right" label="操作" min-width="60" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" size="small" @click="openForm('edit', scope.row);">编辑</el-button> |
| | |
| | | addOrUpdateSalesLedger, |
| | | getSalesLedgerWithProducts, delLedger |
| | | } from "@/api/salesManagement/salesLedger.js"; |
| | | import { |
| | | getStockInPage, |
| | | updateStockIn, |
| | | addSutockIn, |
| | | delStockIn, |
| | | exportStockIn |
| | | } from "@/api/inventoryManagement/stockIn.js"; |
| | | const userStore = useUserStore() |
| | | const { proxy } = getCurrentInstance() |
| | | const tableData = ref([]) |
| | |
| | | const dialogFormVisible = ref(false) |
| | | const data = reactive({ |
| | | searchForm: { |
| | | customerName: '', |
| | | supplierName: '', |
| | | }, |
| | | form: { |
| | | salesContractNo: '', |
| | |
| | | } |
| | | const getList = () => { |
| | | tableLoading.value = true |
| | | ledgerListPage({ ...searchForm.value, ...page }).then(res => { |
| | | getStockInPage({ ...searchForm.value, ...page }).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.records |
| | | tableData.value = res.data.records |
| | | tableData.value.map(item => { |
| | | item.children = [] |
| | | }) |