|
@@ -90,13 +90,23 @@
|
|
</div>
|
|
</div>
|
|
<!-- 产品编码 -->
|
|
<!-- 产品编码 -->
|
|
<template slot="productCode" slot-scope="text, record">
|
|
<template slot="productCode" slot-scope="text, record">
|
|
- <a-badge count="急" v-if="isOwerEdit&&record.oosFlag == 1">
|
|
|
|
- <div style="padding-right: 15px;">{{ text }}</div>
|
|
|
|
- </a-badge>
|
|
|
|
- <a-badge count="缺" v-else-if="!isOwerEdit&&(!record.currentStockQty || record.currentStockQty < record.qty)">
|
|
|
|
- <div style="padding-right: 15px;">{{ text }}</div>
|
|
|
|
- </a-badge>
|
|
|
|
- <span v-else>{{ text }}</span>
|
|
|
|
|
|
+ <div v-if="detailData">
|
|
|
|
+ <div v-if="isOwerEdit">
|
|
|
|
+ <a-badge count="急" v-if="record.oosFlag == 1">
|
|
|
|
+ <div style="padding-right: 15px;">{{ text }}</div>
|
|
|
|
+ </a-badge>
|
|
|
|
+ <span v-else>{{ text }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>
|
|
|
|
+ <a-badge count="急" v-if="isAudit&&record.oosFlag == 1">
|
|
|
|
+ <div style="padding-right: 15px;">{{ text }}</div>
|
|
|
|
+ </a-badge>
|
|
|
|
+ <a-badge count="缺" v-else-if="!isAudit&&(!record.currentStockQty || record.currentStockQty < record.qty)">
|
|
|
|
+ <div style="padding-right: 15px;">{{ text }}</div>
|
|
|
|
+ </a-badge>
|
|
|
|
+ <span v-else>{{ text }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
@@ -176,6 +186,10 @@ export default {
|
|
isOwerEdit () {
|
|
isOwerEdit () {
|
|
return this.detailData && this.detailData.salesBillSource == 'SALES'
|
|
return this.detailData && this.detailData.salesBillSource == 'SALES'
|
|
},
|
|
},
|
|
|
|
+ // 是否审核通过
|
|
|
|
+ isAudit () {
|
|
|
|
+ return this.detailData ? (this.detailData.billStatus == 'WAIT_OUT_WAREHOUSE' || this.detailData.billStatus == 'FINISH') : false
|
|
|
|
+ },
|
|
columns () {
|
|
columns () {
|
|
const arr = [
|
|
const arr = [
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|