|
@@ -34,9 +34,9 @@
|
|
|
<!--<el-table-column align="center" type="selection" width="50" :reserve-selection="true" />-->
|
|
|
<el-table-column prop="cuttingToolName" label='刀具名称' :show-overflow-tooltip="true"></el-table-column>
|
|
|
<el-table-column prop="specifications" label='刀具规格' width="180px"></el-table-column>
|
|
|
- <el-table-column prop="cutterCode" label='刀具编码' width="180px">
|
|
|
+ <el-table-column prop="handleCode" label='刀柄编码' width="180px">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="tenant.cutterCode" type='text' />
|
|
|
+ <el-input v-model="tenant.handleCode" type='text' />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="remark" label='备注' width="180px"></el-table-column>
|
|
@@ -128,7 +128,7 @@ export default {
|
|
|
initTenant () {
|
|
|
return {
|
|
|
id: '',
|
|
|
- cutterCode:''
|
|
|
+ handleCode:''
|
|
|
}
|
|
|
},
|
|
|
initWidth () {
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
},
|
|
|
save () {
|
|
|
console.log(this.tenant)
|
|
|
- if (!this.tenant.cutterCode || this.tenant.cutterCode.trim() === '') {
|
|
|
+ if (!this.tenant.handleCode || this.tenant.handleCode.trim() === '') {
|
|
|
this.$message.info('请输入刀具编码');
|
|
|
this.confirmDisabled = false
|
|
|
return;
|
|
@@ -224,14 +224,14 @@ export default {
|
|
|
getList (row) {
|
|
|
|
|
|
this.loading = true
|
|
|
- lineSideMgrApi.getCuttingToolByCutterCode({ "id": row.toolId }).then(response => {
|
|
|
+ lineSideMgrApi.getCuttingToolByCutterCode({ "id": row.toolHandleId }).then(response => {
|
|
|
const res = response.data;
|
|
|
console.log("res123123214==== ", res);
|
|
|
if (res.isSuccess) {
|
|
|
this.tableData = res
|
|
|
const firstRow = res.data[0];
|
|
|
if (firstRow) {
|
|
|
- this.$set(this.tenant, 'cutterCode', firstRow.cutterCode);
|
|
|
+ this.$set(this.tenant, 'handleCode', firstRow.handleCode);
|
|
|
}
|
|
|
}
|
|
|
// eslint-disable-next-line no-return-assign
|
|
@@ -283,7 +283,7 @@ export default {
|
|
|
id: '', // 你的新数据的 id
|
|
|
cuttingToolName: '',
|
|
|
specifications: '',
|
|
|
- cutterCode: '',
|
|
|
+ handleCode: '',
|
|
|
remark: '',
|
|
|
// 其他字段按需新增
|
|
|
};
|