Commit 4938c450 authored by 张冬's avatar 张冬

更新输入框限制

parent 38668a85
......@@ -82,6 +82,8 @@ export function projectdetail(id) {
method: 'get',
})
}
// ------------------------------------------------------------------------------------
//流程进度
export function timeInfo(projectId) {
return request({
......@@ -107,6 +109,11 @@ export function bidderEarnestpayment(data) {
})
}
//查看某个澄清的 投标方列表
export function bidClarifies(params) {
return request({
......
......@@ -28,7 +28,7 @@
<el-radio-group v-model="scope.row.free">
<el-radio :label="true">免费</el-radio>
<el-radio :label="false">收费</el-radio>
<el-input v-show="scope.row.free==false" v-model="scope.row.price" placeholder="价格(元)"></el-input>
<el-input-number v-model="scope.row.pric" v-show="scope.row.free==false" :min="0" :controls="false" :precision="2" placeholder="价格(元)" ></el-input-number>
</el-radio-group>
</template>
</el-table-column>
......
......@@ -55,99 +55,97 @@ 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: '我的供应商',
// }
// ]
// },
// 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: '日志列表',
// },
// ]
// }
// ],
// {
// 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',
......
......@@ -31,7 +31,7 @@
<el-input v-model.trim="searchData.bidName" placeholder='请输入' maxlength="30"></el-input>
</el-form-item>
<el-form-item label="数量:" prop="quantity">
<el-input v-model.trim="searchData.quantity" placeholder='请输入' maxlength="30"></el-input>
<el-input v-model.trim="searchData.quantity" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder='请输入' maxlength="30"></el-input>
</el-form-item>
<el-form-item label="计量单位:" prop="unit">
<el-input v-model.trim="searchData.unit" placeholder='请输入' maxlength="30"></el-input>
......@@ -43,7 +43,7 @@
<el-input v-model.trim="searchData.specification" placeholder='请输入' maxlength="30"></el-input>
</el-form-item>
<el-form-item label="标杆价(元):" prop="price">
<el-input v-model.trim="searchData.price" placeholder='请输入' maxlength="30"></el-input>
<el-input-number v-model="searchData.price" :min="0" :controls="false" :precision="2" placeholder="输入"></el-input-number>
</el-form-item>
<el-form-item label="备注:" prop="remark">
<el-input v-model.trim="searchData.remark" placeholder='请输入' maxlength="30"></el-input>
......
......@@ -95,7 +95,7 @@
<div v-show="ruleForm.isNeedEarnest">
<div>
<el-form-item label="投标保证金金额:" prop="money">
<el-input v-model.trim="earnestInfoPO.money" placeholder="请输入" maxlength="30"></el-input>
<el-input-number v-model="earnestInfoPO.money" :min="0" :controls="false" :precision="2" ></el-input-number>
</el-form-item>
</div>
<div class="flex-between">
......@@ -612,7 +612,7 @@ validator: checkPhone,
// }
}
}e
}
</script>
<style scoped>
......
......@@ -56,7 +56,7 @@ export default {
},
data() {
return {
activeIdx: 0,
activeIdx: 2,
allForm: {}
}
},
......
<template>
<div>
<div class="describe">标的需求</div>
<div class="describe">招标时间设置</div>
<div class="form">
<!-- <dataForm :search-form="searchForm" :search-data="searchData" :is-handle="false" label-width="250px"></dataForm> -->
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="250px" class="demo-ruleForm">
......
<!-- 标书费缴纳 -->
<template>
<div>
<div class="content-head">
......@@ -138,6 +139,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) {
......@@ -177,7 +191,7 @@
}],
companyPhone: [{
required: true,
message: '请输入',
validator: checkPhone,
trigger: 'blur'
}],
invoiceType: [{
......@@ -227,8 +241,8 @@
const valid = await this.$refs['ruleForm'].validate()
if (valid) {
let message = this.ruleForm
message.companyId = window.localStorage.getItem("companyId"),
message.projectId = window.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