|
|
|
@ -85,6 +85,7 @@
|
|
|
|
|
<dict-tag :options="dict.type.process_type" :value="scope.row.processType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="所在楼层" align="center" prop="processFloor" v-if="columns[11].visible"/>
|
|
|
|
|
<el-table-column label="标准工时" align="center" prop="productionTime" v-if="columns[4].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ formatDayHourMinutes(scope.row.productionTime) }}</span>
|
|
|
|
@ -128,6 +129,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-s-check"
|
|
|
|
|
v-if="scope.row.processType !== '3'"
|
|
|
|
|
@click="handleUserUpdate(scope.row)"
|
|
|
|
|
>关联人员
|
|
|
|
|
</el-button>
|
|
|
|
@ -163,6 +165,9 @@
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="所在楼层" prop="processFloor">
|
|
|
|
|
<el-input v-model="form.processFloor" placeholder="请输入所在楼层"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="标准工时" prop="productionTime">
|
|
|
|
|
<el-input-number v-model="form.productionTimeDays" placeholder="请输入天数" :min="0" :max="10000"
|
|
|
|
|
:controls="false" :style="{ width: '50px' }"/>
|
|
|
|
@ -362,6 +367,7 @@ export default {
|
|
|
|
|
processCode: null,
|
|
|
|
|
processName: null,
|
|
|
|
|
processType: null,
|
|
|
|
|
processFloor: null,
|
|
|
|
|
productionTime: null,
|
|
|
|
|
activeFlag: null,
|
|
|
|
|
remark: null,
|
|
|
|
@ -392,6 +398,7 @@ export default {
|
|
|
|
|
{key: 8, label: `创建时间`, visible: true},
|
|
|
|
|
{key: 9, label: `更新人`, visible: false},
|
|
|
|
|
{key: 10, label: `更新时间`, visible: true},
|
|
|
|
|
{key: 11, label: `所在楼层`, visible: true},
|
|
|
|
|
],
|
|
|
|
|
//产线选项
|
|
|
|
|
prodLineList: [],
|
|
|
|
@ -433,6 +440,7 @@ export default {
|
|
|
|
|
processName: null,
|
|
|
|
|
processType: null,
|
|
|
|
|
productionTime: null,
|
|
|
|
|
processFloor: null,
|
|
|
|
|
productionTimeDays: 0,
|
|
|
|
|
productionTimeHours: 0,
|
|
|
|
|
productionTimeMinutes: 0,
|
|
|
|
@ -618,8 +626,13 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//在选择下拉列表时赋username的值
|
|
|
|
|
handleSelectUser(){
|
|
|
|
|
const selected = this.userList.find(option => option.value === newValue);
|
|
|
|
|
handleSelectUser(row){
|
|
|
|
|
const selectedUser = this.userList.find(user => user.userId === row.userId);
|
|
|
|
|
if (selectedUser) {
|
|
|
|
|
row.userName = selectedUser.nickName;
|
|
|
|
|
} else {
|
|
|
|
|
row.userName = null;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 工序关联人员删除按钮操作 */
|
|
|
|
|
|
|
|
|
|