ソースを参照

产品新增和编辑

zealerChina 1 年間 前
コミット
af1eeb46d6

+ 1 - 0
application/admin/controller/Produceorder.php

@@ -672,6 +672,7 @@ class Produceorder extends Backend
                 'trans_id',
                 'status',
                 'city',
+                'address_name',
             ];
             $data=input('row/a');
             Db::startTrans();

+ 21 - 9
application/admin/view/produceorder/add.html

@@ -20,7 +20,7 @@
        </div>
     </div>
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('No')}:</label>
+        <label class="control-label col-xs-12 col-sm-2">{:__('下单号码')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-no" class="form-control" name="row[no]" type="text">
         </div>
@@ -32,30 +32,36 @@
     <!--    </div>-->
     <!--</div>-->
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">订单号</label>
+        <label class="control-label col-xs-12 col-sm-2">外部订单号</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-out_order_no" class="form-control" name="row[out_order_no]" type="text">
         </div>
     </div>
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
+        <label class="control-label col-xs-12 col-sm-2">{:__('收货人姓名')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-name" class="form-control" name="row[name]" type="text">
+            <input id="c-address_name" class="form-control" name="row[address_name]" type="text">
         </div>
     </div>
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('用户手机号')}:</label>
+        <label class="control-label col-xs-12 col-sm-2">{:__('证件姓名')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-phone" class="form-control" name="row[phone]" type="text">
+            <input id="c-name" class="form-control" name="row[name]" type="text">
         </div>
     </div>
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Id_no')}:</label>
+        <label class="control-label col-xs-12 col-sm-2">{:__('证件号码')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-id_no" class="form-control" name="row[id_no]" type="text">
         </div>
     </div>
     <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('联系电话')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-phone" class="form-control" name="row[phone]" type="text">
+        </div>
+    </div>
+    <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
         <div class="col-xs-12 col-sm-8">
             <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text"></div>
@@ -163,12 +169,12 @@
     <!--        <input id="c-amount_refund" min="0" class="form-control" step="0.01" name="row[amount_refund]" type="number" value="0.00">-->
     <!--    </div>-->
     <!--</div>-->
-    <div class="form-group">
+    <!-- <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-amount" min="0" class="form-control" step="0.01" name="row[amount]" type="number">
         </div>
-    </div>
+    </div> -->
     <!--<div class="form-group">-->
     <!--    <label class="control-label col-xs-12 col-sm-2">{:__('Amount_profit')}:</label>-->
     <!--    <div class="col-xs-12 col-sm-8">-->
@@ -337,6 +343,12 @@
             <input id="c-supplier" class="form-control" name="row[supplier]" type="text">
         </div>
     </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('ICCID')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-iccid" class="form-control" name="row[iccid]" type="text">
+        </div>
+    </div>
     <!-- <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Api_goods_id')}:</label>
         <div class="col-xs-12 col-sm-8">

+ 6 - 0
application/admin/view/produceorder/edit.html

@@ -1,5 +1,11 @@
 <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
     <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('收货人姓名')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-address_name" class="form-control" name="row[address_name]" type="text" value="{$row.address_name|htmlentities}">
+        </div>
+    </div>
+    <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('身份证姓名')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">