Ver código fonte

面损列表-审批状态

jbb 2 anos atrás
pai
commit
d1f3fd3469

+ 4 - 4
src/views/cost-allocation-total/modal/detailFabricLossTable.vue

@@ -967,7 +967,7 @@ export default {
         processing_time:moment(new Date()).format('YYYY-MM-DD hh:mm:ss'),
         assigned_by:''
       }
-      cancelSubmit({planNum:this.planNO,status:this.status,currentState:text,syApprovalHistory:syApprovalHistory}).then(res => {
+      cancelSubmit({planNum:this.planNO,status:this.status,currentState:text=='提交'?'提交':'驳回',syApprovalHistory:syApprovalHistory}).then(res => {
           if (res.success) {
             this.$message.success(text+'成功')
             this.handlecLose()
@@ -986,7 +986,7 @@ export default {
         processing_time:moment(new Date()).format('YYYY-MM-DD hh:mm:ss'),
         assigned_by:data
       }
-      cancelSubmit({planNum:this.planNO,status:this.status,currentState:'指派',syApprovalHistory:syApprovalHistory}).then(res => {
+      cancelSubmit({planNum:this.planNO,status:this.status,currentState:'指派',syApprovalHistory:syApprovalHistory}).then(res => {
           if (res.success) {
             this.$message.success('指派成功')
             this.handlecLose()
@@ -1005,7 +1005,7 @@ export default {
         processing_time:moment(new Date()).format('YYYY-MM-DD hh:mm:ss'),
         assigned_by:''
       }
-      cancelSubmit({planNum:this.planNO,status:this.status,currentState:'完成',syApprovalHistory:syApprovalHistory}).then(res => {
+      cancelSubmit({planNum:this.planNO,status:this.status,currentState:'审批通过',syApprovalHistory:syApprovalHistory}).then(res => {
           if (res.success) {
             this.$message.success('审批通过')
             this.handlecLose()
@@ -1028,7 +1028,7 @@ export default {
         processing_time:moment(new Date()).format('YYYY-MM-DD hh:mm:ss'),
         assigned_by:''
       }
-      cancelSubmit({planNum:this.planNO,status:this.status,currentState:'保存',syApprovalHistory:syApprovalHistory}).then(res => {
+      cancelSubmit({planNum:this.planNO,status:this.status,currentState:'撤销审批',syApprovalHistory:syApprovalHistory}).then(res => {
           if (res.success) {
             this.$message.success('撤销审批成功')
             this.handlecLose()