Commit 71842b8f by cpa

商家端-立即发货修改种

parent ca282633
...@@ -224,7 +224,6 @@ ...@@ -224,7 +224,6 @@
methods: { methods: {
// 取消订单提交事件 // 取消订单提交事件
confirmCancelOrderSubmit(){ confirmCancelOrderSubmit(){
console.log("+++"+this.form.orderNo)
cancelOrderMethod( cancelOrderMethod(
{orderNo:this.form.orderNo, {orderNo:this.form.orderNo,
refundRemark:this.refundRemark, refundRemark:this.refundRemark,
...@@ -263,23 +262,25 @@ ...@@ -263,23 +262,25 @@
this.$axios.get("/admin/merchantMallOrder/isVirtualGoods",{ this.$axios.get("/admin/merchantMallOrder/isVirtualGoods",{
params:{orderNo:this.id}, params:{orderNo:this.id},
}).then(response => { }).then(response => {
if(response.data.data){
this.form.orderNo=this.id console.log("结果返回:"+JSON.stringify(response))
this.dialogVisibleShipsImmediately = true // if(response.data.data){
}else { // this.form.orderNo=this.id
// 虚拟商品 二次确认直接发货 // this.dialogVisibleShipsImmediately = true
this.$confirm('是否确认发货?', '提示', { // }else {
confirmButtonText: '确定', // // 虚拟商品 二次确认直接发货
cancelButtonText: '取消', // this.$confirm('是否确认发货?', '提示', {
type: 'warning' // confirmButtonText: '确定',
}).then(data => { // cancelButtonText: '取消',
shipsImmediately(this.form).then(r => { // type: 'warning'
this.$message.success('发货成功') // }).then(data => {
}).catch(e =>{ // shipsImmediately(this.form).then(r => {
console.log('错误', e.message) // this.$message.success('发货成功')
}) // }).catch(e =>{
}) // console.log('错误', e.message)
} // })
// })
// }
}, error => { }, error => {
console.log('错误', error.message) console.log('错误', error.message)
}) })
......
...@@ -192,9 +192,12 @@ ...@@ -192,9 +192,12 @@
// 立即发货-对话框 // 立即发货-对话框
shipsImmediately(row){ shipsImmediately(row){
this.form.orderNo=row.orderNo this.form.orderNo=row.orderNo
this.$axios.get("/admin/merchantMallOrder/isVirtualGoods",{
this.$axios.get("/admin/merchantMallOrder/isNeedMailed",{
params:{orderNo:row.orderNo}, params:{orderNo:row.orderNo},
}).then(response => { }).then(response => {
alert(JSON.stringify(response.data))
if(response.data){console.log("需邮寄,填写信息")}else {console.log("无需邮寄,二次确认即可")}
// if(response.data.data){ // if(response.data.data){
// this.form.orderNo=row.orderNo // this.form.orderNo=row.orderNo
// this.dialogVisibleShipsImmediately = true // this.dialogVisibleShipsImmediately = true
......
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 to comment