|
@@ -86,7 +86,7 @@
|
|
|
updateReceiptAPI,
|
|
updateReceiptAPI,
|
|
|
returnHandleProcessCancel
|
|
returnHandleProcessCancel
|
|
|
} from '@/api/bpm/components/saleManage/saleorder';
|
|
} from '@/api/bpm/components/saleManage/saleorder';
|
|
|
- import {rejectTask,cancelTask} from '@/api/bpm/task';
|
|
|
|
|
|
|
+ import { rejectTask, cancelTask } from '@/api/bpm/task';
|
|
|
|
|
|
|
|
import { listAllUserBind } from '@/api/system/organization';
|
|
import { listAllUserBind } from '@/api/system/organization';
|
|
|
import { EventBus } from './eventBus.js';
|
|
import { EventBus } from './eventBus.js';
|
|
@@ -379,13 +379,16 @@
|
|
|
// 获取销售退货入库信息
|
|
// 获取销售退货入库信息
|
|
|
|
|
|
|
|
let storageData = data.returnStorageData;
|
|
let storageData = data.returnStorageData;
|
|
|
- data.detailList.forEach((val, index) => {
|
|
|
|
|
- val.weight = storageData._packingList[index].weight;
|
|
|
|
|
- val.materielDesignation =
|
|
|
|
|
- storageData._packingList[index].materielDesignation;
|
|
|
|
|
- val.clientCode = storageData._packingList[index].clientCode;
|
|
|
|
|
- val.engrave = storageData._packingList[index].engrave;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (storageData?._packingList?.length) {
|
|
|
|
|
+ data.detailList.forEach((val, index) => {
|
|
|
|
|
+ val.weight = storageData._packingList[index].weight;
|
|
|
|
|
+ val.materielDesignation =
|
|
|
|
|
+ storageData._packingList[index].materielDesignation;
|
|
|
|
|
+ val.clientCode = storageData._packingList[index].clientCode;
|
|
|
|
|
+ val.engrave = storageData._packingList[index].engrave;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 是否已经入库
|
|
// 是否已经入库
|
|
|
// if (storageData.isStorage) {
|
|
// if (storageData.isStorage) {
|
|
|
// try {
|
|
// try {
|
|
@@ -452,10 +455,10 @@
|
|
|
let data = await this.getTableValue();
|
|
let data = await this.getTableValue();
|
|
|
let updateCode = '1'; //判断saleReturnUpdateAPI方法是否执行成功
|
|
let updateCode = '1'; //判断saleReturnUpdateAPI方法是否执行成功
|
|
|
this.$refs.formRef.validate(async (validate) => {
|
|
this.$refs.formRef.validate(async (validate) => {
|
|
|
- if ((!validate || !data) && !!pass)return
|
|
|
|
|
- // return this.$message.warning('有必填项未填,请检查');
|
|
|
|
|
- // alert(1)
|
|
|
|
|
- // return
|
|
|
|
|
|
|
+ if ((!validate || !data) && !!pass) return;
|
|
|
|
|
+ // return this.$message.warning('有必填项未填,请检查');
|
|
|
|
|
+ // alert(1)
|
|
|
|
|
+ // return
|
|
|
if (this.taskDefinitionKey === 'storeman' && !!pass) {
|
|
if (this.taskDefinitionKey === 'storeman' && !!pass) {
|
|
|
// 销售退货入库节点
|
|
// 销售退货入库节点
|
|
|
this.salesReturnsInStorage(data, pass);
|
|
this.salesReturnsInStorage(data, pass);
|