lvhao 2 kuukautta sitten
vanhempi
commit
fe7dae4a14
2 muutettua tiedostoa jossa 13 lisäystä ja 4 poistoa
  1. 2 2
      template/erp/weight.html
  2. 11 2
      template/erp/weight_edit.html

+ 2 - 2
template/erp/weight.html

@@ -44,10 +44,10 @@
 </div>
 <script>
 var dataurl = "/weight";
-var editurl = "/weight/edit/";
+//var editurl = "/weight/edit/";
 var editdj = 1;
 var editt = "产品配置 - 修改";
-var customon = 1;
+//var customon = 1;
 function custom(){
 $(".data tr").each(function() {
 $(this).find('td:eq(0)').css("width","1%");

+ 11 - 2
template/erp/weight_edit.html

@@ -395,7 +395,7 @@
 
 <li class="3 none">
 <em>重 量:</em>
-<select name="weight" class="select">
+<select name="weight1" class="select">
 <option value="">未选择</option>
 {loop typeclass(7) as $val}
 <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
@@ -437,7 +437,7 @@
 <div class="hidden">
 <input type="hidden" name="id" value="{$weight['id']}" />
 </div>
-<div class="button"><font class="produtdata">提 交</font> <font class="fh">关 闭</font></div>
+<div class="button"> <font class="fh">关 闭</font></div>
 </div>
 <script>$(document).ready(function() {
    var index = $(".cike select").find("option:selected").index();
@@ -466,6 +466,15 @@
 	 {
 		  $(".pttab .a3").show();$(".pttab .a3").addClass("post");
 	 }
+	 //处理
+	 let str_list = "{$weight['features']}"
+	 let data = str_list.split("-");
+	 $("select[name='category']").val(data[0]).change();
+	 for (i = 1; i < data.length + 1; i++) {
+		$(".select").each(function () {
+			$(this).find("option[value='" + data[i] + "']").prop("selected", "selected");
+		});
+	}
 });
 var addedit="/weight/edit/";var weight = 1;</script>
 {Template footer}