Parcourir la source

森语-搬运工对账单-取消提交

jbb il y a 2 ans
Parent
commit
46429591d5
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      src/views/oa/SyCarryList.vue

+ 6 - 1
src/views/oa/SyCarryList.vue

@@ -208,7 +208,12 @@
       },
       // 计划员提交
       plannerSubmit(record,state){
-         getAction('/oa/syCarry/commitBatch', {ids:record.id,state:record.state}).then((res) => {
+        if(state=='-1'){
+          state='-1'
+        }else{
+          state=record.state
+        }
+         getAction('/oa/syCarry/commitBatch', {ids:record.id,state:state}).then((res) => {
           if(res.success){
             this.loadData()
           }else{