|
@@ -31,7 +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>
|
|
- <a-checkbox @change="onChange">
|
|
|
|
|
|
+ <a-checkbox @change="onChange" :checked="isChecked">
|
|
显示最大可退数量为0的产品
|
|
显示最大可退数量为0的产品
|
|
</a-checkbox>
|
|
</a-checkbox>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -120,7 +120,7 @@ export default {
|
|
warehousingDate: [], // 入库时间
|
|
warehousingDate: [], // 入库时间
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
selectArr: null,
|
|
selectArr: null,
|
|
- disabledFlag: true,
|
|
|
|
|
|
+ isChecked: false,
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '6%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '6%', align: 'center' },
|
|
{ title: '入库单号', dataIndex: 'sparePartsNo', width: '24%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '入库单号', dataIndex: 'sparePartsNo', width: '24%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -162,6 +162,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)
|
|
},
|
|
},
|
|
@@ -169,8 +171,9 @@ export default {
|
|
this.$refs.chooseTable.refresh(true)
|
|
this.$refs.chooseTable.refresh(true)
|
|
},
|
|
},
|
|
onChange (e) {
|
|
onChange (e) {
|
|
|
|
+ this.isChecked = !this.isChecked
|
|
this.queryParam.isZero = e.target.checked ? 1 : 0
|
|
this.queryParam.isZero = e.target.checked ? 1 : 0
|
|
- this.refreshData()
|
|
|
|
|
|
+ this.$refs.chooseTable.refresh()
|
|
},
|
|
},
|
|
// 入库时间 change
|
|
// 入库时间 change
|
|
dateChange (date) {
|
|
dateChange (date) {
|