|
@@ -23,11 +23,7 @@
|
|
|
icon="el-icon-edit-outline"
|
|
icon="el-icon-edit-outline"
|
|
|
type="success"
|
|
type="success"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
- v-if="
|
|
|
|
|
- taskDefinitionKey != 'storemanApprove' ||
|
|
|
|
|
- (taskDefinitionKey == 'storemanApprove' &&
|
|
|
|
|
- outInData.verifyStatus == 2)
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ v-if="taskDefinitionKey != 'storeman'"
|
|
|
@click="handleAudit(1)"
|
|
@click="handleAudit(1)"
|
|
|
>通过
|
|
>通过
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -37,10 +33,7 @@
|
|
|
size="mini"
|
|
size="mini"
|
|
|
:loading="isSaveLoading"
|
|
:loading="isSaveLoading"
|
|
|
@click="storemanApprove"
|
|
@click="storemanApprove"
|
|
|
- v-if="
|
|
|
|
|
- ['storemanApprove'].includes(taskDefinitionKey) && activeComp == 'inoutBound' &&
|
|
|
|
|
- [0, 3].includes(outInData.verifyStatus)
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ v-else
|
|
|
>申请入库
|
|
>申请入库
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
@@ -48,7 +41,8 @@
|
|
|
type="danger"
|
|
type="danger"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="handleAudit(0)"
|
|
@click="handleAudit(0)"
|
|
|
- v-if="!['starter'].includes(taskDefinitionKey)">驳回
|
|
|
|
|
|
|
+ v-if="!['starter'].includes(taskDefinitionKey)"
|
|
|
|
|
+ >驳回
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-dropdown
|
|
<el-dropdown
|
|
@@ -137,16 +131,6 @@
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- async created() {
|
|
|
|
|
- if (this.taskDefinitionKey == 'storemanApprove') {
|
|
|
|
|
- let data = await getReturnSaleOrderrecordDetail(this.businessId);
|
|
|
|
|
- try {
|
|
|
|
|
- this.outInData = await getOutInBySourceBizNo(data.returnNo);
|
|
|
|
|
- } catch (error) {
|
|
|
|
|
- this.outInData.verifyStatus = 0;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
async storemanApprove() {
|
|
async storemanApprove() {
|
|
|
let res = await this.getTableValue();
|
|
let res = await this.getTableValue();
|
|
@@ -195,17 +179,8 @@
|
|
|
if (!arr) {
|
|
if (!arr) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
await UpdateReturnInformation(arr);
|
|
await UpdateReturnInformation(arr);
|
|
|
}
|
|
}
|
|
|
- if (this.taskDefinitionKey === 'purchaserUploadReceipt') {
|
|
|
|
|
- let data = await this.getTableValue();
|
|
|
|
|
- if (data.repliedFiles.length == 0) {
|
|
|
|
|
- this.$message.error('回执附件不能为空');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- await uploadReceipt(data);
|
|
|
|
|
- }
|
|
|
|
|
this._approveTaskWithVariables(status);
|
|
this._approveTaskWithVariables(status);
|
|
|
},
|
|
},
|
|
|
async _approveTaskWithVariables(status) {
|
|
async _approveTaskWithVariables(status) {
|