whj 1 жил өмнө
parent
commit
91f9abf33e

+ 2 - 1
src/views/purchase/purchase-order-page/PurchaseOrderPage.vue

@@ -21,7 +21,7 @@
 
       <div class="table-operator" style="margin-bottom: 8px;">
         <a-button v-if="$auth('purchase-purchase-orders-add')" type="primary" icon="plus" @click="$refs.baseForm.base()">采购计划</a-button>
-<!--        <a-button v-if="$auth('purchase-purchase-orders-add')" style="margin-left: 8px" type="primary" icon="plus" @click="$refs.addSpareForm.base()">新增物料</a-button>-->
+        <!--        <a-button v-if="$auth('purchase-purchase-orders-add')" style="margin-left: 8px" type="primary" icon="plus" @click="$refs.addSpareForm.base()">新增物料</a-button>-->
         <!-- <a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('purchase-purchase-orders-del')">
           <a-menu slot="overlay">
             <a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
@@ -226,6 +226,7 @@ export default {
     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)
     this.cbustypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_BUSINESS_TYPE)
+    console.log(this.cptcodeMap)
     this.tableOption()
   },
   methods: {

+ 1 - 1
src/views/purchase/purchase-order-page/modules/BaseForm.vue

@@ -67,7 +67,7 @@
                   v-for="(label,value) in cptcodeMap"
                   :key="value"
                   :label="label"
-                  :value="parseInt(value)">{{ label }}
+                  :value="value">{{ label }}
                 </a-select-option>
               </a-select>
             </a-form-item>