|
@@ -43,7 +43,7 @@
|
|
|
|
|
|
|
|
<el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
<el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
<el-form-item label="零部件图号:">
|
|
<el-form-item label="零部件图号:">
|
|
|
- <el-input v-model="form.order" disabled></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="form.imgCode" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
@@ -88,14 +88,7 @@
|
|
|
<el-input v-model="form.topCategoryName" disabled></el-input>
|
|
<el-input v-model="form.topCategoryName" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col
|
|
|
|
|
- :lg="8"
|
|
|
|
|
- :md="12"
|
|
|
|
|
- :sm="12"
|
|
|
|
|
- :xl="8"
|
|
|
|
|
- :xs="12"
|
|
|
|
|
- v-if="$route.query.type == 'order'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
<el-form-item label="生产工单号:">
|
|
<el-form-item label="生产工单号:">
|
|
|
<el-input v-model="form.order" disabled></el-input>
|
|
<el-input v-model="form.order" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -105,17 +98,45 @@
|
|
|
|
|
|
|
|
<seek-page :seekList="seekList" @search="search"></seek-page>
|
|
<seek-page :seekList="seekList" @search="search"></seek-page>
|
|
|
|
|
|
|
|
|
|
+ <!--feedingControlQty -->
|
|
|
|
|
+
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
ref="table"
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
- :datasource="datasource"
|
|
|
|
|
|
|
+ :datasource="detailList"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
row-key="id"
|
|
row-key="id"
|
|
|
cache-key="entrust_list_data"
|
|
cache-key="entrust_list_data"
|
|
|
:height="tableHeight"
|
|
:height="tableHeight"
|
|
|
:pageSize="20"
|
|
:pageSize="20"
|
|
|
@fullscreen-change="fullscreenChange"
|
|
@fullscreen-change="fullscreenChange"
|
|
|
- ></ele-pro-table>
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #quantity="{ row }">
|
|
|
|
|
+ <span
|
|
|
|
|
+ >{{ row.feedingControlQty ? row.feedingControlQty : 0 }}/{{
|
|
|
|
|
+ row.quantity ? row.quantity : 0
|
|
|
|
|
+ }}</span
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template #componentAttribute="{ row }">
|
|
|
|
|
+ <el-tag size="small">{{
|
|
|
|
|
+ componentAttributeMap[row.componentAttribute]
|
|
|
|
|
+ }}</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template #attributeType="{ row }">
|
|
|
|
|
+ <el-tag type="success" size="small">{{
|
|
|
|
|
+ attributeTypeMap[row.attributeType]
|
|
|
|
|
+ }}</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template #produceType="{ row }">
|
|
|
|
|
+ <el-tag type="warning" size="small">{{
|
|
|
|
|
+ produceTypeMap[row.produceType]
|
|
|
|
|
+ }}</el-tag></template
|
|
|
|
|
+ >
|
|
|
|
|
+ </ele-pro-table>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -132,20 +153,40 @@
|
|
|
form: {},
|
|
form: {},
|
|
|
rules: {},
|
|
rules: {},
|
|
|
tableHeight: 'calc(100vh - 560px)',
|
|
tableHeight: 'calc(100vh - 560px)',
|
|
|
- selection: []
|
|
|
|
|
|
|
+ selection: [],
|
|
|
|
|
+ detailList: [],
|
|
|
|
|
+
|
|
|
|
|
+ componentAttributeMap: {
|
|
|
|
|
+ 1: '自制件',
|
|
|
|
|
+ 2: '采购件',
|
|
|
|
|
+ 3: '外协件',
|
|
|
|
|
+ 4: '受托件'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ attributeTypeMap: {
|
|
|
|
|
+ 1: '总装',
|
|
|
|
|
+ 2: '部装',
|
|
|
|
|
+ 3: '零件',
|
|
|
|
|
+ 4: '原材料'
|
|
|
|
|
+ },
|
|
|
|
|
+ produceTypeMap: {
|
|
|
|
|
+ 1: '加工',
|
|
|
|
|
+ 2: '装配',
|
|
|
|
|
+ 3: '下料'
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
computed: {
|
|
|
columns() {
|
|
columns() {
|
|
|
return [
|
|
return [
|
|
|
- {
|
|
|
|
|
- columnKey: 'selection',
|
|
|
|
|
- type: 'selection',
|
|
|
|
|
- width: 45,
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- fixed: 'left'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // columnKey: 'selection',
|
|
|
|
|
+ // type: 'selection',
|
|
|
|
|
+ // width: 45,
|
|
|
|
|
+ // align: 'center',
|
|
|
|
|
+ // fixed: 'left'
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
columnKey: 'index',
|
|
columnKey: 'index',
|
|
|
label: '序号',
|
|
label: '序号',
|
|
@@ -156,12 +197,11 @@
|
|
|
fixed: 'left'
|
|
fixed: 'left'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'categoryLevelId',
|
|
|
|
|
|
|
+ prop: 'categoryLevelName',
|
|
|
label: '物料分类',
|
|
label: '物料分类',
|
|
|
width: 100,
|
|
width: 100,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- slot: 'categoryLevelId'
|
|
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
,
|
|
,
|
|
|
{
|
|
{
|
|
@@ -241,21 +281,20 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'type',
|
|
|
|
|
|
|
+ prop: 'baseQuantity',
|
|
|
label: '基本数量',
|
|
label: '基本数量',
|
|
|
width: 100,
|
|
width: 100,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- slot: 'type'
|
|
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'type',
|
|
|
|
|
|
|
+ prop: 'quantity',
|
|
|
label: '投料控制数量/定额数量',
|
|
label: '投料控制数量/定额数量',
|
|
|
width: 190,
|
|
width: 190,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
- slot: 'type'
|
|
|
|
|
|
|
+ slot: 'quantity'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
@@ -347,42 +386,40 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'type',
|
|
|
|
|
|
|
+ prop: 'createUserName',
|
|
|
label: '创建人',
|
|
label: '创建人',
|
|
|
width: 100,
|
|
width: 100,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- slot: 'type'
|
|
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'type',
|
|
|
|
|
|
|
+ prop: 'createTime',
|
|
|
label: '创建时间',
|
|
label: '创建时间',
|
|
|
width: 100,
|
|
width: 100,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- slot: 'type'
|
|
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
seekList() {
|
|
seekList() {
|
|
|
return [
|
|
return [
|
|
|
- {
|
|
|
|
|
- label: '计划编号:',
|
|
|
|
|
- value: 'name',
|
|
|
|
|
- type: 'input',
|
|
|
|
|
- labelWidth: 100
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '批次号:',
|
|
|
|
|
- value: 'name',
|
|
|
|
|
- type: 'input',
|
|
|
|
|
- labelWidth: 80
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // label: '计划编号:',
|
|
|
|
|
+ // value: 'name',
|
|
|
|
|
+ // type: 'input',
|
|
|
|
|
+ // labelWidth: 100
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // label: '批次号:',
|
|
|
|
|
+ // value: 'name',
|
|
|
|
|
+ // type: 'input',
|
|
|
|
|
+ // labelWidth: 80
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
label: '编码:',
|
|
label: '编码:',
|
|
|
- value: 'name',
|
|
|
|
|
|
|
+ value: 'categoryCode',
|
|
|
type: 'input',
|
|
type: 'input',
|
|
|
labelWidth: 50
|
|
labelWidth: 50
|
|
|
}
|
|
}
|
|
@@ -391,11 +428,18 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.getDetailData();
|
|
|
|
|
- this.getDetailPage();
|
|
|
|
|
|
|
+ this.initPage();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ initPage() {
|
|
|
|
|
+ const { id, type } = this.$route.query;
|
|
|
|
|
+ if (!id || type !== 'plan') return;
|
|
|
|
|
+
|
|
|
|
|
+ this.getDetailData(id);
|
|
|
|
|
+ this.getDetailPage(id);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
datasource() {
|
|
datasource() {
|
|
|
return [];
|
|
return [];
|
|
|
},
|
|
},
|
|
@@ -416,24 +460,15 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- async getDetailData() {
|
|
|
|
|
- const URL =
|
|
|
|
|
- this.$route.query.type == 'plan' ? getRequirementListPlanDetail : '';
|
|
|
|
|
-
|
|
|
|
|
- await URL(this.$route.query.id).then((res) => {
|
|
|
|
|
- this.form = res;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ async getDetailData(id) {
|
|
|
|
|
+ this.form = (await getRequirementListPlanDetail(id)) || {};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- async getDetailPage() {
|
|
|
|
|
- const URL =
|
|
|
|
|
- this.$route.query.type == 'plan'
|
|
|
|
|
- ? getRequirementListPlanDetailPage
|
|
|
|
|
- : '';
|
|
|
|
|
-
|
|
|
|
|
- await URL({ materialRequirementsId: this.$route.query.id }).then(
|
|
|
|
|
- (res) => {}
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ async getDetailPage(id) {
|
|
|
|
|
+ const res = await getRequirementListPlanDetailPage({
|
|
|
|
|
+ materialRequirementsId: id
|
|
|
|
|
+ });
|
|
|
|
|
+ this.detailList = res?.list || [];
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
fullscreenChange(fullscreen) {
|
|
fullscreenChange(fullscreen) {
|