|
@@ -1748,7 +1748,7 @@
|
|
|
<script>
|
|
|
import { listDept } from "@/api/system/dept";
|
|
|
import { listMatters } from "@/api/ehs/throughcleanbcc";
|
|
|
-import { addPermit } from "@/api/invoicing/restrictedspace";
|
|
|
+import { addPermit, getPermit } from "@/api/invoicing/restrictedspace";
|
|
|
import { batchAddJobticket } from "@/api/ehs/jobticket";
|
|
|
import { updateWorkcontent } from "@/api/invoice/workcontent";
|
|
|
|
|
@@ -2136,6 +2136,19 @@ export default {
|
|
|
listDept(this.aConstructionsQuery).then(response => {
|
|
|
this.aConstructions = response.data;
|
|
|
})
|
|
|
+ var id = this.$route.query.cId;
|
|
|
+ if (id != null) {
|
|
|
+ getPermit(id).then(response => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.value1 = [];
|
|
|
+ this.value1[0] = this.form.bValidityStartTime;
|
|
|
+ this.value1[1] = this.form.bValidityEndTime;
|
|
|
+ this.dataLoading(this.form);
|
|
|
+ this.msgSuccess(this.$t('数据加载成功'));
|
|
|
+ console.log('1231231-----', this.form)
|
|
|
+ });
|
|
|
+ this.cIdDisabled = true;
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
//施工单位后台数据联动
|
|
@@ -2177,30 +2190,9 @@ export default {
|
|
|
},
|
|
|
//数据提交时保存的数据处理
|
|
|
dataSet() {
|
|
|
- // //B栏有效期开始结束时间处理
|
|
|
- // this.form.bValidityStartTime = this.value1[0];
|
|
|
- // this.form.bValidityEndTime = this.value1[1];
|
|
|
- // //C栏
|
|
|
- // this.form.cIsToxic = this.cIsToxic;
|
|
|
- // this.form.cIsFlammable = this.cIsFlammable;
|
|
|
- // this.form.cIsOxidizing = this.cIsOxidizing;
|
|
|
- // this.form.cIsExplosive = this.cIsExplosive;
|
|
|
- // this.form.cIsCorrosive = this.cIsCorrosive;
|
|
|
- // this.form.cIsIrritantToxic = this.cIsIrritantToxic;
|
|
|
- // this.form.cIsHealthHazard = this.cIsHealthHazard;
|
|
|
- // this.form.cIsCompressedGas = this.cIsCompressedGas;
|
|
|
- // this.form.cIsEnvironmentalHazard = this.cIsEnvironmentalHazard;
|
|
|
- // this.form.eIsSafeGoggles = this.eIsSafeGoggles;
|
|
|
- // this.form.eIsFaceShield = this.eIsFaceShield;
|
|
|
- // this.form.eIsProtectGloves = this.eIsProtectGloves;
|
|
|
- // this.form.eIsRubberBoots = this.eIsRubberBoots;
|
|
|
- // this.form.eIsRubberApron = this.eIsRubberApron;
|
|
|
- // this.form.eIsProtectSuit = this.eIsProtectSuit;
|
|
|
- // this.form.eIsResProtect = this.eIsResProtect;
|
|
|
- // this.form.eIsFallArrest = this.eIsFallArrest;
|
|
|
- // this.form.eProtectGlovesContent = this.eProtectGlovesContent;
|
|
|
- // this.form.eResProtectContent = this.eResProtectContent;
|
|
|
- // this.form.eProtectSuitContent = this.eProtectSuitContent;
|
|
|
+ //B栏有效期开始结束时间处理
|
|
|
+ this.form.bValidityStartTime = this.value1[0];
|
|
|
+ this.form.bValidityEndTime = this.value1[1];
|
|
|
},
|
|
|
/* 动态改变勾选 */
|
|
|
selectChange(id) {
|