|
|
@@ -270,22 +270,26 @@
|
|
|
label: '生产编号',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'entrustedEnterpriseId',
|
|
|
- label: '受托企业',
|
|
|
- slot: 'entrustedEnterpriseId',
|
|
|
- show: this.isCustomerMark,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- formatter: (row, column) => {
|
|
|
- return (
|
|
|
- this.supplierObj[row.productId]?.find(
|
|
|
- (item) => item.id === row.entrustedEnterpriseId
|
|
|
- )?.name || ''
|
|
|
- );
|
|
|
- }
|
|
|
- },
|
|
|
+ this.isCustomerMark
|
|
|
+ ? {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'entrustedEnterpriseId',
|
|
|
+ label: '受托企业',
|
|
|
+ slot: 'entrustedEnterpriseId',
|
|
|
+ show: this.isCustomerMark,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ formatter: (row, column) => {
|
|
|
+ return (
|
|
|
+ this.supplierObj[row.productId]?.find(
|
|
|
+ (item) => item.id === row.entrustedEnterpriseId
|
|
|
+ )?.name || ''
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ : {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
{
|
|
|
width: 150,
|
|
|
prop: 'saleCount',
|
|
|
@@ -325,22 +329,28 @@
|
|
|
align: 'center'
|
|
|
},
|
|
|
wmsColumn,
|
|
|
- {
|
|
|
- minWidth: 110,
|
|
|
- prop: 'sendTotalCount',
|
|
|
- label: '已发货数量',
|
|
|
- slot: 'sendTotalCount',
|
|
|
- show: this.pageName == 'send',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 110,
|
|
|
- prop: 'notSendTotalCount',
|
|
|
- label: '未发货数量',
|
|
|
- slot: 'notSendTotalCount',
|
|
|
- show: this.pageName == 'send',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
+ this.pageName == 'send'
|
|
|
+ ? {
|
|
|
+ minWidth: 110,
|
|
|
+ prop: 'sendTotalCount',
|
|
|
+ label: '已发货数量',
|
|
|
+ slot: 'sendTotalCount',
|
|
|
+ align: 'center'
|
|
|
+ }
|
|
|
+ : {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
+ this.pageName == 'send'
|
|
|
+ ? {
|
|
|
+ minWidth: 110,
|
|
|
+ prop: 'notSendTotalCount',
|
|
|
+ label: '未发货数量',
|
|
|
+ slot: 'notSendTotalCount',
|
|
|
+ align: 'center'
|
|
|
+ }
|
|
|
+ : {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
|
|
|
{
|
|
|
width: 120,
|
|
|
@@ -413,18 +423,22 @@
|
|
|
slot: 'notaxSinglePrice',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'discountSinglePrice',
|
|
|
- label: '折让单价',
|
|
|
- align: 'center',
|
|
|
- show: this.isDiscount,
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return _row.discountSinglePrice
|
|
|
- ? Number(_row.discountSinglePrice).toFixed(2)
|
|
|
- : '';
|
|
|
- }
|
|
|
- },
|
|
|
+ this.isDiscount
|
|
|
+ ? {
|
|
|
+ width: 160,
|
|
|
+ prop: 'discountSinglePrice',
|
|
|
+ label: '折让单价',
|
|
|
+ align: 'center',
|
|
|
+ show: this.isDiscount,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return _row.discountSinglePrice
|
|
|
+ ? Number(_row.discountSinglePrice).toFixed(2)
|
|
|
+ : '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ : {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
{
|
|
|
width: 120,
|
|
|
prop: 'totalPrice',
|
|
|
@@ -432,18 +446,22 @@
|
|
|
slot: 'totalPrice',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'discountTotalPrice',
|
|
|
- label: '折让合计',
|
|
|
- align: 'center',
|
|
|
- show: this.isDiscount,
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return _row.discountTotalPrice
|
|
|
- ? Number(_row.discountTotalPrice).toFixed(2)
|
|
|
- : '';
|
|
|
- }
|
|
|
- },
|
|
|
+ this.isDiscount
|
|
|
+ ? {
|
|
|
+ width: 160,
|
|
|
+ prop: 'discountTotalPrice',
|
|
|
+ label: '折让合计',
|
|
|
+ align: 'center',
|
|
|
+ show: this.isDiscount,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return _row.discountTotalPrice
|
|
|
+ ? Number(_row.discountTotalPrice).toFixed(2)
|
|
|
+ : '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ : {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
{
|
|
|
minWidth: 120,
|
|
|
prop: 'goodsLevel',
|
|
|
@@ -529,20 +547,23 @@
|
|
|
// label: '包装规格',
|
|
|
// showOverflowTooltip: true
|
|
|
// },
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'arrivalWay',
|
|
|
- label: '到货方式',
|
|
|
- align: 'center',
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return _row.arrivalWay == 1
|
|
|
- ? '一次性到货'
|
|
|
- : _row.arrivalWay == 2
|
|
|
- ? '分批到货'
|
|
|
- : '';
|
|
|
- },
|
|
|
- show: this.isArrivalWay
|
|
|
- },
|
|
|
+ this.isArrivalWay
|
|
|
+ ? {
|
|
|
+ width: 160,
|
|
|
+ prop: 'arrivalWay',
|
|
|
+ label: '到货方式',
|
|
|
+ align: 'center',
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return _row.arrivalWay == 1
|
|
|
+ ? '一次性到货'
|
|
|
+ : _row.arrivalWay == 2
|
|
|
+ ? '分批到货'
|
|
|
+ : '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ : {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
{
|
|
|
width: 160,
|
|
|
prop: 'customerExpectDeliveryDeadline',
|
|
|
@@ -550,15 +571,18 @@
|
|
|
slot: 'customerExpectDeliveryDeadline',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'produceDeliveryDeadline',
|
|
|
- label: '生产交付交期',
|
|
|
- slot: 'produceDeliveryDeadline',
|
|
|
- headerSlot: 'headerProduceDeliveryDeadline',
|
|
|
- show: this.contractBookType == 1,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
+ this.contractBookType == 1
|
|
|
+ ? {
|
|
|
+ width: 160,
|
|
|
+ prop: 'produceDeliveryDeadline',
|
|
|
+ label: '生产交付交期',
|
|
|
+ slot: 'produceDeliveryDeadline',
|
|
|
+ headerSlot: 'headerProduceDeliveryDeadline',
|
|
|
+ align: 'center'
|
|
|
+ }
|
|
|
+ : {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
|
|
|
{
|
|
|
width: 200,
|