|
@@ -40,7 +40,7 @@
|
|
|
|
|
|
|
|
<template v-slot:productionPlanId="{ row }">
|
|
<template v-slot:productionPlanId="{ row }">
|
|
|
<el-link type="primary" v-if="!row.productionPlanId" :underline="false"
|
|
<el-link type="primary" v-if="!row.productionPlanId" :underline="false"
|
|
|
- @click.native="openVersion(row)">获取物料</el-link>
|
|
|
|
|
|
|
+ @click.native="openVersion(row)">选择</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -68,7 +68,9 @@
|
|
|
:datasource="row.materialList" :columns="columns2" row-key="id">
|
|
:datasource="row.materialList" :columns="columns2" row-key="id">
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <template v-slot:sort="{ $index }">
|
|
|
|
|
+ {{ $index }}
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
<template v-slot:demandQuantity="{ row }">
|
|
<template v-slot:demandQuantity="{ row }">
|
|
|
<el-input v-model="row.demandQuantity" placeholder="请输入" @input="(value) =>
|
|
<el-input v-model="row.demandQuantity" placeholder="请输入" @input="(value) =>
|
|
@@ -89,6 +91,15 @@
|
|
|
"></el-input>
|
|
"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <template v-slot:requireDeliveryTime="{ row }">
|
|
|
|
|
+ <el-date-picker style="width: 100%" clearable v-model="row.requireDeliveryTime" type="date"
|
|
|
|
|
+ value-format="yyyy-MM-dd" placeholder="请选择日期">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-popconfirm class="ele-action" title="确定要删除当前物料吗?" @confirm="remove2(row)">
|
|
<el-popconfirm class="ele-action" title="确定要删除当前物料吗?" @confirm="remove2(row)">
|
|
|
<template v-slot:reference>
|
|
<template v-slot:reference>
|
|
@@ -161,6 +172,14 @@ export default {
|
|
|
slot: 'expand'
|
|
slot: 'expand'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 50,
|
|
|
|
|
+ label: '序号',
|
|
|
|
|
+ type: 'index',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ slot: 'index'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
prop: 'code',
|
|
prop: 'code',
|
|
|
label: '销售订单号',
|
|
label: '销售订单号',
|
|
@@ -236,7 +255,7 @@ export default {
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
prop: 'productionPlanId',
|
|
prop: 'productionPlanId',
|
|
|
- label: '工艺路线物料',
|
|
|
|
|
|
|
+ label: '工艺路线',
|
|
|
slot: 'productionPlanId',
|
|
slot: 'productionPlanId',
|
|
|
|
|
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -258,57 +277,74 @@ export default {
|
|
|
|
|
|
|
|
columns2: [
|
|
columns2: [
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 92,
|
|
|
|
|
+ label: '',
|
|
|
|
|
+ prop: 'sort',
|
|
|
|
|
+ slot: 'sort',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
label: '物料名称',
|
|
label: '物料名称',
|
|
|
prop: 'name',
|
|
prop: 'name',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
label: '物料编码',
|
|
label: '物料编码',
|
|
|
- prop: 'code'
|
|
|
|
|
|
|
+ prop: 'code',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '牌号',
|
|
label: '牌号',
|
|
|
- prop: 'brandNum'
|
|
|
|
|
|
|
+ prop: 'brandNum',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '型号',
|
|
label: '型号',
|
|
|
- prop: 'modelType'
|
|
|
|
|
|
|
+ prop: 'modelType',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'availableCountBase',
|
|
|
|
|
- label: '包装库存',
|
|
|
|
|
- sortable: 'custom',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '单位',
|
|
|
|
|
- prop: 'weightUnit'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
prop: 'packingCountBase',
|
|
prop: 'packingCountBase',
|
|
|
label: '计量库存',
|
|
label: '计量库存',
|
|
|
sortable: 'custom',
|
|
sortable: 'custom',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
label: '计量单位',
|
|
label: '计量单位',
|
|
|
- prop: 'unit'
|
|
|
|
|
|
|
+ prop: 'unit',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
label: '需求数量',
|
|
label: '需求数量',
|
|
|
slot: 'demandQuantity',
|
|
slot: 'demandQuantity',
|
|
|
- action: 'demandQuantity'
|
|
|
|
|
|
|
+ action: 'demandQuantity',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
label: '采购数量',
|
|
label: '采购数量',
|
|
|
slot: 'purchaseQuantity',
|
|
slot: 'purchaseQuantity',
|
|
|
- action: 'purchaseQuantity'
|
|
|
|
|
|
|
+ action: 'purchaseQuantity',
|
|
|
|
|
+ align: 'center',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '要求到货时间',
|
|
|
|
|
+ slot: 'requireDeliveryTime',
|
|
|
|
|
+ action: ' requireDeliveryTime',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
columnKey: 'action',
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
label: '操作',
|
|
@@ -540,3 +576,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+:deep(.el-table__expanded-cell) {
|
|
|
|
|
+
|
|
|
|
|
+ padding-bottom: 120px !important;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|