Browse Source

纸商城bug、报价bug

devlop
邓雄飞 4 years ago
parent
commit
903a49368c
7 changed files with 18 additions and 38 deletions
  1. 8
      pages/client-credit/index.vue
  2. 5
      pages/guarantee-agreement/index.vue
  3. 18
      pages/mall/index.vue
  4. 8
      pages/submit-quotation/index.vue
  5. 9
      pages/trade/index.vue
  6. 6
      pages/trade/quotationList.vue
  7. 2
      utils/hook.js

8
pages/client-credit/index.vue

@ -88,7 +88,8 @@ export default {
creditType: null, creditType: null,
searchList: [], searchList: [],
supplierList: [], supplierList: [],
hasCreditList: []
hasCreditList: [],
isFinishedContract: false //
} }
}, },
onLoad(option) { onLoad(option) {
@ -160,7 +161,8 @@ export default {
enterpriseId: this.form.enterpriseId, enterpriseId: this.form.enterpriseId,
enterpriseName: target.enterpriseName, enterpriseName: target.enterpriseName,
legalPersonName: target.legalPerson, legalPersonName: target.legalPerson,
mallSupplierId: this.form.supplierId
mallSupplierId: this.form.supplierId,
isFinishedContract: this.isFinishedContract
}) })
} }
}, },
@ -189,8 +191,10 @@ export default {
if (res) { if (res) {
res.hasCredit && this.hasCreditList.push('month') res.hasCredit && this.hasCreditList.push('month')
res.hasFeisuanCredit && this.hasCreditList.push('fs') res.hasFeisuanCredit && this.hasCreditList.push('fs')
this.isFinishedContract = res.isFinishedContract
} else { } else {
this.hasCreditList = [] this.hasCreditList = []
this.isFinishedContract = false
} }
}) })
} }

5
pages/guarantee-agreement/index.vue

@ -109,6 +109,7 @@ export default {
* @value {String} enterpriseName * @value {String} enterpriseName
* @value {String} legalPersonName * @value {String} legalPersonName
* @value {String} mallSupplierId * @value {String} mallSupplierId
* @value {String} isFinishedContract 是否签署过担保协议
*/ */
params: null params: null
} }
@ -160,7 +161,7 @@ export default {
return return
} }
// //
if (target.supplier.isFinishedContract) {
if (this.isFinishedContract) {
uni.showToast({ uni.showToast({
title: '您已签署过担保协议,即将跳转', title: '您已签署过担保协议,即将跳转',
icon: 'none', icon: 'none',
@ -174,7 +175,7 @@ export default {
} }
// //
if (target.fddEnterpriseStatus === fddEnterpriseStatus.CERTIFIED_SUCCESS) { if (target.fddEnterpriseStatus === fddEnterpriseStatus.CERTIFIED_SUCCESS) {
getGuaranteeContract({ mallSupplierId: this.params.mallSupplierId }).then((res) => {
getGuaranteeContract({ mallSupplierId: this.params.mallSupplierId, customerEnterpriseId: this.params.enterpriseId }).then((res) => {
if (res) { if (res) {
// #ifdef APP-PLUS // #ifdef APP-PLUS
go2('page-view', { title: '签约担保协议', url: encodeURIComponent(res), params: this.params }) go2('page-view', { title: '签约担保协议', url: encodeURIComponent(res), params: this.params })

18
pages/mall/index.vue

@ -256,23 +256,7 @@ export default {
}) })
}, },
// //
shareTap() {
uni.share({
provider: 'weixin',
scene: 'WXSceneSession',
type: 0,
href: 'http://uniapp.dcloud.io/',
title: 'uni-app分享',
summary: '我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!',
imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png',
success: function (res) {
console.log('success:' + JSON.stringify(res))
},
fail: function (err) {
console.log('fail:' + JSON.stringify(err))
}
})
}
shareTap() {}
} }
} }
</script> </script>

8
pages/submit-quotation/index.vue

@ -100,7 +100,7 @@
</view> </view>
</view> </view>
<uGap></uGap> <uGap></uGap>
<view class="submit-btnBg" v-if="upDataObj.replyStatus !== 30102"><button class="submit-btn" type="primary" @click="updataQuery()">提交报价</button></view>
<view class="submit-btnBg" v-if="upDataObj.replyStatus !== 30102"><button class="submit-btn" type="primary" @click="updateQuery()">提交报价</button></view>
<view class=""> <view class="">
<uni-popup ref="popup" :mask-click="false"> <uni-popup ref="popup" :mask-click="false">
<view class="submit-popup"> <view class="submit-popup">
@ -219,7 +219,7 @@
import { back, go2 } from '@/utils/hook.js' import { back, go2 } from '@/utils/hook.js'
import qnHeader from '@/components/qn-header/qn-header.vue' import qnHeader from '@/components/qn-header/qn-header.vue'
import uGap from '@/components/u-gap/u-gap.vue' import uGap from '@/components/u-gap/u-gap.vue'
import { updataEnquiryReply, enquiryReplyDetail } from '@/apis/trade'
import { updateEnquiryReply, enquiryReplyDetail } from '@/apis/trade'
export default { export default {
components: { components: {
@ -429,13 +429,13 @@ export default {
} }
}, },
// //
updataQuery() {
updateQuery() {
var params = { var params = {
...this.upDataObj, ...this.upDataObj,
userId: this.$store.state.userInfo.userId userId: this.$store.state.userInfo.userId
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
updataEnquiryReply(params)
updateEnquiryReply(params)
.then((res) => { .then((res) => {
if (res) { if (res) {
uni.showToast({ uni.showToast({

9
pages/trade/index.vue

@ -43,7 +43,6 @@ import notLogged from '@/components/not-logged/not-logged.vue'
import scrollList from '@/components/scroll-list/scroll-list.vue' import scrollList from '@/components/scroll-list/scroll-list.vue'
import quotationList from './quotationList.vue' import quotationList from './quotationList.vue'
import orderList from './orderList.vue' import orderList from './orderList.vue'
import { gettradingHallList } from '@/apis/trade'
export default { export default {
components: { notLogged, scrollList, quotationList, orderList }, components: { notLogged, scrollList, quotationList, orderList },
data() { data() {
@ -55,9 +54,6 @@ export default {
refresh: false refresh: false
} }
}, },
mounted() {
// this.getQuotationQurty()
},
onShow() { onShow() {
this.refresh = !this.refresh this.refresh = !this.refresh
}, },
@ -68,11 +64,6 @@ export default {
// //
controlChange(value) { controlChange(value) {
this.current = value this.current = value
// if (value === '0') {
// this.getQuotationQurty()
// } else {
// this.getTradingQurty()
// }
} }
} }
} }

6
pages/trade/quotationList.vue

@ -22,9 +22,9 @@
></image> ></image>
</view> </view>
<view class="list-info-contant"> <view class="list-info-contant">
<view class="list-info-title">{{ subItem.brandName }}</view>
<view class="list-info-title">{{ subItem.paperName }}</view>
<view class="list-info-text"> <view class="list-info-text">
{{ subItem.categoryName }}/{{ subItem.paperName }}/{{ subItem.gramWeight }}g/{{ subItem.length }}*{{ subItem.width }}/{{ subItem.quantity }}
{{ subItem.brandName }}/{{ subItem.categoryName }}/{{ subItem.gramWeight }}g/{{ subItem.length }}*{{ subItem.width }}/{{ subItem.quantity }}
</view> </view>
</view> </view>
</view> </view>
@ -32,7 +32,7 @@
<view class="list-border list-bottom-contant"> <view class="list-border list-bottom-contant">
<view> <view>
<text>交货时间</text> <text>交货时间</text>
<text>{{ item.deliveryDay }}</text>
<text>{{ item.deliveryDay }}</text>
</view> </view>
<view> <view>
<text>交货区域</text> <text>交货区域</text>

2
utils/hook.js

@ -20,7 +20,7 @@ export function tab2(tabPage) {
* @return {null} * @return {null}
*/ */
export function back() { export function back() {
if (getCurrentPages().length > 1) {
if (getCurrentPages().length > 0) {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })

Loading…
Cancel
Save