|
@@ -23,7 +23,6 @@
|
|
|
type="success"
|
|
type="success"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
:loading="isLoading"
|
|
:loading="isLoading"
|
|
|
- v-click-once
|
|
|
|
|
@click="handleAudit(1)"
|
|
@click="handleAudit(1)"
|
|
|
v-if="taskDefinitionKey != 'storeman'"
|
|
v-if="taskDefinitionKey != 'storeman'"
|
|
|
>通过
|
|
>通过
|
|
@@ -33,7 +32,6 @@
|
|
|
type="success"
|
|
type="success"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
:loading="isLoading"
|
|
:loading="isLoading"
|
|
|
- v-click-once
|
|
|
|
|
@click="handleAudit(1)"
|
|
@click="handleAudit(1)"
|
|
|
v-if="taskDefinitionKey == 'storeman'"
|
|
v-if="taskDefinitionKey == 'storeman'"
|
|
|
>申请出库
|
|
>申请出库
|
|
@@ -128,9 +126,9 @@
|
|
|
if (this.taskDefinitionKey === 'storeman' && !!status) {
|
|
if (this.taskDefinitionKey === 'storeman' && !!status) {
|
|
|
// 入库来源isSkip 0-正常 1-外部(外部跳过内部审核流程)
|
|
// 入库来源isSkip 0-正常 1-外部(外部跳过内部审核流程)
|
|
|
storageData.isSkip = 1;
|
|
storageData.isSkip = 1;
|
|
|
- console.log(storageData);
|
|
|
|
|
|
|
+ this.isLoading = true;
|
|
|
|
|
+
|
|
|
try {
|
|
try {
|
|
|
- this.isLoading = true;
|
|
|
|
|
const res = await storageApi.outStorage(storageData);
|
|
const res = await storageApi.outStorage(storageData);
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
@@ -172,6 +170,7 @@
|
|
|
pass: !!status
|
|
pass: !!status
|
|
|
};
|
|
};
|
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
|
|
|
+ this.isLoading = true;
|
|
|
API({
|
|
API({
|
|
|
id: this.taskId,
|
|
id: this.taskId,
|
|
|
reason: this.form.reason,
|
|
reason: this.form.reason,
|
|
@@ -183,6 +182,8 @@
|
|
|
title: status === 0 ? '驳回' : ''
|
|
title: status === 0 ? '驳回' : ''
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ }).finally(() => {
|
|
|
|
|
+ this.isLoading = false;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
//更多
|
|
//更多
|