|
@@ -614,7 +614,8 @@
|
|
|
},
|
|
},
|
|
|
detailType: {
|
|
detailType: {
|
|
|
default: 0
|
|
default: 0
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ cacheKeyUrl:'eos-purchasingManage-purchaseOrder-inventoryTable'
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
taskinstanceDialog,
|
|
taskinstanceDialog,
|
|
@@ -645,7 +646,6 @@
|
|
|
};
|
|
};
|
|
|
return {
|
|
return {
|
|
|
levelList,
|
|
levelList,
|
|
|
- cacheKeyUrl: 'eos-purchasingManage-purchaseOrder-inventoryTable',
|
|
|
|
|
pricingWayList,
|
|
pricingWayList,
|
|
|
discountTotalPrice: 0.0,
|
|
discountTotalPrice: 0.0,
|
|
|
allPrice: 0.0,
|
|
allPrice: 0.0,
|
|
@@ -793,31 +793,40 @@
|
|
|
slot: 'goodsPriceType',
|
|
slot: 'goodsPriceType',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- width: 160,
|
|
|
|
|
- prop: 'singlePrice',
|
|
|
|
|
- label: '单价(含税)',
|
|
|
|
|
- slot: 'singlePrice',
|
|
|
|
|
- headerSlot: 'headerSinglePrice',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- show: !this.detailType
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- width: 180,
|
|
|
|
|
- prop: 'notaxSinglePrice',
|
|
|
|
|
- label: '不含税单价',
|
|
|
|
|
- slot: 'notaxSinglePrice',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- show: !this.detailType
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- width: 150,
|
|
|
|
|
- prop: 'taxRate',
|
|
|
|
|
- label: '税率',
|
|
|
|
|
- slot: 'taxRate',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- show: !this.detailType
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ !this.detailType
|
|
|
|
|
+ ? {
|
|
|
|
|
+ width: 160,
|
|
|
|
|
+ prop: 'singlePrice',
|
|
|
|
|
+ label: '单价(含税)',
|
|
|
|
|
+ slot: 'singlePrice',
|
|
|
|
|
+ headerSlot: 'headerSinglePrice',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ }
|
|
|
|
|
+ : {
|
|
|
|
|
+ width: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ !this.detailType
|
|
|
|
|
+ ? {
|
|
|
|
|
+ width: 180,
|
|
|
|
|
+ prop: 'notaxSinglePrice',
|
|
|
|
|
+ label: '不含税单价',
|
|
|
|
|
+ slot: 'notaxSinglePrice',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ }
|
|
|
|
|
+ : {
|
|
|
|
|
+ width: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ !this.detailType
|
|
|
|
|
+ ? {
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ prop: 'taxRate',
|
|
|
|
|
+ label: '税率',
|
|
|
|
|
+ slot: 'taxRate',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ }
|
|
|
|
|
+ : {
|
|
|
|
|
+ width: 1
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
width: 120,
|
|
width: 120,
|
|
|
prop: 'supplierMark',
|
|
prop: 'supplierMark',
|
|
@@ -909,31 +918,40 @@
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- width: 160,
|
|
|
|
|
- prop: 'discountSinglePrice',
|
|
|
|
|
- label: '折后单价(含税)',
|
|
|
|
|
- slot: 'discountSinglePrice',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- show: !this.detailType
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ !this.detailType
|
|
|
|
|
+ ? {
|
|
|
|
|
+ width: 160,
|
|
|
|
|
+ prop: 'discountSinglePrice',
|
|
|
|
|
+ label: '折后单价(含税)',
|
|
|
|
|
+ slot: 'discountSinglePrice',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ }
|
|
|
|
|
+ : {
|
|
|
|
|
+ width: 1
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- width: 120,
|
|
|
|
|
- prop: 'totalPrice',
|
|
|
|
|
- label: '合计(含税)',
|
|
|
|
|
- slot: 'totalPrice',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- show: !this.detailType
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- width: 120,
|
|
|
|
|
- prop: 'discountTotalPrice',
|
|
|
|
|
- label: '折后合计(含税)',
|
|
|
|
|
- slot: 'discountTotalPrice',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- show: !this.detailType
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ !this.detailType
|
|
|
|
|
+ ? {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'totalPrice',
|
|
|
|
|
+ label: '合计(含税)',
|
|
|
|
|
+ slot: 'totalPrice',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ }
|
|
|
|
|
+ : {
|
|
|
|
|
+ width: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ !this.detailType
|
|
|
|
|
+ ? {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'discountTotalPrice',
|
|
|
|
|
+ label: '折后合计(含税)',
|
|
|
|
|
+ slot: 'discountTotalPrice',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ }
|
|
|
|
|
+ : {
|
|
|
|
|
+ width: 1
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
width: 110,
|
|
width: 110,
|
|
|
prop: 'batchNo',
|
|
prop: 'batchNo',
|
|
@@ -1084,9 +1102,9 @@
|
|
|
|
|
|
|
|
//改变数量
|
|
//改变数量
|
|
|
changeCount(row, index) {
|
|
changeCount(row, index) {
|
|
|
- if (this.detailType) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (this.detailType) {
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
let countObj = {
|
|
let countObj = {
|
|
|
countKey: 'purchaseCount',
|
|
countKey: 'purchaseCount',
|
|
|
unitKey: 'purchaseUnit',
|
|
unitKey: 'purchaseUnit',
|
|
@@ -1423,6 +1441,7 @@
|
|
|
this.$set(parasm, 'pricingWay', item.pricingWay || 1);
|
|
this.$set(parasm, 'pricingWay', item.pricingWay || 1);
|
|
|
this.$set(parasm, 'goodsLevel', item.level);
|
|
this.$set(parasm, 'goodsLevel', item.level);
|
|
|
this.$set(parasm, 'taxRate', 13);
|
|
this.$set(parasm, 'taxRate', 13);
|
|
|
|
|
+ this.$set(parasm, 'totalCount', 0);
|
|
|
if (item.modelKey) {
|
|
if (item.modelKey) {
|
|
|
this.$set(parasm, 'modelKey', item.modelKey.split(','));
|
|
this.$set(parasm, 'modelKey', item.modelKey.split(','));
|
|
|
}
|
|
}
|