소스 검색

限制空间修改

Wang Zi Wen 2 년 전
부모
커밋
86c97e6f1d
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      ui/src/views/invoicing/restrictedspace/index.vue

+ 9 - 2
ui/src/views/invoicing/restrictedspace/index.vue

@@ -25,7 +25,7 @@
               <el-button @click="allShrink">全部关闭</el-button>
             </td>
             <td>
-              <el-button type="primary" v-show="form.hId" @click="onSubmit">提交当前数据</el-button>
+              <el-button type="primary" v-show="form.cId" @click="onSubmit">提交当前数据</el-button>
             </td>
             <td>
               <el-form-item>
@@ -1748,7 +1748,7 @@
 <script>
 import { listDept } from "@/api/system/dept";
 import { listMatters } from "@/api/ehs/throughcleanbcc";
-import { addPermit, getPermit } from "@/api/invoicing/restrictedspace";
+import { addPermit, getPermit, updatePermit } from "@/api/invoicing/restrictedspace";
 import { batchAddJobticket } from "@/api/ehs/jobticket";
 import { updateWorkcontent } from "@/api/invoice/workcontent";
 
@@ -2151,6 +2151,13 @@ export default {
     }
   },
   methods: {
+    //提交当前数据
+    onSubmit() {
+      this.dataSet();
+      updatePermit(this.form).then(response => {
+        this.msgSuccess(this.$t('票据数据已更新'));
+      });
+    },
     //施工单位后台数据联动
     aConstructionChange(val) {
       this.aConstructions.forEach(t => {