|
@@ -113,6 +113,9 @@
|
|
|
<div class="label labelPeople">
|
|
<div class="label labelPeople">
|
|
|
<van-button size="small" @click="rehearsalHandler" type="info">参考演练范本库</van-button>
|
|
<van-button size="small" @click="rehearsalHandler" type="info">参考演练范本库</van-button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="label labelPeople">
|
|
|
|
|
+ <van-button size="small" @click="rehearsalBranchHandler" type="info">网点预案</van-button>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 演练库选择组件 -->
|
|
<!-- 演练库选择组件 -->
|
|
|
<yldialog ref="yldialog" :dictValue="form.type" @checkList="checkList"></yldialog>
|
|
<yldialog ref="yldialog" :dictValue="form.type" @checkList="checkList"></yldialog>
|
|
@@ -194,7 +197,7 @@ import NavBar from '@/components/NavBar'
|
|
|
import CheckPeople from '@/components/peopleList/index.vue'
|
|
import CheckPeople from '@/components/peopleList/index.vue'
|
|
|
import Upload from '@/components/upload/index.vue'
|
|
import Upload from '@/components/upload/index.vue'
|
|
|
import { onresizeHandler } from '@/utils/onresizeMixins.js'
|
|
import { onresizeHandler } from '@/utils/onresizeMixins.js'
|
|
|
-import { getrehearsalInfo, drillInfo } from '@/api/drillTask.js'
|
|
|
|
|
|
|
+import {getrehearsalInfo, drillInfo, drillDictionaryBranchList} from '@/api/drillTask.js'
|
|
|
import { newDateTimeMin } from '@/utils/date.js'
|
|
import { newDateTimeMin } from '@/utils/date.js'
|
|
|
import { Dialog, Toast } from 'vant'
|
|
import { Dialog, Toast } from 'vant'
|
|
|
import yldialog from './dialog.vue'
|
|
import yldialog from './dialog.vue'
|
|
@@ -211,12 +214,20 @@ export default {
|
|
|
Upload,
|
|
Upload,
|
|
|
CheckPeople
|
|
CheckPeople
|
|
|
},
|
|
},
|
|
|
|
|
+ props:{
|
|
|
|
|
+ organizationId: {
|
|
|
|
|
+ //机构ID
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ default: JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
// this_window: window,
|
|
// this_window: window,
|
|
|
studyList: [], //资料数组
|
|
studyList: [], //资料数组
|
|
|
startDateTime: new Date(),
|
|
startDateTime: new Date(),
|
|
|
endDateTime: new Date(),
|
|
endDateTime: new Date(),
|
|
|
|
|
+ orgId: this.organizationId || '',
|
|
|
|
|
|
|
|
falg: false, //校验是否通过
|
|
falg: false, //校验是否通过
|
|
|
|
|
|
|
@@ -245,7 +256,8 @@ export default {
|
|
|
columns: [],
|
|
columns: [],
|
|
|
columnsType: [],
|
|
columnsType: [],
|
|
|
columnsList: [],
|
|
columnsList: [],
|
|
|
- columnsListType: []
|
|
|
|
|
|
|
+ columnsListType: [],
|
|
|
|
|
+ branchList: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -258,6 +270,21 @@ export default {
|
|
|
this.columnsListType = res
|
|
this.columnsListType = res
|
|
|
this.columnsType = res.map(item => item.dictLabel)
|
|
this.columnsType = res.map(item => item.dictLabel)
|
|
|
})
|
|
})
|
|
|
|
|
+ //获取网点预案
|
|
|
|
|
+ drillDictionaryBranchList({ orgId: this.orgId, dictValue: '' }).then(res => {
|
|
|
|
|
+ let { code, data, msg } = res
|
|
|
|
|
+ if (code == 200) {
|
|
|
|
|
+ this.branchList = data
|
|
|
|
|
+ if (this.branchList.length === 0){
|
|
|
|
|
+ //Toast('本网点还未编制预案,请及时到网页端网点预案管理菜单维护')
|
|
|
|
|
+ Dialog.alert({
|
|
|
|
|
+ message: '本网点还未编制预案,请及时到网页端网点预案管理菜单维护',
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
//获取详情信息
|
|
//获取详情信息
|
|
|
getrehearsalInfo(this.$route.params.id).then(res => {
|
|
getrehearsalInfo(this.$route.params.id).then(res => {
|
|
|
let { code, data, msg } = res
|
|
let { code, data, msg } = res
|
|
@@ -343,6 +370,10 @@ export default {
|
|
|
rehearsalHandler() {
|
|
rehearsalHandler() {
|
|
|
this.$refs.yldialog.init()
|
|
this.$refs.yldialog.init()
|
|
|
},
|
|
},
|
|
|
|
|
+ //打开演练库弹框
|
|
|
|
|
+ rehearsalBranchHandler() {
|
|
|
|
|
+ this.$refs.yldialog.initBranch()
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
//演练项目确认
|
|
//演练项目确认
|
|
|
onConfirm(val) {
|
|
onConfirm(val) {
|
|
@@ -403,7 +434,7 @@ export default {
|
|
|
//表单提交前校验
|
|
//表单提交前校验
|
|
|
beforSubmitV() {
|
|
beforSubmitV() {
|
|
|
this.falg = false
|
|
this.falg = false
|
|
|
- let startDate = JSON.parse(JSON.stringify(this.form.drillStartTime))
|
|
|
|
|
|
|
+ let startDate = JSON.parse(JSON.stringify(this.form.drillStartTime))
|
|
|
let objStart=startDate.replace(/-/g,"/");
|
|
let objStart=startDate.replace(/-/g,"/");
|
|
|
startDate = Date.parse(new Date(startDate))
|
|
startDate = Date.parse(new Date(startDate))
|
|
|
if(!startDate){
|
|
if(!startDate){
|
|
@@ -415,7 +446,7 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let endDate = JSON.parse(JSON.stringify(this.form.drillEndTime))
|
|
|
|
|
|
|
+ let endDate = JSON.parse(JSON.stringify(this.form.drillEndTime))
|
|
|
let objend=endDate.replace(/-/g,"/");
|
|
let objend=endDate.replace(/-/g,"/");
|
|
|
endDate = Date.parse(new Date(endDate))
|
|
endDate = Date.parse(new Date(endDate))
|
|
|
if(!endDate){
|
|
if(!endDate){
|