Browse Source

feat: 库存调整

master
wangqi 2 months ago
parent
commit
5fe1310090
  1. 2
      src/api/module/eam/device/template.ts
  2. 9
      src/pages/deviceInfo/index.vue
  3. 2
      src/pages/deviceStorage/components/data-filter.vue
  4. 8
      src/pages/deviceStorage/index.vue
  5. 7
      src/pages/deviceTest/testPlan/index.vue
  6. 8
      src/pages/system/manufacturer/index.vue

2
src/api/module/eam/device/template.ts

@ -47,7 +47,7 @@ export const updateTempStatus = (id: string, enabled: number) => @@ -47,7 +47,7 @@ export const updateTempStatus = (id: string, enabled: number) =>
eamServer({
url: '/template/update-status',
method: 'put',
data: { id, enabled },
params: { id, enabled },
})
export const updateSheetStatus = (id: string, status: number) =>

9
src/pages/deviceInfo/index.vue

@ -60,6 +60,7 @@ @@ -60,6 +60,7 @@
class="table"
v-loading="loading"
:data="list"
ref="tableRef"
:highlight-current-row="true"
:page-total="total"
:current-page="queryParams.pageNo"
@ -157,15 +158,18 @@ const total = ref(0) @@ -157,15 +158,18 @@ const total = ref(0)
const list = ref<IDevice[]>([])
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
pageSize: undefined,
serialNo: undefined,
name: undefined,
status: undefined,
categoryId: [],
createTime: [],
})
const tableRef = ref()
const getList = async () => {
if (!queryParams.pageSize) {
queryParams.pageSize = tableRef.value.getSize()
}
loading.value = true
const options = {
@ -237,7 +241,6 @@ function addDevice() { @@ -237,7 +241,6 @@ function addDevice() {
function onView(row: any) {
router.push({ path: '/device/deviceOperation', query: { action: 'view', id: row.id } })
}
</script>
<style lang="scss" scoped>

2
src/pages/deviceStorage/components/data-filter.vue

@ -121,7 +121,7 @@ function formatParams() { @@ -121,7 +121,7 @@ function formatParams() {
for (const key of keys) {
if (checkbox.value[key]) {
if (key === 'startDay' || key === 'endDay') {
params['createTime'] = [filterData.value.startDay, filterData.value.endDay]
params['updateTime'] = [filterData.value.startDay, filterData.value.endDay]
} else {
params[key] = filterData.value[key]
}

8
src/pages/deviceStorage/index.vue

@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
class="table"
v-loading="loading"
:data="list"
ref="tableRef"
:highlight-current-row="true"
:page-total="total"
:current-page="queryParams.pageNo"
@ -91,10 +92,13 @@ const total = ref(0) @@ -91,10 +92,13 @@ const total = ref(0)
const list = ref<any>([])
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
pageSize: undefined,
})
const tableRef = ref<any>(null)
const getList = async () => {
if (!queryParams.pageSize) {
queryParams.pageSize = tableRef.value.getSize()
}
loading.value = true
const res = await getStoragePage(Object.assign({}, queryParams, filter.value))

7
src/pages/deviceTest/testPlan/index.vue

@ -51,6 +51,7 @@ @@ -51,6 +51,7 @@
<EdfsTable
class="table"
v-loading="loading"
ref="tableRef"
:data="list"
:highlight-current-row="true"
:page-total="total"
@ -159,14 +160,18 @@ const total = ref(0) // 列表的总页数 @@ -159,14 +160,18 @@ const total = ref(0) // 列表的总页数
const list = ref<IDeviceTemp[]>([]) //
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
pageSize: undefined,
createTime: [],
name: undefined,
enabled: undefined,
})
/** 查询列表 */
const tableRef = ref<any>(null)
const getList = async () => {
if (!queryParams.pageSize) {
queryParams.pageSize = tableRef.value.getSize()
}
loading.value = true
const res = await getDeviceTempPage(queryParams)
if (!isResError(res)) {

8
src/pages/system/manufacturer/index.vue

@ -60,6 +60,7 @@ @@ -60,6 +60,7 @@
class="table"
v-loading="loading"
:data="list"
ref="tableRef"
:highlight-current-row="true"
:page-total="total"
:current-page="queryParams.pageNo"
@ -157,7 +158,7 @@ const total = ref(0) // 列表的总页数 @@ -157,7 +158,7 @@ const total = ref(0) // 列表的总页数
const list = ref<CustomerVO[]>([]) //
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
pageSize: undefined,
name: undefined,
contact: undefined,
phone: undefined,
@ -166,7 +167,11 @@ const queryParams = reactive({ @@ -166,7 +167,11 @@ const queryParams = reactive({
})
/** 查询列表 */
const tableRef = ref<any>(null)
const getList = async () => {
if (!queryParams.pageSize) {
queryParams.pageSize = tableRef.value.getSize()
}
loading.value = true
const res = await getCustomerList(queryParams)
@ -238,7 +243,6 @@ const handleStatusChange = async (row: CustomerVO) => { @@ -238,7 +243,6 @@ const handleStatusChange = async (row: CustomerVO) => {
id: row.id,
enabled: row.enabled,
})
await getList()
} catch {

Loading…
Cancel
Save