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

生产版本

parent 7092f429
......@@ -41,27 +41,42 @@
{{ ((scope.$index + 1) * 10).toString().padStart(4, '0') }}
</template>
</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">
<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)">
<el-option
v-for="item in processOptions"
:key="item.processId"
:label="item.processName"
:value="item.processName"
:value="item.processId"
></el-option>
</el-select>
</template>
</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">
<el-input
v-model="scope.row.processCode"
disabled
clearable
<el-select v-model="scope.row.workstationId" :disabled="mode == 'info'" filterable @change="(v) => chooseworkstationName(v, scope.row, scope.$index)">
<el-option
v-for="dict in workstationList"
:key="dict.workstationId"
:label="dict.workstationCode"
:value="dict.workstationId"
/>
</el-select>
</template>
</el-table-column>
<el-table-column :label="$t('common.workstation')" prop="workstationId" align="center" width="140">
......@@ -76,16 +91,6 @@
</el-select>
</template>
</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">
<template slot-scope="scope">
<el-input
......@@ -806,10 +811,10 @@ export default {
};
},
chooseprocessName(e, row, index) {
const item = this.processOptions.find(v => v.processName === e)
row['processId'] = item.processId
const item = this.processOptions.find(v => v.processId === e)
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)))
}
},
......
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