Commit c87bb289 authored by 张冬's avatar 张冬

更新

parent 4938c450
......@@ -20,7 +20,7 @@
<dataTable :table-data="fileList" :columns="columns" :is-pageobj="false">
<el-table-column slot="operate" label="文件大小" align="center" fixed="right" width="300">
<template slot-scope="scope">
<div>{{getMb(scope.row.size)}}M</div>
<div>{{getMb(scope.row.size)}}KB</div>
</template>
</el-table-column>
<el-table-column slot="operate" label="价格" align="center" fixed="right" width="300">
......@@ -108,12 +108,12 @@ export default {
]
}
},
computed:{
methods: {
getMb(size){
return size / 1024 / 1024
}
let sieze1= size/1024
let integer= sieze1.toFixed(0)
return integer
},
methods: {
emitInput(fileList) {
let value = []
for (let i = 0; i < fileList.length; i++) {
......
......@@ -55,101 +55,10 @@ export default {
data() {
return {
collapse: false,
// items: [
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/Home',
// title: '首页'
// },
// {
// icon: 'el-icon-lx-home',
// index:"2",
// title: '招标管理',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/bid/administrationList',
// title: '招标项目管理',
// }
// ]
// },
// {
// icon: 'el-icon-lx-cascades',
// title: '应收账款买断管理',
// index:'3',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/buyOut/buyoutList',
// title: '应收账款买断列表',
// }
// ]
// },
// {
// icon: 'el-icon-lx-cascades',
// title: '供应商管理',
// index:'4',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/supply/allSupplyList',
// title: '供应商列表',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/supply/mySupplyList',
// title: '我的供应商',
// }
// ]
// },
// {
// icon: 'el-icon-lx-copy',
// title: '组织管理',
// index:'5',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/organization/informationSee',
// title: '单位信息',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/organization/memberManagement',
// title: '成员管理',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/organization/jurisdictionList',
// title: '角色管理',
// }
// ]
// },
// {
// icon: 'el-icon-lx-redpacket_fill',
// title: '系统管理',
// index:'6',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/organization/jurisdictionList',
// title: 'CA绑定与解除',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/purchaser/system/logList',
// title: '日志列表',
// },
// ]
// }
// ],
//供应商
items: [
{
icon: 'el-icon-lx-home',
index: '/supply/Home',
index: '/purchaser/Home',
title: '首页'
},
{
......@@ -159,13 +68,8 @@ export default {
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/bid/signupOnline',
title: '在线报名',
},
{
icon: 'el-icon-lx-home',
index: '/supply/bid/joinProject/projectList',
title: '我参与的项目',
index: '/purchaser/bid/administrationList',
title: '招标项目管理',
}
]
},
......@@ -176,11 +80,29 @@ export default {
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/buyOut/buyoutList',
index: '/purchaser/buyOut/buyoutList',
title: '应收账款买断列表',
}
]
},
{
icon: 'el-icon-lx-cascades',
title: '供应商管理',
index:'4',
subs:[
{
icon: 'el-icon-lx-home',
index: '/purchaser/supply/allSupplyList',
title: '供应商列表',
},
{
icon: 'el-icon-lx-home',
index: '/purchaser/supply/mySupplyList',
title: '我的供应商',
}
]
},
{
icon: 'el-icon-lx-copy',
title: '组织管理',
......@@ -188,17 +110,17 @@ export default {
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/organization/informationSee',
index: '/purchaser/organization/informationSee',
title: '单位信息',
},
{
icon: 'el-icon-lx-home',
index: '/supply/organization/memberManagement',
index: '/purchaser/organization/memberManagement',
title: '成员管理',
},
{
icon: 'el-icon-lx-home',
index: '/supply/organization/jurisdictionList',
index: '/purchaser/organization/jurisdictionList',
title: '角色管理',
}
]
......@@ -210,29 +132,107 @@ export default {
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/organization/jurisdictionList',
index: '/purchaser/organization/jurisdictionList',
title: 'CA绑定与解除',
},
{
icon: 'el-icon-lx-home',
index: '/supply/system/logList',
index: '/purchaser/system/logList',
title: '日志列表',
},
]
},
{
icon: 'el-icon-lx-cascades',
title: '制作投标文件',
index:'4',
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/markBid/markBid',
title: '制作投标文件',
}
]
},
]
],
//供应商
// items: [
// {
// icon: 'el-icon-lx-home',
// index: '/supply/Home',
// title: '首页'
// },
// {
// icon: 'el-icon-lx-home',
// index:"2",
// title: '招标管理',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/supply/bid/signupOnline',
// title: '在线报名',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/supply/bid/joinProject/projectList',
// title: '我参与的项目',
// }
// ]
// },
// {
// icon: 'el-icon-lx-cascades',
// title: '应收账款买断管理',
// index:'3',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/supply/buyOut/buyoutList',
// title: '应收账款买断列表',
// }
// ]
// },
// {
// icon: 'el-icon-lx-copy',
// title: '组织管理',
// index:'5',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/supply/organization/informationSee',
// title: '单位信息',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/supply/organization/memberManagement',
// title: '成员管理',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/supply/organization/jurisdictionList',
// title: '角色管理',
// }
// ]
// },
// {
// icon: 'el-icon-lx-redpacket_fill',
// title: '系统管理',
// index:'6',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/supply/organization/jurisdictionList',
// title: 'CA绑定与解除',
// },
// {
// icon: 'el-icon-lx-home',
// index: '/supply/system/logList',
// title: '日志列表',
// },
// ]
// },
// {
// icon: 'el-icon-lx-cascades',
// title: '制作投标文件',
// index:'4',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/supply/markBid/markBid',
// title: '制作投标文件',
// }
// ]
// },
// ]
};
},
computed: {
......
......@@ -56,7 +56,7 @@ export default {
},
data() {
return {
activeIdx: 2,
activeIdx: 3,
allForm: {}
}
},
......
......@@ -104,6 +104,19 @@
Upload
},
data() {
let checkPhone = async (rule, value, callback) => {
if (!value) {
return callback(new Error('手机号不能为空'));
} else {
const reg = /^1[3|4|5|7|8][0-9]\d{8}$/
console.log(reg.test(value));
if (reg.test(value)) {
callback();
} else {
return callback(new Error('请输入正确的手机号'));
}
}
};
// 测试图片
let checkimg = (rule, value, callback) => {
if (this.ruleForm.voucherUrl.length === 0) {
......@@ -137,7 +150,7 @@
}],
companyPhone: [{
required: true,
message: '请输入',
validator: checkPhone,
trigger: 'blur'
}],
......@@ -163,8 +176,8 @@
const valid = await this.$refs['ruleForm'].validate()
if (valid) {
let message = this.ruleForm
message.companyId = localStorage.getItem("companyId"),
message.projectId = localstorage.getitem("projectId")
message.companyId =localStorage.getItem("companyId")
message.projectId =localStorage.getItem("projectId")
const {
code,
msg
......
......@@ -112,7 +112,7 @@
</el-input>
</el-form-item>
<el-form-item label="上传缴费凭证:" prop="voucherUrl">
<Upload :limit="5" :max="5" tip="完成上传5份文件,每份不超过10M" @input="getfile"></Upload>
<Upload :limit="5" :max="10" tip="完成上传5份文件,每份不超过10M" @input="getfile"></Upload>
</el-form-item>
</div>
</div>
......@@ -241,8 +241,8 @@
const valid = await this.$refs['ruleForm'].validate()
if (valid) {
let message = this.ruleForm
message.companyId = localStorage.getItem("companyId"),
message.projectId = localstorage.getitem("projectId")
message.companyId =localStorage.getItem("companyId")
message.projectId =localStorage.getItem("projectId")
const {
code,
msg
......
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