Commit eb006ea9 authored by 黄奎's avatar 黄奎

页面修改

parent 58974a99
<style>
.compInformation {
background-color: #fff;
margin-bottom:80px;
margin-bottom: 80px;
}
.compInfoList {
......@@ -26,15 +26,16 @@
width: 75%;
margin-top: 2px;
font-size: 13px;
color:#808080;
color: #808080;
}
.comInBtn{
.comInBtn {
position: fixed;
bottom:0;
width:100%;
height:50px;
color:#fff;
z-index:99;
bottom: 0;
width: 100%;
height: 50px;
color: #fff;
z-index: 99;
font-size: 16px;
text-align: center;
line-height: 50px;
......@@ -45,57 +46,69 @@
<view class="compInformation">
<view class="compInfoList">
<view class="comInforName">
中文名称<text>*</text>
投资意向<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.CompanyName" placeholder="请输入公司中文名称" />
<input class="uni-input comInfoInput" v-model="msg.Investment" placeholder="投资意向" />
</view>
<view class="compInfoList">
<view class="comInforName">
英文名称
产品说明<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.CompanyEnName" placeholder="请输入公司英文名称" />
<input class="uni-input comInfoInput" v-model="msg.Describe" placeholder="输入采购产品的说明介绍" />
</view>
<view class="compInfoList">
<view class="comInforName">
联系人<text>*</text>
公司名称<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.Principal" placeholder="请输入公司联系人" />
<input class="uni-input comInfoInput" v-model="msg.CompanyName" placeholder="公司名称(中文)" />
</view>
<view class="compInfoList">
<view class="comInforName">
联系电话<text>*</text>
公司名称
</view>
<input class="uni-input comInfoInput" v-model="msg.Mobile" placeholder="请输入公司联系电话" />
<input class="uni-input comInfoInput" v-model="msg.CompanyEnName" placeholder="公司名称(英文)" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司邮箱<text>*</text>
手机号码<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.EMail" placeholder="请输入公司邮箱" />
<input class="uni-input comInfoInput" v-model="msg.Mobile" placeholder="手机号码" />
</view>
<view class="compInfoList">
<view class="comInforName">
法人
E-mail<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.LegalPerson" placeholder="请输入法人" />
<input class="uni-input comInfoInput" v-model="msg.EMail" placeholder="E-mail" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司微信
企业法人
</view>
<input class="uni-input comInfoInput" v-model="msg.WechatNo" placeholder="请输入公司微信" />
<input class="uni-input comInfoInput" v-model="msg.LegalPerson" placeholder="输入法人姓名" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司介绍
负责人
</view>
<input class="uni-input comInfoInput" v-model="msg.CompanyIntro" placeholder="公司介绍" />
<input class="uni-input comInfoInput" v-model="msg.Principal" placeholder="负责人" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司官网
微信号码
</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 class="compInfoList">
<view class="comInforName">
......@@ -105,65 +118,66 @@
</view>
<view class="compInfoList">
<view class="comInforName">
员工数量
员工人数
</view>
<input class="uni-input comInfoInput" v-model="msg.EmployeeNum" placeholder="请输入员工数量" />
<input class="uni-input comInfoInput" v-model="msg.EmployeeNum" placeholder="输入数字" />
</view>
<view class="compInfoList">
<view class="comInforName">
<view>年销售额</view>
<view>(万元)</view>
<view style="margin-left:8px;">(万元)</view>
</view>
<input class="uni-input comInfoInput" v-model="msg.AnnualSales" placeholder="请输入年销售额" />
<input class="uni-input comInfoInput" v-model="msg.AnnualSales" placeholder="年销售额" />
</view>
<view class="compInfoList">
<view class="comInforName">
<view>年进口额</view>
<view>(万元)</view>
<view>详细地址</view>
<view style="margin-left:8px;">(中文)</view>
</view>
<input class="uni-input comInfoInput" v-model="msg.AnnualImport" placeholder="请输入年进口额" />
<input class="uni-input comInfoInput" v-model="msg.Address" placeholder="街道门牌/楼层房间号等信息" />
</view>
<view class="compInfoList">
<view class="comInforName">
中文地址
<view>英文地址</view>
<view style="margin-left:8px;">(英文)</view>
</view>
<input class="uni-input comInfoInput" v-model="msg.Address" placeholder="请输入公司中文地址" />
<input class="uni-input comInfoInput" v-model="msg.EnAddress" placeholder="详细地址(英文)" />
</view>
<view class="compInfoList">
<view class="comInforName">
英文地址
<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 class="compInfoList">
<view class="comInforName">
行业
主要进口品目
</view>
<input class="uni-input comInfoInput" v-model="msg.Industry" placeholder="请输入行业" />
<input class="uni-input comInfoInput" v-model="msg.ImportCategory" placeholder="主要进口品目" />
</view>
<view class="compInfoList">
<view class="comInforName">
口国
主要进口国
</view>
<input class="uni-input comInfoInput" v-model="msg.ExportCountry" placeholder="请输入主要出口国" />
<input class="uni-input comInfoInput" v-model="msg.ImportCountry" placeholder="中国/韩国/日本" />
</view>
<view class="compInfoList">
<view class="comInforName">
口国
主要出口国
</view>
<input class="uni-input comInfoInput" v-model="msg.ImportCountry" placeholder="请输入主要进口国" />
<input class="uni-input comInfoInput" v-model="msg.ExportCountry" placeholder="中国/韩国/日本" />
</view>
<view class="compInfoList">
<view class="comInforName">
进口品目
公司介绍
</view>
<input class="uni-input comInfoInput" v-model="msg.ImportCategory" placeholder="请输入主要进口品目" />
<input class="uni-input comInfoInput" v-model="msg.CompanyIntro" placeholder="公司主营业务的简单介绍" />
</view>
<view class="compInfoList">
<view class="comInforName">
其他
</view>
<input class="uni-input comInfoInput" v-model="msg.OtherInfo" placeholder="请输入其他" />
<input class="uni-input comInfoInput" v-model="msg.OtherInfo" placeholder="其他内容" />
</view>
<view class="comInBtn" @click="saveInfo()">提交</view>
<u-picker v-model="showStart" mode="time" :params="params" @confirm='btnStart' :default-time='defaultTime'></u-picker>
......@@ -187,26 +201,30 @@
second: false
},
msg: {
CompanyId: 0, //编号
Id: 0, //编号
Type: 2,
Investment: '', // 投资意向
ImportNum: '', //进口数量
Describe: '', //产品说明
CompanyName: "", //公司名称
CompanyEnName: "", //公司英文名称
Principal: "", //联系人
Mobile: "", //联系电话
EMail: "", //邮箱
Mobile: "", //手机号码
EMail: "", //EMail
LegalPerson: "", //法人
Principal: "", //联系人
WechatNo: "", //公司微信
CompanyIntro: "", //公司介绍
DomainUrl: "", //官网
FoundingTime: "", //成立时间
Industry: "", //行业
FoundingTime: '', //成立时间
EmployeeNum: "", //员工人数
AnnualSales: "", //年销售(万元)
AnnualImport: "", //年进口额
Address: "", //详细地址
EnAddress: "", //详细地址(英文)
Industry: "", //行业
ExportCountry: "", //主要出口国
ImportCountry: "", //主要进口国家
AnnualImport: "", //年进口额
ImportCategory: "", //主要进口类目
ImportCountry: "", //主要进口国家
ExportCountry: "", //主要出口国
CompanyIntro: "", //公司介绍
OtherInfo: "" //其他内容
}
};
......@@ -215,20 +233,9 @@
uni.setNavigationBarTitle({
title: this.pageTitle,
});
var currTime = new Date();
var year = currTime.getFullYear();
var month = currTime.getMonth() + 1;
var day = currTime.getDate();
if(month<10){
month='0'+month;
}
if(day<10){
day='0'+day;
}
this.msg.FoundingTime =year+'-'+ month+'-'+day;
},
onLoad(options) {
},
created() {
this.getList();
......@@ -249,51 +256,78 @@
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
console.log(res,'数据类了');
this.msg=res.data;
this.msg.FoundingTime = res.data.FoundingTimeStr;
let tempData = res.data;
if (tempData) {
this.msg.CompanyName = tempData.CompanyName;
this.msg.CompanyEnName = tempData.CompanyEnName;
this.msg.Mobile = tempData.Mobile;
this.msg.EMail = tempData.EMail;
this.msg.LegalPerson = tempData.LegalPerson;
this.msg.Principal = tempData.Principal;
this.msg.WechatNo = tempData.WechatNo;
this.msg.DomainUrl = tempData.DomainUrl;
this.msg.Industry = tempData.Industry;
this.msg.FoundingTime = tempData.FoundingTimeStr;
this.msg.EmployeeNum = tempData.EmployeeNum;
this.msg.AnnualSales = tempData.AnnualSales;
this.msg.Address = tempData.Address;
this.msg.EnAddress = tempData.EnAddress;
this.msg.AnnualImport = tempData.AnnualImport;
this.msg.ImportCategory = tempData.ImportCategory;
this.msg.ImportCountry = tempData.ImportCountry;
this.msg.ExportCountry = tempData.ExportCountry;
this.msg.CompanyIntro = tempData.CompanyIntro;
this.msg.OtherInfo = tempData.OtherInfo;
}
}
}
);
},
//保存数据
saveInfo(){
if(this.msg.CompanyName==''){
saveInfo() {
if (this.msg.Investment == '') {
uni.showToast({
title: "请输入投资意向",
icon: 'none'
});
return;
}
if (this.msg.Describe == '') {
uni.showToast({
title: "请输入公司中文名称",
icon:'none'
title: "请输入产品说明",
icon: 'none'
});
return;
}
if(this.msg.Principal==''){
if (this.msg.CompanyName == '') {
uni.showToast({
title: "请输入联系人",
icon:'none'
title: "请输入公司名称",
icon: 'none'
});
return;
}
if(this.msg.Mobile==''){
if (this.msg.Mobile == '') {
uni.showToast({
title: "请输入联系电话",
icon:'none'
title: "请输入手机号码",
icon: 'none'
});
return;
}
if(this.msg.EMail==''){
if (this.msg.EMail == '') {
uni.showToast({
title: "请输入公司邮箱",
icon:'none'
title: "请输入EMail",
icon: 'none'
});
return;
}
this.request2({
url: "/api/AppletTrade/SetCompany",
url: "/api/AppletTrade/SetInvestmentProcurement",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "保存成功",
title: "保存成功",
});
this.getList();
}
......@@ -301,8 +335,7 @@
);
},
btnStart(val) {
this.msg.FoundingTime = val.year+'-'+val.month+'-'+val.day;
console.log(val);
this.msg.FoundingTime = val.year + '-' + val.month + '-' + val.day;
},
},
}
......
<style>
.compInformation {
background-color: #fff;
margin-bottom:80px;
margin-bottom: 80px;
}
.compInfoList {
......@@ -26,15 +26,16 @@
width: 75%;
margin-top: 2px;
font-size: 13px;
color:#808080;
color: #808080;
}
.comInBtn{
.comInBtn {
position: fixed;
bottom:0;
width:100%;
height:50px;
color:#fff;
z-index:99;
bottom: 0;
width: 100%;
height: 50px;
color: #fff;
z-index: 99;
font-size: 16px;
text-align: center;
line-height: 50px;
......@@ -119,7 +120,7 @@
<view class="comInforName">
成立时间
</view>
<view @click="showStart=true" style="width:75%;color:#808080;">{{msg.FoundingTimeStr}}</view>
<view @click="showStart=true" style="width:75%;color:#808080;">{{msg.FoundingTime}}</view>
</view>
<view class="compInfoList">
<view class="comInforName">
......@@ -207,10 +208,10 @@
},
msg: {
Id: 0, //编号
Type:1,
GoodsCategory:'',// 采购类目
ImportNum:'', //进口数量
Describe:'', //产品说明
Type: 1,
GoodsCategory: '', // 采购类目
ImportNum: '', //进口数量
Describe: '', //产品说明
CompanyName: "", //公司名称
CompanyEnName: "", //公司英文名称
Mobile: "", //手机号码
......@@ -220,7 +221,7 @@
WechatNo: "", //公司微信
DomainUrl: "", //官网
Industry: "", //行业
FoundingTimeStr:'', //成立时间
FoundingTime: '', //成立时间
EmployeeNum: "", //员工人数
AnnualSales: "", //年销售(万元)
Address: "", //详细地址
......@@ -238,20 +239,9 @@
uni.setNavigationBarTitle({
title: this.pageTitle,
});
var currTime = new Date();
var year = currTime.getFullYear();
var month = currTime.getMonth() + 1;
var day = currTime.getDate();
if(month<10){
month='0'+month;
}
if(day<10){
day='0'+day;
}
this.msg.FoundingTimeStr =year+'-'+ month+'-'+day;
},
onLoad(options) {
},
created() {
this.getList();
......@@ -272,64 +262,85 @@
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
console.log(res,'数据类了');
this.msg=res.data;
let tempData = res.data;
if (tempData) {
this.msg.CompanyName = tempData.CompanyName;
this.msg.CompanyEnName = tempData.CompanyEnName;
this.msg.Mobile = tempData.Mobile;
this.msg.EMail = tempData.EMail;
this.msg.LegalPerson = tempData.LegalPerson;
this.msg.Principal = tempData.Principal;
this.msg.WechatNo = tempData.WechatNo;
this.msg.DomainUrl = tempData.DomainUrl;
this.msg.Industry = tempData.Industry;
this.msg.FoundingTime = tempData.FoundingTimeStr;
this.msg.EmployeeNum = tempData.EmployeeNum;
this.msg.AnnualSales = tempData.AnnualSales;
this.msg.Address = tempData.Address;
this.msg.EnAddress = tempData.EnAddress;
this.msg.AnnualImport = tempData.AnnualImport;
this.msg.ImportCategory = tempData.ImportCategory;
this.msg.ImportCountry = tempData.ImportCountry;
this.msg.ExportCountry = tempData.ExportCountry;
this.msg.CompanyIntro = tempData.CompanyIntro;
this.msg.OtherInfo = tempData.OtherInfo;
}
}
}
);
},
//保存数据
saveInfo(){
if(this.msg.GoodsCategory==''){
saveInfo() {
if (this.msg.GoodsCategory == '') {
uni.showToast({
title: "请输入采购类目",
icon:'none'
title: "请输入采购类目",
icon: 'none'
});
return;
}
if(this.msg.ImportNum==''){
if (this.msg.ImportNum == '') {
uni.showToast({
title: "请输入进口数量",
icon:'none'
title: "请输入进口数量",
icon: 'none'
});
return;
}
if(this.msg.Describe==''){
if (this.msg.Describe == '') {
uni.showToast({
title: "请输入产品说明",
icon:'none'
title: "请输入产品说明",
icon: 'none'
});
return;
}
if(this.msg.CompanyName==''){
if (this.msg.CompanyName == '') {
uni.showToast({
title: "请输入公司名称",
icon:'none'
title: "请输入公司名称",
icon: 'none'
});
return;
}
if(this.msg.Mobile==''){
if (this.msg.Mobile == '') {
uni.showToast({
title: "请输入手机号码",
icon:'none'
title: "请输入手机号码",
icon: 'none'
});
return;
}
if(this.msg.EMail==''){
if (this.msg.EMail == '') {
uni.showToast({
title: "请输入EMail",
icon:'none'
title: "请输入EMail",
icon: 'none'
});
return;
}
this.request2({
url: "/api/AppletTrade/SetCompany",
url: "/api/AppletTrade/SetInvestmentProcurement",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "保存成功",
title: "保存成功",
});
this.getList();
}
......@@ -337,8 +348,8 @@
);
},
btnStart(val) {
this.msg.FoundingTime = val.year+'-'+val.month+'-'+val.day;
console.log(val);
this.msg.FoundingTime = val.year + '-' + val.month + '-' + val.day;
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment