发货记录增加数量+“库存预警”字段移至库存管理+点击销售合同号自动跳转到销售台账
| | |
| | | <el-table-column label="规格型号" prop="specificationModel" width="200" show-overflow-tooltip /> |
| | | <el-table-column label="单位" prop="unit" width="70" show-overflow-tooltip /> |
| | | <el-table-column label="入库数量" prop="inboundNum" width="90" show-overflow-tooltip /> |
| | | <el-table-column label="库存预警" prop="warnNum" 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="quantityStock" width="150"> |
| | | <template #default="scope"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.quantityStock" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="库存预警" prop="warnNum" width="150"> |
| | | <template #default="scope"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.warnNum" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="税率(%)" prop="taxRate" width="120" /> |
| | |
| | | productList.value = productRes.data.map(item => ({ |
| | | ...item, |
| | | quantityStock: 0, |
| | | warnNum: 0, |
| | | originalQuantityStock: Number(item.quantityStock ?? item.inboundQuantity ?? 0), |
| | | })) |
| | | } catch (error) { |
| | |
| | | nickName: userStore.nickName, |
| | | details: selectedRows.value.map(product => ({ |
| | | id: product.id, |
| | | warnNum: product.warnNum, |
| | | // id: product.salesLedgerProductId, |
| | | inboundQuantity: Number(product.quantityStock) |
| | | })), |
| | |
| | | total: pagination.total, |
| | | }" |
| | | @pagination="changePage" |
| | | ></PIMTable> |
| | | > |
| | | <template #customerContractNo="{ row }"> |
| | | <el-button type="primary" text @click="showDetail(row)">{{ row.customerContractNo }} |
| | | </el-button> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | import { getPurchaseList } from "@/api/procurementManagement/projectProfit"; |
| | | import { onMounted, getCurrentInstance } from "vue"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import { useRouter, useRoute } from "vue-router"; |
| | | |
| | | const router = useRouter(); |
| | | const route = useRoute(); |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | defineOptions({ |
| | |
| | | label: "销售合同号", |
| | | align: "center", |
| | | prop: "customerContractNo", |
| | | dataType: "slot", |
| | | slot: "customerContractNo", |
| | | }, |
| | | { |
| | | label: "客户名称", |
| | |
| | | ] |
| | | ); |
| | | |
| | | const showDetail = (row) => { |
| | | |
| | | router.push({ |
| | | path: "/salesManagement/salesLedger", |
| | | query: { |
| | | customerContractNo: row.customerContractNo |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | |
| | | const changePage = ({ page }) => { |
| | | pagination.currentPage = page; |
| | | onCurrentChange(page); |
| | |
| | | <el-table-column label="客户名称" prop="customerName" show-overflow-tooltip /> |
| | | <el-table-column label="发货时间" prop="shippingDate" show-overflow-tooltip /> |
| | | <el-table-column label="发货车牌号" prop="shippingCarNumber" show-overflow-tooltip /> |
| | | <el-table-column label="发货数量" prop="quantity" show-overflow-tooltip /> |
| | | <el-table-column fixed="right" label="操作" width="150" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" size="small" @click="openForm('edit', scope.row)">编辑</el-button> |
| | |
| | | <el-col :span="24"> |
| | | <el-form-item label="发货车牌号:" prop="shippingCarNumber"> |
| | | <el-input v-model="form.shippingCarNumber" placeholder="请输入" clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="发货数量:" prop="quantity"> |
| | | <el-input v-model="form.quantity" placeholder="请输入" clearable :disabled="operationType === 'edit'" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | customerName: "", |
| | | shippingDate: "", |
| | | shippingCarNumber: "", |
| | | quantity: "", |
| | | }, |
| | | rules: { |
| | | salesContractNo: [{ required: true, message: "请选择销售订单", trigger: "change" }], |
| | |
| | | customerName: row.customerName ?? "", |
| | | shippingDate: row.shippingDate || getCurrentDate(), |
| | | shippingCarNumber: row.shippingCarNumber ?? "", |
| | | quantity: row.quantity ?? "", |
| | | }; |
| | | } else { |
| | | form.value = { |
| | |
| | | customerName: "", |
| | | shippingDate: getCurrentDate(), |
| | | shippingCarNumber: "", |
| | | quantity: "", |
| | | }; |
| | | } |
| | | |
| | |
| | | import useFormData from "@/hooks/useFormData.js"; |
| | | import dayjs from "dayjs"; |
| | | import { getStockInPage } from "@/api/inventoryManagement/stockIn.js"; |
| | | import { useRouter, useRoute } from "vue-router"; |
| | | |
| | | const userStore = useUserStore(); |
| | | const { proxy } = getCurrentInstance(); |
| | |
| | | const approverNodes = ref([{ id: 1, userId: null }]); |
| | | let nextApproverId = 2; |
| | | |
| | | const router = useRouter(); |
| | | const route = useRoute(); |
| | | // 用户信息表单弹框数据 |
| | | const operationType = ref(""); |
| | | const dialogFormVisible = ref(false); |
| | |
| | | }; |
| | | |
| | | onMounted(() => { |
| | | console.log(route.query,"route.query"); |
| | | |
| | | if(route.query.customerContractNo){ |
| | | searchForm.salesContractNo = route.query.customerContractNo |
| | | getList(); |
| | | |
| | | }else{ |
| | | getList(); |
| | | |
| | | } |
| | | }); |
| | | </script> |
| | | |