|
@@ -86,7 +86,7 @@
|
|
|
|
|
|
<!-- 上传 模具0 时 -->
|
|
<!-- 上传 模具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]">
|
|
|
|
|
|
+ <el-button size="mini" type="primary" :loading="uploading[0]">
|
|
上传
|
|
上传
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -99,13 +99,13 @@
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
|
|
|
<!-- 上传 零件1 时 -->
|
|
<!-- 上传 零件1 时 -->
|
|
- <el-button size="small" type="primary" style="float:right;" v-show="activeTab == 1 && update == 1" @click.native="fileType = 0;centerDialog4Visible = true;">
|
|
|
|
|
|
+ <el-button size="mini" type="primary" style="float:right;" v-show="activeTab == 1 && update == 1" @click.native="fileType = 0;centerDialog4Visible = true;">
|
|
上传
|
|
上传
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
<!-- 零件1 新建零件 -->
|
|
<!-- 零件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">
|
|
|
|
|
|
+ <el-button size="mini" type="primary">
|
|
新建零件
|
|
新建零件
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -129,13 +129,13 @@
|
|
:limit="5"
|
|
:limit="5"
|
|
style="float:right;"
|
|
style="float:right;"
|
|
>
|
|
>
|
|
- <el-button size="small" type="primary" :loading="uploading[1]">上传</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="primary" :loading="uploading[1]">上传</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
|
|
|
|
- <!-- 更新4 --><!-- 目前还没加入权限 -->
|
|
|
|
|
|
+ <!-- 更新4 -->
|
|
<el-button
|
|
<el-button
|
|
v-show="activeTab == 4 && user.id == moldDetail.managerId"
|
|
v-show="activeTab == 4 && user.id == moldDetail.managerId"
|
|
- size="small"
|
|
|
|
|
|
+ size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
style="float: right;"
|
|
style="float: right;"
|
|
@click="updateRequest"
|
|
@click="updateRequest"
|
|
@@ -144,7 +144,7 @@
|
|
<!-- 上传 报废5 时 -->
|
|
<!-- 上传 报废5 时 -->
|
|
<el-button
|
|
<el-button
|
|
v-show="activeTab == 5 && update == 1"
|
|
v-show="activeTab == 5 && update == 1"
|
|
- size="small"
|
|
|
|
|
|
+ size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
style="float: right;"
|
|
style="float: right;"
|
|
@click="centerDialog2Visible = true;"
|
|
@click="centerDialog2Visible = true;"
|
|
@@ -333,9 +333,18 @@
|
|
<el-tab-pane label="模具更新" name="4">
|
|
<el-tab-pane label="模具更新" name="4">
|
|
<el-table :data="documents.update" highlight-current-row v-loading="listLoading" style="width: 100%;">
|
|
<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 type="index" width="40"></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 prop="uploadtor" label="申请人" 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="操作" width="200" sortable>
|
|
<el-table-column label="操作" width="200" sortable>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button size="small" @click="updateApproval(scope.row.id, true)" type="primary">通过</el-button>
|
|
<el-button size="small" @click="updateApproval(scope.row.id, true)" type="primary">通过</el-button>
|
|
@@ -384,7 +393,7 @@
|
|
<!-- 操作记录 -->
|
|
<!-- 操作记录 -->
|
|
<el-col :span="24" class="title">
|
|
<el-col :span="24" class="title">
|
|
{{activeTab == 4?"更新":"操作"}}记录
|
|
{{activeTab == 4?"更新":"操作"}}记录
|
|
- <el-button v-if="user.id == moldDetail.managerId" size="small" type="primary" style="float: right;" @click="centerDialog5Visible = true">导出</el-button>
|
|
|
|
|
|
+ <el-button v-if="user.id == moldDetail.managerId" size="mini" type="primary" style="float: right;" @click="centerDialog5Visible = true">导出</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-table :data="operations" highlight-current-row v-loading="listLoading" style="width: 100%;">
|
|
<el-table :data="operations" highlight-current-row v-loading="listLoading" style="width: 100%;">
|
|
<el-table-column type="index" width="40"></el-table-column>
|
|
<el-table-column type="index" width="40"></el-table-column>
|
|
@@ -787,7 +796,6 @@
|
|
for(var i in res.data){
|
|
for(var i in res.data){
|
|
this.setList(res.data[i].list,i);
|
|
this.setList(res.data[i].list,i);
|
|
}
|
|
}
|
|
-
|
|
|
|
//顺便再把下面操作记录读取一下
|
|
//顺便再把下面操作记录读取一下
|
|
this.getOperationRecord(this.activeTab);
|
|
this.getOperationRecord(this.activeTab);
|
|
} else {
|
|
} else {
|
|
@@ -934,7 +942,7 @@
|
|
var fileObj = params.file;
|
|
var fileObj = params.file;
|
|
var form = new FormData();
|
|
var form = new FormData();
|
|
form.append("file", fileObj);
|
|
form.append("file", fileObj);
|
|
- form.append("blongType", this.activeTab);
|
|
|
|
|
|
+ form.append("belongType", this.activeTab);
|
|
form.append("mouldId", this.detailId);
|
|
form.append("mouldId", this.detailId);
|
|
if (this.activeTab == 0 || this.activeTab == 1) {
|
|
if (this.activeTab == 0 || this.activeTab == 1) {
|
|
form.append("dwgType", this.fileType);
|
|
form.append("dwgType", this.fileType);
|
|
@@ -1226,7 +1234,34 @@
|
|
|
|
|
|
//更新申请
|
|
//更新申请
|
|
updateRequest(){
|
|
updateRequest(){
|
|
- console.log("发起了申请,但什么都没有发生")
|
|
|
|
|
|
+ this.$confirm('要申请更新模具吗?', '申请', {
|
|
|
|
+ type: 'info'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.http.post( this.port.mold.moldFileUpload, {
|
|
|
|
+ belongType: 4,
|
|
|
|
+ mouldId: this.detailId
|
|
|
|
+ },
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "申请成功",
|
|
|
|
+ type: "success"
|
|
|
|
+ });
|
|
|
|
+ this.getDocument();
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
//更新批准
|
|
//更新批准
|