|
@@ -31,6 +31,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="12" :sm="24" style="margin-bottom: 10px;display: flex;align-items: center;">
|
|
<a-col :md="12" :sm="24" style="margin-bottom: 10px;display: flex;align-items: center;">
|
|
<a-button type="primary" style="margin-right: 5px" @click="handleBatchAdd" :loading="addMoreLoading">批量添加</a-button>
|
|
<a-button type="primary" style="margin-right: 5px" @click="handleBatchAdd" :loading="addMoreLoading">批量添加</a-button>
|
|
|
|
+ <span v-if="selNums&&selNums!=0" style="margin:0 10px;">已选中{{ selNums }}项</span>
|
|
<a-checkbox @change="onChange" :checked="isChecked">
|
|
<a-checkbox @change="onChange" :checked="isChecked">
|
|
显示最大可退数量为0的产品
|
|
显示最大可退数量为0的产品
|
|
</a-checkbox>
|
|
</a-checkbox>
|
|
@@ -160,6 +161,9 @@ export default {
|
|
arr.splice(6, 0, { title: '入库单价', dataIndex: 'productCost', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? toFixedDecimal(text, 2) : '--') } })
|
|
arr.splice(6, 0, { title: '入库单价', dataIndex: 'productCost', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? toFixedDecimal(text, 2) : '--') } })
|
|
}
|
|
}
|
|
return arr
|
|
return arr
|
|
|
|
+ },
|
|
|
|
+ selNums () {
|
|
|
|
+ return this.selectArr && this.selectArr.length || 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -169,15 +173,8 @@ export default {
|
|
this.queryParam.productCode = ''
|
|
this.queryParam.productCode = ''
|
|
this.queryParam.sparePartsNo = ''
|
|
this.queryParam.sparePartsNo = ''
|
|
this.warehousingDate = []
|
|
this.warehousingDate = []
|
|
- this.queryParam.isZero = 0
|
|
|
|
- this.isChecked = false
|
|
|
|
this.$refs.rangeDate.resetDate(this.warehousingDate)
|
|
this.$refs.rangeDate.resetDate(this.warehousingDate)
|
|
this.$refs.chooseTable.refresh(true)
|
|
this.$refs.chooseTable.refresh(true)
|
|
- this.$refs.chooseTable.clearSelected()
|
|
|
|
- },
|
|
|
|
- refreshTable () {
|
|
|
|
- this.$refs.chooseTable.refresh(true)
|
|
|
|
- this.$refs.chooseTable.clearSelected()
|
|
|
|
},
|
|
},
|
|
onChange (e) {
|
|
onChange (e) {
|
|
this.isChecked = !this.isChecked
|
|
this.isChecked = !this.isChecked
|
|
@@ -192,7 +189,7 @@ export default {
|
|
pageInit (buyerSn) {
|
|
pageInit (buyerSn) {
|
|
this.buyerSn = buyerSn
|
|
this.buyerSn = buyerSn
|
|
this.$refs.chooseTable.refresh()
|
|
this.$refs.chooseTable.refresh()
|
|
- this.$refs.chooseTable.clearSelected()
|
|
|
|
|
|
+ // this.$refs.chooseTable.clearSelected()
|
|
},
|
|
},
|
|
// 添加
|
|
// 添加
|
|
handleAdd (row) {
|
|
handleAdd (row) {
|