|
@@ -740,6 +740,17 @@ export default {
|
|
|
bsType: "TKXS",
|
|
bsType: "TKXS",
|
|
|
...this.form
|
|
...this.form
|
|
|
}).then(res => {
|
|
}).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
|
|
|
|
|
+ });
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
this.$message.success("保存成功");
|
|
this.$message.success("保存成功");
|
|
|
this.getDetail(res.data.data.id)
|
|
this.getDetail(res.data.data.id)
|
|
|
this.editButton = true
|
|
this.editButton = true
|
|
@@ -793,7 +804,16 @@ export default {
|
|
|
});
|
|
});
|
|
|
this.form.salerName = this.form.$salerId ? this.form.$salerId : ''
|
|
this.form.salerName = this.form.$salerId ? this.form.$salerId : ''
|
|
|
this.form.storageName = this.form.$storageId ? this.form.$storageId : ''
|
|
this.form.storageName = this.form.$storageId ? this.form.$storageId : ''
|
|
|
- generateShipTask({ id: this.form.id }).then((res) => {
|
|
|
|
|
|
|
+ generateShipTask({ id: this.form.id, version: this.form.version }).then((res) => {
|
|
|
|
|
+ if (res.data.code === 601) {
|
|
|
|
|
+ this.getDetail(this.form.id)
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ message: res.data.msg
|
|
|
|
|
+ });
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
loading.close()
|
|
loading.close()
|
|
|
this.$message.success('生成成功');
|
|
this.$message.success('生成成功');
|
|
|
this.getDetail(this.form.id)
|
|
this.getDetail(this.form.id)
|
|
@@ -812,7 +832,16 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
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) {
|
|
|
|
|
+ this.getDetail(this.form.id)
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ message: res.data.msg
|
|
|
|
|
+ });
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
loading.close()
|
|
loading.close()
|
|
|
this.$message.success('撤销成功');
|
|
this.$message.success('撤销成功');
|
|
|
this.getDetail(this.form.id)
|
|
this.getDetail(this.form.id)
|
|
@@ -834,6 +863,7 @@ export default {
|
|
|
url: '/tirePartsMall/salesService/returns/index',
|
|
url: '/tirePartsMall/salesService/returns/index',
|
|
|
pageStatus: "this.$store.getters.xsthStatus",
|
|
pageStatus: "this.$store.getters.xsthStatus",
|
|
|
pageLabel: "销售退货(L)",
|
|
pageLabel: "销售退货(L)",
|
|
|
|
|
+ version: this.form.version
|
|
|
}
|
|
}
|
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
lock: true,
|
|
@@ -842,6 +872,15 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
});
|
|
|
checkOrder({ ...data }).then((res) => {
|
|
checkOrder({ ...data }).then((res) => {
|
|
|
|
|
+ if (res.data.code === 601) {
|
|
|
|
|
+ this.getDetail(this.form.id)
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ message: res.data.msg
|
|
|
|
|
+ });
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
this.getDetail(res.data.data.id)
|
|
this.getDetail(res.data.data.id)
|
|
|
this.$message.success('申请退货成功');
|
|
this.$message.success('申请退货成功');
|
|
|
this.isApplySettlement = !this.isApplySettlement
|
|
this.isApplySettlement = !this.isApplySettlement
|
|
@@ -901,11 +940,20 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
});
|
|
|
revokeCheckOrder({ ...this.form }).then(res => {
|
|
revokeCheckOrder({ ...this.form }).then(res => {
|
|
|
|
|
+ if (res.data.code === 601) {
|
|
|
|
|
+ this.getDetail(this.form.id)
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ message: res.data.msg
|
|
|
|
|
+ });
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
this.isRevocationRequest = !this.isRevocationRequest
|
|
this.isRevocationRequest = !this.isRevocationRequest
|
|
|
this.getDetail(res.data.data.id)
|
|
this.getDetail(res.data.data.id)
|
|
|
this.$message.success('撤回成功')
|
|
this.$message.success('撤回成功')
|
|
|
loading.close();
|
|
loading.close();
|
|
|
- })
|
|
|
|
|
|
|
+ }).catch(() => { loading.close(); })
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
rowDelBox(row, index, type) {
|
|
rowDelBox(row, index, type) {
|