Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
be40418f
提交
be40418f
编写于
2月 22, 2022
作者:
shuang.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
下拉框改动
上级
8bf7f702
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
17 行增加
和
5 行删除
+17
-5
create-good.vue
src/views/goods/create-good.vue
+17
-5
未找到文件。
src/views/goods/create-good.vue
浏览文件 @
be40418f
...
@@ -141,13 +141,14 @@
...
@@ -141,13 +141,14 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<!-- 新增项目合同名称 -->
<!-- 新增项目合同名称 -->
<el-form-item
label=
"项目名称"
prop=
"cooperationProjectId"
>
<el-form-item
label=
"项目
-合同
名称"
prop=
"cooperationProjectId"
>
<el-select
<el-select
v-model=
"formData3.cooperationProjectId"
v-model=
"formData3.cooperationProjectId"
placeholder=
"请选择"
placeholder=
"请选择"
size=
"small"
size=
"small"
:disabled=
"isEdit && isProject"
:disabled=
"isEdit && isProject"
@
change=
"getContract"
@
change=
"getContract"
clearable
filterable
>
filterable
>
<el-option
<el-option
v-for=
"(item,index) in cooperationProjectList"
v-for=
"(item,index) in cooperationProjectList"
...
@@ -156,12 +157,11 @@
...
@@ -156,12 +157,11 @@
:value=
"item.cooperationProjectId"
:value=
"item.cooperationProjectId"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
<el-form-item
label=
"合同名称"
prop=
"contractId"
>
<el-select
<el-select
v-model=
"formData3.contractId"
v-model=
"formData3.contractId"
placeholder=
"请选择"
placeholder=
"请选择"
size=
"small"
size=
"small"
clearable
:disabled=
"isEdit && isContract"
>
:disabled=
"isEdit && isContract"
>
<el-option
<el-option
v-for=
"(item,index) in contractList"
v-for=
"(item,index) in contractList"
...
@@ -172,7 +172,6 @@
...
@@ -172,7 +172,6 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否支持售后"
prop=
"expressLimitFlag"
v-if=
"storeType
<
3
"
>
<el-form-item
label=
"是否支持售后"
prop=
"expressLimitFlag"
v-if=
"storeType
<
3
"
>
<el-radio-group
v-model=
"formData3.expressLimitFlag"
:disabled=
"!hasRepoFlag"
>
<el-radio-group
v-model=
"formData3.expressLimitFlag"
:disabled=
"!hasRepoFlag"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"1"
>
是
</el-radio>
...
@@ -1083,7 +1082,6 @@
...
@@ -1083,7 +1082,6 @@
// this.getBusinessCategory();
// this.getBusinessCategory();
this
.
getLever
(
0
,
1
)
this
.
getLever
(
0
,
1
)
this
.
getCooperationProjectList
();
this
.
getCooperationProjectList
();
this
.
getContractList
();
dosageAll
().
then
((
res
)
=>
{
dosageAll
().
then
((
res
)
=>
{
this
.
doseAll
=
res
.
data
this
.
doseAll
=
res
.
data
if
(
!
this
.
doseAll
)
{
if
(
!
this
.
doseAll
)
{
...
@@ -1472,6 +1470,13 @@
...
@@ -1472,6 +1470,13 @@
},
},
updateStock
(){
updateStock
(){
let
r
=
/^
\+?[
1-9
][
0-9
]
*$/
;
let
r
=
/^
\+?[
1-9
][
0-9
]
*$/
;
const
{
cooperationProjectId
,
contractId
}
=
this
.
formData3
;
if
((
cooperationProjectId
&&
!
contractId
)
||
(
!
cooperationProjectId
&&
contractId
))
{
return
this
.
$message
({
message
:
'请选择项目-合同名称'
,
type
:
'warning'
});
}
//造假 接口来了删掉
//造假 接口来了删掉
if
(
this
.
stock
.
num
<=
0
){
if
(
this
.
stock
.
num
<=
0
){
return
this
.
$message
({
return
this
.
$message
({
...
@@ -1553,6 +1558,13 @@
...
@@ -1553,6 +1558,13 @@
this
.
formData
.
specificationImages
=
this
.
fileIntrList
;
this
.
formData
.
specificationImages
=
this
.
fileIntrList
;
this
.
formData
.
buyLimitDtoList
=
this
.
buyLimitDtoList
;
this
.
formData
.
buyLimitDtoList
=
this
.
buyLimitDtoList
;
this
.
isgoodsImages
=
this
.
formData
.
goodsImages
.
length
==
0
?
false
:
true
;
this
.
isgoodsImages
=
this
.
formData
.
goodsImages
.
length
==
0
?
false
:
true
;
const
{
cooperationProjectId
,
contractId
}
=
this
.
formData3
;
if
((
cooperationProjectId
&&
!
contractId
)
||
(
!
cooperationProjectId
&&
contractId
))
{
return
this
.
$message
({
message
:
'请选择项目-合同名称'
,
type
:
'warning'
});
}
// 如果是【药品】类型的商品
// 如果是【药品】类型的商品
// if(this.isMedic){
// if(this.isMedic){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录