cqpCow 2 anos atrás
pai
commit
1393a53992

+ 4 - 1
app/Service/HeaderWord/HeaderWordHookService.php

@@ -45,8 +45,11 @@ class HeaderWordHookService extends Service
 
     public function getHeaderSettings($data){
         if($this->isEmpty($data,'menu_id')) return [false,'菜单ID不能为空!'];
+        $type = 1;
+        if(! $this->isEmpty($data,'type')) $type = $data['type'];
+
+        $header = config("header.{$data['menu_id']}")[$type] ?? [];
 
-        $header = config("headerSettings")[$data['menu_id']] ?? [];
         return [true,$header];
     }
 

+ 35 - 0
config/header/210.php

@@ -0,0 +1,35 @@
+<?php
+/**
+ * '菜单ID' => [
+ *     '字段英文名' =》 '字段中文名'
+ * ]
+ */
+
+return [
+    1 => [
+      'order_no' => '内部订单编号',
+      'out_order_no' => '销售订单号',
+      'out_order_no_time' => '销售订单时间',
+      'customer_no' => '客户编码',
+      'customer_name' => '客户名称',
+      'table_header_mark' => '表头备注',
+      'product_no' => '产品编码',
+      'product_title' => '产品名称',
+      'product_size' => '规格型号',
+      'product_unit' => '计量单位',
+      'order_quantity' => '计量单位',
+      'product_quantity_on_hand' => '现存量',
+      'technology_material'=> '工艺/材质',
+      'technology_name'=> '工艺名称',
+      'wood_name'=> '木皮名称',
+      'process_mark'=> '加工备注',
+      'table_body_mark'=> '表体备注',
+      'out_crt_man'=> '制单人',
+      'out_checker_man'=> '审核人',
+      'out_checker_time'=> '审核日期',
+      'crt_time'=> '引入时间',
+      'box_num'=> '已包装数量',
+      'production_quantity' => '已生产数量',
+      'finished_num' => '已完工数量',
+    ],
+];