|
|
|
@ -153,13 +153,17 @@ |
|
|
|
|
|
|
|
<van-divider class="divdsty" /> |
|
|
|
|
|
|
|
<van-cell center title="是否联合检查"> |
|
|
|
<van-cell center title="联合检查" required> |
|
|
|
<template #right-icon> |
|
|
|
<van-switch v-model="data.union_checked" @click="!data.union_checked"/> |
|
|
|
<van-radio-group v-model="data.union_checked" shape="square" direction="horizontal"> |
|
|
|
<van-radio name="0">否</van-radio> |
|
|
|
<van-radio name="1">是</van-radio> |
|
|
|
</van-radio-group> |
|
|
|
<!-- <van-switch v-model="data.union_checked" @click="!data.union_checked"/> --> |
|
|
|
</template> |
|
|
|
</van-cell> |
|
|
|
|
|
|
|
<div class="add-inspect" v-if="data.union_checked"> |
|
|
|
<div class="add-inspect" v-if="data.union_checked==1"> |
|
|
|
<div v-for="(item, index) in data.union_datas" :key="index" ref="radio_fales" @click="check_radio(Object.values(item)[0].unionNo, index)" class="item-inspect"> |
|
|
|
<van-icon name="circle" /> |
|
|
|
<div class="dept-inspect"> |
|
|
|
@ -169,12 +173,12 @@ |
|
|
|
<div class="item-inspect" @click="check_radio(null, null)"> |
|
|
|
<van-icon :name="data.allNo" /> |
|
|
|
<div class="dept-inspect no-inspect"> |
|
|
|
<p>以上皆不是</p> |
|
|
|
<p>开启新的联合检查</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<van-cell center title="是否委托检查"> |
|
|
|
<van-cell center title="委托执法"> |
|
|
|
<template #right-icon> |
|
|
|
<van-switch v-model="data.auth_checked" @click="!data.auth_checked"/> |
|
|
|
</template> |
|
|
|
@ -374,7 +378,7 @@ |
|
|
|
deptChecked: false, |
|
|
|
deptContent: '', |
|
|
|
allNo: 'circle', |
|
|
|
union_checked: false, // 联合检查选择 |
|
|
|
union_checked: '0', // 联合检查选择 |
|
|
|
auth_checked: false, // 委托执法选择 |
|
|
|
union_datas: [], // 联合检查用的分组list |
|
|
|
check_union_no: '', // 选中的联合检查编号 |
|
|
|
@ -563,7 +567,9 @@ |
|
|
|
submitData.enterpriseName = success.data.enterpriseName |
|
|
|
submitData.enterpriseNumber = success.data.enterpriseNumber |
|
|
|
// 查询是否有关联的执法记录 |
|
|
|
getUnionByHour(submitData.enterpriseNumber); |
|
|
|
if (null != submitData.enterpriseName) { |
|
|
|
getUnionByHour(submitData.enterpriseNumber, submitData.checkCss); |
|
|
|
} |
|
|
|
} |
|
|
|
}, error => { |
|
|
|
|
|
|
|
@ -617,10 +623,9 @@ |
|
|
|
data.showBl = true; |
|
|
|
}) |
|
|
|
|
|
|
|
const getUnionByHour = (enterpriseNumber) => { |
|
|
|
data.union_datas = |
|
|
|
console.log('----------> start : getUnionByHour: '+ enterpriseNumber) |
|
|
|
queryUnionByHour(enterpriseNumber, success => { |
|
|
|
const getUnionByHour = (enterpriseNumber, checkCss) => { |
|
|
|
// data.union_datas = |
|
|
|
queryUnionByHour(enterpriseNumber, checkCss, success => { |
|
|
|
if(success.success) { |
|
|
|
data.union_datas = success.data; |
|
|
|
} |
|
|
|
@ -798,7 +803,7 @@ |
|
|
|
submitData.isUnite = 0; |
|
|
|
// if (data.checked) { submitData.isUnite = 1; } // 原来的联合检查, 忘记咋用了, 就没用了. |
|
|
|
//联合检查 |
|
|
|
if (data.union_checked) {submitData.isUnite = 1;} |
|
|
|
if (data.union_checked == 1) {submitData.isUnite = 1;} |
|
|
|
// 是否委托检查 |
|
|
|
if (data.auth_checked) {submitData.hasAuto = 1;} |
|
|
|
|
|
|
|
@ -855,7 +860,7 @@ |
|
|
|
submitData.isUnite = 0; |
|
|
|
// if (data.checked) { submitData.isUnite = 1; } // 原来的联合检查, 忘记咋用了, 就没用了. |
|
|
|
//联合检查 |
|
|
|
if (data.union_checked) {submitData.hasUnion = 1;} |
|
|
|
if (data.union_checked == 1) {submitData.hasUnion = 1;} |
|
|
|
// 是否委托检查 |
|
|
|
if (data.auth_checked) {submitData.hasAuto = 1;} |
|
|
|
|
|
|
|
@ -1050,6 +1055,7 @@ |
|
|
|
const reciveDataCp = (item) => { |
|
|
|
submitData.enterpriseName = item.enterpriseName; |
|
|
|
submitData.enterpriseNumber = item.enterpriseNumber; |
|
|
|
getUnionByHour(submitData.enterpriseNumber, submitData.checkCss); |
|
|
|
// 填充数据 |
|
|
|
// dataFillIn('bulu'); |
|
|
|
} |
|
|
|
|