Browse Source

总库添加项目部消耗数量,关联出库显示添加插槽,缩略显示

dev
kilo 2 years ago
parent
commit
3eacfb613a
  1. 2
      src/views/accessrecords/modules/ProcessMaterialsDeliveryDetail.vue
  2. 11
      src/views/processmaterials/ProcessMaterialWarehousingListList.vue
  3. 10
      src/views/processmaterials/ProcessMaterialsDeliveryListList.vue
  4. 12
      src/views/suppliesstronger/ProcessSuppliesStrongerList.vue

2
src/views/accessrecords/modules/ProcessMaterialsDeliveryDetail.vue

@ -250,7 +250,7 @@ export default {
{ {
title:'出库时间', title:'出库时间',
align:"center", align:"center",
dataIndex: 'createTime', dataIndex: 'updateTime',
width:150, width:150,
// customRender:function (text) { // customRender:function (text) {
// return !text?"":(text.length>10?text.substr(0,10):text) // return !text?"":(text.length>10?text.substr(0,10):text)

11
src/views/processmaterials/ProcessMaterialWarehousingListList.vue

@ -35,15 +35,19 @@
size="middle" size="middle"
bordered bordered
rowKey="id" rowKey="id"
:scroll="{x:true}" :scroll="{y:460}"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
@change="handleTableChange"> @change="handleTableChange">
<!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"--> <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"-->
<template slot="materialDescription" slot-scope="text, record"> <template slot="materialDescription" slot-scope="text, record">
<j-ellipsis :value="text" :length="15"/> <j-ellipsis :value="text" :length="5"/>
</template>
<template slot="supplierId" slot-scope="text, record">
<j-ellipsis :value="text" :length="5"/>
</template> </template>
<!-- <template slot="htmlSlot" slot-scope="text">--> <!-- <template slot="htmlSlot" slot-scope="text">-->
@ -141,8 +145,8 @@
{ {
title:'物料名称及规格型号', title:'物料名称及规格型号',
align:"center", align:"center",
dataIndex: 'materialDescription',
scopedSlots: { customRender: 'materialDescription' }, scopedSlots: { customRender: 'materialDescription' },
dataIndex: 'materialDescription',
}, },
// { // {
// title:'_id', // title:'_id',
@ -208,6 +212,7 @@
{ {
title:'供应商', title:'供应商',
align:"center", align:"center",
scopedSlots: { customRender: 'supplierId' },
dataIndex: 'supplierId' dataIndex: 'supplierId'
}, },
{ {

10
src/views/processmaterials/ProcessMaterialsDeliveryListList.vue

@ -35,13 +35,19 @@
size="middle" size="middle"
bordered bordered
rowKey="id" rowKey="id"
:scroll="{x:true}" :scroll="{y:460}"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
@change="handleTableChange"> @change="handleTableChange">
<span slot="materialName" slot-scope="text, record">
<j-ellipsis :value="text" :length="5"/>
</span>
<span slot="supplierId" slot-scope="text, record">
<j-ellipsis :value="text" :length="5"/>
</span>
<template slot="htmlSlot" slot-scope="text"> <template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div> <div v-html="text"></div>
</template> </template>
@ -146,6 +152,7 @@
title:'物料名称及规格型号', title:'物料名称及规格型号',
align:"center", align:"center",
dataIndex: 'materialName', dataIndex: 'materialName',
scopedSlots: {customRender: 'materialName'},
}, },
{ {
title:'单位', title:'单位',
@ -166,6 +173,7 @@
title:'供货商', title:'供货商',
align:"center", align:"center",
dataIndex: 'supplierId', dataIndex: 'supplierId',
scopedSlots: {customRender: 'supplierId'},
}, },
{ {
title:'单价', title:'单价',

12
src/views/suppliesstronger/ProcessSuppliesStrongerList.vue

@ -192,6 +192,18 @@
// return 0; // return 0;
// } // }
}, },
{
title:'项目部消耗数量',
align:"center",
dataIndex: 'usageQuantity',
// customRender:function (t,r,index) {
// console.log(r)
// if(r.itemQuantity === undefined){
//
// }
// return 0;
// }
},
{ {
title:'核算属性', title:'核算属性',
align:"center", align:"center",

Loading…
Cancel
Save