Browse Source

问题件 增加字段“自定义订单号”(custom_code), 在字段“承运商赔偿金额”前边,客户可见,可直接在页面编辑

ajun 5 năm trước cách đây
mục cha
commit
1a0a06c4a9

+ 3 - 1
app/OrderIssue.php

@@ -13,7 +13,8 @@ class OrderIssue extends Model
     protected $fillable = [
     protected $fillable = [
         'order_id', 'created_at', 'rejected_bill_id', 'rejecting_status', 'result_explain','logistic_number_return',
         'order_id', 'created_at', 'rejected_bill_id', 'rejecting_status', 'result_explain','logistic_number_return',
         'situation_explain', 'order_issue_type_id', 'second_order_id', 'is_new_rejecting','second_client_no','second_logistic_number',
         'situation_explain', 'order_issue_type_id', 'second_order_id', 'is_new_rejecting','second_client_no','second_logistic_number',
-        'final_status', 'logistic_indemnity_money', 'logistic_express_remission', 'baoshi_indemnity_money', 'baoshi_express_remission', 'user_workgroup_id'];
+        'final_status', 'logistic_indemnity_money', 'logistic_express_remission', 'baoshi_indemnity_money', 'baoshi_express_remission', 'user_workgroup_id',
+        'custom_code'];
     /*
     /*
      * second_client_no 二次客户订单号
      * second_client_no 二次客户订单号
      * second_logistic_number 二次运单号 【二次运单号可以单独存在,当二次客户订单号有对应的订单信息时,显示的是二次客户订单号对应的运单号,没有的话显示二次原单号】
      * second_logistic_number 二次运单号 【二次运单号可以单独存在,当二次客户订单号有对应的订单信息时,显示的是二次客户订单号对应的运单号,没有的话显示二次原单号】
@@ -21,6 +22,7 @@ class OrderIssue extends Model
      * result_explain 情况说明
      * result_explain 情况说明
      * final_status
      * final_status
      * situation_explain
      * situation_explain
+     * custom_code  自定义订单号 客户客服自定义
      */
      */
     protected $appends = [
     protected $appends = [
 //        'secondLogisticNumber',
 //        'secondLogisticNumber',

+ 34 - 0
database/migrations/2020_10_23_101444_change_order_issues_tabel.php

@@ -0,0 +1,34 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class ChangeOrderIssuesTabel extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('order_issues', function (Blueprint $table) {
+            // 用于客户 客服 录入
+            $table->string('custom_code')->nullable()->comment('自定义单号')->after('final_status');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('order_issues', function (Blueprint $table) {
+            //
+            $table->dropColumn('custom_code');
+        });
+    }
+}

+ 4 - 0
resources/views/order/issue/index.blade.php

@@ -118,6 +118,7 @@
                             <th class="three-layer  align-middle" rowspan="2" v-if="isShowSecondOrderInfo" style=" min-width: 200px;">二次运单号</th>
                             <th class="three-layer  align-middle" rowspan="2" v-if="isShowSecondOrderInfo" style=" min-width: 200px;">二次运单号</th>
                             <th class="three-layer" colspan="3" style="min-width: 300px" v-if="isShowSecondOrderInfo" style=" min-width: 350px;">二次商品明细</th>
                             <th class="three-layer" colspan="3" style="min-width: 300px" v-if="isShowSecondOrderInfo" style=" min-width: 350px;">二次商品明细</th>
                         @endcannot
                         @endcannot
+                        <th class="three-layer  align-middle" rowspan="2" style="min-width: 120px">自定义订单号</th>
                         @cannot('订单管理-问题件-客户不可见')
                         @cannot('订单管理-问题件-客户不可见')
                             <th class="three-layer  align-middle" rowspan="2" style="min-width: 120px">承运商赔偿金额</th>
                             <th class="three-layer  align-middle" rowspan="2" style="min-width: 120px">承运商赔偿金额</th>
                             <th class="three-layer  align-middle" rowspan="2" style="min-width: 120px">承运商快递减免</th>
                             <th class="three-layer  align-middle" rowspan="2" style="min-width: 120px">承运商快递减免</th>
@@ -451,6 +452,9 @@
                                 </template>
                                 </template>
                             </td>
                             </td>
                         @endcannot
                         @endcannot
+                        <td class="child-layer-3">
+                            <input type="text" class="form-control form-control-sm" :value="orderIssue.custom_code" @change="updateOrderIssue(orderIssue,'custom_code',$event)">
+                        </td>
                         @cannot('订单管理-问题件-客户不可见')
                         @cannot('订单管理-问题件-客户不可见')
                             <td class="child-layer-3">
                             <td class="child-layer-3">
                                 @can('订单管理-问题件-编辑')
                                 @can('订单管理-问题件-编辑')