|
|
@@ -6,7 +6,7 @@
|
|
|
<div :class="activeType === 'comfirmed' ? 'active' : ''" @click="ChangeList('comfirmed')"><span>待发货</span></div>
|
|
|
<div :class="activeType === 'inbound' ? 'active' : ''" @click="ChangeList('inbound')"><span>待收货</span></div>
|
|
|
</div>
|
|
|
- <ul class="order-list-wrap" id="order-wrapper">
|
|
|
+ <ul class="order-list-wrap" id="order-wrapper" v-show="orderList.length > 0">
|
|
|
<li class="clearfix" v-for="item in orderList">
|
|
|
<div class="list-wrap-title clearfix">
|
|
|
<div class="pull-left" v-if="vendorType !== 'buyer'" @click="toShopdetails(item)">
|
|
|
@@ -448,26 +448,37 @@
|
|
|
},
|
|
|
// 发货
|
|
|
sendGoods(item) {
|
|
|
- this.sendGoodstype = 'add'
|
|
|
- if (item.inid) {
|
|
|
- this._id = EncryptionFilter(item.inid)
|
|
|
- this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
|
|
|
- this.sendGoodsInfo = res.data[0]
|
|
|
- this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
|
|
|
- this.showSend = true
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$http.get(`/trade/purchase/vendor/tobeshiped/${item.id}`).then(res => {
|
|
|
- this._id = EncryptionFilter(res.data.inId)
|
|
|
- this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
|
|
|
- this.sendGoodsInfo = res.data[0]
|
|
|
- this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
|
|
|
- this.showSend = true
|
|
|
- })
|
|
|
- }, err => {
|
|
|
- this.onMind('转出货单失败' + err.data)
|
|
|
- })
|
|
|
+ if (!(this.user.data.pwdEnable && this.user.data.haveUserQuestion && this.user.data.emailValidCode === 2)) {
|
|
|
+ // 等级不够
|
|
|
+ this.onMind('您的账户安全等级较低,请先在pc端进行信息完善')
|
|
|
+ return
|
|
|
}
|
|
|
+ this.$http.get(`/trade/bankInfo/vender/enterprise?status=104&type=sup`).then(res => {
|
|
|
+ if (res.data && res.data.length > 0) {
|
|
|
+ this.onMind('您还未填写收款账户信息 ,请进行完善')
|
|
|
+ } else {
|
|
|
+ this.sendGoodstype = 'add'
|
|
|
+ if (item.inid) {
|
|
|
+ this._id = EncryptionFilter(item.inid)
|
|
|
+ this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
|
|
|
+ this.sendGoodsInfo = res.data[0]
|
|
|
+ this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
|
|
|
+ this.showSend = true
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$http.get(`/trade/purchase/vendor/tobeshiped/${item.id}`).then(res => {
|
|
|
+ this._id = EncryptionFilter(res.data.inId)
|
|
|
+ this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
|
|
|
+ this.sendGoodsInfo = res.data[0]
|
|
|
+ this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
|
|
|
+ this.showSend = true
|
|
|
+ })
|
|
|
+ }, err => {
|
|
|
+ this.onMind('转出货单失败' + err.response.data)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 选择配送商
|
|
|
choosePeisong() {
|