Commit f53e72b8 by 10_noah@other.ren

立即发货 修改

parent 4bc758aa
...@@ -83,9 +83,9 @@ ...@@ -83,9 +83,9 @@
<el-select v-model="form.expressCompany" size="30px"> <el-select v-model="form.expressCompany" size="30px">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.valueStr"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.valueStr">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
}, },
computed: { computed: {
initDropDownBox(){ initDropDownBox(){
this.$axios.get("/general/mallExpressCompany/dropDownBox/courierCompany").then(e =>{ this.$axios.get("/admin/mallOrder/dropDownBox/courierCompany").then(e =>{
this.options=Object.values(e.data) this.options=Object.values(e.data)
}) })
}, },
...@@ -221,34 +221,25 @@ ...@@ -221,34 +221,25 @@
}, },
// 立即发货-对话框 // 立即发货-对话框
shipsImmediately(row){ shipsImmediately(row){
// this.form.orderNo=row.orderNo
this.form.id=row.id this.form.id=row.id
this.$axios.get("/admin/merchantMallOrder/isNeedMailed",{ this.form.waybillNo = '';
params:{orderNo:row.orderNo}, this.form.expressCompany = '';
}).then(response => { if(row['isLogistics']==1){
console.log(JSON.stringify(response.data.data)) this.dialogVisibleShipsImmediately = true
if(response.data.data===true){ }else{
console.log("需邮寄,填写信息") this.$confirm('是否确认发货?', '提示', {
this.dialogVisibleShipsImmediately = true confirmButtonText: '确定',
} else { cancelButtonText: '取消',
console.log("无需邮寄,二次确认即可") type: 'warning'
this.$confirm('是否确认发货?', '提示', { }).then(data => {
confirmButtonText: '确定', shipsImmediatelyApi(this.form).then(r => {
cancelButtonText: '取消', this.$message.success('发货成功')
type: 'warning' this.getList(this.page)
}).then(data => { }).catch(e => {
shipsImmediatelyApi(this.form).then(r => { console.log('错误', e.message)
this.$message.success('发货成功')
this.getList(this.page)
}).catch(e => {
console.log('错误', e.message)
})
}) })
} })
}, error => { }
console.log('错误', error.message)
})
}, },
// 确认发货-提交按钮 // 确认发货-提交按钮
confirmDelivery(){ confirmDelivery(){
......
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