|
@@ -24,8 +24,9 @@
|
|
|
</div>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="关联销售单" :span="3" v-if="detailData.billState=='WAIT_CHECK' || detailData.billState=='WAIT_OUT_STOCK' || detailData.billState=='FINISH'">
|
|
|
- <a style="margin-right:10px;color:#00aaff;" v-for="item in salesOrderList" :key="item.id" @click="viewSales(item)">{{ item.salesBillNo }};</a>
|
|
|
- <a-button type="primary" class="button-info" @click="showPlModal=true">生成销售单</a-button>
|
|
|
+ <a v-if="totalNums" style="margin-right:10px;color:#00aaff;" v-for="item in salesOrderList" :key="item.id" @click="viewSales(item)">{{ item.salesBillNo }};</a>
|
|
|
+ <a-button v-if="totalNums" type="primary" class="button-info" @click="showPlModal=true">生成销售单</a-button>
|
|
|
+ <span v-else>--</span>
|
|
|
</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
</div>
|
|
@@ -164,7 +165,7 @@ export default {
|
|
|
totalNums () {
|
|
|
let ret = 0
|
|
|
this.listData.map(item => {
|
|
|
- ret = ret + item.qty
|
|
|
+ ret = ret + this.detailData.billState == 'FINISH' ? item.putQty : item.qty
|
|
|
})
|
|
|
return ret
|
|
|
}
|