瀏覽代碼

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

jbb 2 年之前
父節點
當前提交
46429591d5
共有 1 個文件被更改,包括 6 次插入1 次删除
  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{