|
@@ -85,7 +85,7 @@
|
|
|
文档资料
|
|
|
|
|
|
<!-- 上传 模具0 时 -->
|
|
|
- <el-dropdown trigger="click" style="float:right;" v-show="activeTab == 0 && update == 1">
|
|
|
+ <el-dropdown trigger="click" style="float: right;" v-show="activeTab == 0 && update == 1">
|
|
|
<el-button size="small" type="primary" :loading="uploading[0]">
|
|
|
上传
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -104,7 +104,7 @@
|
|
|
</el-button>
|
|
|
|
|
|
<!-- 零件1 新建零件 -->
|
|
|
- <el-dropdown trigger="click" style="float:right; margin-right: 10px;" v-show=" activeTab == 1 && update == 1">
|
|
|
+ <el-dropdown trigger="click" style="float: right; margin-right: 10px;" v-show=" activeTab == 1 && update == 1">
|
|
|
<el-button size="small" type="primary">
|
|
|
新建零件
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -124,7 +124,7 @@
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
|
|
|
- <!-- 上传 试模2 保养3 更新4 时 -->
|
|
|
+ <!-- 上传 试模2 保养3 时 -->
|
|
|
<el-upload ref="upload"
|
|
|
v-show="(activeTab == 2 || activeTab == 3 || activeTab == 4) && update == 1"
|
|
|
action="customize"
|
|
@@ -137,16 +137,26 @@
|
|
|
<el-button size="small" type="primary" :loading="uploading[1]">上传</el-button>
|
|
|
</el-upload>
|
|
|
|
|
|
+ <!-- 更新4 --><!-- 目前还没加入权限 -->
|
|
|
+ <el-button
|
|
|
+ v-show="activeTab == 4"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ style="float: right;"
|
|
|
+ @click="updateRequest"
|
|
|
+ >申请</el-button>
|
|
|
+
|
|
|
<!-- 上传 报废5 时 -->
|
|
|
<el-button
|
|
|
v-show="activeTab == 5 && update == 1"
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
- style="float:right;"
|
|
|
+ style="float: right;"
|
|
|
@click="centerDialog2Visible = true;"
|
|
|
>上传</el-button>
|
|
|
</el-col>
|
|
|
|
|
|
+ <!-- 文档列表部分 -->
|
|
|
<el-col :span="24">
|
|
|
<el-tabs v-model="activePage" @tab-click="handleClick">
|
|
|
<!-- 模具文档 -->
|
|
@@ -329,31 +339,13 @@
|
|
|
<el-tab-pane label="模具更新" name="4">
|
|
|
<el-table :data="documents.update" highlight-current-row v-loading="listLoading" style="width: 100%;">
|
|
|
<el-table-column type="index" width="40"></el-table-column>
|
|
|
- <el-table-column prop="fileName" label="名称" sortable></el-table-column>
|
|
|
- <el-table-column prop="fileSize" label="大小" width="200" sortable></el-table-column>
|
|
|
- <el-table-column prop="uploadtor" label="上传者" width="200" sortable></el-table-column>
|
|
|
- <el-table-column prop="indate" label="上传时间" width="200" sortable></el-table-column>
|
|
|
- <el-table-column label="状态" width="120" sortable>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.state == -2">生产方审核不通过</span>
|
|
|
- <span v-else-if="scope.row.state == -1">资产方审核不通过</span>
|
|
|
- <span v-else-if="scope.row.state == 0">待双方审核</span>
|
|
|
- <span v-else-if="scope.row.state == 1">待生产方审核</span>
|
|
|
- <span v-else-if="scope.row.state == 2">待资产方审核</span>
|
|
|
- <span v-else-if="scope.row.state == 3">审核通过</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="申请人" sortable></el-table-column>
|
|
|
+ <el-table-column label="申请时间" width="200" sortable></el-table-column>
|
|
|
+ <el-table-column label="状态" width="120" sortable></el-table-column>
|
|
|
<el-table-column label="操作" width="200" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="small"
|
|
|
- v-if="approve == 1 && (scope.row.state == 0 || (scope.row.state == 1 && user.subordinateType == 1) || (scope.row.state == 2 && user.subordinateType == 0))"
|
|
|
- @click="checkOpen(scope.row.id, scope.row.fileName)">审批</el-button>
|
|
|
- <a :href="scope.row.fileUrl" :download="scope.row.fileName" v-if="download == 1 && scope.row.state == 3">
|
|
|
- <el-button size="small" @click="dowloadfile(scope.row.id)">下载</el-button>
|
|
|
- </a>
|
|
|
- <el-button size="small"
|
|
|
- v-if="scope.row.uplodtorId == user.id && scope.row.state <= 0"
|
|
|
- @click="deleteFile(scope.row.id)" type="danger">删除</el-button>
|
|
|
+ <el-button size="small" @click="updateApproval(scope.row.id, true)" type="primary">通过</el-button>
|
|
|
+ <el-button size="small" @click="updateApproval(scope.row.id, false)">拒绝</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -398,7 +390,7 @@
|
|
|
<!-- 操作记录 -->
|
|
|
<el-col :span="24" class="title">
|
|
|
操作记录
|
|
|
- <el-date-picker style="float: right;" v-model="recordTime" type="datetimerange" placeholder="选择日期时间" @change="changeTime"></el-date-picker>
|
|
|
+ <el-button size="small" type="primary" style="float: right;" @click="centerDialog5Visible = true">导出</el-button>
|
|
|
</el-col>
|
|
|
<el-table :data="operations" highlight-current-row v-loading="listLoading" style="width: 100%;">
|
|
|
<el-table-column type="index" width="40"></el-table-column>
|
|
@@ -444,6 +436,16 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 批量导出操作记录弹窗 -->
|
|
|
+ <el-dialog title="批量导出操作记录" v-if="centerDialog5Visible" :visible.sync="centerDialog5Visible" width="50" center>
|
|
|
+ <span style="line-height: 40px;">请输入需要导出的时间段</span>
|
|
|
+ <el-date-picker v-model="recordTime" type="datetimerange" placeholder="选择日期时间" style="float: right;"></el-date-picker>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="centerDialog5Visible = false">取消</el-button>
|
|
|
+ <el-button @click="exportRecords">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 单个新增零件弹窗 -->
|
|
|
<el-dialog title="新增零件" v-if="centerDialog3Visible" :visible.sync="centerDialog3Visible" :close-on-click-modal="false" customClass="customWidth">
|
|
|
<el-form :model="newParts" label-width="100px" :rules="formRules" ref="newParts" :inline="true" class="demo-form-inline">
|
|
@@ -604,6 +606,7 @@
|
|
|
centerDialog2Visible: false, //模具界面
|
|
|
centerDialog3Visible: false, //创建零件界面
|
|
|
centerDialog4Visible: false, //零件文档上传界面
|
|
|
+ centerDialog5Visible: false, //批量导出操作界面
|
|
|
editPortVisible: false,//编辑零件界面
|
|
|
|
|
|
listLoading: false,
|
|
@@ -1227,10 +1230,23 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- //操作记录部分更改时间
|
|
|
- changeTime(){
|
|
|
- //然而现在并没有卵用
|
|
|
- console.log(this.recordTime);
|
|
|
+ //更新申请
|
|
|
+ updateRequest(){
|
|
|
+ console.log("发起了申请,但什么都没有发生")
|
|
|
+ },
|
|
|
+
|
|
|
+ //更新批准
|
|
|
+ updateApproval(id, approval){
|
|
|
+ if(approval){
|
|
|
+ console.log("批准通过了" + id + "的申请,但什么都没有发生");
|
|
|
+ }else{
|
|
|
+ console.log("批准拒绝了" + id + "的申请,但什么都没有发生");
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ //导出操作记录
|
|
|
+ exportRecords(){
|
|
|
+ console.log("想要导出记录,但什么都没有发生");
|
|
|
}
|
|
|
},
|
|
|
created() {
|