|
@@ -971,100 +971,21 @@
|
|
|
|
|
|
|
|
<el-tab-pane label="标准产出" name="标准产出">
|
|
<el-tab-pane label="标准产出" name="标准产出">
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
- ref="fileTable"
|
|
|
|
|
- :columns="jobColumns1"
|
|
|
|
|
|
|
+ ref="standard"
|
|
|
|
|
+ :columns="standardCol"
|
|
|
:datasource="datasource"
|
|
:datasource="datasource"
|
|
|
:need-page="false"
|
|
:need-page="false"
|
|
|
:immediate="true"
|
|
:immediate="true"
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-if="!isView" v-slot:toolbar>
|
|
<template v-if="!isView" v-slot:toolbar>
|
|
|
- <el-button type="primary" @click="addFile">添加</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="add">添加</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:action="{ row, $index }">
|
|
<template v-slot:action="{ row, $index }">
|
|
|
- <el-link type="primary" @click="handleDel(row, $index)"
|
|
|
|
|
|
|
+ <el-link type="danger" @click="handleDel(row, $index)"
|
|
|
>删除</el-link
|
|
>删除</el-link
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-slot:type="{ row }">
|
|
|
|
|
- <div v-if="isView">{{ row.type }}</div>
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-else
|
|
|
|
|
- v-model="row.type"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <template v-slot:code="{ row }">
|
|
|
|
|
- <div v-if="isView">{{ row.code }}</div>
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-else
|
|
|
|
|
- v-model="row.code"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <template v-slot:versions="{ row }">
|
|
|
|
|
- <div v-if="isView">{{ row.versions }}</div>
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-else
|
|
|
|
|
- v-model="row.versions"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <template v-slot:status="{ row }">
|
|
|
|
|
- <div v-if="isView">{{
|
|
|
|
|
- statusOption.filter((item) => item.value == row.status)[0].label
|
|
|
|
|
- }}</div>
|
|
|
|
|
- <div v-else>
|
|
|
|
|
- <template>
|
|
|
|
|
- <el-select v-model="row.status" placeholder="请选择">
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in statusOption"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- :key="item.value"
|
|
|
|
|
- >
|
|
|
|
|
- </el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </template>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <template v-slot:path="{ row }">
|
|
|
|
|
- <div v-if="isView">附件</div>
|
|
|
|
|
- <div v-else
|
|
|
|
|
- ><div class="downLoad">
|
|
|
|
|
- <fileUpload
|
|
|
|
|
- v-model="jobFiledList"
|
|
|
|
|
- :show-file-list="false"
|
|
|
|
|
- module="main"
|
|
|
|
|
- @input="uploadedJobSuccess($event, row)"
|
|
|
|
|
- :showLib="false"
|
|
|
|
|
- :limit="1"
|
|
|
|
|
- />
|
|
|
|
|
- <div v-if="row.path">
|
|
|
|
|
- <el-button
|
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click="downloadFile(row.path)"
|
|
|
|
|
- >下载</el-button
|
|
|
|
|
- >
|
|
|
|
|
- </div></div
|
|
|
|
|
- >
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <template v-slot:remark="{ row }">
|
|
|
|
|
- <div v-if="isView">{{ row.remark }}</div>
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-else
|
|
|
|
|
- v-model="row.remark"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
@@ -1078,6 +999,11 @@
|
|
|
@selection="addProductList"
|
|
@selection="addProductList"
|
|
|
></ProductModalMultiple>
|
|
></ProductModalMultiple>
|
|
|
|
|
|
|
|
|
|
+ <standardOutput
|
|
|
|
|
+ ref="standardOutputRefs"
|
|
|
|
|
+ @selection="chooseStandardList"
|
|
|
|
|
+ ></standardOutput>
|
|
|
|
|
+
|
|
|
<div class="btns">
|
|
<div class="btns">
|
|
|
<el-button type="primary" size="small" @click="save">{{
|
|
<el-button type="primary" size="small" @click="save">{{
|
|
|
isView ? '确定' : '保存'
|
|
isView ? '确定' : '保存'
|
|
@@ -1098,6 +1024,7 @@
|
|
|
import ProductModalMultiple from './ProductModalMultiple.vue';
|
|
import ProductModalMultiple from './ProductModalMultiple.vue';
|
|
|
import userSearch from './user-search.vue';
|
|
import userSearch from './user-search.vue';
|
|
|
import jobDialog from './jobDialog.vue';
|
|
import jobDialog from './jobDialog.vue';
|
|
|
|
|
+ import standardOutput from './standardOutput.vue';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
userSearch,
|
|
userSearch,
|
|
@@ -1105,7 +1032,8 @@
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
ProductModal,
|
|
ProductModal,
|
|
|
jobDialog,
|
|
jobDialog,
|
|
|
- ProductModalMultiple
|
|
|
|
|
|
|
+ ProductModalMultiple,
|
|
|
|
|
+ standardOutput
|
|
|
},
|
|
},
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
data() {
|
|
data() {
|
|
@@ -1406,6 +1334,78 @@
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
|
|
+ standardCol: [
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'code',
|
|
|
|
|
+ label: '编码'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'name',
|
|
|
|
|
+ label: '名称',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'brandNum',
|
|
|
|
|
+ label: '牌号'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'modelType',
|
|
|
|
|
+ label: '型号',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'specification',
|
|
|
|
|
+ label: '规格',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'measuringUnit',
|
|
|
|
|
+ label: '计量单位',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 90
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'weightUnit',
|
|
|
|
|
+ label: '重量单位',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 90
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'roughWeight',
|
|
|
|
|
+ label: '毛重',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 90
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'netWeight',
|
|
|
|
|
+ label: '净重',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 90
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'packingUnit',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ label: '包装单位',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ columnKey: 'action',
|
|
|
|
|
+ label: '操作',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ resizable: false,
|
|
|
|
|
+ slot: 'action',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
rowData: {},
|
|
rowData: {},
|
|
|
treeData: {},
|
|
treeData: {},
|
|
|
currentIndex: 0,
|
|
currentIndex: 0,
|
|
@@ -1522,7 +1522,11 @@
|
|
|
type = 'aptitudeParam';
|
|
type = 'aptitudeParam';
|
|
|
} else if (this.activeName === '工艺文件') {
|
|
} else if (this.activeName === '工艺文件') {
|
|
|
type = 'fileParam';
|
|
type = 'fileParam';
|
|
|
|
|
+ } else if (this.activeName === '标准产出') {
|
|
|
|
|
+ type = 'standardOutput';
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ console.log(this.currentIndex,44)
|
|
|
this.tableData.taskParam[this.currentIndex][type].splice(index, 1);
|
|
this.tableData.taskParam[this.currentIndex][type].splice(index, 1);
|
|
|
},
|
|
},
|
|
|
addProductList(list) {
|
|
addProductList(list) {
|
|
@@ -1600,6 +1604,9 @@
|
|
|
if (this.activeName === '材料定额') {
|
|
if (this.activeName === '材料定额') {
|
|
|
this.$refs.productMultipleRefs.open(1);
|
|
this.$refs.productMultipleRefs.open(1);
|
|
|
return;
|
|
return;
|
|
|
|
|
+ } else if (this.activeName === '标准产出') {
|
|
|
|
|
+ this.$refs.standardOutputRefs.open();
|
|
|
|
|
+ return;
|
|
|
} else if (this.activeName === '制造资源') {
|
|
} else if (this.activeName === '制造资源') {
|
|
|
type = 'resource';
|
|
type = 'resource';
|
|
|
} else if (this.activeName === '替代料') {
|
|
} else if (this.activeName === '替代料') {
|
|
@@ -1695,6 +1702,10 @@
|
|
|
this.tableData.taskParam[this.currentIndex].fileParam
|
|
this.tableData.taskParam[this.currentIndex].fileParam
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if (this.activeName === '标准产出') {
|
|
|
|
|
+ this.$refs.standard.setData(
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex].standardOutput || []
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
openParam(type) {
|
|
openParam(type) {
|
|
@@ -1720,6 +1731,17 @@
|
|
|
dom.getData()
|
|
dom.getData()
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ chooseStandardList(data) {
|
|
|
|
|
+ let dom = null;
|
|
|
|
|
+ dom = this.$refs.standard;
|
|
|
|
|
+ dom.setData([ data[0]]);
|
|
|
|
|
+
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex],
|
|
|
|
|
+ dom.getData()
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
remove(row, type) {
|
|
remove(row, type) {
|
|
|
let dom = null;
|
|
let dom = null;
|
|
|
if (type === '工艺') {
|
|
if (type === '工艺') {
|