|
@@ -69,6 +69,7 @@
|
|
|
type="primary"
|
|
|
class="button-info"
|
|
|
:loading="newLoading"
|
|
|
+ :disabled="(grabFlag==1)&&(record.qty==record.hasReturnQty)"
|
|
|
@click="handleAdd(record)"
|
|
|
>添加</a-button>
|
|
|
</template>
|
|
@@ -122,10 +123,12 @@ export default {
|
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
|
data.list[i].no = no + i + 1
|
|
|
}
|
|
|
+ this.listData = data.list || []
|
|
|
this.disabled = false
|
|
|
return data
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ listData: []
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
@@ -182,6 +185,11 @@ export default {
|
|
|
this.queryParam.productCode = ''
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
+ refreshData () {
|
|
|
+ if (this.listData.length > 0) {
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
+ }
|
|
|
+ },
|
|
|
// 选择配件
|
|
|
handleAdd (row) {
|
|
|
this.$emit('add', row, 'new')
|