|  |  |  | 
|---|
|  |  |  | if(type){ | 
|---|
|  |  |  | inputDomVal = inputDomVal + "," + type; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(getForeignKeyQuery(val) === 'orderDetlQuery'){ | 
|---|
|  |  |  | inputDomVal = inputDomVal + "," + $('#orderNo').val(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //debugger; | 
|---|
|  |  |  | selectDom.length = 0; | 
|---|
|  |  |  | var defaultOption = new Option("取消选择", ""); | 
|---|
|  |  |  | 
|---|
|  |  |  | option.addr = list[i].addr; | 
|---|
|  |  |  | option.phone = list[i].phone; | 
|---|
|  |  |  | option.customer = list[i].customer; | 
|---|
|  |  |  | option.allocate = list[i].allocate; | 
|---|
|  |  |  | option.weight =  list[i].weight; | 
|---|
|  |  |  | option.type = list[i].type; | 
|---|
|  |  |  | selectDom.options[i+1] = option; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | selectDom.style.display='block'; | 
|---|
|  |  |  | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | cacd.val(selectOptionDom.html()); | 
|---|
|  |  |  | realDom.val(selectOptionDom.attr("title")); | 
|---|
|  |  |  | if(selectOptionDom[0].phone){ | 
|---|
|  |  |  | $('#phone').val(selectOptionDom[0].phone); | 
|---|
|  |  |  | if(selectOptionDom[0].type === "docType"){ | 
|---|
|  |  |  | $('#weight').val(""); | 
|---|
|  |  |  | $('#maktxV').val(""); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(selectOptionDom[0].addr){ | 
|---|
|  |  |  | $('#addr').val(selectOptionDom[0].addr); | 
|---|
|  |  |  | if(selectOptionDom[0].type === "order" || selectOptionDom[0].type === "locOwner"){ | 
|---|
|  |  |  | $('#allocate').val(selectOptionDom[0].allocate ? selectOptionDom[0].allocate : ""); | 
|---|
|  |  |  | $('#customer').val(selectOptionDom[0].customer ? selectOptionDom[0].customer : ""); | 
|---|
|  |  |  | $('#phone').val(selectOptionDom[0].phone ? selectOptionDom[0].phone : ""); | 
|---|
|  |  |  | $('#addr').val(selectOptionDom[0].addr ? selectOptionDom[0].addr : ""); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(selectOptionDom[0].customer){ | 
|---|
|  |  |  | $('#customerR').val(selectOptionDom[0].customer); | 
|---|
|  |  |  | if(selectOptionDom[0].type === "returned"){ | 
|---|
|  |  |  | $('#customer').val(selectOptionDom[0].customer ? selectOptionDom[0].customer : ""); | 
|---|
|  |  |  | tableReload(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | $('#customerR').val(""); | 
|---|
|  |  |  | if(selectOptionDom[0].type === "orderDetl"){ | 
|---|
|  |  |  | $('#weight').val(selectOptionDom[0].weight); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | inputDom.val(""); | 
|---|
|  |  |  | 
|---|
|  |  |  | {field: 'id', title: 'id', hide:true}, | 
|---|
|  |  |  | {field: 'batch', title: '批号'}, | 
|---|
|  |  |  | {field: 'packageNo', title: '包号'}, | 
|---|
|  |  |  | {field: 'orderWeight', title: '重量'} | 
|---|
|  |  |  | {field: 'orderWeight', title: '重量',edit:true} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|