Commit 581f216e authored by 沈翠玲's avatar 沈翠玲

生产版本

parent 7092f429
...@@ -41,27 +41,42 @@ ...@@ -41,27 +41,42 @@
{{ ((scope.$index + 1) * 10).toString().padStart(4, '0') }} {{ ((scope.$index + 1) * 10).toString().padStart(4, '0') }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('工序编码')" prop="processId" align="center" width="140">
<template slot-scope="scope">
<el-select v-model="scope.row.processId" filterable :disabled="mode == 'info'"
@change="(v) => chooseprocessName(v, scope.row, scope.$index)">
<el-option
v-for="item in processOptions"
:key="item.processId"
:label="item.processCode"
:value="item.processId"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column :label="$t('工序名称')" prop="processName" align="center" width="160"> <el-table-column :label="$t('工序名称')" prop="processName" align="center" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.processName" filterable :disabled="mode == 'info'" <el-select v-model="scope.row.processId" filterable :disabled="mode == 'info'"
@change="(v) => chooseprocessName(v, scope.row, scope.$index)"> @change="(v) => chooseprocessName(v, scope.row, scope.$index)">
<el-option <el-option
v-for="item in processOptions" v-for="item in processOptions"
:key="item.processId" :key="item.processId"
:label="item.processName" :label="item.processName"
:value="item.processName" :value="item.processId"
></el-option> ></el-option>
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('工序编码')" prop="processCode" align="center" width="140"> <el-table-column :label="$t('common.workstation_code')" prop="workstationCode" align="center" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-select v-model="scope.row.workstationId" :disabled="mode == 'info'" filterable @change="(v) => chooseworkstationName(v, scope.row, scope.$index)">
v-model="scope.row.processCode" <el-option
v-for="dict in workstationList"
disabled :key="dict.workstationId"
clearable :label="dict.workstationCode"
/> :value="dict.workstationId"
/>
</el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common.workstation')" prop="workstationId" align="center" width="140"> <el-table-column :label="$t('common.workstation')" prop="workstationId" align="center" width="140">
...@@ -76,16 +91,6 @@ ...@@ -76,16 +91,6 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common.workstation_code')" prop="workstationCode" align="center" width="130">
<template slot-scope="scope">
<el-input
v-model="scope.row.workstationCode"
disabled
clearable
/>
</template>
</el-table-column>
<el-table-column :label="$t('标准工时')" prop="stdWorkingTime" align="center" width="100"> <el-table-column :label="$t('标准工时')" prop="stdWorkingTime" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
...@@ -806,10 +811,10 @@ export default { ...@@ -806,10 +811,10 @@ export default {
}; };
}, },
chooseprocessName(e, row, index) { chooseprocessName(e, row, index) {
const item = this.processOptions.find(v => v.processName === e) const item = this.processOptions.find(v => v.processId === e)
row['processId'] = item.processId
row['processCode'] = item.processCode row['processCode'] = item.processCode
if (e && this.tableData[this.tableData.length - 1]['processName']) { row['processName'] = item.processName
if (e && this.tableData[this.tableData.length - 1]['processId']) {
this.tableData.push(JSON.parse(JSON.stringify(this.breakData))) this.tableData.push(JSON.parse(JSON.stringify(this.breakData)))
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment