Commit 1e651279 authored by zhoutong's avatar zhoutong

修复合包完成

parent d4968791
...@@ -253,6 +253,20 @@ export function getMergeTagById(id) { ...@@ -253,6 +253,20 @@ export function getMergeTagById(id) {
}); });
} }
/**
* 完成合包
*
* @export
* @param {*} data
* @return {*}
*/
export function finishMergePkg(shipmentId) {
return request({
url: "/ecw/box-merge-pkg/finishMergePkg?shipmentId="+shipmentId,
method: "get"
});
}
/***************************** 合包 end **********************************/ /***************************** 合包 end **********************************/
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
</template> </template>
<script> <script>
import { getMergePkgList, createMergePkg, updateMergePkg, deleteMergePkg, getMergeTagById } from '@/api/ecw/boxAir' import { getMergePkgList, createMergePkg, updateMergePkg, deleteMergePkg, getMergeTagById, finishMergePkg } from '@/api/ecw/boxAir'
import { formatDate, serviceMsg } from '../../utils' import { formatDate, serviceMsg } from '../../utils'
import unPkgPage from './unPkgPage.vue' import unPkgPage from './unPkgPage.vue'
import PkgPage from './pkgPage.vue' import PkgPage from './pkgPage.vue'
...@@ -250,7 +250,13 @@ export default { ...@@ -250,7 +250,13 @@ export default {
this.getList() this.getList()
this.pkgPagedialogVisible = false this.pkgPagedialogVisible = false
}, },
finish() {} finish() {
finishMergePkg(this.$attrs.shipmentObj.id).then((res) => {
serviceMsg(res, this).then(() => {
this.$emit("closeDialog", "submit");
});
});
}
} }
} }
</script> </script>
......
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