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