|
|
@@ -158,7 +158,7 @@
|
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="质检项参数" name="质检项参数">
|
|
|
- <term></term>
|
|
|
+ <term></term>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="生产节拍" name="生产节拍">
|
|
|
<el-form label-width="100px" ref="form" :model="beatParam">
|
|
|
@@ -639,6 +639,9 @@
|
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="替代料" name="替代料">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<ele-pro-table
|
|
|
ref="replaceMaterialTable"
|
|
|
:columns="columns1"
|
|
|
@@ -649,7 +652,16 @@
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-if="!isView" v-slot:toolbar>
|
|
|
<el-button type="primary" @click="add">添加</el-button>
|
|
|
+ <div class="toolbar_box">
|
|
|
+ <div
|
|
|
+ ><span>基本数量</span>
|
|
|
+ <el-input placeholder="请输入" v-model.number="baseCount2">
|
|
|
+ </el-input>
|
|
|
+ <DictSelection dictName="计量单位" v-model="baseCountUnit2"
|
|
|
+ /></div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
+
|
|
|
<template v-slot:action="{ row, $index }">
|
|
|
<el-link type="primary" @click="handleDel(row, $index)"
|
|
|
>删除</el-link
|
|
|
@@ -931,7 +943,7 @@
|
|
|
import userSearch from './user-search.vue';
|
|
|
import jobDialog from './jobDialog.vue';
|
|
|
import standardOutput from './standardOutput.vue';
|
|
|
- import term from '../qualityTesting/term'
|
|
|
+ import term from '../qualityTesting/term';
|
|
|
export default {
|
|
|
components: {
|
|
|
userSearch,
|
|
|
@@ -948,6 +960,8 @@
|
|
|
return {
|
|
|
baseCount: '',
|
|
|
baseCountUnit: '',
|
|
|
+ baseCount2: '',
|
|
|
+ baseCountUnit2: '',
|
|
|
isView: false,
|
|
|
filedList: [],
|
|
|
jobFiledList: [],
|
|
|
@@ -1391,7 +1405,6 @@
|
|
|
this.$refs.productRefs.open(row, '选择物料', '1', idx);
|
|
|
},
|
|
|
handleDel(row, index) {
|
|
|
-
|
|
|
let type = '';
|
|
|
if (this.activeName === '材料定额') {
|
|
|
type = 'materialQuota';
|
|
|
@@ -1605,7 +1618,7 @@
|
|
|
let dom = null;
|
|
|
if (this.activeName === '工艺参数') {
|
|
|
dom = this.$refs.table;
|
|
|
- }
|
|
|
+ }
|
|
|
dom.setData([...data, ...dom.getData()]);
|
|
|
this.$set(
|
|
|
this.tableData.taskParam[this.currentIndex],
|
|
|
@@ -1686,6 +1699,13 @@
|
|
|
(item) => item.id === rowData.id
|
|
|
);
|
|
|
this.activeName = '工艺参数';
|
|
|
+
|
|
|
+ this.baseCount = rowData.baseCount;
|
|
|
+ this.baseCountUnit = rowData.baseCountUnit;
|
|
|
+
|
|
|
+ this.baseCount2 = rowData.baseCount2;
|
|
|
+ this.baseCountUnit2 = rowData.baseCountUnit2;
|
|
|
+
|
|
|
this.visible = true;
|
|
|
setTimeout(() => {
|
|
|
console.log(this.$refs);
|
|
|
@@ -1724,6 +1744,12 @@
|
|
|
this.baseCount;
|
|
|
this.tableData.taskParam[this.currentIndex].baseCountUnit =
|
|
|
this.baseCountUnit;
|
|
|
+
|
|
|
+ this.tableData.taskParam[this.currentIndex].baseCount2 =
|
|
|
+ this.baseCount2;
|
|
|
+ this.tableData.taskParam[this.currentIndex].baseCountUnit2 =
|
|
|
+ this.baseCountUnit2;
|
|
|
+
|
|
|
workingProcedureUpdate({
|
|
|
id: this.tableData.id,
|
|
|
categoryId: this.treeData.categoryId,
|