diff --git a/.env.development b/.env.development index 6df9ba57..c41c52b7 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ NODE_ENV = 'development' VITE_NOW_TYPE = 'dist' # Base API -# VITE_APP_BASE_URL='http://192.168.1.22:8545' -VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn' +VITE_APP_BASE_URL='http://192.168.1.22:8545' +# VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn' # VITE_APP_BASE_URL='https://multi-store.lihaink.cn' diff --git a/src/views/store/store_branch_product/index.vue b/src/views/store/store_branch_product/index.vue index 56bc8fa9..1b8041f2 100644 --- a/src/views/store/store_branch_product/index.vue +++ b/src/views/store/store_branch_product/index.vue @@ -1,24 +1,46 @@ @@ -96,7 +172,6 @@ const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) - // 查询条件 const queryParams = reactive({ store_id: '', @@ -148,26 +223,28 @@ const handleDelete = async (id: number | any[]) => { getLists() -const storeloading = ref(false); -const storeList = ref([]); -const remoteMethod = (e:string='') => { - storeloading.value = true; +const storeloading = ref(false) +const storeList = ref([]) +const remoteMethod = (e = '') => { + storeloading.value = true apiSystemStoreLists({ name: e, page_size: 50 - }).then(res => { - storeList.value = res.lists; - setTimeout(()=>{ - storeloading.value = false; - },300) - }).catch(err => { - setTimeout(()=>{ - storeloading.value = false; - },300) }) + .then((res) => { + storeList.value = res.lists + setTimeout(() => { + storeloading.value = false + }, 300) + }) + .catch((err) => { + setTimeout(() => { + storeloading.value = false + }, 300) + }) } -const statusChange = (row:any)=>{ +const statusChange = (row: any) => { apiStoreBranchProductUpdate({ id: row.id, store_name: row.store_name, @@ -179,24 +256,23 @@ const statusChange = (row:any)=>{ } const producStatus = ref('0') -const changeProducStatus = (e: any)=>{ - if(e==0) { - queryParams.status = null; - queryParams.stock = null; - }else if(e==1){ - queryParams.status = 1; - queryParams.stock = null; - }else if(e==2){ - queryParams.status = 0; - queryParams.stock = null; - }else if(e==3){ - queryParams.status = null; - queryParams.stock = 10; - }else if(e==4){ - queryParams.status = null; - queryParams.stock = 0; +const changeProducStatus = (e: any) => { + if (e == 0) { + queryParams.status = null + queryParams.stock = null + } else if (e == 1) { + queryParams.status = 1 + queryParams.stock = null + } else if (e == 2) { + queryParams.status = 0 + queryParams.stock = null + } else if (e == 3) { + queryParams.status = null + queryParams.stock = 10 + } else if (e == 4) { + queryParams.status = null + queryParams.stock = 0 } - getLists(); + getLists() } - diff --git a/src/views/store/store_product/edit.vue b/src/views/store/store_product/edit.vue index a87ea760..c7ab4104 100644 --- a/src/views/store/store_product/edit.vue +++ b/src/views/store/store_product/edit.vue @@ -1,114 +1,213 @@ \ No newline at end of file +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + diff --git a/src/views/store/store_product/index.vue b/src/views/store/store_product/index.vue index 91f1b082..ced359fc 100644 --- a/src/views/store/store_product/index.vue +++ b/src/views/store/store_product/index.vue @@ -3,11 +3,25 @@ - + - + 查询 @@ -16,24 +30,31 @@ - - - 新增 - + + 新增 - + 删除 - - - 导入商品到门店 - + + 导入商品到门店
@@ -41,48 +62,118 @@ - - - - - - - - - - - + + + + + + + + + + + - + @@ -98,64 +189,60 @@ diff --git a/src/views/user/indexList.vue b/src/views/user/indexList.vue index b6171cd4..9c2c7c37 100644 --- a/src/views/user/indexList.vue +++ b/src/views/user/indexList.vue @@ -3,16 +3,31 @@ - + - + - + 查询 @@ -31,7 +46,7 @@ 删除 -->
- + @@ -44,14 +59,14 @@ - + - +