whj 1 سال پیش
والد
کامیت
3d07759f43
1فایلهای تغییر یافته به همراه17 افزوده شده و 3 حذف شده
  1. 17 3
      src/views/purchase/purchase-order-page/PurchaseOrderPage.vue

+ 17 - 3
src/views/purchase/purchase-order-page/PurchaseOrderPage.vue

@@ -4,12 +4,24 @@
       <div class="table-page-search-wrapper" @keyup.enter="handleEnter">
         <a-form layout="inline">
           <a-row :gutter="48">
-            <a-col :md="8" :sm="24">
+            <a-col :md="6" :sm="24">
               <a-form-item label="请购人员">
                 <a-input v-model.trim="queryParam.keyword" placeholder="请输入请购人员"/>
               </a-form-item>
             </a-col>
-            <a-col :md="8" :sm="24">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="厂区">
+                <a-select v-model="queryParam.oldOrNew" placeholder="请选择">
+                  <a-select-option
+                    v-for="(label,value) in flagMap"
+                    :key="value"
+                    :label="label"
+                    :value="parseInt(value)">{{ label }}
+                  </a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
               <a-form-item label="采购单状态">
                 <a-select v-model="queryParam.status" placeholder="请选择">
                   <a-select-option
@@ -21,7 +33,7 @@
                 </a-select>
               </a-form-item>
             </a-col>
-            <a-col :md="8 || 24" :sm="24">
+            <a-col :md="6 || 24" :sm="24">
               <span class="table-page-search-submitButtons">
                 <a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
                 <a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button>
@@ -124,6 +136,7 @@ export default {
       dollarExchangeRate: this.$store.getters.rmbRate,
       cptcodeMap: {},
       cbustypeMap: {},
+      flagMap: {},
       // 表头
       columns: [
         {
@@ -268,6 +281,7 @@ export default {
   },
   created () {
     // 下拉框map
+    this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
     this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_TYPE)
     this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_ORDER_STATUS)
     this.cptcodeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_ORDER_PLAN_TYPE)