Browse Source

增加在库订单明细的 包件维护状态

dev-xx
pref_mail@163.com 8 months ago
parent
commit
efbfe1ccc5
  1. 21
      src/option/distribution/distributionStockArticleFrom.js
  2. 54
      src/views/distribution/inventory/distributionStockArticleDetails.vue
  3. 12
      src/views/distribution/inventory/distributionStockArticleFrom.vue

21
src/option/distribution/distributionStockArticleFrom.js

@ -202,17 +202,16 @@ export default {
fixed: false,
sortable: true,
},
// {
// label: '状态',
// prop: 'conditions',
// search: true,
// type: 2,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{
label: '物料维护状态',
prop: 'materialCodeMaintainStatus',
type: 6,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
label: '包条码',
prop: 'orderPackageCode',

54
src/views/distribution/inventory/distributionStockArticleDetails.vue

@ -136,7 +136,11 @@
@selection="selectionChange"
>
<template #default="slotProps">
<!-- <el-button type="primary" text icon="el-icon-view" @click="handleView(slotProps.scope)">查看</el-button>-->
<template v-if="slotProps.scope.column.label==='物料维护状态'">
<el-tag :class="slotProps.scope.row.materialId ? 'green' : 'red'">{{ slotProps.scope.row.materialCodeMaintainStatus }}</el-tag>
</template>
<template v-else-if="slotProps.scope.column.label==='操作'">
<!-- <el-button type="primary" text icon="el-icon-view" @click="handleView(slotProps.scope)">查看</el-button>-->
<!-- <el-button type="primary" text icon="el-icon-edit" @click="handleCallDeliveryOwn(slotProps.scope)">修改客户信息</el-button>-->
<el-text
type="primary"
@ -168,6 +172,7 @@
@click="handleMaterial(slotProps.scope.row, '2')"
>修改物料信息</el-text
>
</template>
</template>
</tablecmt>
<el-row>
@ -624,6 +629,26 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'materialCode',
label: '物料编码',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'materialCodeMaintainStatus',
label: '物料维护状态',
type: 6,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'quantity',
label: '数量',
@ -1404,17 +1429,22 @@ export default {
this.page.total = data.total;
this.dataPare = data.records;
this.dataPare.some(i => {
if (i.conditions == '1') {
i.conditions = '定制品';
} else {
i.conditions = '库存品';
}
if (!i.materialId) {
//
this.dataMaterial = true;
}
});
for (let i = 0; i < this.dataPare.length; i++) {
const item = this.dataPare[i];
item.materialCodeMaintainStatus = item.materialId ? '已维护' : '未维护'
}
// this.dataPare.some(i => {
// if (i.conditions == '1') {
// i.conditions = '';
// } else {
// i.conditions = '';
// }
// if (!i.materialId) {
// //
// this.dataMaterial = true;
// }
// });
// this.loading = false;
this.selectionClear();
} catch (error) {

12
src/views/distribution/inventory/distributionStockArticleFrom.vue

@ -51,7 +51,11 @@
@selection="selectionChange"
>
<template #default="slotProps">
<el-text type="primary" text icon="el-icon-view" @click="handleView(slotProps.scope)"
<template v-if="slotProps.scope.column.label==='物料维护状态'">
<el-tag :class="slotProps.scope.row.materialId ? 'green' : 'red'">{{ slotProps.scope.row.materialCodeMaintainStatus }}</el-tag>
</template>
<template v-else-if="slotProps.scope.column.label==='操作'">
<el-text type="primary" text icon="el-icon-view" @click="handleView(slotProps.scope)"
>查看</el-text
>
<el-text
@ -61,6 +65,8 @@
@click="handleCallDeliveryOwn(slotProps.scope)"
>修改客户信息</el-text
>
</template>
</template>
</tablecmt>
</el-row>
@ -133,6 +139,10 @@ export default {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
for (let i = 0; i < this.data.length; i++) {
const item = this.data[i];
item.materialCodeMaintainStatus = item.materialId ? '已维护' : '未维护'
}
this.loading = false;
this.selectionClear();
});

Loading…
Cancel
Save