|
@@ -42,7 +42,7 @@ $("#basicInfo").html(common.util.__template2($("#template2").html(),RESPONSEDATA |
|
@@ -42,7 +42,7 @@ $("#basicInfo").html(common.util.__template2($("#template2").html(),RESPONSEDATA |
42
|
|
42
|
|
43
|
/*类目配置*/
|
43
|
/*类目配置*/
|
44
|
var ENUM={
|
44
|
var ENUM={
|
45
|
- goodsSizeList:{"sizeId":"","salePrice":$("#salesPriceStr").val(),"barCode":"","isSuppled":"N","presaleStorageNum":""}
|
45
|
+ goodsSizeList:{"sizeId":"","salePrice":$("#salesPriceStr").val(),"barCode":"","isSuppled":"N"}
|
46
|
}
|
46
|
}
|
47
|
|
47
|
|
48
|
/*公共模块*/
|
48
|
/*公共模块*/
|
|
@@ -212,8 +212,8 @@ var g=new common.grid({ |
|
@@ -212,8 +212,8 @@ var g=new common.grid({ |
212
|
html.push("<div class='form-group'><div class='col-sm-11 red'><input type=text value='"+item.factoryCode+"' data-index="+item.__index+" class='modelCode form-control' placeholder='款型编码' /></div></div>");
|
212
|
html.push("<div class='form-group'><div class='col-sm-11 red'><input type=text value='"+item.factoryCode+"' data-index="+item.__index+" class='modelCode form-control' placeholder='款型编码' /></div></div>");
|
213
|
html.push('<div class="rows" id="rows__'+item.__index+'">');
|
213
|
html.push('<div class="rows" id="rows__'+item.__index+'">');
|
214
|
item.goodsSizeList=item.goodsSizeList||[$.extend({},ENUM.goodsSizeList)];
|
214
|
item.goodsSizeList=item.goodsSizeList||[$.extend({},ENUM.goodsSizeList)];
|
215
|
- var ISXIANGO=(common.util.__input("isAdvance")=="Y"&&+RESPONSEDATA.isAuditing==200)?true:false;
|
|
|
216
|
- html.push(common.util.__template2($("#template").html(),{index:item.__index,ISXIANGO:ISXIANGO,goodsSizeList:item.goodsSizeList}));
|
215
|
+ // var ISXIANGO=(common.util.__input("isAdvance")=="Y"&&+RESPONSEDATA.isAuditing==200)?true:false;
|
|
|
216
|
+ html.push(common.util.__template2($("#template").html(),{index:item.__index,goodsSizeList:item.goodsSizeList}));
|
217
|
html.push('</div>');
|
217
|
html.push('</div>');
|
218
|
return html.join('');
|
218
|
return html.join('');
|
219
|
}
|
219
|
}
|
|
@@ -317,12 +317,12 @@ $(document).on("change",":radio[name=gender]",function(){ |
|
@@ -317,12 +317,12 @@ $(document).on("change",":radio[name=gender]",function(){ |
317
|
});
|
317
|
});
|
318
|
$(document).on("change",":radio[name=isAdvance]",function(){
|
318
|
$(document).on("change",":radio[name=isAdvance]",function(){
|
319
|
g.reload();
|
319
|
g.reload();
|
320
|
- $("#stock").val("");
|
|
|
321
|
- $.each(g.__rows,function(inex,item){
|
|
|
322
|
- $.each(item.goodsSizeList,function(inex1,item1){
|
|
|
323
|
- item1.presaleStorageNum="";
|
|
|
324
|
- });
|
|
|
325
|
- });
|
320
|
+ // $("#stock").val("");
|
|
|
321
|
+ // $.each(g.__rows,function(inex,item){
|
|
|
322
|
+ // $.each(item.goodsSizeList,function(inex1,item1){
|
|
|
323
|
+ // item1.presaleStorageNum="";
|
|
|
324
|
+ // });
|
|
|
325
|
+ // });
|
326
|
if($(this).val()=="Y"){
|
326
|
if($(this).val()=="Y"){
|
327
|
$("#expectArrivalTimeStr").attr("required","required");
|
327
|
$("#expectArrivalTimeStr").attr("required","required");
|
328
|
$("#expectArrivalTimeStrTxt").html("预计到货时间<span class='red'>*</span>");
|
328
|
$("#expectArrivalTimeStrTxt").html("预计到货时间<span class='red'>*</span>");
|
|
@@ -387,19 +387,19 @@ $(document).on("change",".btn-sort-kebu",function(){ |
|
@@ -387,19 +387,19 @@ $(document).on("change",".btn-sort-kebu",function(){ |
387
|
var item=g.__rows[_index].goodsSizeList[_eq];
|
387
|
var item=g.__rows[_index].goodsSizeList[_eq];
|
388
|
item.isSuppled=$(this).val();
|
388
|
item.isSuppled=$(this).val();
|
389
|
});
|
389
|
});
|
390
|
-$(document).on("change",".btn-sort-kucun",function(){
|
|
|
391
|
- var _index=$(this).data("index");
|
|
|
392
|
- var _eq=$(this).data("eq");
|
|
|
393
|
- var item=g.__rows[_index].goodsSizeList[_eq];
|
|
|
394
|
- item.presaleStorageNum=$(this).val();
|
|
|
395
|
- var total=0;
|
|
|
396
|
- $.each(g.__rows,function(index,item1){
|
|
|
397
|
- $.each(item1.goodsSizeList,function(index,item2){
|
|
|
398
|
- total+=(+item2.presaleStorageNum);
|
|
|
399
|
- });
|
|
|
400
|
- });
|
|
|
401
|
- $("#stock").val(total);
|
|
|
402
|
-});
|
390
|
+// $(document).on("change",".btn-sort-kucun",function(){
|
|
|
391
|
+// var _index=$(this).data("index");
|
|
|
392
|
+// var _eq=$(this).data("eq");
|
|
|
393
|
+// var item=g.__rows[_index].goodsSizeList[_eq];
|
|
|
394
|
+// item.presaleStorageNum=$(this).val();
|
|
|
395
|
+// var total=0;
|
|
|
396
|
+// $.each(g.__rows,function(index,item1){
|
|
|
397
|
+// $.each(item1.goodsSizeList,function(index,item2){
|
|
|
398
|
+// total+=(+item2.presaleStorageNum);
|
|
|
399
|
+// });
|
|
|
400
|
+// });
|
|
|
401
|
+// $("#stock").val(total);
|
|
|
402
|
+// });
|
403
|
$(document).on("change",".w-goods-text",function(){
|
403
|
$(document).on("change",".w-goods-text",function(){
|
404
|
var item=g.__rows[$(this).data("index")];
|
404
|
var item=g.__rows[$(this).data("index")];
|
405
|
item.factoryGoodsName=$(this).val();
|
405
|
item.factoryGoodsName=$(this).val();
|