|
|
@@ -319,22 +319,23 @@ export default {
|
|
|
},
|
|
|
|
|
|
async _approveTaskWithVariables(status) {
|
|
|
+
|
|
|
let variables = {
|
|
|
pass: !!status
|
|
|
};
|
|
|
+ const isNonStandard = this.form?.valueJson?.is_non_standard
|
|
|
+ console.log(isNonStandard, 'isNonStandard', this.form.taskDefinitionKey);
|
|
|
+ if(this.form.taskDefinitionKey == 'marketingReview') {
|
|
|
+ variables.noStandard = isNonStandard == '是' ? true : false
|
|
|
+ }
|
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
|
- const params = {
|
|
|
+ let params = {
|
|
|
id: this.form.id,
|
|
|
reason: this.form.reason,
|
|
|
businessId: this.businessId,
|
|
|
variables
|
|
|
}
|
|
|
- const isNonStandard = this.form?.valueJson?.is_non_standard
|
|
|
- if(this.form.taskDefinitionKey == 'storemanAudit') {
|
|
|
- params.push({
|
|
|
- noStandard: isNonStandard == '是' ? true : false
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
API(params).then((res) => {
|
|
|
if (res.data.code != '-1') {
|
|
|
let params = {
|