Commit d4fb1cf2 by 严立

LL - 参与竞价状态异常处理

parent 3f66bf67
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
</el-form-item> </el-form-item>
<el-form-item label="发票类型(单选):" prop="companyInvoice"> <el-form-item label="发票类型(单选):" prop="companyInvoice">
<el-radio-group v-model="formRegister.companyInvoice" :value="formRegister.companyInvoice"> <el-radio-group v-model="formRegister.companyInvoice" :value="formRegister.companyInvoice">
<el-radio label="1">增值税普票</el-radio> <el-radio label="0">增值税普票</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="公司名称:" prop="companyName"> <el-form-item label="公司名称:" prop="companyName">
...@@ -370,8 +370,7 @@ ...@@ -370,8 +370,7 @@
'isQuote': funcResponse.isJoinBid, 'isQuote': funcResponse.isJoinBid,
'companyTax': funcResponse.taxType, 'companyTax': funcResponse.taxType,
'companyInvoice': '1', 'companyInvoice': '0',
// 'companyInvoice': funcResponse.invoiceType.split(','),
'companyPhone': funcResponse.phone, 'companyPhone': funcResponse.phone,
'bankName': funcResponse.openBank, 'bankName': funcResponse.openBank,
'bankAccount': funcResponse.bankAccount, 'bankAccount': funcResponse.bankAccount,
...@@ -380,7 +379,7 @@ ...@@ -380,7 +379,7 @@
'receiveType': funcResponse.receiveType ? funcResponse.receiveType : '0', 'receiveType': funcResponse.receiveType ? funcResponse.receiveType : '0',
'receiveContactor': funcResponse.receiveContactor ? funcResponse.receiveContactor : '', 'receiveContactor': funcResponse.receiveContactor ? funcResponse.receiveContactor : '',
'receiveMobile': funcResponse.receiveMobile ? funcResponse.receiveMobile : '', 'receiveMobile': funcResponse.receiveMobile ? funcResponse.receiveMobile : '',
'receiveArea': funcResponse.receiveArea ? JSON.parse(funcResponse.receiveArea) : '', 'receiveArea': [],
'receiveAddress': funcResponse.receiveAddress ? funcResponse.receiveAddress : '', 'receiveAddress': funcResponse.receiveAddress ? funcResponse.receiveAddress : '',
'corporationName': funcResponse.contactName, 'corporationName': funcResponse.contactName,
...@@ -392,11 +391,17 @@ ...@@ -392,11 +391,17 @@
'examineState': Number(funcResponse.auditState), 'examineState': Number(funcResponse.auditState),
} }
// 判断地址数据类型,同时兼容字符串与数组类型
if (Object.prototype.toString.call(funcResponse.receiveArea) === '[object String]') {
this.formRegister.receiveArea = JSON.parse(funcResponse.receiveArea)
} else {
this.formRegister.receiveArea = funcResponse.receiveArea
}
// 恢复区域数据 // 恢复区域数据
if (this.formRegister.receiveArea) { if (this.formRegister.receiveArea) {
this.$store.commit('areaSelection', this.formRegister.receiveArea) this.$store.commit('areaSelection', this.formRegister.receiveArea)
} }
console.log(this.formRegister)
// 设置营业执照图片 // 设置营业执照图片
this.uploadOption.license.image.push({ this.uploadOption.license.image.push({
...@@ -408,7 +413,7 @@ ...@@ -408,7 +413,7 @@
'uid': 1592304942343 'uid': 1592304942343
}) })
// 设置竞承诺书图片 // 设置竞承诺书图片
if (this.formRegister.isQuote === '1') { if (this.formRegister.isQuote === '1') {
this.uploadOption.quote.image.push({ this.uploadOption.quote.image.push({
'status': 'success', 'status': 'success',
...@@ -424,6 +429,7 @@ ...@@ -424,6 +429,7 @@
this.$message.error(funcError.message) this.$message.error(funcError.message)
}) })
}, },
reset: function () { reset: function () {
this.formRegister = { this.formRegister = {
'companyName': '', 'companyName': '',
...@@ -463,7 +469,7 @@ ...@@ -463,7 +469,7 @@
'isJoinBid': this.formRegister.isQuote, 'isJoinBid': this.formRegister.isQuote,
'taxType': this.formRegister.companyTax, 'taxType': this.formRegister.companyTax,
'phone': this.formRegister.companyPhone, 'phone': this.formRegister.companyPhone,
'invoiceType': '1', 'invoiceType': '0',
'openBank': this.formRegister.bankName, 'openBank': this.formRegister.bankName,
'bankAccount': this.formRegister.bankAccount, 'bankAccount': this.formRegister.bankAccount,
'contactName': this.formRegister.corporationName, 'contactName': this.formRegister.corporationName,
...@@ -476,13 +482,6 @@ ...@@ -476,13 +482,6 @@
'receiveAddress': this.formRegister.receiveAddress 'receiveAddress': this.formRegister.receiveAddress
} }
// for (let i = 0, len = funcParam.invoiceType.length; i < len; i++) {
// if (funcParam.invoiceType[i] === '增值税专票') funcParam.invoiceType[i] = 0
// if (funcParam.invoiceType[i] === '增值税普票') funcParam.invoiceType[i] = 1
// if (funcParam.invoiceType[i] === '其他类型') funcParam.invoiceType[i] = 2
// }
// funcParam.invoiceType = funcParam.invoiceType.join()
iRequest.request(iHost.base + 'bid/zUserCompany/saveUserInfo', funcParam, 'json', 'post') iRequest.request(iHost.base + 'bid/zUserCompany/saveUserInfo', funcParam, 'json', 'post')
.then((funcResponse) => { .then((funcResponse) => {
this.$message({ message: '修改已提交,请等待审核', type: 'success' }) this.$message({ message: '修改已提交,请等待审核', type: 'success' })
...@@ -538,9 +537,11 @@ ...@@ -538,9 +537,11 @@
return return
} }
if (this.uploadOption.quote.image[0].status === 'ready') { if (this.formRegister.isQuote === '1') {
this.$refs.uploadQuote.submit() if (this.uploadOption.quote.image[0].status === 'ready') {
return this.$refs.uploadQuote.submit()
return
}
} }
this.registerInfo() this.registerInfo()
} }
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<span>是否参与网上竞价:</span> <span>是否参与网上竞价:</span>
<span>{{formInfo.isQuote === '0' ? '否' : '是'}}</span> <span>{{formInfo.isQuote === '0' ? '否' : '是'}}</span>
</div> </div>
<div class="item-text row align-c" v-if="formInfo.quoteImage"> <div class="item-text row align-c" v-if="formInfo.isQuote === '1'">
<span>竞价承诺书:</span> <span>竞价承诺书:</span>
<el-button size="small" type="primary" @click.prevent="onUploadDownloadFile">点击下载</el-button> <el-button size="small" type="primary" @click.prevent="onUploadDownloadFile">点击下载</el-button>
</div> </div>
......
<template> <template>
<!-- 我的订单 - 申请开票 --> <!-- 我的订单 - 申请开票 -->
<div class="supplier-orders-bill"> <div class="supplier-orders-bill">
<!-- 页面地图 --> <!-- 页面地图 -->
<div class="detail-map row align-c"> <div class="detail-map row align-c">
<currencyMap :customPath="[{ text: '我的订单', redirect: '/supplier/orders' }, { text: '申请开票', redirect: null }]"></currencyMap> <currencyMap :customPath="[{ text: '我的订单', redirect: '/supplier/orders' }, { text: '申请开票', redirect: null }]"></currencyMap>
</div> </div>
<div class="detail-line"></div> <div class="detail-line"></div>
<!-- 项目信息 --> <!-- 项目信息 -->
<div class="detail-block"> <div class="detail-block">
<div class="detail-title row align-c"> <div class="detail-title row align-c">
<div class="row align-c"> <div class="row align-c">
<span>投标项目</span> <span>投标项目</span>
</div> </div>
</div> </div>
<div class="detail-content"> <div class="detail-content">
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>税务资质:</span> <span>税务资质:</span>
<span>{{formInfo.companyTax}}</span> <span>{{formInfo.companyTax}}</span>
</div> </div>
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>发票类型:</span> <span>发票类型:</span>
<el-radio-group v-model="formBills.type"> <el-radio-group v-model="formBills.type">
<el-radio label="增值税专票"></el-radio> <el-radio label="增值税专票"></el-radio>
<el-radio label="增值税普票"></el-radio> <el-radio label="增值税普票"></el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>公司名称:</span> <span>公司名称:</span>
<span>{{formInfo.companyName}}</span> <span>{{formInfo.companyName}}</span>
</div> </div>
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>纳税识别号:</span> <span>纳税识别号:</span>
<span>{{formInfo.companyCode}}</span> <span>{{formInfo.companyCode}}</span>
</div> </div>
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>税务登记地址:</span> <span>税务登记地址:</span>
<span>{{formInfo.companyAddress}}</span> <span>{{formInfo.companyAddress}}</span>
</div> </div>
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>公司电话:</span> <span>公司电话:</span>
<span>{{formInfo.companyPhone}}</span> <span>{{formInfo.companyPhone}}</span>
</div> </div>
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>开户行:</span> <span>开户行:</span>
<span>{{formInfo.bankName}}</span> <span>{{formInfo.bankName}}</span>
</div> </div>
<div class="item-text row align-c"> <div class="item-text row align-c">
<span>银行账号:</span> <span>银行账号:</span>
<span>{{formInfo.bankAccount}}</span> <span>{{formInfo.bankAccount}}</span>
</div> </div>
</div> </div>
</div> </div>
<!-- 供应信息 --> <!-- 供应信息 -->
<div class="detail-block"> <div class="detail-block">
<div class="detail-title row align-c"> <div class="detail-title row align-c">
<div class="row align-c"> <div class="row align-c">
<span>寄送地址</span> <span>寄送地址</span>
</div> </div>
</div> </div>
<div class="detail-content orders-bills"> <div class="detail-content orders-bills">
<el-form ref="form" :model="formBills" :rules="rule" label-width="160px"> <el-form ref="form" :model="formBills" :rules="rule" label-width="160px">
<el-form-item label="发票领取方式:"> <el-form-item label="发票领取方式:">
<el-radio-group v-model="formBills.receiveType"> <el-radio-group v-model="formBills.receiveType">
<el-radio label="0">寄送</el-radio> <el-radio label="0">寄送</el-radio>
<el-radio label="1">自取</el-radio> <el-radio label="1">自取</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item v-if="formBills.receiveType === '0'" label="收件人:" prop="name"> <el-form-item v-if="formBills.receiveType === '0'" label="收件人:" prop="name">
<el-input v-model="formBills.name" maxlength="30" placeholder="请输入姓名"></el-input> <el-input v-model="formBills.name" maxlength="30" placeholder="请输入姓名"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="formBills.receiveType === '0'" label="收件人电话:" prop="phone"> <el-form-item v-if="formBills.receiveType === '0'" label="收件人电话:" prop="phone">
<el-input v-model="formBills.phone" maxlength="20" placeholder="请输入电话"></el-input> <el-input v-model="formBills.phone" maxlength="20" placeholder="请输入电话"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="formBills.receiveType === '0'" label="收件地址:" prop="area"> <el-form-item v-if="formBills.receiveType === '0'" label="收件地址:" prop="area">
<currencyArea @change="onAreaChange"></currencyArea> <currencyArea @change="onAreaChange"></currencyArea>
</el-form-item> </el-form-item>
<el-form-item v-if="formBills.receiveType === '0'" label="" prop="area"> <el-form-item v-if="formBills.receiveType === '0'" label="" prop="area">
<el-input v-model="formBills.area" maxlength="100" placeholder="请输入详细地址"></el-input> <el-input v-model="formBills.area" maxlength="100" placeholder="请输入详细地址"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="form-button row"> <el-form-item class="form-button row">
<el-button type="primary" @click.prevent="onOpenBill()">确定</el-button> <el-button type="primary" @click.prevent="onOpenBill()">确定</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
// npm // npm
import iMiment from 'miment' import iMiment from 'miment'
// 工具 // 工具
import iHost from '@/common/js/host.js' import iHost from '@/common/js/host.js'
import iRule from '@/common/js/rule/rule.js' import iRule from '@/common/js/rule/rule.js'
import iRequest from '@/common/js/request/request.js' import iRequest from '@/common/js/request/request.js'
import iCurrencyMap from '@/components/currency-map.vue' import iCurrencyMap from '@/components/currency-map.vue'
import iCurrencyArea from '@/components/currency-area.vue' import iCurrencyArea from '@/components/currency-area.vue'
import iElement from '@/common/js/element/repair.js' import iElement from '@/common/js/element/repair.js'
export default { export default {
components: { components: {
currencyMap: iCurrencyMap, currencyMap: iCurrencyMap,
currencyArea: iCurrencyArea, currencyArea: iCurrencyArea,
}, },
data: function () { data: function () {
return { return {
onOrdersId: 0, // 订单标识 onOrdersId: 0, // 订单标识
componentOrder: {}, // 订单信息 componentOrder: {}, // 订单信息
componentProject: {}, // 项目数据 componentProject: {}, // 项目数据
componentContract: [], // 合同数据 componentContract: [], // 合同数据
componentAgency: {}, // 供应信息 componentAgency: {}, // 供应信息
formInfo: {}, formInfo: {},
formBills: {}, formBills: {},
companyInvoice: [ companyInvoice: [
{ 'label': '增值税专票', 'value': 1 }, { 'label': '增值税专票', 'value': 1 },
{ 'label': '增值税普票', 'value': 2 }, { 'label': '增值税普票', 'value': 2 },
{ 'label': '其他类型', 'value': 3 }, { 'label': '其他类型', 'value': 3 },
], ],
// 表单验证 // 表单验证
rule: { rule: {
name: [ name: [
{ required: true, message: '请输入姓名', trigger: 'blur' }, { required: true, message: '请输入姓名', trigger: 'blur' },
{ validator: iRule.predefineRoutineText, trigger: 'blur'} { validator: iRule.predefineRoutineText, trigger: 'blur'}
], ],
area: [ area: [
{ required: true, message: '请输入详细地址', trigger: 'blur' }, { required: true, message: '请输入详细地址', trigger: 'blur' },
{ validator: iRule.predefineRoutineText, trigger: 'blur'} { validator: iRule.predefineRoutineText, trigger: 'blur'}
], ],
phone: [ phone: [
{ required: true, message: '请输入收件人联系号码', trigger: 'blur' }, { required: true, message: '请输入收件人联系号码', trigger: 'blur' },
{ validator: iRule.phoneAndFixedPhone, message: '请正确输入联系号码', trigger: 'blur'} { validator: iRule.phoneAndFixedPhone, message: '请正确输入联系号码', trigger: 'blur'}
], ],
}, },
} }
}, },
watch:{ watch:{
$route: function () { $route: function () {
this.initKey() this.initKey()
} }
}, },
created: function () { created: function () {
this.initKey() this.initKey()
this.resetForm() this.resetForm()
this.queryBillsInfo() this.queryBillsInfo()
}, },
mounted: function () { mounted: function () {
}, },
methods: { methods: {
initKey: function () { initKey: function () {
this.onOrdersId = this.$route.query.id this.onOrdersId = this.$route.query.id
}, },
resetForm: function () { resetForm: function () {
this.formInfo = { this.formInfo = {
'companyName': '', 'companyName': '',
'companyCode': '', 'companyCode': '',
'companyAddress': '', 'companyAddress': '',
'companyInvoice': '', 'companyInvoice': '',
'companyTax': '', 'companyTax': '',
'companyPhone': '', 'companyPhone': '',
'bankName': '', 'bankName': '',
'bankAccount': '', 'bankAccount': '',
} }
this.formBills = { this.formBills = {
'name': '', 'name': '',
'phone': '', 'phone': '',
'area': '', 'area': '',
'areaArray': [], 'areaArray': [],
'type': '', 'type': '',
'receiveType': '0' 'receiveType': '0'
} }
}, },
queryBillsInfo: function () { queryBillsInfo: function () {
iRequest.request(iHost.base + 'bid/order/getOrderBillingDetail', { 'orderId': this.onOrdersId } , 'json', 'post') iRequest.request(iHost.base + 'bid/order/getOrderBillingDetail', { 'orderId': this.onOrdersId } , 'json', 'post')
.then((funcResponse) => { .then((funcResponse) => {
this.formInfo = { this.formInfo = {
'orderId': this.onOrdersI, 'orderId': this.onOrdersI,
'companyName': funcResponse.companyName, 'companyName': funcResponse.companyName,
'companyCode': funcResponse.companyCode, 'companyCode': funcResponse.companyCode,
'companyAddress': funcResponse.address, 'companyAddress': funcResponse.address,
'companyInvoice': funcResponse.invoiceType, 'companyInvoice': funcResponse.invoiceType,
'companyTax': funcResponse.taxType, 'companyTax': funcResponse.taxType,
'companyPhone': funcResponse.phone, 'companyPhone': funcResponse.phone,
'bankName': funcResponse.openBank, 'bankName': funcResponse.openBank,
'bankAccount': funcResponse.bankAccount, 'bankAccount': funcResponse.bankAccount,
} }
})
// for (let i = 0, len = this.companyInvoice.length; i < len; i++) { .catch((funcError) => {})
// if (this.companyInvoice[i].value === Number(this.formInfo.companyInvoice)) { },
// this.formBills.type = this.companyInvoice[i].label
// } /**
// } * 地域选择组件
}) * @function
.catch((funcError) => {}) * @param {array } funcArea - ['省份', '城市', '区域' ]
}, * @returns
*/
/** onAreaChange: function (funcArea) {
* 地域选择组件 console.log(funcArea)
* @function this.formBills.areaArray = funcArea
* @param {array } funcArea - ['省份', '城市', '区域' ] },
* @returns
*/ onOpenBill: function () {
onAreaChange: function (funcArea) { if (!this.formBills.type) {
console.log(funcArea) this.$message.error('请选择发票类型')
this.formBills.areaArray = funcArea return
}, }
this.$refs.form.validate(funcValid => {
onOpenBill: function () { if (funcValid) {
if (!this.formBills.type) { let funcParam = {
this.$message.error('请选择发票类型') 'orderId': this.onOrdersId,
return 'name': this.formBills.name,
} 'phone': this.formBills.phone,
this.$refs.form.validate(funcValid => { 'area': this.formBills.areaArray.join('/'),
if (funcValid) { 'address': this.formBills.area,
let funcParam = { 'invoiceType': '0',
'orderId': this.onOrdersId, 'receiveType': this.formBills.receiveType
'name': this.formBills.name, }
'phone': this.formBills.phone, console.log(JSON.stringify(funcParam))
'area': this.formBills.areaArray.join('/'),
'address': this.formBills.area, iRequest.request(iHost.base + 'bid/order/doOrderBilling', funcParam, 'json', 'post')
'invoiceType': '', .then((funcResponse) => {
'receiveType': this.formBills.receiveType this.$message({ message: '开票成功', type: 'success' })
} this.$router.push('/supplier/ordersdetail?id=' + this.onOrdersId)
})
for (let i = 0, len = this.companyInvoice.length; i < len; i++) { .catch((funcError) => {
if (this.companyInvoice[i].label === this.formBills.type) { this.$message.error(funcError.message)
funcParam.invoiceType = this.companyInvoice[i].value })
} }
} })
},
console.log(JSON.stringify(funcParam)) }
}
iRequest.request(iHost.base + 'bid/order/doOrderBilling', funcParam, 'json', 'post') </script>
.then((funcResponse) => {
this.$message({ message: '开票成功', type: 'success' }) <style lang="less">
this.$router.push('/supplier/ordersdetail?id=' + this.onOrdersId) .supplier-orders-bill {
}) width: 100%;
.catch((funcError) => {
this.$message.error(funcError.message) .detail-map {
}) height: 66px;
} border-bottom: 1px #EFEFEF solid;
}) }
},
} .detail-operation {
} height: 40px;
</script> margin-top: 24px;
<style lang="less"> button {
.supplier-orders-bill { width: 106px;
width: 100%; height: 36px;
margin-left: 12px;
.detail-map { border:1px solid @colorBlue;
height: 66px; border-radius: 18px;
border-bottom: 1px #EFEFEF solid; color: @colorBlue;
} background: #FFFFFF;
font-size: @fontSize02;
.detail-operation { }
height: 40px; }
margin-top: 24px;
.detail-line {
button { height: 1px;
width: 106px; margin-bottom: 20px;
height: 36px; background: #EFEFEF;
margin-left: 12px; }
border:1px solid @colorBlue;
border-radius: 18px; .detail-block {
color: @colorBlue; .detail-title {
background: #FFFFFF; width: 100%;
font-size: @fontSize02;
} > div {
} width: 100%;
height: 40px;
.detail-line { padding: 0 12px;
height: 1px; background: #F2F2F2;
margin-bottom: 20px; }
background: #EFEFEF;
} span {
font-weight: 800;
.detail-block { font-size: @fontSize01;
.detail-title { }
width: 100%; }
> div { .detail-title-white {
width: 100%; > div {
height: 40px; background: #FFFFFF;
padding: 0 12px; }
background: #F2F2F2; }
}
.detail-content {
span { margin: 30px 0;
font-weight: 800; .item-text {
font-size: @fontSize01; > span:nth-child(1) {
} min-width: 150px;
} margin: 6px 16px 6px 0;
text-align: right;
.detail-title-white { font-size: @fontSize02;
> div { }
background: #FFFFFF;
} > span:nth-child(2) {
} margin: 6px 0;
font-size: @fontSize01;
.detail-content { }
margin: 30px 0; }
.item-text { }
> span:nth-child(1) {
min-width: 150px; .orders-bills {
margin: 6px 16px 6px 0; width: 664px;
text-align: right; }
font-size: @fontSize02; }
}
.form-button button {
> span:nth-child(2) { width: 160px;
margin: 6px 0; height: 50px;
font-size: @fontSize01; color: #ffffff;
} background: #2575fa;
} border-radius: 26px;
} border: none;
}
.orders-bills {
width: 664px; .form-button button:hover {
} color: #ffffff;
} background: #2575fa;
border-radius: 26px;
.form-button button { border: none;
width: 160px; }
height: 50px; }
color: #ffffff;
background: #2575fa;
border-radius: 26px;
border: none;
}
.form-button button:hover {
color: #ffffff;
background: #2575fa;
border-radius: 26px;
border: none;
}
}
</style> </style>
\ No newline at end of file
...@@ -281,8 +281,8 @@ ...@@ -281,8 +281,8 @@
'agencLiaison': funcResponse.company.contactName, 'agencLiaison': funcResponse.company.contactName,
} }
if (funcResponse.orderBilling.name) { if (funcResponse.orderBilling) {
this.isReceive = true this.isReceive = !Boolean(Number(funcResponse.orderBilling.receiveType))
this.componentReceive = { this.componentReceive = {
'name': funcResponse.orderBilling.name, 'name': funcResponse.orderBilling.name,
'phone': funcResponse.orderBilling.phone, 'phone': funcResponse.orderBilling.phone,
...@@ -300,6 +300,8 @@ ...@@ -300,6 +300,8 @@
this.isReceive = false this.isReceive = false
} }
console.log(this.isReceive)
if (this.componentProject.isPackage) { if (this.componentProject.isPackage) {
// 多个合同 // 多个合同
let funcRawData = funcResponse.order.tenderPackages let funcRawData = funcResponse.order.tenderPackages
......
...@@ -139,9 +139,9 @@ ...@@ -139,9 +139,9 @@
<el-radio label="2">非增值纳税人</el-radio> <el-radio label="2">非增值纳税人</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="发票类型(可多选):" prop="companyInvoice"> <el-form-item label="发票类型(选):" prop="companyInvoice">
<el-radio-group v-model="formRegister.companyInvoice" :value="formRegister.companyInvoice"> <el-radio-group v-model="formRegister.companyInvoice" :value="formRegister.companyInvoice">
<el-radio label="0">增值税</el-radio> <el-radio label="0">增值税</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="公司名称:" prop="companyName"> <el-form-item label="公司名称:" prop="companyName">
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
companyPhone: '', companyPhone: '',
bankName: '', bankName: '',
bankAccount: '', bankAccount: '',
receiveType: '', receiveType: '0',
receiveContactor: '', receiveContactor: '',
receiveMobile: '', receiveMobile: '',
receiveArea: [], receiveArea: [],
...@@ -431,6 +431,9 @@ ...@@ -431,6 +431,9 @@
{ required: true, message: '请再次输入登录密码', trigger: 'blur' }, { required: true, message: '请再次输入登录密码', trigger: 'blur' },
{ validator: (funcRule, funcValue, funcCallback) => iRule.passwordRepeat(funcRule, funcValue, funcCallback, this.formRegister.password), message: '与登录密码不一致,请重新输入', trigger: 'blur'} { validator: (funcRule, funcValue, funcCallback) => iRule.passwordRepeat(funcRule, funcValue, funcCallback, this.formRegister.password), message: '与登录密码不一致,请重新输入', trigger: 'blur'}
], ],
receiveType: [
{ required: true, message: '请输选择发票领取方式', trigger: 'blur' },
],
receiveContactor: [ receiveContactor: [
{ required: true, message: '请输入收件人姓名', trigger: 'blur' }, { required: true, message: '请输入收件人姓名', trigger: 'blur' },
{ validator: iRule.predefineRoutineText, message: '请正确输入姓名', trigger: 'blur'} { validator: iRule.predefineRoutineText, message: '请正确输入姓名', trigger: 'blur'}
...@@ -485,7 +488,7 @@ ...@@ -485,7 +488,7 @@
companyPhone: '', companyPhone: '',
bankName: '', bankName: '',
bankAccount: '', bankAccount: '',
receiveType: '', receiveType: '1',
receiveContactor: '', receiveContactor: '',
receiveMobile: '', receiveMobile: '',
receiveArea: [], receiveArea: [],
......
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 sign in to comment