|
|
@ -123,18 +123,18 @@
|
|
|
|
<el-table-column label="不合格原因" align="center" prop="failureReason" v-if="columns[7].visible" width="100"/>
|
|
|
|
<el-table-column label="不合格原因" align="center" prop="failureReason" v-if="columns[7].visible" width="100"/>
|
|
|
|
<!-- <el-table-column label="不合格类型" align="center" prop="failureType" v-if="columns[8].visible"/>-->
|
|
|
|
<!-- <el-table-column label="不合格类型" align="center" prop="failureType" v-if="columns[8].visible"/>-->
|
|
|
|
<el-table-column label="质管员审核时间" align="center" prop="qualityUserTime" width="180" v-if="columns[9].visible"/>
|
|
|
|
<el-table-column label="质管员审核时间" align="center" prop="qualityUserTime" width="180" v-if="columns[9].visible"/>
|
|
|
|
<el-table-column label="生产经理标识" align="center" prop="productionManagerFlag" v-if="columns[10].visible" width="100">
|
|
|
|
<el-table-column label="生产部经理标识" align="center" prop="productionManagerFlag" v-if="columns[10].visible" width="100">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.agree_flag" :value="scope.row.productionManagerFlag"/>
|
|
|
|
<dict-tag :options="dict.type.agree_flag" :value="scope.row.productionManagerFlag"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="生产经理审核时间" align="center" prop="productionManagerTime" width="180" v-if="columns[11].visible"/>
|
|
|
|
<el-table-column label="生产部经理审核时间" align="center" prop="productionManagerTime" width="180" v-if="columns[11].visible"/>
|
|
|
|
<el-table-column label="质量经理标识" align="center" prop="qualityManagerFlag" v-if="columns[12].visible" width="100">
|
|
|
|
<el-table-column label="质量部经理标识" align="center" prop="qualityManagerFlag" v-if="columns[12].visible" width="100">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.agree_flag" :value="scope.row.qualityManagerFlag"/>
|
|
|
|
<dict-tag :options="dict.type.agree_flag" :value="scope.row.qualityManagerFlag"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="质量经理审核时间" align="center" prop="qualityManagerTime" width="180" v-if="columns[13].visible"/>
|
|
|
|
<el-table-column label="质量部经理审核时间" align="center" prop="qualityManagerTime" width="180" v-if="columns[13].visible"/>
|
|
|
|
<!-- <el-table-column label="备注" align="center" prop="remark" v-if="columns[17].visible"/>-->
|
|
|
|
<!-- <el-table-column label="备注" align="center" prop="remark" v-if="columns[17].visible"/>-->
|
|
|
|
<!-- <el-table-column label="创建人" align="center" prop="createdBy" v-if="columns[18].visible"/>-->
|
|
|
|
<!-- <el-table-column label="创建人" align="center" prop="createdBy" v-if="columns[18].visible"/>-->
|
|
|
|
<!-- <el-table-column label="创建时间" align="center" prop="createdTime" width="180" v-if="columns[19].visible">-->
|
|
|
|
<!-- <el-table-column label="创建时间" align="center" prop="createdTime" width="180" v-if="columns[19].visible">-->
|
|
|
@ -165,7 +165,7 @@
|
|
|
|
v-if="productionManagerVisible && scope.row.productionManagerFlag == null
|
|
|
|
v-if="productionManagerVisible && scope.row.productionManagerFlag == null
|
|
|
|
&& scope.row.qualityUserFlag != null && scope.row.productionUserFlag === '1'"
|
|
|
|
&& scope.row.qualityUserFlag != null && scope.row.productionUserFlag === '1'"
|
|
|
|
@click="productionManagerUpdate(scope.row)"
|
|
|
|
@click="productionManagerUpdate(scope.row)"
|
|
|
|
>生产经理评审
|
|
|
|
>生产部经理评审
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
@ -174,7 +174,7 @@
|
|
|
|
v-if="qualityManagerVisible && scope.row.qualityManagerFlag == null
|
|
|
|
v-if="qualityManagerVisible && scope.row.qualityManagerFlag == null
|
|
|
|
&& scope.row.productionManagerFlag != null && scope.row.productionUserFlag === '1'"
|
|
|
|
&& scope.row.productionManagerFlag != null && scope.row.productionUserFlag === '1'"
|
|
|
|
@click="qualityManagerUpdate(scope.row)"
|
|
|
|
@click="qualityManagerUpdate(scope.row)"
|
|
|
|
>质量经理评审
|
|
|
|
>质量部经理评审
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- size="mini"-->
|
|
|
|
<!-- size="mini"-->
|
|
|
@ -272,7 +272,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 生产经理管理对话框 -->
|
|
|
|
<!-- 生产部经理管理对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="productionManagerOpen" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="productionManagerOpen" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form-item label="SAP订单" prop="orderCode">
|
|
|
|
<el-form-item label="SAP订单" prop="orderCode">
|
|
|
@ -307,7 +307,7 @@
|
|
|
|
<el-form-item label="不合格原因" prop="failureReason">
|
|
|
|
<el-form-item label="不合格原因" prop="failureReason">
|
|
|
|
<el-input v-model="form.failureReason" type="textarea" placeholder="请输入不合格原因" disabled/>
|
|
|
|
<el-input v-model="form.failureReason" type="textarea" placeholder="请输入不合格原因" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="生产经理标识" prop="productionManagerFlag">
|
|
|
|
<el-form-item label="生产部经理标识" prop="productionManagerFlag">
|
|
|
|
<el-radio-group v-model="form.productionManagerFlag">
|
|
|
|
<el-radio-group v-model="form.productionManagerFlag">
|
|
|
|
<el-radio
|
|
|
|
<el-radio
|
|
|
|
v-for="dict in dict.type.agree_flag"
|
|
|
|
v-for="dict in dict.type.agree_flag"
|
|
|
@ -324,7 +324,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 质量经理管理对话框 -->
|
|
|
|
<!-- 质量部经理管理对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="qualityManagerOpen" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="qualityManagerOpen" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form-item label="SAP订单" prop="orderCode">
|
|
|
|
<el-form-item label="SAP订单" prop="orderCode">
|
|
|
@ -359,7 +359,7 @@
|
|
|
|
<el-form-item label="不合格原因" prop="failureReason">
|
|
|
|
<el-form-item label="不合格原因" prop="failureReason">
|
|
|
|
<el-input v-model="form.failureReason" type="textarea" placeholder="请输入不合格原因" disabled/>
|
|
|
|
<el-input v-model="form.failureReason" type="textarea" placeholder="请输入不合格原因" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="生产经理标识" prop="productionManagerFlag">
|
|
|
|
<el-form-item label="生产部经理标识" prop="productionManagerFlag">
|
|
|
|
<el-radio-group v-model="form.productionManagerFlag" disabled>
|
|
|
|
<el-radio-group v-model="form.productionManagerFlag" disabled>
|
|
|
|
<el-radio
|
|
|
|
<el-radio
|
|
|
|
v-for="dict in dict.type.agree_flag"
|
|
|
|
v-for="dict in dict.type.agree_flag"
|
|
|
@ -369,7 +369,7 @@
|
|
|
|
</el-radio>
|
|
|
|
</el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="质量经理标识" prop="qualityManagerFlag">
|
|
|
|
<el-form-item label="质量部经理标识" prop="qualityManagerFlag">
|
|
|
|
<el-radio-group v-model="form.qualityManagerFlag">
|
|
|
|
<el-radio-group v-model="form.qualityManagerFlag">
|
|
|
|
<el-radio
|
|
|
|
<el-radio
|
|
|
|
v-for="dict in dict.type.agree_flag"
|
|
|
|
v-for="dict in dict.type.agree_flag"
|
|
|
@ -420,9 +420,9 @@ export default {
|
|
|
|
handleAddVisible: false,
|
|
|
|
handleAddVisible: false,
|
|
|
|
// 质管员显示
|
|
|
|
// 质管员显示
|
|
|
|
qualityUserVisible: false,
|
|
|
|
qualityUserVisible: false,
|
|
|
|
// 生产经理显示
|
|
|
|
// 生产部经理显示
|
|
|
|
productionManagerVisible: false,
|
|
|
|
productionManagerVisible: false,
|
|
|
|
// 质量经理显示
|
|
|
|
// 质量部经理显示
|
|
|
|
qualityManagerVisible: false,
|
|
|
|
qualityManagerVisible: false,
|
|
|
|
// 总条数
|
|
|
|
// 总条数
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
@ -468,7 +468,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
//修改当前用户岗位 1=生产班长、2=质管员、3=生产经理、4=质量经理
|
|
|
|
//修改当前用户岗位 1=生产班长、2=质管员、3=生产部经理、4=质量部经理
|
|
|
|
currentUserPost: null
|
|
|
|
currentUserPost: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
@ -491,10 +491,10 @@ export default {
|
|
|
|
{ key: 7, label: `不合格原因`, visible: true },
|
|
|
|
{ key: 7, label: `不合格原因`, visible: true },
|
|
|
|
{ key: 8, label: `不合格类型`, visible: true },
|
|
|
|
{ key: 8, label: `不合格类型`, visible: true },
|
|
|
|
{ key: 9, label: `质管员审核时间`, visible: true },
|
|
|
|
{ key: 9, label: `质管员审核时间`, visible: true },
|
|
|
|
{ key: 10, label: `生产经理标识`, visible: true },
|
|
|
|
{ key: 10, label: `生产部经理标识`, visible: true },
|
|
|
|
{ key: 11, label: `生产经理审核时间`, visible: true },
|
|
|
|
{ key: 11, label: `生产部经理审核时间`, visible: true },
|
|
|
|
{ key: 12, label: `质量经理标识`, visible: true },
|
|
|
|
{ key: 12, label: `质量部经理标识`, visible: true },
|
|
|
|
{ key: 13, label: `质量经理审核时间`, visible: true }
|
|
|
|
{ key: 13, label: `质量部经理审核时间`, visible: true }
|
|
|
|
// { key: 17, label: `备注`, visible: true },
|
|
|
|
// { key: 17, label: `备注`, visible: true },
|
|
|
|
// { key: 18, label: `创建人`, visible: true },
|
|
|
|
// { key: 18, label: `创建人`, visible: true },
|
|
|
|
// { key: 19, label: `创建时间`, visible: true },
|
|
|
|
// { key: 19, label: `创建时间`, visible: true },
|
|
|
@ -610,7 +610,7 @@ export default {
|
|
|
|
this.title = '质管员评审'
|
|
|
|
this.title = '质管员评审'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 生产经理评审按钮操作 */
|
|
|
|
/** 生产部经理评审按钮操作 */
|
|
|
|
productionManagerUpdate(row) {
|
|
|
|
productionManagerUpdate(row) {
|
|
|
|
this.reset()
|
|
|
|
this.reset()
|
|
|
|
const objId = row.objId || this.ids
|
|
|
|
const objId = row.objId || this.ids
|
|
|
@ -619,10 +619,10 @@ export default {
|
|
|
|
this.form.currentUserPost = 3;
|
|
|
|
this.form.currentUserPost = 3;
|
|
|
|
this.form.productionManagerTime = new Date().getTime();
|
|
|
|
this.form.productionManagerTime = new Date().getTime();
|
|
|
|
this.productionManagerOpen = true
|
|
|
|
this.productionManagerOpen = true
|
|
|
|
this.title = '生产经理评审'
|
|
|
|
this.title = '生产部经理评审'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 质量经理评审按钮操作 */
|
|
|
|
/** 质量部经理评审按钮操作 */
|
|
|
|
qualityManagerUpdate(row) {
|
|
|
|
qualityManagerUpdate(row) {
|
|
|
|
this.reset()
|
|
|
|
this.reset()
|
|
|
|
const objId = row.objId || this.ids
|
|
|
|
const objId = row.objId || this.ids
|
|
|
@ -631,7 +631,7 @@ export default {
|
|
|
|
this.form.currentUserPost = 4;
|
|
|
|
this.form.currentUserPost = 4;
|
|
|
|
this.form.qualityManagerTime = new Date().getTime();
|
|
|
|
this.form.qualityManagerTime = new Date().getTime();
|
|
|
|
this.qualityManagerOpen = true
|
|
|
|
this.qualityManagerOpen = true
|
|
|
|
this.title = '质量经理评审'
|
|
|
|
this.title = '质量部经理评审'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
@ -648,11 +648,11 @@ export default {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.form.currentUserPost === 3 && this.form.productionManagerFlag == null){
|
|
|
|
if (this.form.currentUserPost === 3 && this.form.productionManagerFlag == null){
|
|
|
|
this.$modal.msgError('请选择生产经理标识!')
|
|
|
|
this.$modal.msgError('请选择生产部经理标识!')
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.form.currentUserPost === 4 && this.form.qualityManagerFlag == null){
|
|
|
|
if (this.form.currentUserPost === 4 && this.form.qualityManagerFlag == null){
|
|
|
|
this.$modal.msgError('请选择质量经理标识!')
|
|
|
|
this.$modal.msgError('请选择质量部经理标识!')
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.form.currentUserPost === 2 && this.form.qualityUserFlag === '2'){
|
|
|
|
if (this.form.currentUserPost === 2 && this.form.qualityUserFlag === '2'){
|
|
|
|