فهرست منبع

退货录入编辑页面调整(幼岚货主无需限定上传图片)

haozi 4 سال پیش
والد
کامیت
f8ff39f940

+ 39 - 0
database/migrations/2021_11_25_111106_create_owner_work_coefficient_table.php

@@ -0,0 +1,39 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateOwnerWorkCoefficientTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('owner_work_coefficient', function (Blueprint $table) {
+            $table->id();
+            $table->bigInteger('owner_id')->comment('货主id');
+            $table->bigInteger('work_coefficient_type_id')->comment('工作量类型id');
+            $table->bigInteger('work_coefficient_type_detail_id')->comment('工作量详情类型id');
+            $table->bigInteger('inventory')->nullable()->comment('库存工作系数');
+            $table->bigInteger('return_coef')->nullable()->comment('退货工作系数');
+            $table->bigInteger('receive_coef')->nullable()->comment('收货工作系数');
+            $table->bigInteger('deliver_coef')->nullable()->comment('发货工作系数');
+            $table->bigInteger('process_coef')->nullable()->comment('加工工作系数');
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('owner_work_coefficient');
+    }
+}

+ 34 - 0
database/migrations/2021_11_25_111948_create_work_coefficient_type_detail_table.php

@@ -0,0 +1,34 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateWorkCoefficientTypeDetailTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('work_coefficient_type_detail', function (Blueprint $table) {
+            $table->id();
+            $table->bigInteger('work_coefficient_type_id')->comment('工作量类型id');
+            $table->string('name')->comment('工作量详细类型名称');
+            $table->string('code')->comment('工作量详细类型代码');
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('work_coefficient_type_detail');
+    }
+}

+ 33 - 0
database/migrations/2021_11_25_112005_create_work_coefficient_type_table.php

@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateWorkCoefficientTypeTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('work_coefficient_type', function (Blueprint $table) {
+            $table->id();
+            $table->string('name')->comment('工作量类型名称');
+            $table->string('code')->nullable();
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('work_coefficient_type');
+    }
+}

+ 1 - 0
resources/views/rejected/create.blade.php

@@ -983,6 +983,7 @@
                     });
                 },
                 checkImageWhetherNeed(item){
+                    if (this.billInputting.id_owner==4)return 0;//幼岚非必要上传外箱及产品图
                     if (item.id_quality_label!=1){
                         if (item.commodityImages.length===0){
                             tempTip.setDuration(3000);

+ 1 - 0
resources/views/rejected/edit.blade.php

@@ -863,6 +863,7 @@
                     });
                 },
                 checkImageWhetherNeed(item){
+                    if (this.billInputting.id_owner==4)return 0;//幼岚非必要上传外箱及产品图
                     if (item.id_quality_label!=1){
                         if (item.commodityImages.length===0){
                             tempTip.setDuration(3000);