|
|
|
@ -90,7 +90,7 @@ |
|
|
|
show-word-limit |
|
|
|
/> |
|
|
|
|
|
|
|
<van-cell center title="是否联合检查"> |
|
|
|
<van-cell v-if="data.mainDeputyOrder == 1" center title="开启联合检查"> |
|
|
|
<template #right-icon> |
|
|
|
<van-switch v-model="data.checked" @click="!data.checked"/> |
|
|
|
</template> |
|
|
|
@ -106,7 +106,7 @@ |
|
|
|
placeholder="请选择" |
|
|
|
show-word-limit |
|
|
|
readonly |
|
|
|
@click="data.deptChecked=true" |
|
|
|
@click="selectDepts" |
|
|
|
/> |
|
|
|
|
|
|
|
<div class="warp_body"> |
|
|
|
@ -160,7 +160,7 @@ |
|
|
|
|
|
|
|
import { showSuccessToast } from 'vant'; |
|
|
|
import 'vant/es/toast/style'; |
|
|
|
import {getByUserIdAndZero, addEnterpriseLawEnforcement, editEnterpriseLawEnforcement, getByIdToDataFillIn} from '../../api/administrative' |
|
|
|
import {getByUserIdAndZero, addEnterpriseLawEnforcement, editEnterpriseLawEnforcement, editEnterpriseLawEnforcementDeputyOrder, getByIdToDataFillIn} from '../../api/administrative' |
|
|
|
import {queryUserInfo} from '../../api/enforce' |
|
|
|
import { queryEnterpriseInfoList } from '../../api/enterprise' |
|
|
|
import { reactive, ref } from "vue"; |
|
|
|
@ -191,6 +191,7 @@ |
|
|
|
checked: false, |
|
|
|
deptChecked: false, |
|
|
|
deptContent: '', |
|
|
|
mainDeputyOrder: 1, |
|
|
|
}); |
|
|
|
//保存参数 |
|
|
|
const submitData = reactive({ |
|
|
|
@ -238,9 +239,8 @@ |
|
|
|
uniteCheck:"", |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onConfirm = (time) => { |
|
|
|
console.log(time) |
|
|
|
if(time != null) { |
|
|
|
var times = time.selectedValues; |
|
|
|
submitData.checkTime = times[0] +"-"+ times[1] +"-"+ times[2]; |
|
|
|
@ -310,11 +310,21 @@ |
|
|
|
router.go(-1); |
|
|
|
}; |
|
|
|
|
|
|
|
const selectDepts = () => { |
|
|
|
if (data.mainDeputyOrder == 1) { |
|
|
|
data.deptChecked=true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const dataFillIn = (id) => { |
|
|
|
getByIdToDataFillIn(id,success =>{ |
|
|
|
console.log(success); |
|
|
|
//跳转企业二维码地址 |
|
|
|
if(success.success){ |
|
|
|
console.log("==================") |
|
|
|
console.log(success.data) |
|
|
|
console.log("==================") |
|
|
|
data.mainDeputyOrder = success.data.mainDeputyOrder; |
|
|
|
Object.keys(submitData).forEach((item) => { |
|
|
|
submitData[item] = success.data[item] ? success.data[item] : ""; |
|
|
|
}) |
|
|
|
@ -371,18 +381,33 @@ |
|
|
|
submitData.deptTexts = ""; |
|
|
|
submitData.deptObjs = []; |
|
|
|
} |
|
|
|
editEnterpriseLawEnforcement(submitData,success =>{ |
|
|
|
//跳转企业二维码地址 |
|
|
|
if(success.success){ |
|
|
|
showSuccessToast('登记成功'); |
|
|
|
router.push( |
|
|
|
{ |
|
|
|
path: "/appointmentList" |
|
|
|
}); |
|
|
|
} |
|
|
|
},error=>{ |
|
|
|
console.log("登记失败") |
|
|
|
}) |
|
|
|
if(data.mainDeputyOrder == 0) { |
|
|
|
editEnterpriseLawEnforcementDeputyOrder(submitData,success =>{ |
|
|
|
//跳转企业二维码地址 |
|
|
|
if(success.success){ |
|
|
|
showSuccessToast('登记成功'); |
|
|
|
router.push( |
|
|
|
{ |
|
|
|
path: "/appointmentList" |
|
|
|
}); |
|
|
|
} |
|
|
|
},error=>{ |
|
|
|
console.log("登记失败") |
|
|
|
}) |
|
|
|
} else { |
|
|
|
editEnterpriseLawEnforcement(submitData,success =>{ |
|
|
|
//跳转企业二维码地址 |
|
|
|
if(success.success){ |
|
|
|
showSuccessToast('登记成功'); |
|
|
|
router.push( |
|
|
|
{ |
|
|
|
path: "/appointmentList" |
|
|
|
}); |
|
|
|
} |
|
|
|
},error=>{ |
|
|
|
console.log("登记失败") |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const getLinkageByValueAndParentId = (value, parentId) => { |
|
|
|
|