Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
51fc4931
提交
51fc4931
authored
7月 26, 2024
作者:
王天霸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
给老外加的需求
上级
e0a1f7a2
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
163 行增加
和
6 行删除
+163
-6
.env.development
.env.development
+2
-2
goods.js
src/api/module/goods.js
+8
-0
goodsinfomation.vue
src/views/system/goods/add/components/goodsinfomation.vue
+43
-1
goodsparameter.vue
src/views/system/goods/add/components/goodsparameter.vue
+57
-1
index.vue
src/views/system/goods/add/index.vue
+2
-0
orderDetail.vue
src/views/system/order/components/orderDetail.vue
+51
-2
没有找到文件。
.env.development
浏览文件 @
51fc4931
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
ENV = 'development'
ENV = 'development'
# 正式环境
# 正式环境
VUE_APP_BASE_API = 'http://pop.jxhh.com/api/v1'
#
VUE_APP_BASE_API = 'http://pop.jxhh.com/api/v1'
# 测试环境
# 测试环境
#
VUE_APP_BASE_API = 'http://192.168.26.179:6605/api/v1'
VUE_APP_BASE_API = 'http://192.168.26.179:6605/api/v1'
#VUE_APP_BASE_API = 'http://192.168.111.240:6605/api/v1'
#VUE_APP_BASE_API = 'http://192.168.111.240:6605/api/v1'
# 文档模块 直接调用 sys开放接口
# 文档模块 直接调用 sys开放接口
...
...
src/api/module/goods.js
浏览文件 @
51fc4931
...
@@ -172,3 +172,11 @@ export function goodsNewcopy(query) {
...
@@ -172,3 +172,11 @@ export function goodsNewcopy(query) {
params
:
query
params
:
query
})
})
}
}
export
function
getfeature
(
data
){
return
request
({
url
:
'/local/feature/list'
,
method
:
'post'
,
params
:
data
})
}
\ No newline at end of file
src/views/system/goods/add/components/goodsinfomation.vue
浏览文件 @
51fc4931
...
@@ -38,6 +38,16 @@
...
@@ -38,6 +38,16 @@
<el-input
v-model
.
trim=
"goodsInfoForm.conversion_unit"
placeholder=
"请输入换算关系都数量值"
style=
"width:420px;"
></el-input>
<el-input
v-model
.
trim=
"goodsInfoForm.conversion_unit"
placeholder=
"请输入换算关系都数量值"
style=
"width:420px;"
></el-input>
<span
class=
"tip-span ml20"
>
1包装单位=n计量单位,如:1箱=10个,请填写数字10
</span>
<span
class=
"tip-span ml20"
>
1包装单位=n计量单位,如:1箱=10个,请填写数字10
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品特性:"
prop=
"featuresid"
>
<el-select
v-model
.
trim=
"goodsInfoForm.featuresid"
@
change=
"featuresidclick"
placeholder=
"请选择商品特性"
style=
"width: 420px;"
>
<el-option
v-for=
"item in featuresall"
:key=
"item.id"
:label=
"item.value"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<!--
<el-form-item
label=
"商品产地:"
prop=
"producing_area_id_list"
>
<!--
<el-form-item
label=
"商品产地:"
prop=
"producing_area_id_list"
>
<el-cascader
ref=
"producing_area"
filterable
v-model
.
trim=
"goodsInfoForm.producing_area_id_list"
:props=
"areaProps"
placeholder=
"请选择"
<el-cascader
ref=
"producing_area"
filterable
v-model
.
trim=
"goodsInfoForm.producing_area_id_list"
:props=
"areaProps"
placeholder=
"请选择"
style=
"width:420px;"
size=
"mini"
@
change=
"matchIdName('producing_area')"
>
style=
"width:420px;"
size=
"mini"
@
change=
"matchIdName('producing_area')"
>
...
@@ -182,7 +192,7 @@
...
@@ -182,7 +192,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
NewGetCategoryData
,
UploadImg
,
getByCategoryData
,
uploadVideo
,
synthesisList
}
from
'@/api/module/goods'
import
{
NewGetCategoryData
,
UploadImg
,
getByCategoryData
,
uploadVideo
,
synthesisList
,
getfeature
}
from
'@/api/module/goods'
import
{
getBrandsInf
}
from
'@/api/module/brand/brand'
import
{
getBrandsInf
}
from
'@/api/module/brand/brand'
import
{
getAreaList
}
from
'@/api/module/retreat/address'
import
{
getAreaList
}
from
'@/api/module/retreat/address'
import
{
wareHoustList
}
from
"@/api/system/wareHouse"
;
import
{
wareHoustList
}
from
"@/api/system/wareHouse"
;
...
@@ -259,6 +269,7 @@
...
@@ -259,6 +269,7 @@
}
}
}
}
return
{
return
{
featuresall
:[],
dialogVisible
:
false
,
dialogVisible
:
false
,
dialogImageUrl
:
''
,
dialogImageUrl
:
''
,
videoflag
:
false
,
videoflag
:
false
,
...
@@ -298,6 +309,8 @@
...
@@ -298,6 +309,8 @@
metering_unit
:
''
,
// 计量单位
metering_unit
:
''
,
// 计量单位
packaging_unit
:
''
,
// 包装单位
packaging_unit
:
''
,
// 包装单位
conversion_unit
:
''
,
// 换算关系
conversion_unit
:
''
,
// 换算关系
features
:[],
//商品特性
featuresid
:
""
,
// ssfl: '', // 税收分类
// ssfl: '', // 税收分类
// tax_rate: 0, // 税率
// tax_rate: 0, // 税率
web_url
:
''
,
// 外部链接
web_url
:
''
,
// 外部链接
...
@@ -381,6 +394,8 @@
...
@@ -381,6 +394,8 @@
// this.getBrands();
// this.getBrands();
// 综合接口,获取仓库,供应商,商品分组,计量单位,默认返回第一页的数据
// 综合接口,获取仓库,供应商,商品分组,计量单位,默认返回第一页的数据
this
.
getSynthesisList
();
this
.
getSynthesisList
();
this
.
getFeatureList
()
},
},
mounted
()
{
mounted
()
{
if
(
this
.
goodsinfodata
.
goods_id
)
{
if
(
this
.
goodsinfodata
.
goods_id
)
{
...
@@ -413,6 +428,33 @@
...
@@ -413,6 +428,33 @@
this
.
getalllist
(
this
.
SSQGoodsList
)
this
.
getalllist
(
this
.
SSQGoodsList
)
},
},
methods
:
{
methods
:
{
featuresidclick
(
val
){
console
.
log
(
val
)
let
platForm
=
[]
if
(
this
.
featuresall
.
length
>
0
){
this
.
featuresall
.
map
(
item
=>
{
if
(
item
.
id
==
val
)
{
platForm
.
push
(
item
)
}
})
this
.
goodsInfoForm
.
features
=
platForm
}
},
getFeatureList
(){
let
data
=
{
page
:
1
,
limit
:
30
}
getfeature
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
){
if
(
res
.
data
.
length
==
0
){
}
else
{
this
.
featuresall
=
res
.
data
}
}
})
},
// 更多设置 初始化 数据
// 更多设置 初始化 数据
resetMoreSetting
()
{
resetMoreSetting
()
{
let
resetPartData
=
{
let
resetPartData
=
{
...
...
src/views/system/goods/add/components/goodsparameter.vue
浏览文件 @
51fc4931
...
@@ -53,6 +53,21 @@
...
@@ -53,6 +53,21 @@
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.volume"
placeholder=
"请输入"
></el-input>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.volume"
placeholder=
"请输入"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"长"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.length"
placeholder=
"请输入"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"宽"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.width"
placeholder=
"请输入"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"高"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.height"
placeholder=
"请输入"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"编码"
>
<el-table-column
align=
"center"
label=
"编码"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.goods_code"
placeholder=
"请输入"
></el-input>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.goods_code"
placeholder=
"请输入"
></el-input>
...
@@ -241,7 +256,42 @@
...
@@ -241,7 +256,42 @@
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.volume"
placeholder=
"请输入"
></el-input>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.volume"
placeholder=
"请输入"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"length"
label=
"长"
>
<
template
slot=
"header"
>
<span>
长
</span>
<el-tooltip
placemetn=
"top"
>
<span
slot=
"content"
>
点击可批量设置
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('length')"
></span>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.length"
placeholder=
"请输入"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"width"
label=
"宽"
>
<
template
slot=
"header"
>
<span>
宽
</span>
<el-tooltip
placemetn=
"top"
>
<span
slot=
"content"
>
点击可批量设置
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('width')"
></span>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.width"
placeholder=
"请输入"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"height"
label=
"高"
>
<
template
slot=
"header"
>
<span>
高
</span>
<el-tooltip
placemetn=
"top"
>
<span
slot=
"content"
>
点击可批量设置
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('height')"
></span>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.height"
placeholder=
"请输入"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"goods_code"
label=
"编码"
>
<el-table-column
align=
"center"
prop=
"goods_code"
label=
"编码"
>
<
template
slot=
"header"
>
<
template
slot=
"header"
>
<span>
编码
</span>
<span>
编码
</span>
...
@@ -395,6 +445,9 @@ export default {
...
@@ -395,6 +445,9 @@ export default {
stock_warning
:
''
,
// 库存预警
stock_warning
:
''
,
// 库存预警
weight
:
''
,
// 重量 g
weight
:
''
,
// 重量 g
volume
:
''
,
// 体积
volume
:
''
,
// 体积
length
:
''
,
width
:
''
,
height
:
''
,
goods_code
:
''
,
// 编码
goods_code
:
''
,
// 编码
bar_code
:
''
,
// 条码
bar_code
:
''
,
// 条码
}
}
...
@@ -451,6 +504,9 @@ export default {
...
@@ -451,6 +504,9 @@ export default {
stock_warning
:
''
,
// 库存预警
stock_warning
:
''
,
// 库存预警
weight
:
''
,
// 重量 g
weight
:
''
,
// 重量 g
volume
:
''
,
// 体积
volume
:
''
,
// 体积
length
:
''
,
width
:
''
,
height
:
''
,
goods_code
:
''
,
// 编码
goods_code
:
''
,
// 编码
bar_code
:
''
,
// 条码
bar_code
:
''
,
// 条码
}
}
...
...
src/views/system/goods/add/index.vue
浏览文件 @
51fc4931
...
@@ -232,6 +232,8 @@
...
@@ -232,6 +232,8 @@
goods_des
:
res
.
data
.
goods_des
,
// 商品标签
goods_des
:
res
.
data
.
goods_des
,
// 商品标签
goods_name
:
res
.
data
.
goods_name
,
// 商品标题
goods_name
:
res
.
data
.
goods_name
,
// 商品标题
category_id
:
res
.
data
.
category_id
,
category_id
:
res
.
data
.
category_id
,
features
:
res
.
data
.
features
,
featuresid
:
res
.
data
.
features
.
length
>
0
?
res
.
data
.
features
[
0
].
id
:
''
,
metering_unit
:
res
.
data
.
metering_unit
!==
0
?
res
.
data
.
metering_unit
:
""
,
// 计量单位, 三目兼容老数据
metering_unit
:
res
.
data
.
metering_unit
!==
0
?
res
.
data
.
metering_unit
:
""
,
// 计量单位, 三目兼容老数据
packaging_unit
:
res
.
data
.
packaging_unit
!==
0
?
res
.
data
.
packaging_unit
:
""
,
// 包装单位
packaging_unit
:
res
.
data
.
packaging_unit
!==
0
?
res
.
data
.
packaging_unit
:
""
,
// 包装单位
conversion_unit
:
res
.
data
.
conversion_unit
,
// 换算关系
conversion_unit
:
res
.
data
.
conversion_unit
,
// 换算关系
...
...
src/views/system/order/components/orderDetail.vue
浏览文件 @
51fc4931
...
@@ -43,6 +43,26 @@
...
@@ -43,6 +43,26 @@
x
{{
scope
.
row
.
total
}}
x
{{
scope
.
row
.
total
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"长/宽/高"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
length
}}
<br/>
{{
scope
.
row
.
width
}}
<br/>
{{
scope
.
row
.
height
}}
</
template
>
</el-table-column>
<el-table-column
label=
"国家/邮箱/邮编"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
orderDetail
.
country
}}
<br/>
{{
orderDetail
.
email
}}
<br/>
{{
orderDetail
.
postal_code
}}
</
template
>
</el-table-column>
<el-table-column
label=
"商品特性"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
features
.
length
>
0
?
scope
.
row
.
features
[
0
].
value
:
''
}}
</
template
>
</el-table-column>
<el-table-column
label=
"商品订单状态"
align=
"center"
>
<el-table-column
label=
"商品订单状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
goodsStatusFormatter
(
scope
.
row
.
goods_status
)
}}
{{
goodsStatusFormatter
(
scope
.
row
.
goods_status
)
}}
...
@@ -294,6 +314,7 @@
...
@@ -294,6 +314,7 @@
<
script
>
<
script
>
import
{
orderInfo
,
sendOrder
,
expressInfoNew
,
remarkOrder
,
orderInfoEdit
,
deliveryOrder
,
deliveryOrderAgain
,
toReissueOrderData
,
expressList
}
from
'@/api/module/order'
import
{
orderInfo
,
sendOrder
,
expressInfoNew
,
remarkOrder
,
orderInfoEdit
,
deliveryOrder
,
deliveryOrderAgain
,
toReissueOrderData
,
expressList
}
from
'@/api/module/order'
import
{
getfeature
}
from
'@/api/module/goods'
import
{
dateFormat
}
from
'@/utils'
import
{
dateFormat
}
from
'@/utils'
import
{
getAreaList
}
from
'@/api/module/retreat/address'
import
{
getAreaList
}
from
'@/api/module/retreat/address'
export
default
{
export
default
{
...
@@ -312,6 +333,7 @@ export default {
...
@@ -312,6 +333,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
features
:
''
,
radioshop
:
1
,
radioshop
:
1
,
expressNum
:
''
,
expressNum
:
''
,
express_sn
:
''
,
express_sn
:
''
,
...
@@ -348,8 +370,35 @@ export default {
...
@@ -348,8 +370,35 @@ export default {
},
},
watch
:
{},
watch
:
{},
created
()
{},
created
()
{},
mounted
()
{},
mounted
()
{
this
.
getFeatureList
()
},
methods
:
{
methods
:
{
getFeatureList
(){
let
data
=
{
page
:
1
,
limit
:
30
}
getfeature
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
){
if
(
res
.
data
.
length
==
0
){
}
else
{
this
.
platformList
=
res
.
data
}
}
})
},
getfeatures
(
arr
){
let
ids
=
arr
[
0
].
id
let
platForm
=
''
platformList
.
map
(
item
=>
{
if
(
item
.
id
==
ids
)
{
platForm
=
item
.
value
}
})
return
platForm
},
radioshopclick
(){
radioshopclick
(){
this
.
express_sn
=
''
this
.
express_sn
=
''
this
.
expressNum
=
''
this
.
expressNum
=
''
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论