|
|
@ -2,24 +2,34 @@
|
|
|
|
<div class="main-container-text">
|
|
|
|
<div class="main-container-text">
|
|
|
|
<div class="title">创建申请</div>
|
|
|
|
<div class="title">创建申请</div>
|
|
|
|
<div class="header">
|
|
|
|
<div class="header">
|
|
|
|
<el-button type="primary" plain @click="openDialogTableVisible"><i class="el-icon-edit" />申请</el-button>
|
|
|
|
<el-button type="primary" plain @click="openDialogTableVisible"><i class="el-icon-edit"/>申请</el-button>
|
|
|
|
<!-- <el-button type="primary" plain @click="handleCheck"><i class="el-icon-edit" />详情查看</el-button> -->
|
|
|
|
<!-- <el-button type="primary" plain @click="handleCheck"><i class="el-icon-edit" />详情查看</el-button> -->
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="dialogHistoryVisible" width="60%" title="申请详情">
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="dialogHistoryVisible" width="60%" title="申请详情">
|
|
|
|
<div style='height:500px'>
|
|
|
|
<div style="height:500px">
|
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
|
<el-table
|
|
|
|
<el-table v-loading="loadingHistory" element-loading-text="拼命加载中" :header-cell-style="headerStyle"
|
|
|
|
v-loading="loadingHistory"
|
|
|
|
:data="historyData" height="420" @close="dialogHistoryClose"
|
|
|
|
element-loading-text="拼命加载中"
|
|
|
|
|
|
|
|
:header-cell-style="headerStyle"
|
|
|
|
|
|
|
|
:data="historyData"
|
|
|
|
|
|
|
|
height="420"
|
|
|
|
|
|
|
|
@close="dialogHistoryClose"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column align="center" type="index" width="50" label="序号" />
|
|
|
|
<el-table-column align="center" type="index" width="50" label="序号"/>
|
|
|
|
<el-table-column align="center" property="name" label="试剂名称" />
|
|
|
|
<el-table-column align="center" property="name" label="试剂名称"/>
|
|
|
|
<el-table-column align="center" property="purity" label="纯度" />
|
|
|
|
<el-table-column align="center" property="purity" label="纯度"/>
|
|
|
|
<el-table-column align="center" property="speci" label="规格" />
|
|
|
|
<el-table-column align="center" property="speci" label="规格"/>
|
|
|
|
|
|
|
|
<el-table-column align="center" property="client_name" label="所属终端"/>
|
|
|
|
|
|
|
|
<el-table-column align="center" property="place" label="所属单元"/>
|
|
|
|
|
|
|
|
<el-table-column align="center" property="notes" label="用途"/>
|
|
|
|
|
|
|
|
<el-table-column align="center" property="info" label="未领用说明"/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
fixed="right"
|
|
|
|
|
|
|
|
label="操作"
|
|
|
|
|
|
|
|
width="160"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button v-if="is_over ==1" @click="handleUseInfo(scope.row)" type="text" size="small">
|
|
|
|
|
|
|
|
填写未领用说明
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-scrollbar>
|
|
|
|
</el-scrollbar>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -27,66 +37,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="dialogMsdsVisible" width="60%" title="MSDS数据库">
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="dialogMsdsVisible" width="60%" title="MSDS数据库">
|
|
|
|
<div class="box" style='height:500px'>
|
|
|
|
<div class="box" style="height:500px">
|
|
|
|
<el-scrollbar style='hight:500px'>
|
|
|
|
<el-scrollbar style="hight:500px">
|
|
|
|
<div class="main-container-text">
|
|
|
|
<div class="main-container-text">
|
|
|
|
<div class="title">{{ currentItem.name }}</div>
|
|
|
|
<div class="title">{{ currentItem.name }}</div>
|
|
|
|
<div class="header">
|
|
|
|
<div class="header">
|
|
|
|
<div class="title-sub"></div>
|
|
|
|
<div class="title-sub"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
|
|
|
<el-descriptions-item label="英文名称">{{ currentItem.english_name }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="CAS码">{{ currentItem.cas_number }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="分子式">{{ currentItem.molecular_formula }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="分子量">{{ currentItem.molecular_weight }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="物理数据">{{ currentItem.physical_data }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="毒理数据">{{ currentItem.toxicity_data }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="用途">{{ currentItem.use }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="稳定性">{{ currentItem.stability }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="生态性">{{ currentItem.ecological }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="注意事项">{{ currentItem.precautions }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :style="{'hight':'80px'}"/>
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="$route.path.indexOf('msds') === -1" :label-style="{'background': '#ffcc99'}"
|
|
|
|
|
|
|
|
label="试剂属性"
|
|
|
|
|
|
|
|
>{{ currentItem.drug_attribute }}
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="$route.path.indexOf('msds') === -1"
|
|
|
|
|
|
|
|
:label-style="{'background': '#ffcc99'}"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot="label">
|
|
|
|
|
|
|
|
存储禁忌 <i class="el-icon-warning-outline"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
{{ currentItem.storage_taboo }}
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99','width':'120px'}" label="储存方法">
|
|
|
|
|
|
|
|
{{ currentItem.storage_method }}
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99'}" label="柜体储存要求">
|
|
|
|
|
|
|
|
{{ currentItem.client_storage_require }}
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99'}" label="领用归还规定">
|
|
|
|
|
|
|
|
{{ currentItem.provision }}
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
|
|
|
<el-descriptions-item label="英文名称">{{ currentItem.english_name }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="CAS码">{{ currentItem.cas_number }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="分子式">{{ currentItem.molecular_formula }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="分子量">{{ currentItem.molecular_weight }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="物理数据">{{ currentItem.physical_data }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="毒理数据">{{ currentItem.toxicity_data }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="用途">{{ currentItem.use }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="稳定性">{{ currentItem.stability }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="生态性">{{ currentItem.ecological }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="注意事项">{{ currentItem.precautions }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :style="{'hight':'80px'}" />
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="$route.path.indexOf('msds') === -1" :label-style="{'background': '#ffcc99'}" label="试剂属性">{{ currentItem.drug_attribute }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="$route.path.indexOf('msds') === -1" :label-style="{'background': '#ffcc99'}">
|
|
|
|
|
|
|
|
<template slot="label">
|
|
|
|
|
|
|
|
存储禁忌 <i class="el-icon-warning-outline" />
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
{{ currentItem.storage_taboo }}
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99','width':'120px'}" label="储存方法">{{ currentItem.storage_method }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99'}" label="柜体储存要求">{{ currentItem.client_storage_require }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item :label-style="{'background': '#ffcc99'}" label="领用归还规定">{{ currentItem.provision }}</el-descriptions-item>
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-scrollbar>
|
|
|
|
</el-scrollbar>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="确认提交申请" :visible.sync="dialogTableVisible">
|
|
|
|
<el-dialog title="确认提交申请" :visible.sync="dialogTableVisible">
|
|
|
|
<div style="display:flex;flex-direction: row;">
|
|
|
|
<div style="display:flex;flex-direction: row;">
|
|
|
|
<el-form :inline="true" :model="pt_form" :rules="rules" ref="pt_form" class="demo-form-inline" style="padding-top:13px">
|
|
|
|
<el-form :inline="true" :model="pt_form" :rules="rules" ref="pt_form" class="demo-form-inline"
|
|
|
|
|
|
|
|
style="padding-top:13px"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-form-item label="申请陪同人" prop="user_id_pt">
|
|
|
|
<el-form-item label="申请陪同人" prop="user_id_pt">
|
|
|
|
<el-select v-model="pt_form.user_id_pt" filterable placeholder="请选择陪同人">
|
|
|
|
<el-select v-model="pt_form.user_id_pt" filterable placeholder="请选择陪同人">
|
|
|
|
<el-option
|
|
|
|
<el-option v-for="item in ptUserArray" :key="item.user_id" :label="item.real_name"
|
|
|
|
v-for="item in ptUserArray"
|
|
|
|
:value="item.user_id"
|
|
|
|
:key="item.user_id"
|
|
|
|
>
|
|
|
|
:label="item.real_name"
|
|
|
|
|
|
|
|
:value="item.user_id">
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div class="header">
|
|
|
|
<div class="header">
|
|
|
|
<el-input v-model="seach_word" clearable placeholder="请输入试剂名称" />
|
|
|
|
<el-input v-model="seach_word" clearable placeholder="请输入试剂名称"/>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="get_drug_group()">搜索</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="get_drug_group()">搜索</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table :data="tableData" max-height="250" style="height:250px;padding-bottom: 50px;">
|
|
|
|
<el-table :data="tableData" max-height="250" style="height:250px;padding-bottom: 50px;">
|
|
|
|
<el-table-column type="index" align="center" width="50" label="序号" />
|
|
|
|
<el-table-column type="index" align="center" width="50" label="序号"/>
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center" />
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center"/>
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center" />
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center"/>
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center" />
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center"/>
|
|
|
|
<el-table-column align="center" property="client_id" label="所属终端">
|
|
|
|
<el-table-column align="center" property="client_id" label="所属终端">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<div v-if="$store.getters.currentOptions.find(item => item.client_id === scope.row.client_id)">
|
|
|
|
<div v-if="$store.getters.currentOptions.find(item => item.client_id === scope.row.client_id)">
|
|
|
@ -98,19 +119,20 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="place"
|
|
|
|
prop="flow_position_code"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
label="所属单元"
|
|
|
|
label="所属单元"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
width="100"
|
|
|
|
width="100"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center" />
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center"/>
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center" />
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center"/>
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center" />
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center"/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
fixed="right"
|
|
|
|
fixed="right"
|
|
|
|
label="操作"
|
|
|
|
label="操作"
|
|
|
|
width="160">
|
|
|
|
width="100"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button @click="handleClick(scope.row)" type="text" size="small">添加申请</el-button>
|
|
|
|
<el-button @click="handleClick(scope.row)" type="text" size="small">添加申请</el-button>
|
|
|
|
<el-button @click="handleInfo(scope.row)" type="text" size="small">查看详情</el-button>
|
|
|
|
<el-button @click="handleInfo(scope.row)" type="text" size="small">查看详情</el-button>
|
|
|
@ -119,10 +141,10 @@
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table :data="checkList" max-height="250" style="height:250px;padding-bottom: 50px;">
|
|
|
|
<el-table :data="checkList" max-height="250" style="height:250px;padding-bottom: 50px;">
|
|
|
|
<el-table-column type="index" align="center" width="50" label="序号" />
|
|
|
|
<el-table-column type="index" align="center" width="50" label="序号"/>
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center" />
|
|
|
|
<el-table-column prop="name" show-overflow-tooltip label="试剂名称" align="center"/>
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center" />
|
|
|
|
<el-table-column prop="remain" show-overflow-tooltip label="余量" align="center"/>
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center" />
|
|
|
|
<el-table-column prop="bar_code" show-overflow-tooltip label="编号" align="center"/>
|
|
|
|
<el-table-column align="center" property="client_id" label="所属终端">
|
|
|
|
<el-table-column align="center" property="client_id" label="所属终端">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<div v-if="$store.getters.currentOptions.find(item => item.client_id === scope.row.client_id)">
|
|
|
|
<div v-if="$store.getters.currentOptions.find(item => item.client_id === scope.row.client_id)">
|
|
|
@ -134,19 +156,21 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="place"
|
|
|
|
prop="flow_position_code"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
label="所属单元"
|
|
|
|
label="所属单元"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
width="100"
|
|
|
|
width="100"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center" />
|
|
|
|
<el-table-column prop="speci" show-overflow-tooltip label="规格" align="center"/>
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center" />
|
|
|
|
<el-table-column prop="purity" show-overflow-tooltip label="纯度" align="center"/>
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center" />
|
|
|
|
<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂家" align="center"/>
|
|
|
|
|
|
|
|
<el-table-column prop="notes" show-overflow-tooltip label="用途" align="center"/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
fixed="right"
|
|
|
|
fixed="right"
|
|
|
|
label="操作"
|
|
|
|
label="操作"
|
|
|
|
width="100">
|
|
|
|
width="100"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button @click="cancelClick(scope.row)" type="text" size="small">取消申请</el-button>
|
|
|
|
<el-button @click="cancelClick(scope.row)" type="text" size="small">取消申请</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -160,52 +184,37 @@
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="header-right">
|
|
|
|
<div class="header-right">
|
|
|
|
<el-button icon="el-icon-refresh" circle @click="handleRefresh" />
|
|
|
|
<el-button icon="el-icon-refresh" circle @click="handleRefresh"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-table
|
|
|
|
<el-table stripe ref="multipleTable" :data="tableData1" :header-cell-style="headerStyle" @select="handleSelection"
|
|
|
|
stripe
|
|
|
|
row-key="medicament_id" height="69vh" class="table-style"
|
|
|
|
ref="multipleTable"
|
|
|
|
|
|
|
|
:data="tableData1"
|
|
|
|
|
|
|
|
:header-cell-style="headerStyle"
|
|
|
|
|
|
|
|
@select="handleSelection"
|
|
|
|
|
|
|
|
row-key="medicament_id"
|
|
|
|
|
|
|
|
height="69vh"
|
|
|
|
|
|
|
|
class="table-style"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column align="center" type="index" width="50" label="序号" />
|
|
|
|
<el-table-column align="center" type="index" width="50" label="序号"/>
|
|
|
|
<el-table-column prop="user_name" show-overflow-tooltip label="用户名称" align="center" />
|
|
|
|
<el-table-column prop="user_name" show-overflow-tooltip label="用户名称" align="center"/>
|
|
|
|
<el-table-column prop="user_name_pt" show-overflow-tooltip label="陪同用户名称" align="center" />
|
|
|
|
<el-table-column prop="user_name_pt" show-overflow-tooltip label="陪同用户名称" align="center"/>
|
|
|
|
<!-- <el-table-column prop="use_content" show-overflow-tooltip label="试剂详情" align="center" /> -->
|
|
|
|
<!-- <el-table-column prop="use_content" show-overflow-tooltip label="试剂详情" align="center" /> -->
|
|
|
|
<el-table-column prop="create_date" show-overflow-tooltip label="申请时间" align="center" />
|
|
|
|
<el-table-column prop="create_date" show-overflow-tooltip label="申请时间" align="center"/>
|
|
|
|
<el-table-column prop="is_solve" show-overflow-tooltip label="状态" align="center">
|
|
|
|
<el-table-column prop="is_solve" show-overflow-tooltip label="状态" align="center">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-tag :type="statusColorMap[scope.row.is_solve]">{{ statusMap[scope.row.is_solve] }}</el-tag>
|
|
|
|
<el-tag :type="statusColorMap[scope.row.is_solve]">{{ statusMap[scope.row.is_solve] }}</el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="solve_user_name" show-overflow-tooltip label="审批人1" align="center" />
|
|
|
|
<el-table-column prop="solve_user_sh_name" show-overflow-tooltip label="部门审批人" align="center"/>
|
|
|
|
<el-table-column prop="solve_user_pt_name" show-overflow-tooltip label="审批人2" align="center" />
|
|
|
|
<el-table-column prop="solve_user_name" show-overflow-tooltip label="审批人1" align="center"/>
|
|
|
|
<el-table-column prop="solve_date" show-overflow-tooltip label="审批时间" align="center" />
|
|
|
|
<el-table-column prop="solve_user_pt_name" show-overflow-tooltip label="审批人2" align="center"/>
|
|
|
|
<el-table-column prop="information" show-overflow-tooltip label="备注" align="center" />
|
|
|
|
<el-table-column prop="solve_date" show-overflow-tooltip label="审批时间" align="center"/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="information" show-overflow-tooltip label="备注" align="center"/>
|
|
|
|
fixed="right"
|
|
|
|
<el-table-column fixed="right" label="操作" align="center" width="100">
|
|
|
|
label="操作"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
width="100">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button @click="handleCheck(scope.row)" type="text" size="small">查看</el-button>
|
|
|
|
<el-button @click="handleCheck(scope.row)" type="text" size="small">查看</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<div class="my-pagination" style="text-align: center">
|
|
|
|
<div class="my-pagination" style="text-align: center">
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination background layout="prev, pager, next" :current-page.sync="page" :total="total1"
|
|
|
|
background
|
|
|
|
:page-size.sync="page_size" @current-change="pageChange"
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
|
|
|
:current-page.sync="page"
|
|
|
|
|
|
|
|
:total="total1"
|
|
|
|
|
|
|
|
:page-size.sync="page_size"
|
|
|
|
|
|
|
|
@current-change="pageChange"
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -217,20 +226,24 @@ import stringify from '@/utils/stringify'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
get_pt_user_list,
|
|
|
|
get_pt_user_list,
|
|
|
|
get_drug_group_list,
|
|
|
|
get_drug_group_list,
|
|
|
|
add_apply
|
|
|
|
add_apply,
|
|
|
|
|
|
|
|
get_check_last_drug,
|
|
|
|
|
|
|
|
update_notes
|
|
|
|
} from '@/api/reagent/createapply'
|
|
|
|
} from '@/api/reagent/createapply'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
get_apply_list,
|
|
|
|
get_apply_list
|
|
|
|
} from '@/api/reagent/applymanage'
|
|
|
|
} from '@/api/reagent/applymanage'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'CreateApply',
|
|
|
|
name: 'CreateApply',
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
page_size: 10,
|
|
|
|
page_size: 10,
|
|
|
|
seach_word:'',
|
|
|
|
seach_word: '',
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
total1: 0,
|
|
|
|
total1: 0,
|
|
|
|
|
|
|
|
is_over: 0,
|
|
|
|
client_id: '',
|
|
|
|
client_id: '',
|
|
|
|
dialogVisible: false,
|
|
|
|
dialogVisible: false,
|
|
|
|
tableData: [],
|
|
|
|
tableData: [],
|
|
|
@ -249,23 +262,24 @@ export default {
|
|
|
|
history_page_size: 15,
|
|
|
|
history_page_size: 15,
|
|
|
|
history_total: 100,
|
|
|
|
history_total: 100,
|
|
|
|
dialogTableVisible: false,
|
|
|
|
dialogTableVisible: false,
|
|
|
|
dialogMsdsVisible:false,
|
|
|
|
dialogMsdsVisible: false,
|
|
|
|
checkList: [],
|
|
|
|
checkList: [],
|
|
|
|
ptUserArray:[],
|
|
|
|
id: '',
|
|
|
|
pt_form:{
|
|
|
|
ptUserArray: [],
|
|
|
|
user_id_pt: '',
|
|
|
|
pt_form: {
|
|
|
|
|
|
|
|
user_id_pt: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
statusColorMap: ['warning','success','danger'],
|
|
|
|
statusColorMap: ['warning', 'success', 'danger'],
|
|
|
|
statusMap: ['未处理', '已处理','已驳回','已完成'],
|
|
|
|
statusMap: ['未处理', '已处理', '已驳回', '已完成'],
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
user_id_pt: [
|
|
|
|
user_id_pt: [
|
|
|
|
{ required: true, message: '请选择陪同人', trigger: 'change' }
|
|
|
|
{ required: true, message: '请选择陪同人', trigger: 'change' }
|
|
|
|
],
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
currentItem:{}
|
|
|
|
currentItem: {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created () {
|
|
|
|
created() {
|
|
|
|
this.client_id = this.$store.getters.currentOptions[0].client_id
|
|
|
|
this.client_id = this.$store.getters.currentOptions[0].client_id
|
|
|
|
this.get_apply()
|
|
|
|
this.get_apply()
|
|
|
|
this.get_drug_group()
|
|
|
|
this.get_drug_group()
|
|
|
@ -273,112 +287,197 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
//勾选
|
|
|
|
//勾选
|
|
|
|
handleSelection(selection){
|
|
|
|
handleSelection(selection) {
|
|
|
|
var that =this
|
|
|
|
var that = this
|
|
|
|
that.handleSelectionSelection =selection
|
|
|
|
that.handleSelectionSelection = selection
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 两个日期比大小
|
|
|
|
|
|
|
|
compareDate(row) {
|
|
|
|
|
|
|
|
let d = row.create_date
|
|
|
|
|
|
|
|
let hour = row.time_hour
|
|
|
|
|
|
|
|
if (hour != undefined || hour == '') {
|
|
|
|
|
|
|
|
let date1 = new Date().getTime()
|
|
|
|
|
|
|
|
let date2 = new Date(d).getTime() + 3600 * 1000 * Number(hour)
|
|
|
|
|
|
|
|
let isCompare = date1 > date2
|
|
|
|
|
|
|
|
return isCompare
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 两个日期比大小
|
|
|
|
|
|
|
|
compareDate(row) {
|
|
|
|
|
|
|
|
let d = row.create_date
|
|
|
|
|
|
|
|
let hour = row.time_hour
|
|
|
|
|
|
|
|
if (hour != undefined || hour == '') {
|
|
|
|
|
|
|
|
let date1 = new Date().getTime()
|
|
|
|
|
|
|
|
let date2 = new Date(d).getTime() + 3600 * 1000 * Number(hour)
|
|
|
|
|
|
|
|
let isCompare = date1 > date2
|
|
|
|
|
|
|
|
return isCompare
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 查看详情
|
|
|
|
// 查看详情
|
|
|
|
handleCheck(row) {
|
|
|
|
handleCheck(row) {
|
|
|
|
this.dialogHistoryVisible = true
|
|
|
|
this.dialogHistoryVisible = true
|
|
|
|
this.historyData = JSON.parse(row.use_content)
|
|
|
|
this.historyData = JSON.parse(row.use_content)
|
|
|
|
|
|
|
|
this.id = row.id
|
|
|
|
|
|
|
|
//判断申请是否超出时间
|
|
|
|
|
|
|
|
console.log(row.create_date, row.time_hour, row)
|
|
|
|
|
|
|
|
let r = this.compareDate(row)
|
|
|
|
|
|
|
|
console.log(r)
|
|
|
|
|
|
|
|
if (r) {
|
|
|
|
|
|
|
|
this.is_over = 1
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.is_over = 0
|
|
|
|
|
|
|
|
}
|
|
|
|
// if (this.handleSelectionSelection.length === 1) {
|
|
|
|
// if (this.handleSelectionSelection.length === 1) {
|
|
|
|
// this.dialogHistoryVisible = true
|
|
|
|
// this.dialogHistoryVisible = true
|
|
|
|
// this.historyData = JSON.parse(this.handleSelectionSelection[0].use_content)
|
|
|
|
// this.historyData = JSON.parse(this.handleSelectionSelection[0].use_content)
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
// this.$message.warning("选择一条记录操作!")
|
|
|
|
// this.$message.warning("选择一条记录操作!")
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleInfo(row){
|
|
|
|
handleInfo(row) {
|
|
|
|
var that =this
|
|
|
|
var that = this
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
seach_word: row.name,
|
|
|
|
seach_word: row.name,
|
|
|
|
cas_number:row.cas_number
|
|
|
|
cas_number: row.cas_number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
get_msds_drug(stringify(data)).then(res => {
|
|
|
|
get_msds_drug(stringify(data)).then(res => {
|
|
|
|
|
|
|
|
|
|
|
|
console.log(res.data.data_list.length>0)
|
|
|
|
console.log(res.data.data_list)
|
|
|
|
if(res.data.data_list.length>0){
|
|
|
|
if (res.data.data_list.length > 0) {
|
|
|
|
this.currentItem = res.data.data_list[0]
|
|
|
|
this.currentItem = res.data.data_list[0]
|
|
|
|
that.dialogMsdsVisible=true
|
|
|
|
that.dialogMsdsVisible = true
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
this.$message.warning("未找到该试剂!")
|
|
|
|
this.$message.warning('未找到该试剂!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).finally(() => { this.loading = false })
|
|
|
|
}).finally(() => {
|
|
|
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//查看详情关闭
|
|
|
|
//查看详情关闭
|
|
|
|
dialogHistoryClose() {
|
|
|
|
dialogHistoryClose() {
|
|
|
|
this.dialogHistoryVisible = false
|
|
|
|
this.dialogHistoryVisible = false
|
|
|
|
this.historyData = []
|
|
|
|
this.historyData = []
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//填写未领用说明
|
|
|
|
|
|
|
|
handleUseInfo(row) {
|
|
|
|
|
|
|
|
var that = this
|
|
|
|
|
|
|
|
console.log('未领用说明', row)
|
|
|
|
|
|
|
|
that.$prompt('请输入未领用说明', '提示', {
|
|
|
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
|
|
cancelButtonText: '取消'
|
|
|
|
|
|
|
|
}).then(({ value }) => {
|
|
|
|
|
|
|
|
if (value) {
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
|
|
id: that.id,
|
|
|
|
|
|
|
|
bar_code: row.bar_code,
|
|
|
|
|
|
|
|
info: value
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
update_notes(stringify(data)).then(rsp => {
|
|
|
|
|
|
|
|
console.log('rsp.data>>', rsp.data)
|
|
|
|
|
|
|
|
that.historyData = JSON.parse(rsp.data.use_content)
|
|
|
|
|
|
|
|
that.handleRefresh()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.$message({
|
|
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
|
|
message: '请输入说明内容'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
that.$message({
|
|
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
|
|
message: '取消输入'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
//添加申请列表
|
|
|
|
//添加申请列表
|
|
|
|
handleClick(row){
|
|
|
|
handleClick(row) {
|
|
|
|
var that =this
|
|
|
|
var that = this
|
|
|
|
// that.$prompt('请输入数量', '提示', {
|
|
|
|
that.$prompt('请输入领取用途', '提示', {
|
|
|
|
// confirmButtonText: '确定',
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
// cancelButtonText: '取消',
|
|
|
|
cancelButtonText: '取消'
|
|
|
|
// inputPattern: /^[1-9]\d*$/,
|
|
|
|
}).then(({ value }) => {
|
|
|
|
// inputErrorMessage: '请输入数字'
|
|
|
|
if (value) {
|
|
|
|
// }).then(({ value }) => {
|
|
|
|
row.notes = value
|
|
|
|
// if(value>row.drug_num){
|
|
|
|
// 检查先进先出
|
|
|
|
// that.$message({
|
|
|
|
get_check_last_drug(stringify(row)).then(res => {
|
|
|
|
// type: 'info',
|
|
|
|
this.check_last_medicament(res.data).then((check_res) => {
|
|
|
|
// message: '余量不足'
|
|
|
|
// 继续领用当前试剂
|
|
|
|
// });
|
|
|
|
if (check_res) {
|
|
|
|
// }else{
|
|
|
|
var result = that.checkList.filter(item => item).map(item => item.bar_code)
|
|
|
|
// row.num =value
|
|
|
|
if (result.indexOf(row.bar_code) != -1) {
|
|
|
|
// console.log(row.name,that.checkList)
|
|
|
|
that.$message({
|
|
|
|
// var result = that.checkList.filter(x => x.name === row.name);
|
|
|
|
type: 'info',
|
|
|
|
// console.log(result,'111')
|
|
|
|
message: '不可重复添加'
|
|
|
|
// if (result.length>0){
|
|
|
|
})
|
|
|
|
// that.$message({
|
|
|
|
} else {
|
|
|
|
// type: 'info',
|
|
|
|
that.checkList.push(row)
|
|
|
|
// message: '禁止重复添加'
|
|
|
|
let getLocation = that.tableData.indexOf(row)
|
|
|
|
// });
|
|
|
|
that.tableData.splice(getLocation, 1)
|
|
|
|
// }else{
|
|
|
|
}
|
|
|
|
// that.checkList.push(row)
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
// // that.tableData.splice(row.$index, 1)
|
|
|
|
|
|
|
|
// }
|
|
|
|
} else {
|
|
|
|
// }).catch(() => {
|
|
|
|
that.$message({
|
|
|
|
// that.$message({
|
|
|
|
type: 'info',
|
|
|
|
// type: 'info',
|
|
|
|
message: '请输入用途'
|
|
|
|
// message: '取消输入'
|
|
|
|
})
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
// });
|
|
|
|
}).catch(() => {
|
|
|
|
var result = that.checkList.filter(item => item).map(item => item.bar_code);
|
|
|
|
|
|
|
|
if(result.indexOf(row.bar_code) !=-1){
|
|
|
|
|
|
|
|
that.$message({
|
|
|
|
that.$message({
|
|
|
|
type: 'info',
|
|
|
|
type: 'info',
|
|
|
|
message: '不可重复添加'
|
|
|
|
message: '取消输入'
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
})
|
|
|
|
that.checkList.push(row)
|
|
|
|
|
|
|
|
let getLocation = that.tableData.indexOf(row);
|
|
|
|
|
|
|
|
that.tableData.splice(getLocation, 1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//取消试剂申请
|
|
|
|
//取消试剂申请
|
|
|
|
cancelClick(row){
|
|
|
|
cancelClick(row) {
|
|
|
|
var that =this
|
|
|
|
var that = this
|
|
|
|
let getLocation = that.checkList.indexOf(row);
|
|
|
|
let getLocation = that.checkList.indexOf(row)
|
|
|
|
that.checkList.splice(getLocation, 1)
|
|
|
|
that.checkList.splice(getLocation, 1)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 先进先出原则,判断是否为最早入库试剂
|
|
|
|
|
|
|
|
check_last_medicament(res) {
|
|
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
|
|
|
var is_last = res.is_last
|
|
|
|
|
|
|
|
if (is_last) {
|
|
|
|
|
|
|
|
resolve(true)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$confirm('存在更早的试剂, 是否继续领用?', '提示', {
|
|
|
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
resolve(true)
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
resolve(false)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//获取试剂列表
|
|
|
|
//获取试剂列表
|
|
|
|
get_drug_group: function() {
|
|
|
|
get_drug_group: function() {
|
|
|
|
var that =this
|
|
|
|
var that = this
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
page:1,
|
|
|
|
page: 1,
|
|
|
|
seach_word:this.seach_word,
|
|
|
|
seach_word: this.seach_word,
|
|
|
|
page_size: 10000
|
|
|
|
page_size: 10000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
get_drug_group_list(stringify(data)).then(rsp => {
|
|
|
|
get_drug_group_list(stringify(data)).then(rsp => {
|
|
|
|
console.log("rsp.data.data_list>>", rsp.data.data_list)
|
|
|
|
console.log('rsp.data.data_list>>', rsp.data.data_list)
|
|
|
|
var datalist=[]
|
|
|
|
var datalist = []
|
|
|
|
var result = that.checkList.filter(item => item).map(item => item.bar_code);
|
|
|
|
var result = that.checkList.filter(item => item).map(item => item.bar_code)
|
|
|
|
rsp.data.data_list.forEach(item => {
|
|
|
|
rsp.data.data_list.forEach(item => {
|
|
|
|
if (result.indexOf(item.bar_code) ==-1) {
|
|
|
|
if (result.indexOf(item.bar_code) == -1) {
|
|
|
|
datalist.push(item)
|
|
|
|
datalist.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -387,14 +486,14 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//获取申请列表
|
|
|
|
//获取申请列表
|
|
|
|
get_apply(){
|
|
|
|
get_apply() {
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
page:this.page,
|
|
|
|
page: this.page,
|
|
|
|
page_size: this.page_size
|
|
|
|
page_size: this.page_size
|
|
|
|
}
|
|
|
|
}
|
|
|
|
get_apply_list(stringify(data)).then(rsp => {
|
|
|
|
get_apply_list(stringify(data)).then(rsp => {
|
|
|
|
console.log("apply>>>", rsp)
|
|
|
|
console.log('apply>>>', rsp)
|
|
|
|
this.tableData1 = rsp.data.data_list
|
|
|
|
this.tableData1 = rsp.data.data_list
|
|
|
|
this.total1 = rsp.data.total_count
|
|
|
|
this.total1 = rsp.data.total_count
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -402,50 +501,63 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
//陪同用户
|
|
|
|
//陪同用户
|
|
|
|
get_pt_user() {
|
|
|
|
get_pt_user() {
|
|
|
|
console.log("jjj")
|
|
|
|
console.log('jjj')
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
page_size: 10000,
|
|
|
|
page_size: 10000,
|
|
|
|
user_id:this.$store.state.user.id,
|
|
|
|
user_id: this.$store.state.user.id,
|
|
|
|
user_code: this.user_code,
|
|
|
|
user_code: this.user_code,
|
|
|
|
real_name: this.real_name,
|
|
|
|
real_name: this.real_name,
|
|
|
|
role_id: this.role_id,
|
|
|
|
role_id: this.role_id,
|
|
|
|
is_enabled: this.is_enabled
|
|
|
|
is_enabled: this.is_enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("hhhhh")
|
|
|
|
console.log('hhhhh')
|
|
|
|
get_pt_user_list(stringify(data)).then(res => {
|
|
|
|
get_pt_user_list(stringify(data)).then(res => {
|
|
|
|
this.ptUserArray = res.data.data_list
|
|
|
|
this.ptUserArray = res.data.data_list.filter(item => item.user_id != this.$store.state.user.id)
|
|
|
|
console.log("res>>>", res)
|
|
|
|
console.log('res>>>', res)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log("giao")
|
|
|
|
console.log('giao')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//提交申请
|
|
|
|
//提交申请
|
|
|
|
create_apply(pt_from){
|
|
|
|
create_apply(pt_from) {
|
|
|
|
var that =this
|
|
|
|
var that = this
|
|
|
|
let datalist = that.checkList.map((item) => {
|
|
|
|
let datalist = that.checkList.map((item) => {
|
|
|
|
return Object.assign({}, { bar_code: item.bar_code,client_code: item.client_code,place: item.place,remark12: item.remark12,name: item.name, num: item.num,client_id: item.client_id, purity: item.purity, speci: item.speci,medicament_id:item.medicament_id})
|
|
|
|
return Object.assign({}, {
|
|
|
|
|
|
|
|
info: '',
|
|
|
|
|
|
|
|
notes: item.notes,
|
|
|
|
|
|
|
|
bar_code: item.bar_code,
|
|
|
|
|
|
|
|
client_code: item.client_code,
|
|
|
|
|
|
|
|
place: item.flow_position_code,
|
|
|
|
|
|
|
|
remark12: item.remark12,
|
|
|
|
|
|
|
|
name: item.name,
|
|
|
|
|
|
|
|
num: item.num,
|
|
|
|
|
|
|
|
client_id: item.client_id,
|
|
|
|
|
|
|
|
purity: item.purity,
|
|
|
|
|
|
|
|
speci: item.speci,
|
|
|
|
|
|
|
|
medicament_id: item.medicament_id
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (pt_from.user_id_pt === '') {
|
|
|
|
if (pt_from.user_id_pt === '') {
|
|
|
|
that.$message({
|
|
|
|
that.$message({
|
|
|
|
type: 'info',
|
|
|
|
type: 'info',
|
|
|
|
message: '请选择陪同人'
|
|
|
|
message: '请选择陪同人'
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
user_id: this.$store.state.user.id,
|
|
|
|
user_id: this.$store.state.user.id,
|
|
|
|
user_id_pt: pt_from.user_id_pt,
|
|
|
|
user_id_pt: pt_from.user_id_pt,
|
|
|
|
use_content: JSON.stringify(datalist),
|
|
|
|
use_content: JSON.stringify(datalist)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
add_apply(stringify(data)).then(rsp => {
|
|
|
|
add_apply(stringify(data)).then(rsp => {
|
|
|
|
console.log("rsp>>", rsp)
|
|
|
|
console.log('rsp>>', rsp)
|
|
|
|
if (rsp.status==0){
|
|
|
|
if (rsp.status == 0) {
|
|
|
|
this.dialogTableClose()
|
|
|
|
this.dialogTableClose()
|
|
|
|
//清空表格多选框
|
|
|
|
//清空表格多选框
|
|
|
|
this.$refs.multipleTable.clearSelection();
|
|
|
|
this.$refs.multipleTable.clearSelection()
|
|
|
|
that.checkList=[]
|
|
|
|
that.checkList = []
|
|
|
|
this.get_apply()
|
|
|
|
this.get_apply()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//申请页翻页
|
|
|
|
//申请页翻页
|
|
|
@ -453,9 +565,9 @@ export default {
|
|
|
|
this.page = page
|
|
|
|
this.page = page
|
|
|
|
this.get_apply()
|
|
|
|
this.get_apply()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addDataIndex(initData){
|
|
|
|
addDataIndex(initData) {
|
|
|
|
for (let i = 0; i < initData.length; i++) {
|
|
|
|
for (let i = 0; i < initData.length; i++) {
|
|
|
|
initData[i]["index"] = i
|
|
|
|
initData[i]['index'] = i
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return initData
|
|
|
|
return initData
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -465,15 +577,15 @@ export default {
|
|
|
|
this.get_drug_group()
|
|
|
|
this.get_drug_group()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//打开申请列表
|
|
|
|
//打开申请列表
|
|
|
|
openDialogTableVisible(){
|
|
|
|
openDialogTableVisible() {
|
|
|
|
this.dialogTableVisible = true
|
|
|
|
this.dialogTableVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//关闭申请列表
|
|
|
|
//关闭申请列表
|
|
|
|
dialogTableClose() {
|
|
|
|
dialogTableClose() {
|
|
|
|
this.user_id_pt = ''
|
|
|
|
this.user_id_pt = ''
|
|
|
|
this.dialogTableVisible = false
|
|
|
|
this.dialogTableVisible = false
|
|
|
|
this.checkList=[]
|
|
|
|
this.checkList = []
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
@ -525,8 +637,9 @@ export default {
|
|
|
|
/* 2,外包一个div,来减少对其他页面会有冲突(此时缺少scoped) */
|
|
|
|
/* 2,外包一个div,来减少对其他页面会有冲突(此时缺少scoped) */
|
|
|
|
.box .el-scrollbar__wrap {
|
|
|
|
.box .el-scrollbar__wrap {
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-x: hidden;
|
|
|
|
height:500px
|
|
|
|
height: 500px
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* .el-dialog__body {
|
|
|
|
/* .el-dialog__body {
|
|
|
|
height: 600px !important;
|
|
|
|
height: 600px !important;
|
|
|
|
} */
|
|
|
|
} */
|
|
|
|