|
@@ -26,6 +26,11 @@
|
|
:showPagination="false"
|
|
:showPagination="false"
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <template slot="productCode" slot-scope="text, record">
|
|
|
|
+ <span style="padding-right: 15px;">{{ text }}</span>
|
|
|
|
+ <a-badge count="促" v-if="record.promotionFlag=='GIFT'" :number-style="{ backgroundColor: '#52c41a', zoom:'80%' }"></a-badge>
|
|
|
|
+ <a-badge count="特" v-if="record.promotionFlag=='DISCOUNT'" :number-style="{ backgroundColor: '#faad14', zoom:'80%' }"></a-badge>
|
|
|
|
+ </template>
|
|
</s-table>
|
|
</s-table>
|
|
<div class="btn-cont" style="padding:20px 20px 0;text-align: center;">
|
|
<div class="btn-cont" style="padding:20px 20px 0;text-align: center;">
|
|
<!-- <a-button @click="isShow=false">关闭</a-button> -->
|
|
<!-- <a-button @click="isShow=false">关闭</a-button> -->
|
|
@@ -50,7 +55,7 @@
|
|
<script>
|
|
<script>
|
|
import { STable } from '@/components'
|
|
import { STable } from '@/components'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
-import { salesStockoutDetail, exportStockout, exportGroupStockout } from '@/api/salesDetail'
|
|
|
|
|
|
+import { salesStockoutDetail, exportStockout, exportGroupStockout } from '@/api/salesDetailNew'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
export default {
|
|
export default {
|
|
name: 'StockOutDetail',
|
|
name: 'StockOutDetail',
|
|
@@ -107,7 +112,7 @@ export default {
|
|
const _this = this
|
|
const _this = this
|
|
const arr = [
|
|
const arr = [
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
- { title: '产品编码', dataIndex: 'productEntity.code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'productEntity.code', width: '15%', align: 'center', scopedSlots: { customRender: 'productCode' } },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '原厂编码', dataIndex: 'productEntity.origCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '原厂编码', dataIndex: 'productEntity.origCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'productEntity.unit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'productEntity.unit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|