Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
2531852e
提交
2531852e
编写于
2月 02, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
auto commit
上级
793fad8e
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
21 行增加
和
5 行删除
+21
-5
gitPush.sh
gitPush.sh
+1
-1
package.json
package.json
+1
-1
forms.js
src/views/goods/common/forms.js
+1
-0
rules.js
src/views/goods/common/rules.js
+1
-0
create-good-new.vue
src/views/goods/create-good-new.vue
+9
-0
goods-manage.vue
src/views/goods/goods-manage.vue
+8
-3
未找到文件。
gitPush.sh
浏览文件 @
2531852e
...
@@ -7,7 +7,7 @@ if [ ! $hasGit ];then
...
@@ -7,7 +7,7 @@ if [ ! $hasGit ];then
else
else
git fetch
--all
git fetch
--all
result
=
`
git symbolic-ref
--short
-q
HEAD
`
# 获取分支名
result
=
`
git symbolic-ref
--short
-q
HEAD
`
# 获取分支名
current_id
=
`
git log
-n
1 release
--pretty
=
format:
"%H"
`
current_id
=
`
git log
-n
1
origin/
release
--pretty
=
format:
"%H"
`
git reset
--soft
$current_id
git reset
--soft
$current_id
git add
.
git add
.
git commit
-m
"
$msg
"
git commit
-m
"
$msg
"
...
...
package.json
浏览文件 @
2531852e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"private"
:
true
,
"private"
:
true
,
"license"
:
"GPL"
,
"license"
:
"GPL"
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"cross-env BUILD_ENV=
developmen
t node build/dev-server.js"
,
"dev"
:
"cross-env BUILD_ENV=
tes
t node build/dev-server.js"
,
"local"
:
"cross-env BUILD_ENV=development node build/dev-server.js"
,
"local"
:
"cross-env BUILD_ENV=development node build/dev-server.js"
,
"build"
:
"node build/build.js"
,
"build"
:
"node build/build.js"
,
"build:dev"
:
"cross-env BUILD_ENV=dev node build/build.js"
,
"build:dev"
:
"cross-env BUILD_ENV=dev node build/build.js"
,
...
...
src/views/goods/common/forms.js
浏览文件 @
2531852e
...
@@ -21,6 +21,7 @@ const form = {
...
@@ -21,6 +21,7 @@ const form = {
incrStock
:
""
,
//增加库存
incrStock
:
""
,
//增加库存
storeId
:
""
,
storeId
:
""
,
optPrice
:
""
,
optPrice
:
""
,
realCostPrice
:
""
,
scorePerformance
:
0
,
scorePerformance
:
0
,
goodsStock
:
0
,
goodsStock
:
0
,
stock
:
0
,
stock
:
0
,
...
...
src/views/goods/common/rules.js
浏览文件 @
2531852e
...
@@ -107,6 +107,7 @@ const rules = {
...
@@ -107,6 +107,7 @@ const rules = {
// { validator: checkBarcode, trigger: "
blur
" },
// { validator: checkBarcode, trigger: "
blur
" },
// ],
// ],
optPrice: [{ required: true, message: "
请输入价格
", trigger: "
blur
" }],
optPrice: [{ required: true, message: "
请输入价格
", trigger: "
blur
" }],
realCostPrice: [{ required: true, message: "
请输入价格
", trigger: "
blur
" }],
saleType: [{ required: true, message: "
请选择销售方式
", trigger: "
change
" }],
saleType: [{ required: true, message: "
请选择销售方式
", trigger: "
change
" }],
stock: [{ required: true, message: "
请输入库存
", trigger: "
blur
" }],
stock: [{ required: true, message: "
请输入库存
", trigger: "
blur
" }],
minWhole: [{ required: true, message: "
请输入最小起批
", trigger: "
blur
" }],
minWhole: [{ required: true, message: "
请输入最小起批
", trigger: "
blur
" }],
...
...
src/views/goods/create-good-new.vue
浏览文件 @
2531852e
...
@@ -249,6 +249,13 @@
...
@@ -249,6 +249,13 @@
</el-col>
</el-col>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"inline"
>
<el-form-item
label=
"成本价"
prop=
"realCostPrice"
>
<el-col
:span=
"20"
>
<el-input-number
class=
"stock-com"
@
input=
"$forceUpdate();"
v-model=
"formData.realCostPrice"
size=
"small"
:precision=
"2"
:min=
"0.00"
:max=
"99999.99"
></el-input-number>
</el-col>
</el-form-item>
</div>
<div
class=
"inline"
v-if=
"formData.saleType == 2"
>
<div
class=
"inline"
v-if=
"formData.saleType == 2"
>
<el-form-item
label=
"批发价"
prop=
"optPrice"
>
<el-form-item
label=
"批发价"
prop=
"optPrice"
>
<el-col
:span=
"20"
>
<el-col
:span=
"20"
>
...
@@ -1056,6 +1063,7 @@
...
@@ -1056,6 +1063,7 @@
this
.
buyLimitDtoList
=
this
.
formData
.
buyLimitDtoList
;
this
.
buyLimitDtoList
=
this
.
formData
.
buyLimitDtoList
;
this
.
formData
.
expressLimitFlag
=
expressLimitFlag
;
this
.
formData
.
expressLimitFlag
=
expressLimitFlag
;
this
.
formData
.
optPrice
=
this
.
formData
.
costPrice
/
100
;
this
.
formData
.
optPrice
=
this
.
formData
.
costPrice
/
100
;
this
.
formData
.
realCostPrice
=
this
.
formData
.
realCostPrice
/
100
;
this
.
formData
.
scorePerformance
=
this
.
formData
.
scorePerformance
/
100
;
this
.
formData
.
scorePerformance
=
this
.
formData
.
scorePerformance
/
100
;
this
.
fileGoodsList
=
this
.
getImges
(
goodDet
.
goodsImgList
,
1
);
this
.
fileGoodsList
=
this
.
getImges
(
goodDet
.
goodsImgList
,
1
);
this
.
fileIntrList
=
this
.
getImges
(
goodDet
.
goodsDetailImageList
,
2
);
this
.
fileIntrList
=
this
.
getImges
(
goodDet
.
goodsDetailImageList
,
2
);
...
@@ -1249,6 +1257,7 @@
...
@@ -1249,6 +1257,7 @@
return
false
;
return
false
;
}
else
{
}
else
{
this
.
formData
.
costPrice
=
signFigures
(
this
.
formData
.
optPrice
*
100
,
10
);
this
.
formData
.
costPrice
=
signFigures
(
this
.
formData
.
optPrice
*
100
,
10
);
this
.
formData
.
realCostPrice
=
signFigures
(
this
.
formData
.
realCostPrice
*
100
,
10
);
this
.
formData
.
hasChanged
=
true
;
this
.
formData
.
hasChanged
=
true
;
this
.
formData
.
inputType
=
this
.
inputType
;
this
.
formData
.
inputType
=
this
.
inputType
;
this
.
updateGoodsInfo
();
this
.
updateGoodsInfo
();
...
...
src/views/goods/goods-manage.vue
浏览文件 @
2531852e
...
@@ -144,6 +144,11 @@
...
@@ -144,6 +144,11 @@
<span>
{{
scope
.
row
.
costPrice
|
rangePrice
}}
</span>
<span>
{{
scope
.
row
.
costPrice
|
rangePrice
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"realCostPrice"
label=
"成本价"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
realCostPrice
|
rangePrice
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"commissionType"
v-if=
"commissionFlag == 2"
label=
"分佣方式"
width=
"150"
align=
"center"
>
<el-table-column
prop=
"commissionType"
v-if=
"commissionFlag == 2"
label=
"分佣方式"
width=
"150"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
commissionType
|
commissionTypeFormat
}}
</span>
<span>
{{
scope
.
row
.
commissionType
|
commissionTypeFormat
}}
</span>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录