|
|
@@ -730,6 +730,17 @@ export default {
|
|
|
bsType: "TKCG",
|
|
|
...this.form
|
|
|
}).then(res => {
|
|
|
+ if (res.data.code === 601) {
|
|
|
+ if (this.onLoad.id) {
|
|
|
+ console.log(2);
|
|
|
+ this.refresh(this.onLoad.id, true)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ return true
|
|
|
+ }
|
|
|
this.$message.success("保存成功");
|
|
|
this.getDetail(res.data.data.id)
|
|
|
this.editButton = true
|
|
|
@@ -781,7 +792,19 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
- generateShipTask({ id: this.form.id }).then((res) => {
|
|
|
+ generateShipTask({ id: this.form.id, version: this.form.version }).then((res) => {
|
|
|
+ if (res.data.code === 601) {
|
|
|
+ if (this.onLoad.id) {
|
|
|
+ console.log(2);
|
|
|
+ this.getDetail(this.onLoad.id, true)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ loading.close()
|
|
|
+ return true
|
|
|
+ }
|
|
|
loading.close()
|
|
|
this.$message.success('生成成功');
|
|
|
this.getDetail(this.form.id)
|
|
|
@@ -800,7 +823,19 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
- revokeGenerateShipTask({ id: this.form.id }).then((res) => {
|
|
|
+ revokeGenerateShipTask({ id: this.form.id, version: this.form.version }).then((res) => {
|
|
|
+ if (res.data.code === 601) {
|
|
|
+ if (this.onLoad.id) {
|
|
|
+ console.log(2);
|
|
|
+ this.getDetail(this.onLoad.id, true)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ loading.close()
|
|
|
+ return true
|
|
|
+ }
|
|
|
loading.close()
|
|
|
this.$message.success('撤销成功');
|
|
|
this.getDetail(this.form.id)
|
|
|
@@ -822,6 +857,7 @@ export default {
|
|
|
url: '/tirePartsMall/purchaseService/returns/index',
|
|
|
pageStatus: "this.$store.getters.cgthStatus",
|
|
|
pageLabel: "采购退货(L)",
|
|
|
+ version: this.form.version
|
|
|
}
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
@@ -830,6 +866,18 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
checkOrder({ ...data }).then((res) => {
|
|
|
+ if (res.data.code === 601) {
|
|
|
+ if (this.onLoad.id) {
|
|
|
+ console.log(2);
|
|
|
+ this.getDetail(this.onLoad.id, true)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ loading.close()
|
|
|
+ return true
|
|
|
+ }
|
|
|
this.getDetail(res.data.data.id)
|
|
|
this.$message.success('申请退货成功');
|
|
|
this.isApplySettlement = !this.isApplySettlement
|
|
|
@@ -889,6 +937,18 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
revokeCheckOrder({ ...this.form }).then(res => {
|
|
|
+ if (res.data.code === 601) {
|
|
|
+ if (this.onLoad.id) {
|
|
|
+ console.log(2);
|
|
|
+ this.getDetail(this.onLoad.id, true)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ loading.close()
|
|
|
+ return true
|
|
|
+ }
|
|
|
this.isRevocationRequest = !this.isRevocationRequest
|
|
|
this.getDetail(res.data.data.id)
|
|
|
this.$message.success('撤回成功')
|