|
|
@@ -1285,17 +1285,20 @@
|
|
|
// delete newObj.inOutAddPO.extInfo;
|
|
|
console.log('2222', obj);
|
|
|
|
|
|
- const res = await outin.save(obj);
|
|
|
- if (res.code == 0) {
|
|
|
- this.$message.success('保存成功!');
|
|
|
- }
|
|
|
-
|
|
|
- this.saveLoading = false;
|
|
|
- this.$router.push('/warehouseManagement/outgoingManagement');
|
|
|
-
|
|
|
- if (res?.success) {
|
|
|
- this.$message.success('保存成功!');
|
|
|
- this.$router.go(-1);
|
|
|
+ try {
|
|
|
+ const res = await outin.saveNew(obj);
|
|
|
+ if (res.code == 0) {
|
|
|
+ await await outin.outApprove({ outInId: res.data });
|
|
|
+ this.$message.success('保存成功!');
|
|
|
+ }
|
|
|
+ this.$router.push('/warehouseManagement/outgoingManagement');
|
|
|
+ if (res?.success) {
|
|
|
+ this.$message.success('保存成功!');
|
|
|
+ this.$router.go(-1);
|
|
|
+ }
|
|
|
+ this.saveLoading = false;
|
|
|
+ } catch (error) {
|
|
|
+ this.saveLoading = false;
|
|
|
}
|
|
|
}
|
|
|
});
|