瀏覽代碼

定价时间

chenrui 2 年之前
父節點
當前提交
3accd34b8d
共有 1 個文件被更改,包括 20 次插入3 次删除
  1. 20 3
      src/views/productManagement/productPricing/list.vue

+ 20 - 3
src/views/productManagement/productPricing/list.vue

@@ -26,6 +26,11 @@
                   <ProductType id="productPricingList-productType" placeholder="请选择产品分类" @change="changeProductType" v-model="productType"></ProductType>
                 </a-form-model-item>
               </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-item label="定价时间">
+                  <rangeDate ref="rangeDate" :value="time" @change="dateChange" />
+                </a-form-item>
+              </a-col>
               <a-col :md="6" :sm="24">
                 <a-form-item label="定价状态">
                   <v-select code="PRICING_STATUS" id="productPricingList-pricingState" v-model="queryParam.pricingState" allowClear placeholder="请选择定价状态"></v-select>
@@ -130,6 +135,7 @@
 
 <script>
 import { commonMixin } from '@/utils/mixin'
+import rangeDate from '@/views/common/rangeDate.vue'
 import { STable, VSelect } from '@/components'
 import { exportExcel } from '@/libs/JGPrint.js'
 import productPricingEditModal from './editModal.vue'
@@ -141,13 +147,14 @@ import ImportGuideModal from './importGuideModal.vue'
 export default {
   name: 'ProductPricingList',
   mixins: [commonMixin],
-  components: { STable, VSelect, productPricingEditModal, productPricingAuditModal, ProductBrand, ProductType, ImportGuideModal },
+  components: { STable, VSelect, rangeDate, productPricingEditModal, productPricingAuditModal, ProductBrand, ProductType, ImportGuideModal },
   data () {
     return {
       spinning: false,
       advanced: true, // 高级搜索 展开/关闭
       openGuideModal: false,
       tableHeight: 0,
+      time: [],
       queryParam: { //  查询条件
         name: '', //  产品名称
         queryWord: '', // 产品编码/原厂编码
@@ -155,7 +162,9 @@ export default {
         productTypeSn1: '', //  产品一级分类
         productTypeSn2: '', //  产品二级分类
         productTypeSn3: '', //  产品三级分类
-        pricingState: undefined //  定价状态
+        pricingState: undefined, //  定价状态
+        beginDate: undefined,
+        endDate: undefined
       },
       productType: [],
       disabled: false, //  查询、重置按钮是否可操作
@@ -190,7 +199,7 @@ export default {
       return this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys ? this.rowSelectionInfo.selectedRowKeys.length : 0
     },
     columns () {
-      let _this=this
+      const _this = this
       const arr = [
         { title: '序号', dataIndex: 'no', width: '3%', align: 'center' },
         { title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
@@ -201,6 +210,7 @@ export default {
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '7%', align: 'center' },
         { title: '产品状态', dataIndex: 'stateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '定价状态', dataIndex: 'pricingStateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '定价时间', dataIndex: 'pricingTimes', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '成本价', scopedSlots: { customRender: 'sterminaldsdPrice' }, width: '7%', align: 'center' },
         { title: '省级价', dataIndex: 'provincePrice', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: '市级价', dataIndex: 'cityPrice', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
@@ -213,6 +223,11 @@ export default {
     }
   },
   methods: {
+    //  定价时间  change
+    dateChange (date) {
+      this.queryParam.beginDate = date[0]
+      this.queryParam.endDate = date[1]
+    },
     // 表格选中项
     rowSelectionFun (obj) {
       this.rowSelectionInfo = obj || null
@@ -226,6 +241,8 @@ export default {
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn3 = ''
       this.queryParam.pricingState = undefined
+      this.queryParam.beginDate = undefined
+      this.queryParam.endDate = undefined
       this.productType = []
       this.$refs.table.clearSelected() // 清空表格选中项
       this.$refs.table.refresh(true)