| | |
| | | <!-- <el-button size="medium" type="primary" @click="handleDown" v-loading="outLoading" style="margin-right: 16px;">导出</el-button> --> |
| | | </el-col> |
| | | </el-row> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="componentData0.entity.totaldealId=''"> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick"> |
| | | <el-tab-pane label="填写" name="填写" style="height: 100%;" :key="1"> |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower">新增</el-button> |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&¤tInfo.examineState!='通过'">新增</el-button> |
| | | <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='填写'"> |
| | | <ValueTable ref="ValueTable0" :url="$api.processTotaldeal.pageProcessDeal" |
| | | :componentData="componentData0" :key="upIndex0" :delUrl="$api.processTotaldeal.delProcessDeal" /> |
| | |
| | | type: 'text', |
| | | method: 'handleCheck', |
| | | disabFun: (row, index) => { |
| | | return row.examineState=='通过'||row.submitState=='待提交' |
| | | return row.examineState=='通过'||row.submitState=='待提交'||!row.submitState |
| | | } |
| | | }, { |
| | | id: 'handleApproval', |
| | |
| | | type: 'text', |
| | | method: 'handleApproval', |
| | | disabFun: (row, index) => { |
| | | return row.ratifyState=='通过'||row.submitState=='待提交' |
| | | return row.ratifyState=='通过'||row.submitState=='待提交'||!row.submitState |
| | | } |
| | | }], |
| | | tagField: {}, |
| | |
| | | }, |
| | | // 查看 |
| | | handleLook(row){ |
| | | this.currentInfo = row |
| | | // console.log(row) |
| | | // this.title0 = '查看' |
| | | // this.commonFun(row) |
| | |
| | | link.href = url; |
| | | link.download = row.month+' 样品处理申请表'; |
| | | link.click(); |
| | | }, |
| | | tabClick(e){ |
| | | if(e.index==0){ |
| | | this.currentInfo = this.$refs['ValueTable'].tableData[0] |
| | | this.componentData0.entity.totaldealId='' |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | <el-row class="title"> |
| | | <el-col :span="20" style="padding-left: 20px;text-align: left;">样品接收</el-col> |
| | | </el-row> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="componentData0.entity.totalSampleId=''"> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick"> |
| | | <el-tab-pane label="填写" name="填写" style="height: 100%;" :key="1"> |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower">新增</el-button> |
| | | <div class="table" style="height: calc(100% - 200px)" F> |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&¤tInfo.examineState!='通过'">新增</el-button> |
| | | <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='填写'"> |
| | | <ValueTable ref="ValueTable0" :url="$api.processSample.pageProcessSample" |
| | | :componentData="componentData0" :key="upIndex0" :delUrl="$api.processSample.delProcessSample" /> |
| | | </div> |
| | |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <ValueTable ref="ValueTable" v-if="activeName=='历史记录'" :url="$api.processSample.pageProcessTotalSample" |
| | | <div class="table" v-if="activeName=='历史记录'"> |
| | | <ValueTable ref="ValueTable" :url="$api.processSample.pageProcessTotalSample" |
| | | :componentData="componentData" :key="upIndex"/> |
| | | </div> |
| | | </el-tab-pane> |
| | |
| | | type: 'text', |
| | | method: 'handleCheck', |
| | | disabFun: (row, index) => { |
| | | return row.examineState=='通过'||row.submitState=='待提交' |
| | | return row.examineState=='通过'||row.submitState=='待提交'||!row.submitState |
| | | } |
| | | }, { |
| | | id: 'handleApproval', |
| | |
| | | type: 'text', |
| | | method: 'handleApproval', |
| | | disabFun: (row, index) => { |
| | | return row.ratifyState=='通过'||row.submitState=='待提交' |
| | | return row.ratifyState=='通过'||row.submitState=='待提交'||!row.submitState |
| | | } |
| | | }], |
| | | tagField: {}, |
| | |
| | | // console.log(row) |
| | | // this.title0 = '查看' |
| | | // this.commonFun(row) |
| | | this.currentInfo = row |
| | | this.activeName = '填写' |
| | | this.componentData0.entity.totalSampleId = row.id |
| | | this.$nextTick(()=>{ |
| | |
| | | link.href = url; |
| | | link.download = row.month+' 样品接收表'; |
| | | link.click(); |
| | | }, |
| | | tabClick(e){ |
| | | console.log(e) |
| | | if(e.index==0){ |
| | | this.currentInfo = this.$refs['ValueTable'].tableData[0] |
| | | this.componentData0.entity.totalSampleId='' |
| | | } |
| | | } |
| | | }, |
| | | } |
| | |
| | | <el-row class="title"> |
| | | <el-col :span="20" style="padding-left: 20px;text-align: left;">外来文件确认记录</el-col> |
| | | </el-row> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;"> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick"> |
| | | <el-tab-pane label="填写" name="填写" style="height: 100%;"> |
| | | <div style="display: flex;align-items: center;justify-content: flex-end;margin-right: 20px;"> |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower">新增</el-button> |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&&!currentInfo.ratifyUserName">新增</el-button> |
| | | <el-upload :action="action" :multiple="false" |
| | | :show-file-list="false" |
| | | accept='.doc,.docx' :headers="headers" :on-change="beforeUpload" |
| | | :on-error="onError" ref='upload' v-if="upPower" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> |
| | | :on-error="onError" ref='upload' v-if="upPower&&!currentInfo.ratifyUserName" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> |
| | | <el-button size="small" type="primary" :loading="upLoading">导入</el-button></el-upload> |
| | | </div> |
| | | <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='历史记录'"> |
| | | <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='填写'"> |
| | | <ValueTable ref="ValueTable0" :url="$api.manageRecordTotal.pageManageRecordVerify" |
| | | :componentData="componentData0" :key="upIndex0" :delUrl="$api.manageRecordTotal.delManageRecordVerify" :upUrl="$api.manageRecordTotal.doManageRecordVerify" /> |
| | | </div> |
| | |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <div class="table" v-if="activeName=='历史记录'"> |
| | | <ValueTable ref="ValueTable" :url="$api.manageRecordTotal.pageManageRecordTotal" |
| | | :componentData="componentData" :key="upIndex"/> |
| | | </div> |
| | |
| | | this.lookDialogVisible = false |
| | | }).catch(err=>{}); |
| | | }, |
| | | tabClick(e){ |
| | | if(e.index==0){ |
| | | this.currentInfo = this.$refs['ValueTable'].tableData[0] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <el-button size="medium" type="primary" @click="handleDown" :loading="outLoading" v-if="outPower" style="display:inline-block;margin-left: 20px;">导出</el-button> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;"> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick"> |
| | | <el-tab-pane label="填写" name="填写" style="height: 100%;"> |
| | | <div class="search"> |
| | | <div class="search_thing"> |
| | |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | </div> |
| | | <div class="btns"> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">新增</el-button> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower&&!currentInfo.ratifyUserName">新增</el-button> |
| | | <el-upload :action="action" :multiple="false" |
| | | :show-file-list="false" |
| | | accept='.doc,.docx' :headers="headers" :on-change="beforeUpload" |
| | | :on-error="onError" ref='upload' v-if="upPower" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> |
| | | :on-error="onError" ref='upload' v-if="upPower&&!currentInfo.ratifyUserName" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> |
| | | <el-button type="primary" size="medium">导入</el-button></el-upload> |
| | | </div> |
| | | </div> |
| | |
| | | this.title0 = '批准' |
| | | this.commonFun(row) |
| | | }, |
| | | tabClick(e){ |
| | | if(e.index==0){ |
| | | this.currentInfo = this.$refs['ValueTable0'].tableData[0] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |