| src/views/inventoryManagement/dispatchLog/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/issueManagement/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/receiptManagement/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/stockManagement/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/salesManagement/salesLedger/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| vite.config.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/inventoryManagement/dispatchLog/index.vue
@@ -1,69 +1,6 @@ <template> <div class="app-container"> <el-tabs v-model="activeTab" @tab-change="handleTabChange"> <!-- <el-tab-pane label="采购出库" name="production"> <div class="search_form"> <div> <span class="search_title ml10">出库日期:</span> <el-date-picker v-model="searchForm.timeStr" type="date" placeholder="请选择日期" value-format="YYYY-MM-DD" format="YYYY-MM-DD" clearable @change="handleQuery" /> <span class="search_title ml10">产品大类:</span> <el-input v-model="searchForm.productCategory" style="width: 240px" placeholder="请输入" clearable /> <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button> </div> <div> <el-button @click="handleOut">导出</el-button> <el-button type="danger" plain @click="handleDelete">删除</el-button> <el-button type="primary" plain @click="handlePrint">打印</el-button> </div> </div> <div class="table_list"> <el-table :data="tableData" border v-loading="tableLoading" @selection-change="handleSelectionChange" :expand-row-keys="expandedRowKeys" :row-key="(row) => row.id" show-summary style="width: 100%" :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="createTime" min-width="120" show-overflow-tooltip /> <el-table-column label="产品大类" prop="productCategory" show-overflow-tooltip /> <el-table-column label="规格型号" prop="specificationModel" show-overflow-tooltip /> <el-table-column label="单位" prop="unit" width="80" show-overflow-tooltip /> <el-table-column label="出库数量" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="单价(元)" prop="unitPrice" width="150"></el-table-column> <el-table-column label="总价(元)" prop="totalPrice" width="150"></el-table-column> <el-table-column label="出库人" prop="createBy" width="80" show-overflow-tooltip /> </el-table> <pagination v-show="total > 0" :total="total" layout="total, sizes, prev, pager, next, jumper" :page="page.current" :limit="page.size" @pagination="paginationChange" /> </div> </el-tab-pane> --> <el-tab-pane label="采购出库" name="purchase"> <div class="search_form"> <div> @@ -188,7 +125,8 @@ </el-table-column> <el-table-column label="出库数量/件" prop="inboundNum" width="150" show-overflow-tooltip /> <el-table-column label="每件数量/支" prop="boxNum" width="100" show-overflow-tooltip /> <el-table-column label="单价(美元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column> <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column> <el-table-column label="单价(美元)/件" prop="dollarPrice" width="150"></el-table-column> <el-table-column label="纸箱规格" prop="cartonSpecifications" width="150"></el-table-column> <el-table-column label="出库人" prop="createBy" width="150" show-overflow-tooltip /> </el-table> src/views/inventoryManagement/issueManagement/index.vue
@@ -155,7 +155,8 @@ <el-table-column label="入库数量/件" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="每件数量/支" prop="boxNum" width="100" show-overflow-tooltip /> <el-table-column label="剩余库存" prop="inboundNum0" width="90" show-overflow-tooltip /> <el-table-column label="单价(美元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column> <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column> <el-table-column label="单价(美元)/件" prop="dollarPrice" width="150"></el-table-column> <el-table-column label="纸箱规格" prop="cartonSpecifications" width="150"></el-table-column> <el-table-column label="入库人" prop="createBy" width="150" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" width="100" align="center"> src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue
@@ -59,9 +59,14 @@ <el-input-number :step="1" :min="0" style="width: 100%" v-model="scope.row.boxNum" @change="() => calculateTotalPrice(scope.row)" /> </template> </el-table-column> <el-table-column label="单价(美元)/件" prop="taxInclusiveUnitPrice" width="150"> <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" width="150"> <template #default="scope"> <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.taxInclusiveUnitPrice" @change="() => calculateTotalPrice(scope.row)" /> </template> </el-table-column> <el-table-column label="单价(美元)/件" prop="dollarPrice" width="150"> <template #default="scope"> <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.dollarPrice" /> </template> </el-table-column> <el-table-column label="入库日期" prop="inboundDate" width="180"> @@ -193,6 +198,7 @@ inboundDate: '', quantityStock: 0, taxInclusiveUnitPrice: 0, dollarPrice: 0, taxInclusiveTotalPrice: 0, taxRate: null, taxExclusiveTotalPrice: 0, @@ -282,6 +288,7 @@ taxRate: Number(product.taxRate || 0), taxExclusiveTotalPrice: Number(product.taxExclusiveTotalPrice || 0), taxInclusiveUnitPrice: Number(product.taxInclusiveUnitPrice || 0), dollarPrice: Number(product.dollarPrice || 0), taxInclusiveTotalPrice: Number(product.taxInclusiveTotalPrice || 0), boxNum:Number(product.boxNum), cartonSpecifications: product.cartonSpecifications, @@ -377,6 +384,7 @@ quantityStock: Number(row?.quantityStock ?? 0), taxRate: Number(row?.taxRate ?? 0), taxInclusiveUnitPrice: Number(row?.taxInclusiveUnitPrice ?? 0), dollarPrice: Number(row?.dollarPrice ?? 0), taxInclusiveTotalPrice: Number(row?.taxInclusiveTotalPrice ?? 0), taxExclusiveTotalPrice: Number(row?.taxExclusiveTotalPrice ?? 0), boxNum: Number(row?.boxNum ?? 0), src/views/inventoryManagement/receiptManagement/index.vue
@@ -107,6 +107,7 @@ <el-table-column label="入库数量/件" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="每件数量/支" prop="boxNum" width="100" show-overflow-tooltip /> <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column> <el-table-column label="单价(美元)/件" prop="dollarPrice" width="150"></el-table-column> <el-table-column label="纸箱规格" prop="cartonSpecifications" width="150"></el-table-column> <el-table-column label="入库人" prop="createBy" width="150" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" width="100" align="center"> @@ -388,7 +389,13 @@ } else if (activeTab.value === 'manual') { exportUrl = "/stockin/exportTwo" } proxy.download(exportUrl, {}, '入库台账.xlsx') // 如果有选中数据,传递选中的数据字段用receiptManagement,否则传递空数组 const customStorage = selectedRows.value.length > 0 ? selectedRows.value : [] // 使用 JSON 格式传递数据 proxy.download(exportUrl, customStorage, '入库台账.xlsx', { headers: { 'Content-Type': 'application/json' }, transformRequest: [(data) => JSON.stringify(data)] }) }).catch(() => { proxy.$modal.msg("已取消") }) src/views/inventoryManagement/stockManagement/index.vue
@@ -1,59 +1,6 @@ <template> <div class="app-container"> <el-tabs v-model="activeTab" @tab-change="handleTabChange"> <!-- <el-tab-pane label="采购库存" name="production"> <div class="search_form"> <div> <span class="search_title ml10">入库日期:</span> <el-date-picker v-model="searchForm.timeStr" type="date" placeholder="请选择日期" value-format="YYYY-MM-DD" format="YYYY-MM-DD" clearable @change="handleQuery" /> <span class="search_title ml10">产品名称:</span> <el-input v-model="searchForm.productCategory" style="width: 240px" placeholder="请输入" clearable /> <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button> </div> <div> <el-button @click="handleOut">导出</el-button> </div> </div> <div class="table_list"> <el-table :data="tableData" border v-loading="tableLoading" @selection-change="handleSelectionChange" :expand-row-keys="expandedRowKeys" :row-key="row => row.id" show-summary style="width: 100%" :row-class-name="tableRowClassName" :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="createTime" width="100" show-overflow-tooltip /> <el-table-column label="产品名称" prop="productCategory" show-overflow-tooltip /> <el-table-column label="规格型号" prop="specificationModel" show-overflow-tooltip /> <el-table-column label="单位" prop="unit" width="80" show-overflow-tooltip /> <el-table-column label="入库数量" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="已出库数量" prop="totalInboundNum" width="100" show-overflow-tooltip /> <el-table-column label="剩余库存" prop="inboundNum0" width="100" show-overflow-tooltip /> <el-table-column label="单价(元)" prop="unitPrice" width="150"></el-table-column> <el-table-column label="总价(元)" prop="totalPrice" 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('edit', scope.row);">编辑</el-button> </template> </el-table-column> </el-table> <pagination v-show="total > 0" :total="total" layout="total, sizes, prev, pager, next, jumper" :page="page.current" :limit="page.size" @pagination="paginationChange" /> </div> </el-tab-pane> --> <el-tab-pane label="采购库存" name="purchase"> <div class="search_form"> <div> @@ -92,16 +39,12 @@ <el-tab-pane label="成品库存" name="manual"> <div class="search_form"> <div> <!-- <span class="search_title">供应商名称:</span>--> <!-- <el-input v-model="searchForm.supplierName" style="width: 240px" placeholder="请输入" @change="handleQuery"--> <!-- clearable prefix-icon="Search" />--> <span class="search_title ml10">产品名称:</span> <el-input v-model="searchForm.productCategory" style="width: 240px" placeholder="请输入" clearable /> <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button> </div> <div> <el-button @click="handleOut">导出</el-button> <!-- <el-button type="danger" plain @click="handleDelete">删除</el-button>--> </div> </div> <div class="table_list"> @@ -121,7 +64,8 @@ <div>{{ scope.row.specificationModel }}{{ scope.row.unit }}</div> </template> </el-table-column> <el-table-column label="单价(美元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column> <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column> <el-table-column label="单价(美元)/件" prop="dollarPrice" width="150"></el-table-column> <el-table-column label="每件数量/支" prop="boxNum" width="100" show-overflow-tooltip /> <el-table-column label="入库数量" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="已出库数量" prop="totalInboundNum" width="100" show-overflow-tooltip /> src/views/salesManagement/salesLedger/index.vue
@@ -54,11 +54,12 @@ </template> </el-table-column> <el-table-column label="数量" prop="quantity"/> <el-table-column label="单价(美元)/件" prop="taxInclusiveUnitPrice" :formatter="formattedNumber"></el-table-column> <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" :formatter="formattedNumber"></el-table-column> <el-table-column label="单价(美元)/件" prop="dollar" :formatter="formattedNumber"></el-table-column> <el-table-column label="税率(%)" prop="taxRate" /> <el-table-column label="含税总价(美元)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" /> <el-table-column label="不含税总价(美元)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" /> <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" /> <el-table-column label="不含税总价(元)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" /> </el-table> </template> </el-table-column> @@ -176,7 +177,8 @@ <!-- <el-table-column label="单位" prop="unit" /> --> <el-table-column label="数量" prop="quantity" /> <!-- <el-table-column label="税率(%)" prop="taxRate" /> --> <el-table-column label="单价(美元)/件" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" /> <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" /> <el-table-column label="单价(美元)/件" prop="dollar" :formatter="formattedNumber" /> <!-- <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" /> <el-table-column label="不含税总价(元)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" /> --> <el-table-column fixed="right" label="操作" min-width="60" align="center" v-if="operationType !== 'view'"> @@ -257,13 +259,13 @@ </el-col> </el-row> <el-row :gutter="30"> <el-col :span="12"> <el-form-item label="单价(美元)/件:" prop="taxInclusiveUnitPrice"> <el-input-number :step="0.01" :min="0" v-model="productForm.taxInclusiveUnitPrice" style="width: 100%" <el-col :span="12"> <el-form-item label="单价(美元)/件:" prop="dollar"> <el-input-number :step="0.01" :min="0" v-model="productForm.dollar" style="width: 100%" :precision="2" placeholder="请输入" clearable @change="calculateFromUnitPrice" /> </el-form-item> </el-col> placeholder="请输入" clearable /> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="数量:" prop="quantity"> <el-input-number :min="0" v-model="productForm.quantity" placeholder="请输入" clearable @@ -272,18 +274,25 @@ </el-col> </el-row> <el-row :gutter="30"> <el-col :span="12"> <el-form-item label="单价(元)/件:" prop="taxInclusiveUnitPrice"> <el-input-number :step="0.01" :min="0" v-model="productForm.taxInclusiveUnitPrice" style="width: 100%" :precision="2" placeholder="请输入" clearable @change="calculateFromUnitPrice" /> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="含税总价(美元):" prop="taxInclusiveTotalPrice"> <el-form-item label="含税总价(元):" prop="taxInclusiveTotalPrice"> <el-input v-model="productForm.taxInclusiveTotalPrice" placeholder="请输入" clearable @change="calculateFromTotalPrice" /> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="不含税总价(美元):" prop="taxExclusiveTotalPrice"> <el-input v-model="productForm.taxExclusiveTotalPrice" placeholder="请输入" clearable @change="calculateFromExclusiveTotalPrice" /> </el-form-item> </el-col> </el-row> <el-row :gutter="30"> <el-col :span="12"> <el-form-item label="不含税总价(元):" prop="taxExclusiveTotalPrice"> <el-input v-model="productForm.taxExclusiveTotalPrice" placeholder="请输入" clearable @change="calculateFromExclusiveTotalPrice" /> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="发票类型:" prop="invoiceType"> <el-select v-model="productForm.invoiceType" placeholder="请选择" clearable> @@ -554,6 +563,7 @@ unit: "", quantity: "", taxInclusiveUnitPrice: "", dollar: "", taxRate: "", taxInclusiveTotalPrice: "", taxExclusiveTotalPrice: "", vite.config.js
@@ -8,11 +8,11 @@ const { VITE_APP_ENV } = env; const baseUrl = env.VITE_APP_ENV === "development" ? "http://114.132.189.42:9036" ? "http://114.132.189.42:9042" : env.VITE_BASE_API; const javaUrl = env.VITE_APP_ENV === "development" ? "http://114.132.189.42:9037" ? "http://114.132.189.42:9044" : env.VITE_JAVA_API; return { define:{