|
@@ -15,7 +15,7 @@
|
|
|
<div style="margin-top: 5px;">
|
|
|
<PrintPanel v-if="$hasPermissions('B_purchasePrint')" :disabled="localDataSource.length==0" @handlePrint="handlePrint"></PrintPanel>
|
|
|
<a-divider type="vertical" v-if="detail&&detail.totalCategory" />
|
|
|
- <a-button type="link" v-if="detail&&detail.totalCategory" @click="showSearch=!showSearch" class="button-default"> <a-icon type="search" /> 筛选</a-button>
|
|
|
+ <a-button type="link" v-if="detail&&detail.totalCategory" @click="showSearch=!showSearch" :class="showSearch?'button-error':'button-default'"> <a-icon type="search" /> 筛选</a-button>
|
|
|
<a-divider type="vertical" v-if="detail&&detail.totalCategory" />
|
|
|
<a-button v-if="detail&&detail.totalCategory" id="purchaseNewOrderEdit-add-btn" type="link" @click="openChooseProduct=true"><a-icon type="plus" />添加产品</a-button>
|
|
|
<a-divider type="vertical" />
|
|
@@ -279,8 +279,8 @@ export default {
|
|
|
}}
|
|
|
]
|
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
|
- arr.splice(3, 0, { title: '采购单价',key: "h", field: 'discountedPrice', width: '10%', align: 'right', operationColumn: false})
|
|
|
- arr.splice(6, 0, { title: '采购金额',key: "i", field: 'discountedAmount', width: '10%', align: 'right', operationColumn: false})
|
|
|
+ arr.splice(3, 0, { title: '采购单价',key: "h", field: 'discountedPriceText', width: '10%', align: 'right', operationColumn: false})
|
|
|
+ arr.splice(6, 0, { title: '采购金额',key: "i", field: 'discountedAmountText', width: '10%', align: 'right', operationColumn: false})
|
|
|
}
|
|
|
return arr
|
|
|
}
|
|
@@ -312,8 +312,8 @@ export default {
|
|
|
row.productCode = row.dealerProductEntity.code || '--'
|
|
|
row.productName = row.dealerProductEntity.name || '--'
|
|
|
row.productUnit = row.dealerProductEntity.unit || '--'
|
|
|
- row.discountedPrice = (row.discountedPrice||row.discountedPrice==0)?this.toThousands(row.discountedPrice, 2):'--'
|
|
|
- row.discountedAmount = (row.discountedAmount||row.discountedAmount==0)?this.toThousands(row.discountedAmount, 2):'--'
|
|
|
+ row.discountedPriceText = (row.discountedPrice||row.discountedPrice==0)?this.toThousands(row.discountedPrice, 2):'--'
|
|
|
+ row.discountedAmountText = (row.discountedAmount||row.discountedAmount==0)?this.toThousands(row.discountedAmount, 2):'--'
|
|
|
}
|
|
|
this.localDataSource = data.list
|
|
|
this.disabled = false
|