|
|
@@ -5,7 +5,13 @@
|
|
|
width="75vw"
|
|
|
append-to-body
|
|
|
>
|
|
|
- <el-table :data="tableData" border ref="tableData" @row-click="single" highlight-current-row>
|
|
|
+ <el-table
|
|
|
+ :data="tableData"
|
|
|
+ border
|
|
|
+ ref="tableData"
|
|
|
+ @row-click="single"
|
|
|
+ highlight-current-row
|
|
|
+ >
|
|
|
<el-table-column
|
|
|
label="生产版本"
|
|
|
align="center"
|
|
|
@@ -24,12 +30,12 @@
|
|
|
prop="incompleteFormingNum"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
label="预计完成时间"
|
|
|
align="center"
|
|
|
prop="planCompleteDate"
|
|
|
>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column label="标准产能" align="center" prop="model">
|
|
|
<template slot-scope="{ row }">
|
|
|
{{ row.capacityNum }}{{ row.capacityUnit }}/{{ row.capacityTime }}
|
|
|
@@ -60,13 +66,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { getProductVersion , getPlanProductVersion } from '@/api/saleOrder';
|
|
|
+ import { getProductVersion, getPlanProductVersion } from '@/api/saleOrder';
|
|
|
export default {
|
|
|
props: {
|
|
|
productCode: String,
|
|
|
- produceVersionId: String
|
|
|
+ produceVersionId: String
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
visible: false,
|
|
|
tableData: [],
|
|
|
@@ -76,31 +82,31 @@
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
- created () {},
|
|
|
+ created() {},
|
|
|
methods: {
|
|
|
- open (from) {
|
|
|
+ open(from) {
|
|
|
this.visible = true;
|
|
|
- this.radio = this.produceVersionId
|
|
|
+ this.radio = this.produceVersionId;
|
|
|
this.getPageList(from);
|
|
|
},
|
|
|
- getPageList (from) {
|
|
|
- const getFn = from?getPlanProductVersion:getProductVersion
|
|
|
+ getPageList(from) {
|
|
|
+ const getFn = from ? getPlanProductVersion : getProductVersion;
|
|
|
getFn(this.productCode).then((res) => {
|
|
|
this.tableData = res;
|
|
|
});
|
|
|
},
|
|
|
- cancel () {
|
|
|
+ cancel() {
|
|
|
this.visible = false;
|
|
|
this.radio = '';
|
|
|
this.current = null;
|
|
|
},
|
|
|
// 单击获取id
|
|
|
- single (row) {
|
|
|
+ single(row) {
|
|
|
this.current = row;
|
|
|
this.radio = row.produceVersionId;
|
|
|
},
|
|
|
/* 保存编辑 */
|
|
|
- save () {
|
|
|
+ save() {
|
|
|
this.visible = false;
|
|
|
this.$emit('confirm', this.current);
|
|
|
}
|