Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
94624558
Commit
94624558
authored
Feb 23, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
15ff5ba8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
58 deletions
+91
-58
procurement.vue
pages/kotra/procurement.vue
+91
-58
No files found.
pages/kotra/procurement.vue
View file @
94624558
...
@@ -45,125 +45,141 @@
...
@@ -45,125 +45,141 @@
<view
class=
"compInformation"
>
<view
class=
"compInformation"
>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
中文名称
<text>
*
</text>
采购品目
<text>
*
</text>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
CompanyName"
placeholder=
"请输入公司中文名称
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
GoodsCategory"
placeholder=
"采购商品类目
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
英文名称
进口数量
<text>
*
</text>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
CompanyEnName"
placeholder=
"请输入公司英文名称
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
ImportNum"
placeholder=
"需要采购多少
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
联系人
<text>
*
</text>
产品说明
<text>
*
</text>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
Principal"
placeholder=
"请输入公司联系人
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
Describe"
placeholder=
"输入采购产品的说明介绍
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
联系电话
<text>
*
</text>
公司名称
<text>
*
</text>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
Mobile"
placeholder=
"请输入公司联系电话
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
CompanyName"
placeholder=
"公司名称(中文)
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
公司
邮箱
<text>
*
</text>
公司
名称
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
EMail"
placeholder=
"请输入公司邮箱
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
CompanyEnName"
placeholder=
"公司名称(英文)
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
法人
手机号码
<text>
*
</text>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
LegalPerson"
placeholder=
"请输入法人
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
Mobile"
placeholder=
"手机号码
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
公司微信
E-mail
<text>
*
</text>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
WechatNo"
placeholder=
"请输入公司微信
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
EMail"
placeholder=
"E-mail
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
公司介绍
企业法人
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.LegalPerson"
placeholder=
"输入法人姓名"
/>
</view>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
负责人
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
CompanyIntro"
placeholder=
"公司介绍
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
Principal"
placeholder=
"负责人
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
公司官网
微信号码
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.DomainUrl"
placeholder=
"请输入公司官网"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.WechatNo"
placeholder=
"微信号"
/>
</view>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
官网
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.DomainUrl"
placeholder=
"https://www.examle.com"
/>
</view>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
行业
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.Industry"
placeholder=
"行业"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
成立时间
成立时间
</view>
</view>
<view
@
click=
"showStart=true"
style=
"width:75%;color:#808080;"
>
{{
msg
.
FoundingTime
}}
</view>
<view
@
click=
"showStart=true"
style=
"width:75%;color:#808080;"
>
{{
msg
.
FoundingTime
Str
}}
</view>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
员工
数量
员工
人数
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.EmployeeNum"
placeholder=
"
请输入员工数量
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.EmployeeNum"
placeholder=
"
输入数字
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
<view>
年销售额
</view>
<view>
年销售额(万元)
</view>
<view>
(万元)
</view>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.AnnualSales"
placeholder=
"
请输入
年销售额"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.AnnualSales"
placeholder=
"年销售额"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
<view>
年进口额
</view>
详细地址(中文)
<view>
(万元)
</view>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.A
nnualImport"
placeholder=
"请输入年进口额
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.A
ddress"
placeholder=
"街道门牌/楼层房间号等信息
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
中文地址
英文地址(英文)
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
Address"
placeholder=
"请输入公司中文地址
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
EnAddress"
placeholder=
"详细地址(英文)
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
英文地址
<view>
年进口额
</view>
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
EnAddress"
placeholder=
"请输入公司英文地址
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
AnnualImport"
placeholder=
"年进口额
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
行业
主要进口品目
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.I
ndustry"
placeholder=
"请输入行业
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.I
mportCategory"
placeholder=
"主要进口品目
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
出
口国
主要进
口国
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
ExportCountry"
placeholder=
"请输入主要出口国
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
ImportCountry"
placeholder=
"中国/韩国/日本
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
进
口国
主要出
口国
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
ImportCountry"
placeholder=
"请输入主要进口国
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
ExportCountry"
placeholder=
"中国/韩国/日本
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
进口品目
公司介绍
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
ImportCategory"
placeholder=
"请输入主要进口品目
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.
CompanyIntro"
placeholder=
"公司主营业务的简单介绍
"
/>
</view>
</view>
<view
class=
"compInfoList"
>
<view
class=
"compInfoList"
>
<view
class=
"comInforName"
>
<view
class=
"comInforName"
>
其他
其他
</view>
</view>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.OtherInfo"
placeholder=
"
请输入其他
"
/>
<input
class=
"uni-input comInfoInput"
v-model=
"msg.OtherInfo"
placeholder=
"
其他内容
"
/>
</view>
</view>
<view
class=
"comInBtn"
@
click=
"saveInfo()"
>
提交
</view>
<view
class=
"comInBtn"
@
click=
"saveInfo()"
>
提交
</view>
<u-picker
v-model=
"showStart"
mode=
"time"
:params=
"params"
@
confirm=
'btnStart'
:default-time=
'defaultTime'
></u-picker>
<u-picker
v-model=
"showStart"
mode=
"time"
:params=
"params"
@
confirm=
'btnStart'
:default-time=
'defaultTime'
></u-picker>
...
@@ -187,26 +203,30 @@
...
@@ -187,26 +203,30 @@
second
:
false
second
:
false
},
},
msg
:
{
msg
:
{
CompanyId
:
0
,
//编号
Id
:
0
,
//编号
Type
:
1
,
GoodsCategory
:
''
,
// 采购类目
ImportNum
:
''
,
//进口数量
Describe
:
''
,
//产品说明
CompanyName
:
""
,
//公司名称
CompanyName
:
""
,
//公司名称
CompanyEnName
:
""
,
//公司英文名称
CompanyEnName
:
""
,
//公司英文名称
Principal
:
""
,
//联系人
Mobile
:
""
,
//手机号码
Mobile
:
""
,
//联系电话
EMail
:
""
,
//EMail
EMail
:
""
,
//邮箱
LegalPerson
:
""
,
//法人
LegalPerson
:
""
,
//法人
Principal
:
""
,
//联系人
WechatNo
:
""
,
//公司微信
WechatNo
:
""
,
//公司微信
CompanyIntro
:
""
,
//公司介绍
DomainUrl
:
""
,
//官网
DomainUrl
:
""
,
//官网
FoundingTime
:
""
,
//成立时间
Industry
:
""
,
//行业
FoundingTimeStr
:
''
,
//成立时间
EmployeeNum
:
""
,
//员工人数
EmployeeNum
:
""
,
//员工人数
AnnualSales
:
""
,
//年销售(万元)
AnnualSales
:
""
,
//年销售(万元)
AnnualImport
:
""
,
//年进口额
Address
:
""
,
//详细地址
Address
:
""
,
//详细地址
EnAddress
:
""
,
//详细地址(英文)
EnAddress
:
""
,
//详细地址(英文)
Industry
:
""
,
//行业
AnnualImport
:
""
,
//年进口额
ExportCountry
:
""
,
//主要出口国
ImportCountry
:
""
,
//主要进口国家
ImportCategory
:
""
,
//主要进口类目
ImportCategory
:
""
,
//主要进口类目
ImportCountry
:
""
,
//主要进口国家
ExportCountry
:
""
,
//主要出口国
CompanyIntro
:
""
,
//公司介绍
OtherInfo
:
""
//其他内容
OtherInfo
:
""
//其他内容
}
}
};
};
...
@@ -225,7 +245,7 @@
...
@@ -225,7 +245,7 @@
if
(
day
<
10
){
if
(
day
<
10
){
day
=
'0'
+
day
;
day
=
'0'
+
day
;
}
}
this
.
msg
.
FoundingTime
=
year
+
'-'
+
month
+
'-'
+
day
;
this
.
msg
.
FoundingTime
Str
=
year
+
'-'
+
month
+
'-'
+
day
;
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -251,37 +271,50 @@
...
@@ -251,37 +271,50 @@
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
console
.
log
(
res
,
'数据类了'
);
console
.
log
(
res
,
'数据类了'
);
this
.
msg
=
res
.
data
;
this
.
msg
=
res
.
data
;
this
.
msg
.
FoundingTime
=
res
.
data
.
FoundingTimeStr
;
}
}
}
}
);
);
},
},
//保存数据
//保存数据
saveInfo
(){
saveInfo
(){
if
(
this
.
msg
.
CompanyName
==
''
){
if
(
this
.
msg
.
GoodsCategory
==
''
){
uni
.
showToast
({
uni
.
showToast
({
title
:
"请输入
公司中文名称
"
,
title
:
"请输入
采购类目
"
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
this
.
msg
.
Principal
==
''
){
if
(
this
.
msg
.
ImportNum
==
''
){
uni
.
showToast
({
title
:
"请输入进口数量"
,
icon
:
'none'
});
return
;
}
if
(
this
.
msg
.
Describe
==
''
){
uni
.
showToast
({
title
:
"请输入产品说明"
,
icon
:
'none'
});
return
;
}
if
(
this
.
msg
.
CompanyName
==
''
){
uni
.
showToast
({
uni
.
showToast
({
title
:
"请输入
联系人
"
,
title
:
"请输入
公司名称
"
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
this
.
msg
.
Mobile
==
''
){
if
(
this
.
msg
.
Mobile
==
''
){
uni
.
showToast
({
uni
.
showToast
({
title
:
"请输入
联系电话
"
,
title
:
"请输入
手机号码
"
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
this
.
msg
.
EMail
==
''
){
if
(
this
.
msg
.
EMail
==
''
){
uni
.
showToast
({
uni
.
showToast
({
title
:
"请输入
公司邮箱
"
,
title
:
"请输入
EMail
"
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
...
...
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