This commit is contained in:
@fawn-nine
2023-07-20 18:06:00 +08:00
parent 43a14b2f21
commit a4cacdc4bb
6 changed files with 30 additions and 18 deletions

View File

@@ -211,7 +211,13 @@ export default {
//
// getProductsCodeList
// 普通发货
submit1(){
submit1() {
const loading = this.$loading({
lock: true,
text: '请稍后',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.$http({
@@ -223,8 +229,9 @@ export default {
data: this.productsIdsList // 是个数组
// 传orderid
}).then(({ data }) => {
if(data && data.code === 0 ){
console.log(data)
if (data && data.code === 0) {
loading.close();
// console.log(data)
this.beforeCloseDialog()
return this.$message.success('发货成功')
}
@@ -252,7 +259,7 @@ export default {
})
},
//混合发货
submit() {
submit() {
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
// console.log(this.allOrder)
@@ -266,11 +273,11 @@ export default {
type: 'warning'
}).then(() => {
let loading = this.$loading({
lock: true,
text: '执行操作,请稍后',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
lock: true,
text: '执行操作,请稍后',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.$http({
url: this.$http.adornUrl(`/book/buyorder/blendSendFMS/${this.ruleForm.deliverLcd}`),
method: 'post',