| | |
| | | sort: false, |
| | | width: 105, |
| | | }, |
| | | |
| | | { field: "school", title: "学校名称", sort: false, width: 105 }, |
| | | { field: "dealerName", title: "经销商名称", sort: false ,width: 105}, |
| | | { |
| | | field: 'storeLogoUrl', title: '店招', width: 120, sort: false, |
| | | templet: function (d) { |
| | | if (d.storeLogoUrl) { |
| | | |
| | | var listimg= d.storeLogoUrl.split(",") |
| | | var str=""; |
| | | listimg.forEach((value,index)=> |
| | | { |
| | | str+= '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + value + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + value + '" /></a>' |
| | | |
| | | }) |
| | | |
| | | return str; |
| | | } else { |
| | | return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + setter.noImagePicUrl + '" /></a>'; |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | field: "contactPerson", |
| | | title: "联系人姓名", |
| | | sort: false, |
| | | width: 105, |
| | | }, |
| | | |
| | | { |
| | | field: "phoneNumber", |
| | | title: "联系电话", |
| | |
| | | width: 105, |
| | | templet: "#OffdismeetingCountTmp", |
| | | }, |
| | | |
| | | { |
| | | field: "money", |
| | | title: "订货记录", |
| | |
| | | "submit(LAY-app-OfflineDistributor-createForm-submit)", |
| | | function (data) { |
| | | var field = data.field; //获取提交的字段 |
| | | |
| | | field.storeLogoUrl=""; |
| | | field.isdelete = field.isdelete == "on"; |
| | | if((!!field.storeLogoUrl1)&&(!!field.storeLogoUrl2)) |
| | | { |
| | | field.storeLogoUrl=field.storeLogoUrl1+","+field.storeLogoUrl2; |
| | | } |
| | | else |
| | | if(!!field.storeLogoUrl1) |
| | | { |
| | | field.storeLogoUrl=field.storeLogoUrl1; |
| | | } |
| | | else if(!!field.storeLogoUrl2) |
| | | { |
| | | field.storeLogoUrl=field.storeLogoUrl2; |
| | | }; |
| | | |
| | | |
| | | field.region = GetAreaCodeFormFileid( |
| | | field, |
| | | "CreatofflinedisRegion" |
| | |
| | | "submit(LAY-app-OfflineDistributor-editForm-submit)", |
| | | function (data) { |
| | | var field = data.field; //获取提交的字段 |
| | | debugger |
| | | field.storeLogoUrl=""; |
| | | if((!!field.storeLogoUrl1)&&(!!field.storeLogoUrl2)) |
| | | { |
| | | field.storeLogoUrl=field.storeLogoUrl1+","+field.storeLogoUrl2; |
| | | } |
| | | else |
| | | if(!!field.storeLogoUrl1) |
| | | { |
| | | field.storeLogoUrl=field.storeLogoUrl1; |
| | | } |
| | | else if(!!field.storeLogoUrl2) |
| | | { |
| | | field.storeLogoUrl=field.storeLogoUrl2; |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | field.isdelete = field.isdelete == "on"; |
| | | field.region = GetAreaCodeFormFileid( |
| | | field, |