Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ops_2024_vue
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ops_2024_vue
Commits
e7607d8e
Commit
e7607d8e
authored
Feb 18, 2025
by
limengyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hd' of
http://119.78.67.12/git/root/ops_2024_vue
into bugFix/jiraTML2346/lmy
parents
df1ed97b
6bf12e07
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
607 additions
and
13 deletions
+607
-13
.env.production
.env.production
+1
-1
src/api/manufacturer/index.ts
src/api/manufacturer/index.ts
+51
-0
src/assets/images/notOpened.png
src/assets/images/notOpened.png
+0
-0
src/const/manufacturer/index.ts
src/const/manufacturer/index.ts
+9
-0
src/main.ts
src/main.ts
+1
-0
src/router/routes/index.ts
src/router/routes/index.ts
+4
-9
src/store/modules/multipleTab.ts
src/store/modules/multipleTab.ts
+11
-2
src/store/modules/user.ts
src/store/modules/user.ts
+7
-0
src/styles/index.css
src/styles/index.css
+5
-0
src/types/manufacturer/index.ts
src/types/manufacturer/index.ts
+43
-0
src/views/manufacturer/index.vue
src/views/manufacturer/index.vue
+98
-0
src/views/manufacturer/modules/detail.vue
src/views/manufacturer/modules/detail.vue
+135
-0
src/views/manufacturer/modules/operate.vue
src/views/manufacturer/modules/operate.vue
+233
-0
src/views/super/regionalSpotManage/index.vue
src/views/super/regionalSpotManage/index.vue
+3
-0
src/views/super/supplierInfoManage/供货商信息管理.vue
src/views/super/supplierInfoManage/供货商信息管理.vue
+6
-1
No files found.
.env.production
View file @
e7607d8e
...
...
@@ -2,7 +2,7 @@
VITE_USE_MOCK = true
# public path
VITE_PUBLIC_PATH =
/
VITE_PUBLIC_PATH =
'https://tmallab.cn/ops/'
# Delete console
VITE_DROP_CONSOLE = true
...
...
src/api/manufacturer/index.ts
0 → 100644
View file @
e7607d8e
import
{
tmallabHttp
}
from
'
/@/utils/http/axios
'
;
import
{
List
,
Supplier
,
ParamsList
,
ParamsAdd
,
BrandList
}
from
'
/@/types/manufacturer
'
;
type
ResponseData
<
T
>
=
{
code
:
number
;
data
:
T
;
message
:
string
;
success
:
boolean
;
time
:
string
;
traceId
:
string
;
};
export
const
getManufacturerListApi
=
(
data
:
ParamsList
)
=>
tmallabHttp
.
post
<
ResponseData
<
List
[]
>>
({
url
:
'
/system/mfrCooperate/getList
'
,
data
,
});
// 获取供货商名称列表
export
const
getSupplierApi
=
()
=>
tmallabHttp
.
post
<
ResponseData
<
Supplier
[]
>>
({
url
:
'
/system/supplier/getSupplierComboBox
'
,
});
// 新增厂商
export
const
handleManufacturerAdd
=
(
data
:
ParamsAdd
)
=>
tmallabHttp
.
post
<
ResponseData
<
null
>>
({
url
:
'
/system/mfrCooperate/add
'
,
data
,
});
// 合作品牌
export
const
getBrandListApi
=
(
data
:
{
brand
:
string
})
=>
tmallabHttp
.
post
<
ResponseData
<
BrandList
[]
>>
({
url
:
'
/system/supplierBrandQualification/getApproveList
'
,
data
,
});
// 获取详情
export
const
getManuFactureDetail
=
(
data
:
{
supplierCode
:
string
})
=>
tmallabHttp
.
post
<
ResponseData
<
List
>>
({
url
:
'
/system/mfrCooperate/getOne
'
,
data
,
});
// 编辑
export
const
handleEditApi
=
(
data
:
ParamsAdd
)
=>
tmallabHttp
.
post
<
ResponseData
<
null
>>
({
url
:
'
/system/mfrCooperate/edit
'
,
data
,
});
src/assets/images/notOpened.png
View replaced file @
df1ed97b
View file @
e7607d8e
283 KB
|
W:
|
H:
216 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/const/manufacturer/index.ts
0 → 100644
View file @
e7607d8e
export
const
Status
=
{
0
:
'
已中止
'
,
1
:
'
进行中
'
}
export
const
DataContract
=
{
false
:
'
不允许非厂商数据存在
'
,
true
:
'
允许非厂商数据存在
'
}
src/main.ts
View file @
e7607d8e
...
...
@@ -4,6 +4,7 @@ import 'virtual:windi-components.css';
import
'
virtual:windi-utilities.css
'
;
// Register icon sprite
import
'
virtual:svg-icons-register
'
;
import
'
./styles/index.css
'
import
App
from
'
./App.vue
'
;
import
{
createApp
}
from
'
vue
'
;
import
{
initAppConfigStore
}
from
'
/@/logics/initAppConfig
'
;
...
...
src/router/routes/index.ts
View file @
e7607d8e
...
...
@@ -8,14 +8,14 @@ import { t } from '/@/hooks/web/useI18n';
const
modules
=
import
.
meta
.
globEager
(
'
./modules/**/*.ts
'
);
cons
t
routeModuleList
:
AppRouteModule
[]
=
[];
le
t
routeModuleList
:
AppRouteModule
[]
=
[];
const
hideModuleList
:
string
[]
=
[
'
/arbitration
'
,
'
/authorization
'
,
'
/complaints
'
];
Object
.
keys
(
modules
).
forEach
((
key
)
=>
{
const
mod
=
modules
[
key
].
default
||
{};
const
modList
=
Array
.
isArray
(
mod
)
?
[...
mod
]
:
[
mod
];
routeModuleList
.
push
(...
modList
);
});
routeModuleList
=
routeModuleList
.
filter
((
v
)
=>
!
hideModuleList
.
includes
(
v
.
path
));
export
const
asyncRoutes
=
[
PAGE_NOT_FOUND_ROUTE
,
...
routeModuleList
];
export
const
RootRoute
:
AppRouteRecordRaw
=
{
...
...
@@ -37,9 +37,4 @@ export const LoginRoute: AppRouteRecordRaw = {
};
// Basic routing without permission
export
const
basicRoutes
=
[
LoginRoute
,
RootRoute
,
...
mainOutRoutes
,
PAGE_NOT_FOUND_ROUTE
,
];
export
const
basicRoutes
=
[
LoginRoute
,
RootRoute
,
...
mainOutRoutes
,
PAGE_NOT_FOUND_ROUTE
];
src/store/modules/multipleTab.ts
View file @
e7607d8e
...
...
@@ -104,9 +104,18 @@ export const useMultipleTabStore = defineStore({
const
go
=
useGo
(
router
);
const
len
=
this
.
tabList
.
length
;
const
{
path
}
=
unref
(
router
.
currentRoute
);
let
toPath
:
PageEnum
|
string
=
PageEnum
.
BASE_HOME
;
//切换角色不跳转工作面板,工作面板页面未开发完成
const
userStore
=
useUserStore
();
const
roleList
=
toRaw
(
userStore
.
getRoleList
)
||
[];
const
isSuper
=
(
roleList
||
[]).
find
((
item
)
=>
item
===
'
super
'
);
const
isSupplier
=
(
roleList
||
[]).
find
((
item
)
=>
item
===
'
supplier
'
);
if
(
isSuper
)
{
toPath
=
'
/supplierInfoManage/index
'
;
}
if
(
isSupplier
)
{
toPath
=
'
/product
'
;
}
if
(
len
>
0
)
{
const
page
=
this
.
tabList
[
len
-
1
];
const
p
=
page
.
fullPath
||
page
.
path
;
...
...
src/store/modules/user.ts
View file @
e7607d8e
...
...
@@ -150,6 +150,13 @@ export const useUserStore = defineStore({
routes
.
forEach
((
route
)
=>
{
router
.
addRoute
(
route
as
unknown
as
RouteRecordRaw
);
});
//系统管理员
if
(
routes
.
findIndex
((
v
)
=>
v
.
path
===
'
/supplierInfoManage
'
)
!==
-
1
)
{
userInfo
.
homePath
=
'
/supplierInfoManage/index
'
;
//供货商
}
else
{
userInfo
.
homePath
=
'
/product
'
;
}
router
.
addRoute
(
PAGE_NOT_FOUND_ROUTE
as
unknown
as
RouteRecordRaw
);
permissionStore
.
setDynamicAddedRoute
(
true
);
}
...
...
src/styles/index.css
0 → 100644
View file @
e7607d8e
:root
{
--fy-bg-white
:
#fff
;
--fy-border-bottom-bg
:
#cdcdcd
}
src/types/manufacturer/index.ts
0 → 100644
View file @
e7607d8e
export
type
List
=
{
brandList
:
string
[];
cooperateStatus
:
number
;
createName
:
string
;
createTime
:
string
;
createUsername
:
string
;
dataControl
:
boolean
;
mfrCode
:
string
;
mfrName
:
string
;
mfrShortName
:
string
;
sysid
:
number
;
total
?:
number
;
};
export
type
Supplier
=
{
supplierCode
:
string
;
supplierName
:
string
;
};
export
type
ParamsList
=
{
currentPage
:
string
;
pageSize
:
string
;
};
export
type
ParamsAdd
=
{
ghsCode
:
string
|
undefined
;
cooperateStatus
:
number
;
brandList
:
string
|
string
[];
dataControl
:
boolean
;
mfrName
?:
string
;
};
export
type
BrandList
=
{
agentLevel
:
string
;
applierName
:
string
;
brand
:
string
;
brandPass
:
string
;
brandQualification
:
string
;
count
:
number
|
null
;
createTime
:
string
;
expirationDate
:
string
;
salePlat
:
number
;
};
src/views/manufacturer/index.vue
0 → 100644
View file @
e7607d8e
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
'
vue
'
;
import
{
useRouter
}
from
'
vue-router
'
;
import
{
getManufacturerListApi
}
from
'
/@/api/manufacturer
'
;
import
{
List
}
from
'
/@/types/manufacturer
'
;
import
{
Status
}
from
'
/@/const/manufacturer/
'
;
const
router
=
useRouter
();
const
data
=
ref
({
tableData
:
[]
as
List
[],
loading
:
false
,
current
:
1
,
total
:
50
,
});
onMounted
(()
=>
{
getList
();
});
const
getList
=
async
()
=>
{
data
.
value
.
loading
=
true
;
const
res
=
await
getManufacturerListApi
({
currentPage
:
'
1
'
,
pageSize
:
'
10
'
,
}).
finally
(()
=>
(
data
.
value
.
loading
=
false
));
if
(
res
.
message
)
{
data
.
value
.
tableData
=
res
.
data
;
data
.
value
.
total
=
res
.
data
.
length
;
}
};
</
script
>
<
template
>
<div
class=
"manufacturer-list"
>
<a-button
type=
"primary"
@
click=
"router.push('/manufacturer/operate')"
>
新增合作商
</a-button>
<a-table
:data-source=
"data.tableData"
:loading=
"data.loading"
bordered
:pagination=
"false"
>
<a-table-column
title=
"厂商编码"
align=
"center"
>
<template
#default
="
{ record }">
{{
record
.
mfrCode
}}
</
template
>
</a-table-column>
<a-table-column
title=
"厂商全称"
align=
"center"
>
<
template
#default
="{
record
}"
>
{{
record
.
mfrName
}}
</
template
>
</a-table-column>
<a-table-column
title=
"厂商简称"
align=
"center"
>
<
template
#default
="{
record
}"
>
{{
record
.
mfrShortName
}}
</
template
>
</a-table-column>
<a-table-column
title=
"合作品牌"
align=
"center"
>
<
template
#default
="{
record
}"
>
{{
record
.
brandList
.
join
(
'
,
'
)
}}
</
template
>
</a-table-column>
<a-table-column
title=
"创建时间"
align=
"center"
>
<
template
#default
="{
record
}"
>
{{
record
.
createTime
}}
</
template
>
</a-table-column>
<a-table-column
title=
"合作状态"
align=
"center"
>
<
template
#default
="{
record
}"
>
{{
Status
[
record
.
cooperateStatus
]
}}
</
template
>
</a-table-column>
<a-table-column
title=
"操作"
align=
"center"
:width=
"250"
>
<
template
#default
="{
record
}"
>
<a-button
type=
"link"
@
click=
"router.push(`/manufacturer/operate?supplierCode=$
{record.mfrCode}`)"
>编辑
</a-button
>
<a-button
type=
"link"
@
click=
"router.push(`/manufacturer/detail?supplierCode=$
{record.mfrCode}`)"
>查看
</a-button
>
</
template
>
</a-table-column>
</a-table>
<a-pagination
v-model:current=
"data.current"
:total=
"data.total"
show-less-items
/>
</div>
</template>
<
style
lang=
"less"
scoped
>
.manufacturer-list {
background-color: var(--fy-bg-white);
padding: 16px;
:deep(.ant-btn) {
margin-bottom: 16px;
}
:deep(.ant-pagination) {
text-align: right;
margin-top: 16px;
}
}
</
style
>
src/views/manufacturer/modules/detail.vue
0 → 100644
View file @
e7607d8e
<
script
setup
lang=
"ts"
>
import
{
ref
,
watch
}
from
'
vue
'
;
import
{
useRouter
,
useRoute
}
from
'
vue-router
'
;
import
{
getManuFactureDetail
}
from
'
/@/api/manufacturer
'
;
import
{
ParamsAdd
}
from
'
/@/types/manufacturer
'
;
import
{
Status
,
DataContract
}
from
'
/@/const/manufacturer
'
type
QueryData
=
{
supplierCode
:
string
|
undefined
;
};
const
router
=
useRouter
();
const
route
=
useRoute
();
const
request
=
route
.
query
as
QueryData
;
const
activeKey
=
ref
(
'
1
'
);
const
current
=
ref
(
1
);
const
total
=
ref
(
10
);
const
getDetail
=
async
()
=>
{
if
(
!
request
.
supplierCode
)
return
;
const
res
=
await
getManuFactureDetail
({
supplierCode
:
request
.
supplierCode
});
if
(
res
.
success
)
{
formData
.
value
=
{
ghsCode
:
res
.
data
.
mfrCode
,
brandList
:
res
.
data
.
brandList
,
cooperateStatus
:
res
.
data
.
cooperateStatus
,
dataControl
:
res
.
data
.
dataControl
,
mfrName
:
res
.
data
.
mfrName
,
};
}
};
watch
(
()
=>
activeKey
.
value
,
()
=>
{
getDetail
();
},
{
immediate
:
true
},
);
const
formData
=
ref
<
ParamsAdd
>
();
const
dataSource
=
[
{
name
:
'
艾伯康(上海)贸易有限公司
'
,
code
:
'
GSH0261
'
,
fanwei
:
'
北京;山东;山西;河南
'
,
pinpai
:
'
Abcam(艾伯康)
'
,
time
:
'
2023-01-02 15:00:01
'
,
},
];
const
columns
=
[
{
title
:
'
代理商编号
'
,
dataIndex
:
'
code
'
,
key
:
'
code
'
,
},
{
title
:
'
代理商全称
'
,
dataIndex
:
'
name
'
,
key
:
'
name
'
,
},
{
title
:
'
授权范围
'
,
dataIndex
:
'
fanwei
'
,
key
:
'
fanwei
'
,
},
{
title
:
'
授权品牌
'
,
dataIndex
:
'
pinpai
'
,
key
:
'
pinpai
'
,
},
{
title
:
'
添加时间
'
,
dataIndex
:
'
time
'
,
key
:
'
time
'
,
},
];
</
script
>
<
template
>
<div
class=
"manufacturer-detail"
>
<div
class=
"manufacturer-detail-top"
>
<a-button
type=
"primary"
@
click=
"router.push(`/manufacturer/operate?supplierCode=$
{request.supplierCode}`)">编辑
</a-button>
<a-button>
操作日志
</a-button>
</div>
<a-tabs
v-model:activeKey=
"activeKey"
>
<a-tab-pane
key=
"1"
tab=
"基本信息"
>
<a-form
:label-col=
"
{ span: 6 }" :wrapper-col="{ span: 18 }">
<a-form-item
label=
"供货商编码"
>
{{
formData
?.
ghsCode
}}
</a-form-item>
<a-form-item
label=
"供货商名称"
>
{{
formData
?.
mfrName
}}
</a-form-item>
<a-form-item
label=
"合作状态"
>
{{
Status
[
formData
?.
cooperateStatus
as
number
]
}}
</a-form-item>
<a-form-item
label=
"合作品牌"
>
{{
Array
.
isArray
(
formData
?.
brandList
)
&&
formData
?.
brandList
.
join
(
'
,
'
)
}}
</a-form-item>
<a-form-item
label=
"数据控制"
>
{{
DataContract
[
formData
?.
dataControl
+
''
]
}}
</a-form-item>
<!--
<a-form-item
label=
"合作渠道范围"
>
全国
<br
/>
指定省市:北京;山东;山西;河南
</a-form-item>
-->
</a-form>
</a-tab-pane>
<a-tab-pane
key=
"2"
tab=
"代理授权信息"
force-render
>
<a-table
bordered
:dataSource=
"dataSource"
:columns=
"columns"
:pagination=
"false"
/>
<a-pagination
v-model:current=
"current"
:total=
"total"
show-less-items
/>
</a-tab-pane>
</a-tabs>
</div>
</
template
>
<
style
lang=
"less"
scoped
>
.manufacturer-detail {
background-color: var(--fy-bg-white);
padding: 16px;
&-top {
padding-top: 32px;
text-align: right;
:deep(.ant-btn-primary) {
margin-right: 12px;
}
}
:deep(.ant-form) {
width: 30%;
}
:deep(.ant-pagination) {
text-align: right;
margin-top: 16px;
}
}
</
style
>
src/views/manufacturer/modules/operate.vue
0 → 100644
View file @
e7607d8e
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
'
vue
'
;
import
{
message
}
from
'
ant-design-vue
'
;
import
{
useRouter
,
useRoute
}
from
'
vue-router
'
;
import
{
handleManufacturerAdd
,
getManuFactureDetail
,
handleEditApi
}
from
'
/@/api/manufacturer
'
;
import
{
getSupplierApi
,
getBrandListApi
}
from
'
/@/api/manufacturer
'
;
import
{
Supplier
,
BrandList
,
ParamsAdd
}
from
'
/@/types/manufacturer
'
;
import
moment
from
'
moment
'
;
type
QueryData
=
{
supplierCode
:
string
|
undefined
;
};
const
router
=
useRouter
();
const
route
=
useRoute
();
const
request
=
route
.
query
as
QueryData
;
const
loading
=
ref
(
false
);
const
formData
=
ref
<
ParamsAdd
>
({
ghsCode
:
undefined
,
cooperateStatus
:
1
,
brandList
:
[],
dataControl
:
false
,
mfrName
:
''
});
const
getDetailApi
=
async
()
=>
{
if
(
!
request
.
supplierCode
)
return
;
const
res
=
await
getManuFactureDetail
({
supplierCode
:
request
.
supplierCode
});
if
(
res
.
success
)
{
formData
.
value
=
{
ghsCode
:
res
.
data
.
mfrCode
,
brandList
:
res
.
data
.
brandList
,
cooperateStatus
:
res
.
data
.
cooperateStatus
,
dataControl
:
res
.
data
.
dataControl
,
mfrName
:
res
.
data
.
mfrName
};
}
};
// const options = [
// { label: '北京', value: '北京' },
// { label: '天津', value: '天津' },
// { label: '山东', value: '山东' },
// { label: '河北', value: '河北' },
// { label: '北京', value: '北京' },
// { label: '天津', value: '天津' },
// { label: '山东', value: '山东' },
// { label: '河北', value: '河北' },
// { label: '北京', value: '北京' },
// { label: '天津', value: '天津' },
// { label: '山东', value: '山东' },
// { label: '河北', value: '河北' },
// { label: '北京', value: '北京' },
// { label: '天津', value: '天津' },
// { label: '山东', value: '山东' },
// { label: '河北', value: '河北' },
// ];
onMounted
(()
=>
{
getSupplier
();
getBrandList
();
getDetailApi
();
});
const
supplierList
=
ref
<
Supplier
[]
>
();
const
getSupplier
=
async
()
=>
{
const
res
=
await
getSupplierApi
();
supplierList
.
value
=
res
.
data
;
};
const
brandList
=
ref
<
BrandList
[]
>
();
const
brandLoading
=
ref
(
false
);
const
getBrandList
=
async
()
=>
{
brandLoading
.
value
=
true
;
const
res
=
await
getBrandListApi
({
brand
:
''
}).
finally
(()
=>
(
brandLoading
.
value
=
false
));
if
(
res
.
success
)
{
brandList
.
value
=
res
.
data
.
filter
(
(
e
)
=>
moment
(
e
.
expirationDate
).
valueOf
()
>=
moment
(
new
Date
()).
startOf
(
'
day
'
).
valueOf
(),
);
}
};
const
formRef
=
ref
();
const
submit
=
()
=>
{
formRef
.
value
.
validate
().
then
(
async
()
=>
{
loading
.
value
=
true
;
const
requestMethod
=
request
.
supplierCode
?
handleEditApi
:
handleManufacturerAdd
const
res
=
await
requestMethod
({
...(
formData
.
value
as
ParamsAdd
),
brandList
:
Array
.
isArray
(
formData
.
value
.
brandList
)
?
formData
.
value
.
brandList
.
join
(
'
,
'
)
:
''
,
}).
finally
(()
=>
(
loading
.
value
=
false
));
if
(
res
.
success
)
{
router
.
push
(
'
/manufacturer/index
'
);
message
.
success
(
res
.
message
);
}
else
{
message
.
warning
(
res
.
message
);
}
});
};
</
script
>
<
template
>
<div
class=
"manufacturer-operate"
>
<div
class=
"manufacturer-operate-top"
>
<a-button
@
click=
"router.push('/manufacturer/index')"
>
取消
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
:loading=
"loading"
>
提交
</a-button>
</div>
<a-form
:label-col=
"
{ span: 6 }" :wrapper-col="{ span: 18 }" :model="formData" ref="formRef">
<a-form-item
label=
"供货商编码"
v-if=
"request.supplierCode"
>
{{
formData
.
ghsCode
}}
</a-form-item>
<a-form-item
label=
"供货商名称"
name=
"ghsCode"
:rules=
"[
{
required: request.supplierCode ? false : true,
message: '请选择供货商名称',
trigger: 'change',
},
]"
>
<span
v-if=
"request.supplierCode"
>
{{
formData
.
mfrName
}}
</span>
<a-select
v-else
v-model:value=
"formData.ghsCode"
style=
"width: 100%"
placeholder=
"请选择供货商名称"
>
<template
v-for=
"item in supplierList"
:key=
"item.supplierCode"
>
<a-select-option
:value=
"item.supplierCode"
>
{{
item
.
supplierName
}}
</a-select-option>
</
template
>
</a-select>
</a-form-item>
<a-form-item
label=
"合作状态"
>
<a-radio
v-model:checked=
"formData.cooperateStatus"
disabled
>
进行中
</a-radio>
</a-form-item>
<a-form-item
label=
"合作品牌"
name=
"brandList"
:rules=
"[{ required: true, message: '请选择合作品牌', trigger: 'change' }]"
>
<a-select
v-loading=
"brandLoading"
v-model:value=
"formData.brandList"
mode=
"multiple"
style=
"width: 100%"
placeholder=
"请选择合作品牌"
>
<a-select-option
v-for=
"(item, index) in brandList"
:key=
"index"
:value=
"item.brand"
>
{{
item.brand
}}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
"数据控制"
name=
"dataControl"
:rules=
"[{ required: true, message: '请选择数据控制', trigger: 'change' }]"
>
<a-radio-group
v-model:value=
"formData.dataControl"
>
<a-radio
:value=
"true"
>
允许非厂商数据存在
</a-radio>
<a-radio
:value=
"false"
>
不允许非厂商数据存在
</a-radio>
</a-radio-group>
</a-form-item>
<!-- <a-form-item
label="合作渠道范围"
class="last-item"
name="fanwei"
:rules="[{ required: true, message: '合作渠道范围', trigger: 'change' }]"
>
<a-radio-group v-model:value="formData.fanwei">
<a-radio value="3">全国</a-radio>
<a-radio value="4">指定省市</a-radio>
</a-radio-group>
<a-checkbox-group
v-if="formData.fanwei === '4'"
v-model:value="formData.value1"
name="checkboxgroup"
:options="options"
/>
</a-form-item> -->
</a-form>
</div>
</template>
<
style
lang=
"less"
scoped
>
.manufacturer-operate {
background-color: var(--fy-bg-white);
padding: 16px;
&-top {
padding: 32px 0 16px;
margin-bottom: 16px;
text-align: right;
border-bottom: 1px solid var(--fy-border-bottom-bg);
:deep(.ant-btn-primary) {
margin-left: 12px;
}
}
:deep(.ant-form) {
width: 30%;
}
// .last-item {
// :deep(.ant-checkbox-group) {
// display: flex;
// flex-wrap: wrap;
// justify-content: space-between;
// margin-top: 12px;
// }
// :deep(.ant-checkbox-wrapper) {
// flex: 0 0 calc(50% - 12px);
// margin-bottom: 12px;
// margin-right: 12px;
// }
// :deep(.ant-radio-group) {
// display: flex;
// justify-content: space-between;
// }
// :deep(.ant-radio-wrapper) {
// flex: 0 0 calc(50% - 12px);
// margin-right: 12px;
// }
// }
}
</
style
>
src/views/super/regionalSpotManage/index.vue
View file @
e7607d8e
...
...
@@ -312,6 +312,9 @@
if
(
res
.
success
)
{
peopleData
.
value
=
res
.
data
.
filter
((
item
)
=>
item
.
type
==
1
);
rootData
.
value
=
res
.
data
.
filter
((
item
)
=>
item
.
type
==
0
);
platOptions
.
value
=
platOptions
.
value
.
filter
((
item
)
=>
{
return
!
res
.
data
.
some
((
ele
)
=>
ele
.
platCode
===
item
.
platCode
);
});
}
else
{
message
.
error
(
res
.
message
);
}
...
...
src/views/super/supplierInfoManage/供货商信息管理.vue
View file @
e7607d8e
...
...
@@ -30,7 +30,7 @@
<a-button
@
click=
"onReSet"
>
重置
</a-button>
</a-form-item>
<a-form-item>
<a-button
type=
"primary"
@
click=
"onSearch"
>
搜索
</a-button>
<a-button
type=
"primary"
@
click=
"onSearch"
>
查询
</a-button>
</a-form-item>
</a-form>
<a-table
...
...
@@ -1183,6 +1183,11 @@
supplierCode
:
currentItem
.
value
.
ghsCode
,
type
:
regionalSpotIsOpen
.
value
,
};
//未开通 清数据量太大,先关闭弹窗,接口报错不影响后端清数据
if
(
regionalSpotIsOpen
.
value
===
'
0
'
)
{
message
.
success
(
'
正在清理供应商现货管理的所有数据,请耐心等候!
'
);
cancelRegionalSpot
();
}
operateisScApi
(
param
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
message
.
success
(
res
.
message
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment