|
@@ -6,7 +6,7 @@
|
|
|
<sales-table :dataList="dataList" :column="column" isOperation isSelection @handleSelection="handleSelection">
|
|
|
<template #bts>
|
|
|
<div>
|
|
|
- <el-button type="primary" size="mini" @click="dialogVisible=true">添加</el-button>
|
|
|
+ <el-button v-if="!this.detailsId" type="primary" size="mini" @click="dialogVisible=true">添加</el-button>
|
|
|
<el-button type="danger" size="mini" @click="delChange">删除</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -148,8 +148,10 @@ export default {
|
|
|
this.dataList = res.data.orders
|
|
|
this.details = res.data
|
|
|
this.dataList.forEach(k => {
|
|
|
- console.log(k,'11')
|
|
|
+
|
|
|
+ k.refundQty=k.qty
|
|
|
k.diffQty = Number(k.qty) - Number(k.refundQty||0)
|
|
|
+
|
|
|
})
|
|
|
this.details.customerOrderNo = res.data.customerOrderNo
|
|
|
this.customerNumber = res.data.materialId
|