Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
黄媛媛
ElectricitySheep
Commits
9c14ab9f
Commit
9c14ab9f
authored
Oct 28, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
df693643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
serviceProductEdit.vue
src/components/offlineService/serviceProductEdit.vue
+23
-24
No files found.
src/components/offlineService/serviceProductEdit.vue
View file @
9c14ab9f
...
...
@@ -371,13 +371,13 @@
</el-input>
</el-form-item>
<el-form-item
label=
"限购数量"
>
<el-input
:disabled=
"BuyGoodsNumState"
v-model=
"addMsg.LimitBuyGoodsNum"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容
"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
件
</el-button>
</el-input>
<el-checkbox
v-model=
"BuyGoodsNumState"
@
change=
"BuyGoodsNumState==true? addMsg.LimitBuyGoodsNum=-1:addMsg.LimitBuyGoodsNum=0"
>
不限制
</el-checkbox>
<el-input
:disabled=
"BuyGoodsNumState"
v-model=
"addMsg.LimitBuyGoodsNum"
type=
"number"
min=
"1
"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
件
</el-button>
</el-input>
<el-checkbox
v-model=
"BuyGoodsNumState"
@
change=
"BuyGoodsNumState==true? addMsg.LimitBuyGoodsNum=-1:addMsg.LimitBuyGoodsNum=0"
>
不限制
</el-checkbox>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -604,11 +604,8 @@
</div>
</el-form-item>
<el-form-item
label=
"是否选择服务人员"
>
<el-switch
v-model=
"addMsg.IsChooseServicePerson"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
<el-switch
v-model=
"addMsg.IsChooseServicePerson"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"门店"
>
...
...
@@ -1158,7 +1155,7 @@
DepositMoney
:
''
,
//定金
GoodsClassify
:
3
,
//商品分类 0正常商品 1司导商品 2教育商品,3-线下服务产品
StoresIds
:
''
,
//门店编号
IsChooseServicePerson
:
0
//是否选择服务人员 0-不选 1选择
IsChooseServicePerson
:
0
//是否选择服务人员 0-不选 1选择
},
predefineColors
:
[
'#000000'
,
...
...
@@ -1261,7 +1258,7 @@
companyCommission
:
0
,
FXlevelList
:
[],
giveDate
:
false
,
Stores
:
''
,
Stores
:
''
,
StoreList
:
[],
//门店下拉数据
};
},
...
...
@@ -1791,7 +1788,7 @@
// return
// }
if
(
this
.
Stores
.
length
>
0
)
{
if
(
this
.
Stores
.
length
>
0
)
{
this
.
addMsg
.
StoresIds
=
JSON
.
stringify
(
this
.
Stores
);
}
...
...
@@ -1854,7 +1851,7 @@
this
.
addMsg
.
MarketingLogo
.
wordsBack
=
''
;
}
this
.
addMsg
.
MarketingLogo
=
JSON
.
stringify
(
this
.
addMsg
.
MarketingLogo
)
this
.
apipost
(
"/api/OSGoods/Set
Product
GoodsInfo"
,
this
.
addMsg
,
res
=>
{
this
.
apipost
(
"/api/OSGoods/SetGoodsInfo"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
CommonJump
(
"serviceProductList"
);
...
...
@@ -2064,11 +2061,10 @@
getcode
()
{
//编码获取详情
this
.
GoodsId
=
this
.
addMsg
.
Id
;
this
.
getData
()
},
getData
()
{
this
.
apipost
(
"/api/OSGoods/Get
OfflineGoodsPageList
"
,
{
"/api/OSGoods/Get
GoodsInfo
"
,
{
GoodsId
:
this
.
GoodsId
},
res
=>
{
...
...
@@ -2086,7 +2082,7 @@
this
.
initShareSettings
();
this
.
SpecificationPriceList
=
this
.
addMsg
.
SpecificationPriceList
;
this
.
ComTreeList
=
this
.
addMsg
.
DistributionCommissionTreeList
;
if
(
this
.
addMsg
.
SpecificationList
)
{
if
(
this
.
addMsg
.
SpecificationList
)
{
this
.
SpecificationList
=
this
.
addMsg
.
SpecificationList
;
}
if
(
this
.
SpecificationList
.
length
>
0
)
{
//根据编码来的详情 重新调用这个方法 否则分销详情设置没有数据
...
...
@@ -2099,7 +2095,7 @@
}
}
if
(
this
.
addMsg
.
StoresIds
)
{
if
(
this
.
addMsg
.
StoresIds
)
{
this
.
Stores
=
JSON
.
parse
(
this
.
addMsg
.
StoresIds
);
}
...
...
@@ -2116,10 +2112,13 @@
this
.
defaultMsg
=
this
.
addMsg
.
GoodsDetails
;
}
this
.
NewCategoryList
=
[];
this
.
addMsg
.
CategoryList
.
forEach
(
item
=>
{
item
.
Name
=
item
.
CategoryName
;
this
.
NewCategoryList
.
push
(
item
.
CategoryId
);
});
if
(
this
.
addMsg
.
CategoryList
&&
this
.
addMsg
.
CategoryList
.
length
>
0
)
{
this
.
addMsg
.
CategoryList
.
forEach
(
item
=>
{
item
.
Name
=
item
.
CategoryName
;
this
.
NewCategoryList
.
push
(
item
.
CategoryId
);
});
}
if
(
this
.
hpState
==
1
)
{
this
.
addMsg
.
SeparateDistribution
=
0
;
}
...
...
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