Răsfoiți Sursa

[智价云] 责任人分配开关

tangyuanwang 2 luni în urmă
părinte
comite
73f4303bd1

+ 4 - 0
app/Http/Controllers/Manager/WashConfig/ControlGoods.php

@@ -136,6 +136,8 @@ class ControlGoods extends Controller
         $all_data['company_scope'] = $company_scope;
         $category_id = request('category_id', '');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'], 'platform' => $all_data['platform']];
         $data = $ControlGoodsModel->where($map)->first();
@@ -168,6 +170,8 @@ class ControlGoods extends Controller
         $all_data['company_scope'] = $company_scope;
         $category_id = request('category_id', '');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'], 'platform' => $all_data['platform']];
         $data = $ControlGoodsModel->where($map)->where('id', '!=', $id)->first();

+ 4 - 0
app/Http/Controllers/Manager/WashConfig/LowPriceGoods.php

@@ -137,6 +137,8 @@ class LowPriceGoods extends Controller
         $all_data['company_scope'] = $company_scope;
         $category_id = request('category_id', '');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'], 'platform' => $all_data['platform']];
         $data = $LowPriceGoodsModel->where($map)->first();
@@ -169,6 +171,8 @@ class LowPriceGoods extends Controller
         $all_data['company_scope'] = $company_scope;
         $category_id = request('category_id', '');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'], 'platform' => $all_data['platform']];
         $data = $LowPriceGoodsModel->where($map)->where('id', '!=', $id)->first();

+ 4 - 0
app/Http/Controllers/Manager/WashConfig/ViolationProduct.php

@@ -136,6 +136,8 @@ class ViolationProduct extends Controller
         $all_data['company_scope'] = $company_scope;
         $category_id = request('category_id', '');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'],'platform'=> $all_data['platform']];
         $data = $ViolationProductModel->where($map)->first();
@@ -168,6 +170,8 @@ class ViolationProduct extends Controller
         $all_data['company_scope'] = $company_scope;
         $category_id = request('category_id', '');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'],'platform'=> $all_data['platform']];
         $data = $ViolationProductModel->where($map)->where('id', '!=', $id)->first();

+ 4 - 0
app/Http/Controllers/Manager/WashConfig/ViolationStore.php

@@ -148,6 +148,8 @@ class ViolationStore extends Controller
         $all_data['employee_ids'] = $employee_ids;
         $category_id = request('category_id', '0');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['social_credit_code' => $all_data['social_credit_code']];
         $data = $ViolationStoreModel->where($map)->first();
@@ -180,6 +182,8 @@ class ViolationStore extends Controller
         $all_data['employee_ids'] = $employee_ids;
         $category_id = request('category_id', '0');
         $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
         //查询是否存在
         $map = ['social_credit_code' => $all_data['social_credit_code']];
         $data = $ViolationStoreModel->where($map)->where('id', '!=', $id)->first();

+ 2 - 0
app/Models/Manager/WashConfig/ControlGoods.php

@@ -66,6 +66,7 @@ class ControlGoods extends Model
                 'store_scope'    => $data['store_scope'] !='' ? 2 : 1, //店铺范围1=全部店铺 2=指定店铺
                 'company_scope'    => $data['company_scope'] !='' ? 2 : 1, //公司范围1=全部公司 2=指定公司
                 'category_id' => $data['category_id'],
+                'specify_responsible_person' => $data['specify_responsible_person'],
                 'insert_time' => time(),
             ];
             $ControlGoods_id = $this->insertGetId($insert_data);
@@ -116,6 +117,7 @@ class ControlGoods extends Model
             $ControlGoods->store_scope = $store_scope;
             $ControlGoods->company_scope = $company_scope;
             $ControlGoods->category_id = $data['category_id'];
+            $ControlGoods->specify_responsible_person = $data['specify_responsible_person'];
             $ControlGoods->update_time = time();
             $ControlGoods->save();
 

+ 2 - 0
app/Models/Manager/WashConfig/LowPriceGoods.php

@@ -68,6 +68,7 @@ class LowPriceGoods extends Model
                 'store_scope'    =>  $data['store_scope'] !='' ? 2 : 1, //店铺范围1=全部店铺 2=指定店铺
                 'company_scope'    => $data['company_scope'] !='' ? 2 : 1, //公司范围1=全部公司 2=指定公司
                 'category_id' => $data['category_id'],
+                'specify_responsible_person' => $data['specify_responsible_person'],
                 'insert_time' => time(),
             ];
             $LowProduct_id = $this->insertGetId($insert_data);
@@ -119,6 +120,7 @@ class LowPriceGoods extends Model
             $LowProduct->store_scope = $store_scope;
             $LowProduct->company_scope = $company_scope;
             $LowProduct->category_id = $data['category_id'];
+            $LowProduct->specify_responsible_person = $data['specify_responsible_person'];
             $LowProduct->update_time = time();
             $LowProduct->save();
 

+ 2 - 0
app/Models/Manager/WashConfig/ViolationProduct.php

@@ -66,6 +66,7 @@ class ViolationProduct extends Model
                 'store_scope'    => $data['store_scope'] !='' ? 2 : 1, //店铺范围1=全部店铺 2=指定店铺
                 'company_scope'    => $data['company_scope'] !='' ? 2 : 1, //公司范围1=全部公司 2=指定公司
                 'category_id' => $data['category_id'],
+                'specify_responsible_person' => $data['specify_responsible_person'],
                 'insert_time' => time(),
             ];
             $ViolationProduct_id = $this->insertGetId($insert_data);
@@ -116,6 +117,7 @@ class ViolationProduct extends Model
             $ViolationProduct->store_scope = $store_scope;
             $ViolationProduct->company_scope = $company_scope;
             $ViolationProduct->category_id = $data['category_id'];
+            $ViolationProduct->specify_responsible_person = $data['specify_responsible_person'];
             $ViolationProduct->update_time = time();
             $ViolationProduct->save();
 

+ 3 - 0
app/Models/Manager/WashConfig/ViolationStore.php

@@ -67,6 +67,7 @@ class ViolationStore extends Model
                 'social_credit_code'    => $data['social_credit_code'],
                 'store_type'    => $data['store_type'],
                 'employee_ids'  => $data['employee_ids'],
+                'specify_responsible_person'  => $data['specify_responsible_person'],
                 'insert_time' => time(),
             ];
             $ViolationStore_id = $this->insertGetId($insert_data);
@@ -112,6 +113,7 @@ class ViolationStore extends Model
         $ViolationStore->social_credit_code = $data['social_credit_code'];
         $ViolationStore->store_type = $data['store_type'];
         $ViolationStore->employee_ids = $data['employee_ids'];
+        $ViolationStore->specify_responsible_person = $data['specify_responsible_person'];
         $ViolationStore->update_time = time();
         $ViolationStore->save();
         return true;
@@ -141,6 +143,7 @@ class ViolationStore extends Model
             $ViolationStore->social_credit_code = $data['social_credit_code'];
             $ViolationStore->store_type = $data['store_type'];
             $ViolationStore->employee_ids = $data['employee_ids'];
+            $ViolationStore->specify_responsible_person = $data['specify_responsible_person'];
             $ViolationStore->update_time = time();
             $ViolationStore->save();