|
@@ -109,17 +109,34 @@
|
|
<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>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 审核 -->
|
|
|
|
+ <template slot="audit" slot-scope="text, record">
|
|
|
|
+ <stateIcon :state="record.billStatus == 'WAIT_OUT_WAREHOUSE'||record.billStatus == 'FINISH'"></stateIcon>
|
|
|
|
+ </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>
|
|
|
|
|
|
+ <!-- <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>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 出库 -->
|
|
|
|
+ <template slot="waitOut" slot-scope="text, record">
|
|
|
|
+ <stateIcon :state="record.billStatus == 'FINISH'"></stateIcon>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 收款 -->
|
|
|
|
+ <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>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- class="button-warning"
|
|
|
|
|
|
+ class="button-primary"
|
|
v-if="record.billStatus == 'WAIT_AUDIT' && $hasPermissions('B_salesAudit')"
|
|
v-if="record.billStatus == 'WAIT_AUDIT' && $hasPermissions('B_salesAudit')"
|
|
@click="handleEexamine(record)"
|
|
@click="handleEexamine(record)"
|
|
>审核</a-button>
|
|
>审核</a-button>
|
|
@@ -133,7 +150,7 @@
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- class="button-info"
|
|
|
|
|
|
+ class="button-primary"
|
|
v-if="((record.salesBillSource == 'SATELLITE' || record.salesBillSource == 'SALES' || record.salesBillSource == 'TEMPORARY_DISPATCHING') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT')) && $hasPermissions('B_salesEdit')"
|
|
v-if="((record.salesBillSource == 'SATELLITE' || record.salesBillSource == 'SALES' || record.salesBillSource == 'TEMPORARY_DISPATCHING') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT')) && $hasPermissions('B_salesEdit')"
|
|
@click="handleEdit(record)"
|
|
@click="handleEdit(record)"
|
|
>
|
|
>
|
|
@@ -151,7 +168,7 @@
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- class="button-info"
|
|
|
|
|
|
+ class="button-primary"
|
|
v-if="(record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesEdit')"
|
|
v-if="(record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesEdit')"
|
|
@click="handleEdit(record)"
|
|
@click="handleEdit(record)"
|
|
>
|
|
>
|
|
@@ -188,9 +205,10 @@ import { settleStyleQueryAll } from '@/api/settleStyle'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import custList from '@/views/common/custList.vue'
|
|
import custList from '@/views/common/custList.vue'
|
|
import { downloadExcel } from '@/libs/JGPrint.js'
|
|
import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
|
+import stateIcon from '@/views/common/stateIcon'
|
|
export default {
|
|
export default {
|
|
name: 'SalesList',
|
|
name: 'SalesList',
|
|
- components: { STable, VSelect, chooseCustomModal, rangeDate, auditModal, custList },
|
|
|
|
|
|
+ components: { STable, VSelect, chooseCustomModal, rangeDate, auditModal, custList, stateIcon },
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -235,9 +253,13 @@ export default {
|
|
{ title: '收款方式', dataIndex: 'settleStyleEntity.name', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '收款方式', dataIndex: 'settleStyleEntity.name', width: '8%', 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: '审核', dataIndex: 'billStatus', scopedSlots: { customRender: 'audit' }, width: '5%', align: 'center' },
|
|
{ title: '急件', dataIndex: 'oosFlag', scopedSlots: { customRender: 'oosFlag' }, width: '5%', align: 'center' },
|
|
{ title: '急件', dataIndex: 'oosFlag', scopedSlots: { customRender: 'oosFlag' }, width: '5%', align: 'center' },
|
|
- { title: '业务状态', dataIndex: 'billStatusDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '财务状态', dataIndex: 'financialStatusDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '出库', dataIndex: 'oosFlag', scopedSlots: { customRender: 'waitOut' }, width: '5%', align: 'center' },
|
|
|
|
+ { title: '收款', dataIndex: 'oosFlag', scopedSlots: { customRender: 'financial' }, width: '5%', align: 'center' },
|
|
|
|
+ { title: '完结', dataIndex: 'oosFlag', scopedSlots: { customRender: 'finish' }, width: '5%', align: 'center' },
|
|
|
|
+ // { title: '业务状态', dataIndex: 'billStatusDictValue', 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: '12%', align: 'center' }
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|