diff --git a/jshERP-web/src/views/bill/AllocationOutList.vue b/jshERP-web/src/views/bill/AllocationOutList.vue index 67fdca69..25909d70 100644 --- a/jshERP-web/src/views/bill/AllocationOutList.vue +++ b/jshERP-web/src/views/bill/AllocationOutList.vue @@ -88,6 +88,29 @@ 批量操作 + + + 列设置 + @@ -139,6 +162,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -147,6 +171,7 @@ components: { AllocationOutModal, BillDetail, + JEllipsis, JDate }, data () { @@ -171,12 +196,14 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','number','materialsList','operTimeStr','userName','materialCount','totalPrice','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 150, + align:"center", width: 160, scopedSlots: { customRender: 'action' }, }, { title: '单据编号', dataIndex: 'number',width:160}, @@ -191,6 +218,7 @@ { title: '操作员', dataIndex: 'userName',width:80, ellipsis:true}, { title: '数量', dataIndex: 'materialCount',width:60}, { title: '金额合计', dataIndex: 'totalPrice',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/AssembleList.vue b/jshERP-web/src/views/bill/AssembleList.vue index f9c69ec6..624afed6 100644 --- a/jshERP-web/src/views/bill/AssembleList.vue +++ b/jshERP-web/src/views/bill/AssembleList.vue @@ -88,6 +88,29 @@ 批量操作 + + + 列设置 + @@ -139,6 +162,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -147,6 +171,7 @@ components: { AssembleModal, BillDetail, + JEllipsis, JDate }, data () { @@ -171,8 +196,10 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','number','materialsList','operTimeStr','userName','materialCount','totalPrice','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', @@ -191,6 +218,7 @@ { title: '操作员', dataIndex: 'userName',width:80, ellipsis:true}, { title: '数量', dataIndex: 'materialCount',width:60}, { title: '金额合计', dataIndex: 'totalPrice',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/DisassembleList.vue b/jshERP-web/src/views/bill/DisassembleList.vue index b95e52b8..75ab6d12 100644 --- a/jshERP-web/src/views/bill/DisassembleList.vue +++ b/jshERP-web/src/views/bill/DisassembleList.vue @@ -88,6 +88,29 @@ 批量操作 + + + 列设置 + @@ -139,6 +162,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -147,6 +171,7 @@ components: { DisassembleModal, BillDetail, + JEllipsis, JDate }, data () { @@ -171,8 +196,10 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','number','materialsList','operTimeStr','userName','materialCount','totalPrice','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', @@ -191,6 +218,7 @@ { title: '操作员', dataIndex: 'userName',width:80, ellipsis:true}, { title: '数量', dataIndex: 'materialCount',width:60}, { title: '金额合计', dataIndex: 'totalPrice',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/OtherInList.vue b/jshERP-web/src/views/bill/OtherInList.vue index 49a260ba..49e2828b 100644 --- a/jshERP-web/src/views/bill/OtherInList.vue +++ b/jshERP-web/src/views/bill/OtherInList.vue @@ -102,6 +102,29 @@ 批量操作 + + + 列设置 + @@ -153,6 +176,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -161,6 +185,7 @@ components: { OtherInModal, BillDetail, + JEllipsis, JDate }, data () { @@ -187,16 +212,19 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 150, + align:"center", width: 160, scopedSlots: { customRender: 'action' }, }, { title: '供应商', dataIndex: 'organName',width:120, ellipsis:true}, { title: '单据编号', dataIndex: 'number',width:160}, + { title: '关联单据', dataIndex: 'linkNumber',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -208,6 +236,7 @@ { title: '操作员', dataIndex: 'userName',width:80, ellipsis:true}, { title: '数量', dataIndex: 'materialCount',width:60}, { title: '金额合计', dataIndex: 'totalPrice',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/OtherOutList.vue b/jshERP-web/src/views/bill/OtherOutList.vue index d062bfdc..334ab83a 100644 --- a/jshERP-web/src/views/bill/OtherOutList.vue +++ b/jshERP-web/src/views/bill/OtherOutList.vue @@ -102,6 +102,29 @@ 批量操作 + + + 列设置 + @@ -153,6 +176,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -161,6 +185,7 @@ components: { OtherOutModal, BillDetail, + JEllipsis, JDate }, data () { @@ -187,16 +212,19 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 150, + align:"center", width: 160, scopedSlots: { customRender: 'action' }, }, { title: '客户', dataIndex: 'organName',width:120, ellipsis:true}, { title: '单据编号', dataIndex: 'number',width:160}, + { title: '关联单据', dataIndex: 'linkNumber',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -208,6 +236,7 @@ { title: '操作员', dataIndex: 'userName',width:80, ellipsis:true}, { title: '数量', dataIndex: 'materialCount',width:60}, { title: '金额合计', dataIndex: 'totalPrice',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/PurchaseBackList.vue b/jshERP-web/src/views/bill/PurchaseBackList.vue index 210ec597..10e29d1f 100644 --- a/jshERP-web/src/views/bill/PurchaseBackList.vue +++ b/jshERP-web/src/views/bill/PurchaseBackList.vue @@ -111,6 +111,29 @@ 批量操作 + + + 列设置 + @@ -162,6 +185,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -170,6 +194,7 @@ components: { PurchaseBackModal, BillDetail, + JEllipsis, JDate }, data () { @@ -197,12 +222,15 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','totalTaxLastMoney', + 'needBackMoney','changeAmount','debt','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 160, + align:"center", width: 180, scopedSlots: { customRender: 'action' }, }, { title: '供应商', dataIndex: 'organName',width:120, ellipsis:true}, @@ -212,6 +240,7 @@ return text } }, + { title: '关联单据', dataIndex: 'linkNumber',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -228,14 +257,23 @@ return (record.discountMoney + record.discountLastMoney).toFixed(2); } }, + { title: '优惠率', dataIndex: 'discount',width:60, + customRender:function (text,record,index) { + return text? text + '%':'' + } + }, + { title: '退款优惠', dataIndex: 'discountMoney',width:80}, + { title: '其它费用', dataIndex: 'otherMoney',width:80}, { title: '待退金额', dataIndex: 'needBackMoney',width:80, customRender:function (text,record,index) { let needBackMoney = record.discountLastMoney + record.otherMoney return needBackMoney? needBackMoney.toFixed(2):0 } }, - { title: '退款', dataIndex: 'changeAmount',width:50}, - { title: '欠款', dataIndex: 'debt',width:60}, + { title: '结算账户', dataIndex: 'accountName',width:80}, + { title: '本次退款', dataIndex: 'changeAmount',width:80}, + { title: '本次欠款', dataIndex: 'debt',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/PurchaseInList.vue b/jshERP-web/src/views/bill/PurchaseInList.vue index 8d44f52b..9f0072c6 100644 --- a/jshERP-web/src/views/bill/PurchaseInList.vue +++ b/jshERP-web/src/views/bill/PurchaseInList.vue @@ -242,13 +242,9 @@ span: 18, offset: 1 }, - // 实际索引 - settingDataIndex:[], // 默认索引 defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','totalTaxLastMoney', 'needInMoney','changeAmount','debt','status'], - // 实际列 - columns:[], // 默认列 defColumns: [ { @@ -317,7 +313,6 @@ computed: { }, created () { - this.initColumnsSetting() this.initSystemConfig() this.initSupplier() this.getDepotData() diff --git a/jshERP-web/src/views/bill/PurchaseOrderList.vue b/jshERP-web/src/views/bill/PurchaseOrderList.vue index 6c78e784..4fd59056 100644 --- a/jshERP-web/src/views/bill/PurchaseOrderList.vue +++ b/jshERP-web/src/views/bill/PurchaseOrderList.vue @@ -90,6 +90,29 @@ 批量操作 + + + 列设置 + @@ -144,6 +167,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -152,6 +176,7 @@ components: { PurchaseOrderModal, BillDetail, + JEllipsis, JDate }, data () { @@ -177,12 +202,15 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','totalTaxLastMoney', + 'changeAmount','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 150, + align:"center", width: 180, scopedSlots: { customRender: 'action' }, }, { title: '供应商', dataIndex: 'organName',width:120, ellipsis:true}, @@ -192,6 +220,7 @@ return text } }, + { title: '关联订单', dataIndex: 'linkNumber',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -212,7 +241,16 @@ } } }, - { title: '支付订金', dataIndex: 'changeAmount',width:60}, + { title: '优惠率', dataIndex: 'discount',width:60, + customRender:function (text,record,index) { + return text? text + '%':'' + } + }, + { title: '付款优惠', dataIndex: 'discountMoney',width:80}, + { title: '优惠后金额', dataIndex: 'discountLastMoney',width:100}, + { title: '结算账户', dataIndex: 'accountName',width:80}, + { title: '支付订金', dataIndex: 'changeAmount',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/RetailBackList.vue b/jshERP-web/src/views/bill/RetailBackList.vue index 4642cfdf..b3292e13 100644 --- a/jshERP-web/src/views/bill/RetailBackList.vue +++ b/jshERP-web/src/views/bill/RetailBackList.vue @@ -111,6 +111,29 @@ 批量操作 + + + 列设置 + @@ -162,6 +185,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -170,6 +194,7 @@ components: { RetailBackModal, BillDetail, + JEllipsis, JDate }, data () { @@ -197,12 +222,15 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','getAmount', + 'backAmount','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 150, + align:"center", width: 180, scopedSlots: { customRender: 'action' }, }, { title: '会员', dataIndex: 'organName',width:120, ellipsis:true}, @@ -212,6 +240,7 @@ return text } }, + { title: '关联单据', dataIndex: 'linkNumber',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -233,6 +262,8 @@ } }, { title: '找零', dataIndex: 'backAmount',width:50}, + { title: '付款账户', dataIndex: 'accountName',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/RetailOutList.vue b/jshERP-web/src/views/bill/RetailOutList.vue index 6d40c55b..511055f5 100644 --- a/jshERP-web/src/views/bill/RetailOutList.vue +++ b/jshERP-web/src/views/bill/RetailOutList.vue @@ -106,6 +106,29 @@ 批量操作 + + + 列设置 + @@ -157,6 +180,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -165,6 +189,7 @@ components: { RetailOutModal, BillDetail, + JEllipsis, JDate }, data () { @@ -191,12 +216,15 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','getAmount', + 'backAmount','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 150, + align:"center", width: 180, scopedSlots: { customRender: 'action' }, }, { title: '会员', dataIndex: 'organName',width:120, ellipsis:true}, @@ -214,6 +242,7 @@ } }, { title: '单据日期', dataIndex: 'operTimeStr',width:145}, + { title: '收款类型', dataIndex: 'payType',width:80}, { title: '操作员', dataIndex: 'userName',width:80, ellipsis:true}, { title: '数量', dataIndex: 'materialCount',width:60}, { title: '金额合计', dataIndex: 'totalPrice',width:80}, @@ -227,6 +256,8 @@ } }, { title: '找零', dataIndex: 'backAmount',width:50}, + { title: '收款账户', dataIndex: 'accountName',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/SaleBackList.vue b/jshERP-web/src/views/bill/SaleBackList.vue index 46885290..3c97770d 100644 --- a/jshERP-web/src/views/bill/SaleBackList.vue +++ b/jshERP-web/src/views/bill/SaleBackList.vue @@ -112,6 +112,29 @@ 批量操作 + + + 列设置 + @@ -162,6 +185,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -170,6 +194,7 @@ components: { SaleBackModal, BillDetail, + JEllipsis, JDate }, data () { @@ -197,12 +222,15 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','totalTaxLastMoney','needBackMoney', + 'changeAmount','debt','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 160, + align:"center", width: 180, scopedSlots: { customRender: 'action' }, }, { title: '客户', dataIndex: 'organName',width:120, ellipsis:true}, @@ -212,6 +240,7 @@ return text } }, + { title: '关联单据', dataIndex: 'linkNumber',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -228,14 +257,24 @@ return (record.discountMoney + record.discountLastMoney).toFixed(2); } }, + { title: '优惠率', dataIndex: 'discount',width:60, + customRender:function (text,record,index) { + return text? text + '%':'' + } + }, + { title: '退款优惠', dataIndex: 'discountMoney',width:80}, + { title: '其它费用', dataIndex: 'otherMoney',width:80}, { title: '待退金额', dataIndex: 'needBackMoney',width:80, customRender:function (text,record,index) { let needBackMoney = record.discountLastMoney + record.otherMoney return needBackMoney? needBackMoney.toFixed(2):0 } }, - { title: '退款', dataIndex: 'changeAmount',width:50}, - { title: '欠款', dataIndex: 'debt',width:60}, + { title: '结算账户', dataIndex: 'accountName',width:80}, + { title: '本次退款', dataIndex: 'changeAmount',width:80}, + { title: '本次欠款', dataIndex: 'debt',width:80}, + { title: '销售人员', dataIndex: 'salesManStr',width:120}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/SaleOrderList.vue b/jshERP-web/src/views/bill/SaleOrderList.vue index cc7d7a06..e40a99dc 100644 --- a/jshERP-web/src/views/bill/SaleOrderList.vue +++ b/jshERP-web/src/views/bill/SaleOrderList.vue @@ -91,6 +91,29 @@ 批量操作 + + + 列设置 + @@ -150,6 +173,7 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' import { getCurrentSystemConfig } from '@/api/api' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -158,6 +182,7 @@ components: { SaleOrderModal, BillDetail, + JEllipsis, JDate }, data () { @@ -183,16 +208,19 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','totalTaxLastMoney', + 'changeAmount','status','purchaseStatus'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', - align:"center", width: 150, + align:"center", width: 180, scopedSlots: { customRender: 'action' }, }, { title: '客户', dataIndex: 'organName',width:120, ellipsis:true}, - { title: '单据编号', dataIndex: 'number',width:120}, + { title: '单据编号', dataIndex: 'number',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -201,6 +229,7 @@ } }, { title: '单据日期', dataIndex: 'operTimeStr',width:145}, + { title: '销售人员', dataIndex: 'salesManStr',width:120}, { title: '操作员', dataIndex: 'userName',width:80, ellipsis:true}, { title: '数量', dataIndex: 'materialCount',width:60}, { title: '金额合计', dataIndex: 'totalPrice',width:80}, @@ -213,12 +242,21 @@ } } }, - { title: '收取订金', dataIndex: 'changeAmount',width:60}, + { title: '优惠率', dataIndex: 'discount',width:60, + customRender:function (text,record,index) { + return text? text + '%':'' + } + }, + { title: '付款优惠', dataIndex: 'discountMoney',width:80}, + { title: '优惠后金额', dataIndex: 'discountLastMoney',width:100}, + { title: '结算账户', dataIndex: 'accountName',width:80}, + { title: '收取订金', dataIndex: 'changeAmount',width:80}, + { title: '备注', dataIndex: 'remark',width:200}, + { title: '采购进度', dataIndex: 'purchaseStatus', width: 80, align: "center", + scopedSlots: { customRender: 'customRenderPurchaseStatus' } + }, { title: '状态', dataIndex: 'status', width: 70, align: "center", scopedSlots: { customRender: 'customRenderStatus' } - }, - { title: '采购进度', dataIndex: 'purchaseStatus', width: 70, align: "center", - scopedSlots: { customRender: 'customRenderPurchaseStatus' } } ], url: { diff --git a/jshERP-web/src/views/bill/SaleOutList.vue b/jshERP-web/src/views/bill/SaleOutList.vue index dd776e48..a6653bae 100644 --- a/jshERP-web/src/views/bill/SaleOutList.vue +++ b/jshERP-web/src/views/bill/SaleOutList.vue @@ -120,6 +120,29 @@ 批量操作 + + + 列设置 + @@ -181,6 +204,7 @@ import BillDetail from './dialog/BillDetail' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -189,6 +213,7 @@ components: { SaleOutModal, BillDetail, + JEllipsis, JDate }, data () { @@ -217,8 +242,11 @@ span: 18, offset: 1 }, - // 表头 - columns: [ + // 默认索引 + defDataIndex:['action','organName','number','materialsList','operTimeStr','userName','materialCount','totalPrice','totalTaxLastMoney', + 'needOutMoney','changeAmount','debt','status'], + // 默认列 + defColumns: [ { title: '操作', dataIndex: 'action', @@ -233,6 +261,7 @@ return text } }, + { title: '关联订单', dataIndex: 'linkNumber',width:140}, { title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true, customRender:function (text,record,index) { if(text) { @@ -249,16 +278,27 @@ return (record.discountMoney + record.discountLastMoney).toFixed(2); } }, + { title: '优惠率', dataIndex: 'discount',width:60, + customRender:function (text,record,index) { + return text? text + '%':'' + } + }, + { title: '收款优惠', dataIndex: 'discountMoney',width:80}, + { title: '其它费用', dataIndex: 'otherMoney',width:80}, { title: '待收金额', dataIndex: 'needOutMoney',width:80, customRender:function (text,record,index) { let needOutMoney = record.discountLastMoney + record.otherMoney - record.deposit return needOutMoney? needOutMoney.toFixed(2):0 } }, - { title: '收款', dataIndex: 'changeAmount',width:60}, - { title: '欠款', dataIndex: 'debt',width:60, + { title: '结算账户', dataIndex: 'accountName',width:80}, + { title: '扣除订金', dataIndex: 'deposit',width:80}, + { title: '本次收款', dataIndex: 'changeAmount',width:80}, + { title: '本次欠款', dataIndex: 'debt',width:80, scopedSlots: { customRender: 'customRenderDebt' } }, + { title: '销售人员', dataIndex: 'salesManStr',width:120}, + { title: '备注', dataIndex: 'remark',width:200}, { title: '状态', dataIndex: 'status', width: 80, align: "center", scopedSlots: { customRender: 'customRenderStatus' } } diff --git a/jshERP-web/src/views/bill/mixins/BillListMixin.js b/jshERP-web/src/views/bill/mixins/BillListMixin.js index dae342f9..4115dce3 100644 --- a/jshERP-web/src/views/bill/mixins/BillListMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillListMixin.js @@ -16,6 +16,10 @@ export const BillListMixin = { retailList: [], userList: [], accountList: [], + // 实际索引 + settingDataIndex:[], + // 实际列 + columns:[], } }, computed: { @@ -33,6 +37,7 @@ export const BillListMixin = { } }, created() { + this.initColumnsSetting() }, methods: { myHandleAdd() {