Commit c87bb289 authored by 张冬's avatar 张冬

更新

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