|
|
@@ -550,26 +550,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.response.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() {
|