| | |
| | | <!-- <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" /> |
| | |
| | | name: "SampleDisposal", |
| | | data() { |
| | | return { |
| | | activeName:'填写', |
| | | activeName:'历史记录', |
| | | title:'新增', |
| | | addDialogVisible:false, |
| | | addLoading:false, |
| | |
| | | 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: {}, |
| | |
| | | id: 'handleAdd0', |
| | | font: '修改', |
| | | type: 'text', |
| | | method: 'handleAdd0' |
| | | method: 'handleAdd0', |
| | | disabFun: (row, index) => { |
| | | return !this.addPower||this.currentInfo.examineState=='通过' |
| | | } |
| | | },{ |
| | | id: 'delete', |
| | | font: '删除', |
| | | type: 'text', |
| | | method: 'doDiy' |
| | | method: 'doDiy', |
| | | disabFun: (row, index) => { |
| | | return !this.addPower||this.currentInfo.examineState=='通过' |
| | | } |
| | | }], |
| | | tagField: {}, |
| | | selectField: {}, |
| | |
| | | outPower:false, |
| | | addPower:false, |
| | | }; |
| | | }, |
| | | watch: { |
| | | 'activeName' (val1, val2) { |
| | | if(val1=='填写'){ |
| | | this.componentData0.do.forEach((item)=>{ |
| | | item.disabFun = (row, index) => { |
| | | return !this.addPower||this.currentInfo.examineState=='通过' |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity); |
| | |
| | | }, |
| | | // 查看 |
| | | 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> |
| | | |