sparkles: ✨ 样式修改
This commit is contained in:
parent
d4447eaf55
commit
3723414588
@ -194,7 +194,7 @@
|
|||||||
materialList.value = data
|
materialList.value = data
|
||||||
})
|
})
|
||||||
options.value = materialList.value.map((item) => {
|
options.value = materialList.value.map((item) => {
|
||||||
return { label: item.name ? item.name : '未知', value: item.id ? item.id : -1 }
|
return { label: item.name ? item.name + '(' + item.spec + ')' : '未知', value: item.id ? item.id : -1 }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
|
@ -2,11 +2,23 @@
|
|||||||
<page-container>
|
<page-container>
|
||||||
<!-- 页面操作栏 -->
|
<!-- 页面操作栏 -->
|
||||||
<template #ops>
|
<template #ops>
|
||||||
<a-row>
|
<a-row style="width: 600px">
|
||||||
<a-col :span="16">
|
<a-col :span="8">
|
||||||
|
<a-tree-select
|
||||||
|
v-model:value="typeVal"
|
||||||
|
show-search
|
||||||
|
style="width: 100%"
|
||||||
|
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
|
||||||
|
placeholder="请选择物料类型"
|
||||||
|
allow-clear
|
||||||
|
:tree-data="types"
|
||||||
|
tree-node-filter-prop="label"
|
||||||
|
/>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="8">
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:value="searchKey"
|
v-model:value="searchKey"
|
||||||
:placeholder="`名称/编码/类型`"
|
:placeholder="`名称/编码`"
|
||||||
allow-clear
|
allow-clear
|
||||||
enter-button
|
enter-button
|
||||||
@search="loadData()"
|
@search="loadData()"
|
||||||
@ -110,6 +122,7 @@
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const materialIdRef = ref<number>()
|
const materialIdRef = ref<number>()
|
||||||
const printcodeRef = ref()
|
const printcodeRef = ref()
|
||||||
|
const typeVal = ref<string>() // 物料类型选择值
|
||||||
|
|
||||||
//类型树
|
//类型树
|
||||||
|
|
||||||
@ -130,7 +143,12 @@
|
|||||||
const loadData = async (page = 1, size = 10) => {
|
const loadData = async (page = 1, size = 10) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
api.materialApi.material.materials(
|
api.materialApi.material.materials(
|
||||||
{ page: page || materialPage.value?.current, size: size || materialPage.value?.size, key: searchKey.value },
|
{
|
||||||
|
page: page || materialPage.value?.current,
|
||||||
|
size: size || materialPage.value?.size,
|
||||||
|
key: searchKey.value,
|
||||||
|
type: typeVal.value,
|
||||||
|
},
|
||||||
(data) => {
|
(data) => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
materialPage.value = data
|
materialPage.value = data
|
||||||
|
@ -59,8 +59,8 @@ export default defineConfig(({ mode }) => {
|
|||||||
open: true,
|
open: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'https://ims.riemann.tech/api/',
|
// target: 'https://ims.riemann.tech/api/',
|
||||||
// target: 'http://127.0.0.1:8888',
|
target: 'http://127.0.0.1:8888',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user