| | |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | } |
| | | export function modelListPage(query) { |
| | | return request({ |
| | | url: '/basic/product/modelListPage', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | // 分页查询 |
| | | // 询回款记录 |
| | | export function receiptPaymentHistoryList(query) { |
| | | return request({ |
| | | url: '/receiptPayment/receiptPaymentHistoryList', |
| | |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 查询回款记录分页查询 |
| | | */ |
| | | export function receiptPaymentHistoryListPage(query) { |
| | | return request({ |
| | | url: '/receiptPayment/receiptPaymentHistoryListPage', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 分页查询 |
| | | export function ledgerListPage(query) { |
| | | return request({ |
| | | url: '/sales/ledger/listPage', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const pagination = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const pagination = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | | tableLoading.value = true |
| | | listCustomer({...searchForm.value, ...page}).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.rows |
| | | tableData.value = res.records |
| | | total.value = res.total |
| | | }) |
| | | } |
| | |
| | | addOrEditProduct, |
| | | addOrEditProductModel, |
| | | delProduct, delProductModel, |
| | | modelList, |
| | | modelListPage, |
| | | productTreeList |
| | | } from "@/api/basicData/product.js"; |
| | | const { proxy } = getCurrentInstance() |
| | |
| | | } |
| | | |
| | | // 查询规格型号 |
| | | const pagination = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const pagination = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getModelList() |
| | | } |
| | | const getModelList = () => { |
| | | tableLoading.value = true |
| | | modelList({id: currentId.value}).then(res => { |
| | | modelListPage({id: currentId.value, |
| | | current: page.current, |
| | | size: page.size, |
| | | } |
| | | ).then(res => { |
| | | console.log('res',res) |
| | | tableData.value = res.records |
| | | total.value = res.total |
| | | tableLoading.value = false |
| | | tableData.value = res |
| | | }) |
| | | } |
| | | // 删除规格型号 |
| | |
| | | font-size: 14px; |
| | | padding-right: 8px; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const pagination = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const pagination = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | |
| | | listSupplier({...searchForm.value, ...page}).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.data.records |
| | | total.value = res.total |
| | | total.value = res.data.total |
| | | }) |
| | | } |
| | | // 表格选择数据 |
| | |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const paginationChange = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const paginationChange = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | |
| | | // import {userListNoPage} from "@/api/system/user.js"; |
| | | import { |
| | | getSalesLedgerWithProducts, |
| | | ledgerList, |
| | | ledgerListPage, |
| | | productList, |
| | | } from "@/api/salesManagement/salesLedger.js"; |
| | | import { |
| | |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const paginationChange = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const paginationChange = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | | tableLoading.value = true |
| | | ledgerList({...searchForm.value, ...page}).then(res => { |
| | | ledgerListPage({...searchForm.value, ...page}).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.rows; |
| | | tableData.value = res.records; |
| | | total.value = res.total |
| | | expandedRowKeys.value = [] |
| | | }) |
| | |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const paginationChange = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const paginationChange = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | |
| | | import { ref } from 'vue' |
| | | import { Search } from "@element-plus/icons-vue"; |
| | | import { |
| | | receiptPaymentHistoryList |
| | | receiptPaymentHistoryListPage |
| | | } from "@/api/salesManagement/receiptPayment.js"; |
| | | const { proxy } = getCurrentInstance() |
| | | const tableColumn = ref([ |
| | |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const pagination = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const pagination = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | | tableLoading.value = true |
| | | receiptPaymentHistoryList({ ...searchForm.value, ...page }).then(res => { |
| | | receiptPaymentHistoryListPage({ ...searchForm.value, ...page }).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.rows |
| | | tableData.value = res.records |
| | | total.value = res.total |
| | | }) |
| | | } |
| | |
| | | import useUserStore from '@/store/modules/user' |
| | | import {userListNoPage} from "@/api/system/user.js"; |
| | | import { |
| | | ledgerList, |
| | | ledgerListPage, |
| | | productList, |
| | | customerList, |
| | | addOrUpdateSalesLedger, |
| | |
| | | } |
| | | const getList = () => { |
| | | tableLoading.value = true |
| | | ledgerList({...searchForm.value, ...page}).then(res => { |
| | | ledgerListPage({...searchForm.value, ...page}).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.rows |
| | | tableData.value = res.records |
| | | tableData.value.map(item => { |
| | | item.children = [] |
| | | }) |