|
@@ -108,28 +108,24 @@
|
|
<template slot="salesBillNo" slot-scope="text, record">
|
|
<template slot="salesBillNo" slot-scope="text, record">
|
|
<span style="color: #ed1c24;cursor: pointer;" v-if="$hasPermissions('B_salesDetail')" @click="handleDetail(record)">{{ record.salesBillNo }}</span>
|
|
<span style="color: #ed1c24;cursor: pointer;" v-if="$hasPermissions('B_salesDetail')" @click="handleDetail(record)">{{ record.salesBillNo }}</span>
|
|
<span v-else>{{ record.salesBillNo }}</span>
|
|
<span v-else>{{ record.salesBillNo }}</span>
|
|
|
|
+ <a-badge count="改" :offset="[10,0]" v-if="record.billStatus=='SUPERIOR_CHANGE'"></a-badge>
|
|
</template>
|
|
</template>
|
|
<!-- 审核 -->
|
|
<!-- 审核 -->
|
|
<template slot="audit" slot-scope="text, record">
|
|
<template slot="audit" slot-scope="text, record">
|
|
- <stateIcon :state="record.billStatus == 'WAIT_OUT_WAREHOUSE'||record.billStatus == 'FINISH'"></stateIcon>
|
|
|
|
|
|
+ <stateIcon v-if="record.billStatus!='AUDIT_REJECT'" :state="record.billStatus == 'WAIT_OUT_WAREHOUSE'||record.billStatus == 'FINISH'?'1':'2'"></stateIcon>
|
|
|
|
+ <stateIcon v-else :state="0"></stateIcon>
|
|
</template>
|
|
</template>
|
|
<!-- 急件 -->
|
|
<!-- 急件 -->
|
|
<template slot="oosFlag" slot-scope="text, record">
|
|
<template slot="oosFlag" slot-scope="text, record">
|
|
- <!-- <a-tag v-if="record.oosFlag==1" color="red" style="margin-right: 0;" >{{ record.oosFlagDictValue }}</a-tag>
|
|
|
|
- <span v-else>{{ record.oosFlagDictValue }}</span> -->
|
|
|
|
- <stateIcon :state="record.oosFlag==1"></stateIcon>
|
|
|
|
|
|
+ <stateIcon :state="record.oosFlag==1?'1':'2'"></stateIcon>
|
|
</template>
|
|
</template>
|
|
<!-- 出库 -->
|
|
<!-- 出库 -->
|
|
<template slot="waitOut" slot-scope="text, record">
|
|
<template slot="waitOut" slot-scope="text, record">
|
|
- <stateIcon :state="record.billStatus == 'FINISH'"></stateIcon>
|
|
|
|
|
|
+ <stateIcon :state="record.billStatus == 'FINISH'?'1':'2'"></stateIcon>
|
|
</template>
|
|
</template>
|
|
<!-- 收款 -->
|
|
<!-- 收款 -->
|
|
<template slot="financial" slot-scope="text, record">
|
|
<template slot="financial" slot-scope="text, record">
|
|
- <stateIcon :state="record.financialStatus == 'FINISH'"></stateIcon>
|
|
|
|
- </template>
|
|
|
|
- <!-- 完结 -->
|
|
|
|
- <template slot="finish" slot-scope="text, record">
|
|
|
|
- <stateIcon :state="record.billStatus == 'FINISH'"></stateIcon>
|
|
|
|
|
|
+ <stateIcon :state="record.financialStatus == 'FINISH'?'1':'2'"></stateIcon>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
@@ -246,21 +242,20 @@ export default {
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: '4%' },
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: '4%' },
|
|
{ title: '来源', dataIndex: 'salesBillSourceDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '来源', dataIndex: 'salesBillSourceDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '销售单号', scopedSlots: { customRender: 'salesBillNo' }, width: '9%', align: 'center' },
|
|
{ title: '销售单号', scopedSlots: { customRender: 'salesBillNo' }, width: '9%', align: 'center' },
|
|
- { title: '客户名称', dataIndex: 'buyerName', align: 'center', width: '15%', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '客户名称', dataIndex: 'buyerName', align: 'center', width: '10%', customRender: function (text) { return text || '--' } },
|
|
{ title: '总款数', dataIndex: 'totalCategory', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总款数', dataIndex: 'totalCategory', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总数量', dataIndex: 'totalQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总数量', dataIndex: 'totalQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总售价', dataIndex: 'totalAmount', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总售价', dataIndex: 'totalAmount', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
- { title: '收款方式', dataIndex: 'settleStyleEntity.name', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '收款方式', dataIndex: 'settleStyleEntity.name', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '审核时间', dataIndex: 'auditDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '审核时间', dataIndex: 'auditDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '审核', scopedSlots: { customRender: 'audit' }, width: '5%', align: 'center' },
|
|
|
|
- { title: '急件', scopedSlots: { customRender: 'oosFlag' }, width: '5%', align: 'center' },
|
|
|
|
- { title: '出库', scopedSlots: { customRender: 'waitOut' }, width: '5%', align: 'center' },
|
|
|
|
- { title: '收款', scopedSlots: { customRender: 'financial' }, width: '5%', align: 'center' },
|
|
|
|
- { title: '完结', scopedSlots: { customRender: 'finish' }, width: '5%', align: 'center' },
|
|
|
|
- // { title: '业务状态', dataIndex: 'billStatusDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '业务状态', dataIndex: 'billStatusDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '审核', scopedSlots: { customRender: 'audit' }, width: '3%', align: 'center' },
|
|
|
|
+ { title: '急件', scopedSlots: { customRender: 'oosFlag' }, width: '3%', align: 'center' },
|
|
|
|
+ { title: '出库', scopedSlots: { customRender: 'waitOut' }, width: '3%', align: 'center' },
|
|
|
|
+ { title: '收款', scopedSlots: { customRender: 'financial' }, width: '3%', align: 'center' },
|
|
// { title: '财务状态', dataIndex: 'financialStatusDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
// { title: '财务状态', dataIndex: 'financialStatusDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
|
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|