Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
ad02b284
提交
ad02b284
编写于
2月 22, 2022
作者:
shuang.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去除业务类型
上级
0f5c3529
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
15 行删除
+15
-15
create-good.vue
src/views/goods/create-good.vue
+14
-14
forms.js
src/views/goods/forms.js
+1
-1
未找到文件。
src/views/goods/create-good.vue
浏览文件 @
ad02b284
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</el-progress>
</el-progress>
<el-button
class=
"dl-video"
icon=
"el-icon-delete"
circle
@
click=
"deleteVideo"
v-if=
"videoList.length == 1"
></el-button>
<el-button
class=
"dl-video"
icon=
"el-icon-delete"
circle
@
click=
"deleteVideo"
v-if=
"videoList.length == 1"
></el-button>
</el-form-item>
</el-form-item>
<el-form-item
label=
"业务类型"
prop=
"businessCategoryId"
>
<
!--
<
el-form-item
label=
"业务类型"
prop=
"businessCategoryId"
>
<el-select
<el-select
v-model=
"formData3.businessCategoryId"
v-model=
"formData3.businessCategoryId"
placeholder=
"请选择业务类型"
placeholder=
"请选择业务类型"
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
:value=
"item.id"
:value=
"item.id"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"商品类型"
prop=
"goodsType"
>
<el-form-item
label=
"商品类型"
prop=
"goodsType"
>
<el-select
<el-select
v-model=
"formData3.goodsType"
v-model=
"formData3.goodsType"
...
@@ -1042,7 +1042,7 @@
...
@@ -1042,7 +1042,7 @@
videoModel
:{
videoModel
:{
videoFullPath
:
''
videoFullPath
:
''
},
},
businessCategoryList
:[],
//
businessCategoryList:[],
sumFile
:
0
,
sumFile
:
0
,
uploadProgress
:
0
,
// 上传视频进度条
uploadProgress
:
0
,
// 上传视频进度条
cooperationProjectList
:
[],
// 合作项目
cooperationProjectList
:
[],
// 合作项目
...
@@ -1135,13 +1135,13 @@
...
@@ -1135,13 +1135,13 @@
this
.
getContractList
(
projectId
);
this
.
getContractList
(
projectId
);
},
},
// 获取业务类型
// 获取业务类型
getBusinessCategory
(){
//
getBusinessCategory(){
getBusinessCategory
().
then
((
res
)
=>
{
//
getBusinessCategory().then((res) => {
if
(
res
.
code
==
'000000'
)
{
//
if (res.code == '000000') {
this
.
businessCategoryList
=
res
.
data
//
this.businessCategoryList=res.data
}
//
}
}).
catch
((
err
)
=>
{})
//
}).catch((err)=>{})
},
//
},
// 判断imgurl是否有效
// 判断imgurl是否有效
checkImgExists
(
imgurl
)
{
checkImgExists
(
imgurl
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
...
@@ -1191,13 +1191,13 @@
...
@@ -1191,13 +1191,13 @@
};
};
const
{
goodsInfo
,
medicalService
,
buyLimitDtoList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsInfo
,
medicalService
,
buyLimitDtoList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsName
,
goodsDescription
,
goodsType
,
businessCategoryId
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[],
contractId
,
cooperationProjectId
}
=
goodsInfo
;
const
{
goodsName
,
goodsDescription
,
goodsType
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[],
contractId
,
cooperationProjectId
}
=
goodsInfo
;
this
.
isProject
=
cooperationProjectId
;
this
.
isProject
=
cooperationProjectId
;
this
.
isContract
=
contractId
;
this
.
isContract
=
contractId
;
this
.
formData
=
{...
this
.
formData
,
...
goodsInfo
};
this
.
formData
=
{...
this
.
formData
,
...
goodsInfo
};
this
.
formData2
=
medicalService
;
this
.
formData2
=
medicalService
;
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData2
};
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData2
};
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
businessCategoryId
,
expressLimitFlag
,
cooperationProjectId
,
contractId
};
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
expressLimitFlag
,
cooperationProjectId
,
contractId
};
this
.
buyLimitDtoList
=
buyLimitDtoList
;
this
.
buyLimitDtoList
=
buyLimitDtoList
;
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
$set
(
this
.
formData2
,
'suitableArr'
,
this
.
formData
.
suitable
.
split
(
','
));
this
.
$set
(
this
.
formData2
,
'suitableArr'
,
this
.
formData
.
suitable
.
split
(
','
));
...
@@ -1249,14 +1249,14 @@
...
@@ -1249,14 +1249,14 @@
});
});
}
}
const
{
goodsList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsName
,
goodsDescription
,
goodsType
,
businessCategoryId
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[],
contractId
,
cooperationProjectId
}
=
goodsList
[
0
];
const
{
goodsName
,
goodsDescription
,
goodsType
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[],
contractId
,
cooperationProjectId
}
=
goodsList
[
0
];
const
goodDet
=
goodsList
[
0
];
const
goodDet
=
goodsList
[
0
];
goodDet
.
otc1
=
goodDet
.
otc
?
'1'
:
'0'
;
goodDet
.
otc1
=
goodDet
.
otc
?
'1'
:
'0'
;
this
.
isProject
=
cooperationProjectId
;
this
.
isProject
=
cooperationProjectId
;
this
.
isContract
=
contractId
;
this
.
isContract
=
contractId
;
this
.
formData1
=
goodDet
;
this
.
formData1
=
goodDet
;
this
.
formData
=
goodDet
;
this
.
formData
=
goodDet
;
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
businessCategoryId
,
expressLimitFlag
,
contractId
,
cooperationProjectId
};
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
expressLimitFlag
,
contractId
,
cooperationProjectId
};
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
buyLimitDtoList
=
this
.
formData
.
buyLimitDtoList
;
this
.
buyLimitDtoList
=
this
.
formData
.
buyLimitDtoList
;
this
.
formData
.
optPrice
=
this
.
formData
.
costPrice
/
100
;
this
.
formData
.
optPrice
=
this
.
formData
.
costPrice
/
100
;
...
...
src/views/goods/forms.js
浏览文件 @
ad02b284
...
@@ -76,7 +76,7 @@ const form3 = {
...
@@ -76,7 +76,7 @@ const form3 = {
goodsHeaderImages
:
[],
goodsHeaderImages
:
[],
goodsVideoList
:
[],
goodsVideoList
:
[],
goodsType
:
""
,
goodsType
:
""
,
businessCategoryId
:
""
,
//
businessCategoryId: "",
expressLimitFlag
:
0
,
//是否支持退货退款
expressLimitFlag
:
0
,
//是否支持退货退款
cooperationProjectId
:
''
,
// 合作项目id
cooperationProjectId
:
''
,
// 合作项目id
contractId
:
''
,
// 合同id
contractId
:
''
,
// 合同id
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录