|
|
@ -19,51 +19,65 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="姓名" |
|
|
|
prop="name"> |
|
|
|
<el-input v-model="formData.name" |
|
|
|
size="small" |
|
|
|
class="list_item_width_1" |
|
|
|
clearable |
|
|
|
placeholder="请输入姓名"> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
<el-form-item label="本辖区居民"> |
|
|
|
<el-select class="list_item_width_1" |
|
|
|
size="small" |
|
|
|
:disabled="formData.orgType!='current'" |
|
|
|
v-model.trim="formData.isResiUser" |
|
|
|
placeholder="请选择"> |
|
|
|
<el-option v-for="item in isResiUserList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="手机号" |
|
|
|
prop="mobile"> |
|
|
|
<el-input v-model="formData.mobile" |
|
|
|
size="small" |
|
|
|
class="list_item_width_1" |
|
|
|
clearable |
|
|
|
placeholder="请输入手机号"> |
|
|
|
</el-input> |
|
|
|
<el-form-item label="接种时间" |
|
|
|
prop="startTime"> |
|
|
|
<el-date-picker v-model="timeRange" |
|
|
|
size="small" |
|
|
|
type="datetimerange" |
|
|
|
@change="handleTimeChange" |
|
|
|
format="yyyy-MM-dd HH:mm" |
|
|
|
value-format="yyyy-MM-dd HH:mm" |
|
|
|
range-separator="至" |
|
|
|
start-placeholder="开始时间" |
|
|
|
end-placeholder="结束时间"> |
|
|
|
</el-date-picker> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="身份证" |
|
|
|
prop="idCard"> |
|
|
|
<el-input v-model="formData.idCard" |
|
|
|
size="small" |
|
|
|
class="list_item_width_1" |
|
|
|
clearable |
|
|
|
placeholder="请输入身份证"> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<div> |
|
|
|
<el-form-item label="姓名" |
|
|
|
prop="name"> |
|
|
|
<el-input v-model="formData.name" |
|
|
|
size="small" |
|
|
|
class="list_item_width_1" |
|
|
|
clearable |
|
|
|
placeholder="请输入姓名"> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="接种时间" |
|
|
|
prop="startTime"> |
|
|
|
<el-date-picker v-model="timeRange" |
|
|
|
size="small" |
|
|
|
type="datetimerange" |
|
|
|
@change="handleTimeChange" |
|
|
|
format="yyyy-MM-dd HH:mm" |
|
|
|
value-format="yyyy-MM-dd HH:mm" |
|
|
|
range-separator="至" |
|
|
|
start-placeholder="开始时间" |
|
|
|
end-placeholder="结束时间"> |
|
|
|
</el-date-picker> |
|
|
|
<el-form-item label="手机号" |
|
|
|
prop="mobile"> |
|
|
|
<el-input v-model="formData.mobile" |
|
|
|
size="small" |
|
|
|
class="list_item_width_1" |
|
|
|
clearable |
|
|
|
placeholder="请输入手机号"> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="身份证" |
|
|
|
prop="idCard"> |
|
|
|
<el-input v-model="formData.idCard" |
|
|
|
size="small" |
|
|
|
class="list_item_width_1" |
|
|
|
clearable |
|
|
|
placeholder="请输入身份证"> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
@ -160,6 +174,14 @@ |
|
|
|
label="检测结果" |
|
|
|
width="100"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column v-if="formData.orgType==='current'" |
|
|
|
prop="isResiUserShow" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
show-overflow-tooltip |
|
|
|
label="是否本辖区居民" |
|
|
|
width="120"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" |
|
|
|
fixed="right" |
|
|
@ -174,48 +196,30 @@ |
|
|
|
size="small" |
|
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.userType==='resi'||scope.row.userType==='icresi'" |
|
|
|
type="text" |
|
|
|
class="div-table-button--edit" |
|
|
|
size="small" |
|
|
|
@click="handleEdit(scope.row)">修改</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.userType==='resi'||scope.row.userType==='icresi'" |
|
|
|
type="text" |
|
|
|
class="div-table-button--delete " |
|
|
|
size="small" |
|
|
|
@click="handleDelete(scope.row,'delete')">删除</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.userType==='import'&&scope.row.agencyId!==agencyId" |
|
|
|
<el-button v-if="formData.orgType==='all'" |
|
|
|
type="text" |
|
|
|
class="div-table-button--edit" |
|
|
|
size="small" |
|
|
|
@click="handleAttention(scope.row)">同步</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.userType==='synchro'&&scope.row.agencyId===agencyId" |
|
|
|
<el-button v-if="formData.orgType==='current'&&(scope.row.userType==='resi'||scope.row.userType==='icresi') &&scope.row.agencyId===agencyId" |
|
|
|
type="text" |
|
|
|
class="div-table-button--delete " |
|
|
|
size="small" |
|
|
|
@click="handleDelete(scope.row,'attention')">取消同步</el-button> |
|
|
|
<!-- <el-button type="text" |
|
|
|
class="div-table-button--edit" |
|
|
|
size="small" |
|
|
|
@click="handleEdit(scope.row)">修改</el-button> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
<el-button v-if="formData.orgType==='current'&&(scope.row.userType==='resi'||scope.row.userType==='icresi') &&scope.row.agencyId===agencyId" |
|
|
|
type="text" |
|
|
|
class="div-table-button--delete " |
|
|
|
size="small" |
|
|
|
@click="handleDelete(scope.row,'delete')">删除</el-button> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
class="div-table-button--edit" |
|
|
|
size="small" |
|
|
|
@click="handleAttention(scope.row)">关注</el-button> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
<el-button v-if="formData.orgType==='current'&&scope.row.userType==='synchro'&&scope.row.agencyId===agencyId" |
|
|
|
type="text" |
|
|
|
class="div-table-button--delete " |
|
|
|
size="small" |
|
|
|
@click="handleDelete(scope.row,'attention')">取消关注</el-button> --> |
|
|
|
@click="handleDelete(scope.row,'attention')">取消同步</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@ -277,6 +281,16 @@ export default { |
|
|
|
label: '全部检测记录' |
|
|
|
}, |
|
|
|
], |
|
|
|
isResiUserList: [ |
|
|
|
{ |
|
|
|
value: '0', |
|
|
|
label: '否' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '1', |
|
|
|
label: '是' |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
timeRange: [], |
|
|
|
formData: { |
|
|
@ -286,6 +300,7 @@ export default { |
|
|
|
idCard: '',//身份证号码 |
|
|
|
startTime: '',//检测开始时间yyyy-MM-dd HH:mm |
|
|
|
endTime: '',//检测结束时间yyyy-MM-dd HH:mm |
|
|
|
isResiUser: ''//0:否 1:是 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
@ -337,6 +352,8 @@ export default { |
|
|
|
this.tableData = data.list |
|
|
|
|
|
|
|
this.tableData.forEach(item => { |
|
|
|
|
|
|
|
item.isResiUserShow = item.isResiUser === '0' ? '否' : '是' |
|
|
|
if (item.natResult === '1') { |
|
|
|
item.natResultShow = '阳性' |
|
|
|
} else if (item.natResult === '0') { |
|
|
|