Commit b14fe58b by 严立

列表查看公告详情方式优化 | 添加中标信息类型 | 供应商地址异常处理

parent 2da8c6e0
......@@ -75,6 +75,9 @@ let output = {
// 请求正常直接返回 data 内容
case 200:
if (funcResultData.msg === '登录失效') {
return { state: false, response: { message: funcResultData.msg }}
}
return { state: true, response: funcResultData.data}
break
......
......@@ -92,8 +92,9 @@ let output = {
if (funcInterceptorsResponse.state) {
funcResolve(funcInterceptorsResponse.response)
} else {
console.log('funcReject')
if (funcInterceptorsResponse.response.message !== '登录失效') {
iVue.$message.error(funcInterceptorsResponse.response.message)
}
funcReject(funcInterceptorsResponse.response)
}
} else {
......
......@@ -1103,7 +1103,7 @@
}
.bidding-news-detail-html {
width: 100%;
height: 40px;
height: 38px;
margin-top: 20px;
font-size: @fontSize01 !important;
overflow: hidden;
......
......@@ -230,12 +230,14 @@
'examineReason': funcResponse.reason,
}
if (funcResponse.receiveArea) {
// 判断地址数据类型,同时兼容字符串与数组类型
if (Object.prototype.toString.call(funcResponse.receiveArea) === '[object String]') {
this.formInfo.receiveArea = JSON.parse(funcResponse.receiveArea).join(' ')
} else {
this.formInfo.receiveArea = funcResponse.receiveArea.join(' ')
}
}
console.log(this.formInfo)
......
......@@ -852,7 +852,6 @@
* @returns
*/
onQuoteSubmit: function () {
console.log(JSON.stringify(this.tableQuote))
if (this.tableQuote.length === 0) {
this.$message.error('请填写完整报价信息')
return
......@@ -893,7 +892,8 @@
'biddingOffers': JSON.stringify(funcQuoteData)
}
let funcOther = iRequest.request(iHost.base + 'bid/zBiddingProject/biddingOffer', funcParam, 'json', 'post')
console.log('promise begin')
iRequest.request(iHost.base + 'bid/zBiddingProject/biddingOffer', funcParam, 'json', 'post')
.then((funcResponse) => {
this.winQuote = false
this.$message({ message: '报价成功!', type: 'success' })
......
......@@ -283,25 +283,26 @@
if (funcResponse.orderBilling) {
this.isReceive = !Boolean(Number(funcResponse.orderBilling.receiveType))
if (this.isReceive) {
this.componentReceive = {
'name': funcResponse.orderBilling.name,
'phone': funcResponse.orderBilling.phone,
'name': funcResponse.orderBilling.name ? funcResponse.orderBilling.name : '暂无',
'phone': funcResponse.orderBilling.phone ? funcResponse.orderBilling.phone : '暂无',
'area': '',
'address': funcResponse.orderBilling.address,
'address': funcResponse.orderBilling.address ? funcResponse.orderBilling.address : '暂无',
}
// 判断地址数据类型,同时兼容字符串与数组类型
if (funcResponse.orderBilling.area) {
if (Object.prototype.toString.call(funcResponse.orderBilling.area) === '[object String]') {
this.componentReceive.area = JSON.parse(funcResponse.orderBilling.area).join(' ')
} else {
this.componentReceive.area = funcResponse.orderBilling.area.join(' ')
}
} else {
this.isReceive = false
}
}
}
console.log(this.isReceive)
console.log(this.componentProject.isPackage)
if (this.componentProject.isPackage) {
// 多个合同
let funcRawData = funcResponse.order.tenderPackages
......@@ -313,6 +314,7 @@
'price': funcRawData[i].price,
}
this.componentContract.push(funcItem)
console.log('this.componentContract', this.componentContract)
}
} else {
this.componentContract.push({ 'price': funcResponse.order.price })
......
......@@ -469,7 +469,7 @@
* @returns
*/
reset: function () {
this.state = 3
this.state = 1
this.formRegister = {
// 基本信息
companyName: '',
......
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