| | |
| | | <div class="search"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">文件编号:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="componentData.entity.documentCode" |
| | | @keyup.enter.native="refreshTable()"></el-input></div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="componentData.entity.documentCode" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">文件名称:</div> |
| | |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | </div> |
| | | <div class="btns" style="padding-left: 30px;"> |
| | | <el-button size="small" type="primary" @click="addDialogVisible=true,addInfo={},radio='发放'" v-if="addPower">添加发放记录</el-button> |
| | | <el-button size="small" type="primary" @click="addDialogVisible = true, addInfo = {}, radio = '发放'" |
| | | v-if="addPower">添加发放记录</el-button> |
| | | <el-button size="small" type="primary" v-if="outPower" @click="handleOut" :loading="outLoading">导出</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | <ValueTable ref="ValueTable" :url="$api.manageDocumentList.pageManageDocumentIssueRecycle" |
| | | :componentData="componentData" :delUrl="$api.manageDocumentList.delManageDocumentIssueRecycle" :key="upIndex"/> |
| | | </div> |
| | | <el-dialog |
| | | :title="'添加'+radio+'记录'" |
| | | :visible.sync="addDialogVisible" |
| | | width="800px" top="10vh"> |
| | | <el-dialog :title="'添加' + radio + '记录'" :visible.sync="addDialogVisible" width="800px" top="10vh"> |
| | | <el-row> |
| | | <el-col :span="12" style="margin-bottom: 16px;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label"><span style="color:red;margin-right: 4px;">*</span>申请编号:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="addInfo.documentCode" size="small" style="width: 100%;" @change="changeFileList" :disabled="radio=='回收'" filterable allow-create clearable> |
| | | <el-option |
| | | v-for="item in fileList" |
| | | :key="item.documentCode" |
| | | :label="item.documentCode" |
| | | <el-select v-model="addInfo.documentCode" size="small" style="width: 100%;" @change="changeFileList" |
| | | :disabled="radio == '回收'" filterable allow-create clearable> |
| | | <el-option v-for="item in fileList" :key="item.documentCode" :label="item.documentCode" |
| | | :value="item.documentCode"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | <div class="search_label"><span style="color:red;margin-right: 4px;">*</span>发放人:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="addInfo.issueUser" size="small" style="width: 100%;" filterable> |
| | | <el-option |
| | | v-for="item in personList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | <el-option v-for="item in personList" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | <div class="search_label"><span style="color:red;margin-right: 4px;">*</span>回收人:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="addInfo.recycleUser" size="small" style="width: 100%;" filterable> |
| | | <el-option |
| | | v-for="item in personList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | <el-option v-for="item in personList" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label"><span style="color:red;margin-right: 4px;">*</span>审批人:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="addInfo.receiveUser" size="small" style="width: 100%;" :disabled="radio!='发放'" filterable> |
| | | <el-option |
| | | v-for="item in personList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | <el-select v-model="addInfo.receiveUser" size="small" style="width: 100%;" :disabled="radio != '发放'" |
| | | filterable> |
| | | <el-option v-for="item in personList" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | <el-col :span="12" style="margin-bottom: 16px;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">文件名称:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.name" :disabled="radio=='回收'"></el-input></div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.name" |
| | | :disabled="radio == '回收'"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" style="margin-bottom: 16px;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">文件版本:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.version" :disabled="radio=='回收'"></el-input></div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.version" |
| | | :disabled="radio == '回收'"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" style="margin-bottom: 16px;"> |
| | |
| | | <div class="search_label">文件状态:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="addInfo.state" size="small" style="width: 100%;" :disabled="radio=='回收'"> |
| | | <el-option :label="item.label" :value="item.value" v-for="(item,index) in fileState" :key="index"></el-option> |
| | | <el-option :label="item.label" :value="item.value" v-for="(item, index) in fileState" |
| | | :key="index"></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | |
| | | <el-col :span="12" style="margin-bottom: 16px;" v-if="radio=='发放'"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">发放编号:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.issueCode"></el-input></div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="addInfo.issueCode"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" style="margin-bottom: 16px;" v-else> |
| | | <div class="search_thing"> |
| | | <div class="search_label">回收编号:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.recycleCode"></el-input></div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="addInfo.recycleCode"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" style="margin-bottom: 16px;" v-if="radio=='发放'"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">发放时间:</div> |
| | | <div class="search_input"> |
| | | <el-date-picker |
| | | v-model="addInfo.issueDate" |
| | | type="date" |
| | | size="small" |
| | | placeholder="选择日期" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd" style="width: 100%;"> |
| | | <el-date-picker v-model="addInfo.issueDate" type="date" size="small" placeholder="选择日期" |
| | | format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 100%;"> |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">回收时间:</div> |
| | | <div class="search_input"> |
| | | <el-date-picker |
| | | v-model="addInfo.recycleDate" |
| | | type="date" |
| | | size="small" |
| | | placeholder="选择日期" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd" style="width: 100%;"> |
| | | <el-date-picker v-model="addInfo.recycleDate" type="date" size="small" placeholder="选择日期" |
| | | format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 100%;"> |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | |
| | | <el-col :span="12" style="margin-bottom: 16px;" v-if="radio=='发放'"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">发放说明:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.issueNote" type="textarea" |
| | | :rows="2"></el-input></div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.issueNote" |
| | | type="textarea" :rows="2"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" style="margin-bottom: 16px;" v-else> |
| | | <div class="search_thing"> |
| | | <div class="search_label">回收说明:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.recycleNote" type="textarea" |
| | | :rows="2"></el-input></div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable v-model="addInfo.recycleNote" |
| | | type="textarea" :rows="2"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" style="margin-bottom: 16px;" v-if="radio=='发放'"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">上传附件:</div> |
| | | <div class="search_input"><el-upload |
| | | style="margin: 8px 0 0px 50px;" |
| | | action="#" |
| | | :auto-upload="false" |
| | | :multiple="false" |
| | | accept='.pdf,.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx' :on-change="handleChangeUpload"> |
| | | <div class="search_input"><el-upload style="margin: 8px 0 0px 50px;" action="#" :auto-upload="false" |
| | | :multiple="false" accept='.pdf,.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx' |
| | | :on-change="handleChangeUpload"> |
| | | <el-button size="small" type="primary">上传附件</el-button> |
| | | </el-upload></div> |
| | | </div> |
| | |
| | | <el-button type="primary" @click="handleAdd" :loading="addLoading">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="查看附件" |
| | | :visible.sync="lookDialogVisible" |
| | | width="800px" top="5vh" fullscreen> |
| | | <filePreview v-if="lookDialogVisible" :fileUrl="javaApi+'/word/'+currentInfo.url" |
| | | :currentFile="{}" style="height: 90vh;overflow-y: auto;"/> |
| | | <el-dialog title="查看附件" :visible.sync="lookDialogVisible" width="800px" top="5vh" fullscreen> |
| | | <filePreview v-if="lookDialogVisible" :fileUrl="javaApi + '/word/' + currentInfo.url" :currentFile="{}" |
| | | style="height: 90vh;overflow-y: auto;" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | requiredAdd: [], |
| | | requiredUp: [], |
| | | needSort: [], |
| | | inputType: '' |
| | | inputType: '' |
| | | }, |
| | | entityCopy: {}, |
| | | upIndex: 0, |
| | |
| | | }, |
| | | refresh() { |
| | | this.componentData.entity = this.HaveJson(this.entityCopy) |
| | | this.page.current = 1 |
| | | this.upIndex++ |
| | | this.refreshTable() |
| | | }, |
| | |
| | | current:-1, |
| | | size:-1 |
| | | } |
| | | },{headers: { |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | }}).then(res=>{ |
| | | } |
| | | }).then(res => { |
| | | this.fileList = res.data.body.records |
| | | }).catch(err=>{}) |
| | | }, |
| | |
| | | current:-1, |
| | | size:-1 |
| | | } |
| | | },{headers: { |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | }}).then(res=>{ |
| | | } |
| | | }).then(res => { |
| | | this.fileList0 = res.data.body.records |
| | | }).catch(err=>{}) |
| | | }, |
| | | // 导出 |
| | | handleOut(){ |
| | | this.outLoading = true |
| | | this.$axios.post(this.$api.manageDocumentList.exportManageDocumentIssueRecycle, {entity:this.componentData.entity},{headers: { |
| | | this.$axios.post(this.$api.manageDocumentList.exportManageDocumentIssueRecycle, { entity: this.componentData.entity }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | },responseType: "blob"},).then(res => { |
| | | }, responseType: "blob" |
| | | },).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res],{ type: 'application/octet-stream' }); |
| | | //将Blob 对象转换成字符串 |
| | |
| | | height: 60px; |
| | | line-height: 60px; |
| | | } |
| | | |
| | | .search { |
| | | background-color: #fff; |
| | | height: 40px; |
| | |
| | | height: calc(100% - 60px - 80px); |
| | | padding: 20px; |
| | | } |
| | | |
| | | .btns{ |
| | | position: absolute; |
| | | right: 20px; |