|
@@ -57,6 +57,11 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-model-item label="最近修改时间">
|
|
|
+ <rangeDate ref="rangeDate" @change="dateChange" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
</template>
|
|
|
<a-col :md="7" :sm="24" style="margin-bottom: 10px;">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
|
|
@@ -211,17 +216,20 @@ import { productBrandQuery } from '@/api/productBrand'
|
|
|
import { productTypeQueryAll } from '@/api/productType'
|
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
|
import { exportExcel } from '@/libs/JGPrint.js'
|
|
|
+import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import { productList, productAudit, productBatchAudit, productDel, productOnline, productBatchOnline, productExport } from '@/api/product'
|
|
|
export default {
|
|
|
name: 'ProductInfoList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, productInfoDetailModal, productInfoOfflineModal, ProductBrand },
|
|
|
+ components: { STable, VSelect, productInfoDetailModal, productInfoOfflineModal, ProductBrand, rangeDate },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
|
tableHeight: 0,
|
|
|
queryParam: { // 查询条件
|
|
|
+ updateBeginDate: '',
|
|
|
+ updateEndDate: '',
|
|
|
name: '', // 产品名称
|
|
|
queryWord: '', // 产品编码/原厂编码
|
|
|
productBrandSn: undefined, // 产品品牌
|
|
@@ -288,6 +296,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 创建时间 change
|
|
|
+ dateChange (date) {
|
|
|
+ this.queryParam.updateBeginDate = date[0] || ''
|
|
|
+ this.queryParam.updateEndDate = date[1] || ''
|
|
|
+ },
|
|
|
// 表格选中项
|
|
|
rowSelectionFun (obj) {
|
|
|
this.rowSelectionInfo = obj || null
|
|
@@ -438,6 +451,11 @@ export default {
|
|
|
this.queryParam.pricingState = undefined
|
|
|
this.queryParam.picFlag = undefined
|
|
|
this.productType = []
|
|
|
+ if (this.advanced) {
|
|
|
+ this.$refs.rangeDate.resetDate()
|
|
|
+ this.queryParam.updateBeginDate = ''
|
|
|
+ this.queryParam.updateEndDate = ''
|
|
|
+ }
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 新增/编辑
|