|
@@ -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 => {
|