| | |
| | | <div class="layui-input-inline"> |
| | | <input |
| | | type="text" |
| | | name="Category" |
| | | name="category" |
| | | placeholder="请输入类别" |
| | | class="layui-input" |
| | | id="searchCatgory" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-input-inline" style="width: 260px;"> |
| | | <input |
| | | type="text" |
| | | name="CollectionTime" |
| | | name="collectionTime" |
| | | id="searchTime-OfflineDistributor-CollectionTime" |
| | | placeholder="请输入信息收集时间" |
| | | class="layui-input" |
| | |
| | | <div class="layui-input-inline"> |
| | | <input |
| | | type="text" |
| | | name="Adder" |
| | | name="adder" |
| | | placeholder="请输入详细地址" |
| | | class="layui-input" |
| | | /> |
| | |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" for="School">学校名称</label> |
| | | <label class="layui-form-label" for="school">学校名称</label> |
| | | <div class="layui-input-inline"> |
| | | <input |
| | | type="text" |
| | | name="School" |
| | | name="school" |
| | | placeholder="请输入学校名称" |
| | | class="layui-input" |
| | | /> |
| | |
| | | <div class="layui-input-inline"> |
| | | <input |
| | | type="text" |
| | | name="DealerName" |
| | | name="dealerName" |
| | | placeholder="请输入经销商名称" |
| | | class="layui-input" |
| | | /> |
| | |
| | | <label class="layui-form-label" for="CooperationIntent">合作意向</label> |
| | | <div class="layui-input-inline"> |
| | | <input |
| | | name="CooperationIntent" |
| | | name="cooperationIntent" |
| | | class="layui-input" |
| | | placeholder="请输入合作意向" |
| | | lay-reqText="请输入合作意向" |
| | |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" for="CooperationIntent">地推人员</label> |
| | | <div class="layui-input-inline"> |
| | | <div class="layui-input-inline"> |
| | | <select lay-search="" name="pUserID" id="selOfflinedisSelUserID"> |
| | | <option value="">请选择地推人</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <button |
| | | class="layui-btn layui-btn-sm" |
| | |
| | | title: "信息收集时间", |
| | | width: 130, |
| | | sort: false, |
| | | templet: function (d) { |
| | | if(isDateTimeString(d.collectionTime)){ |
| | | return util.toDateString(d.collectionTime, "yyyy-MM-dd"); |
| | | }else{ |
| | | return ""; |
| | | } |
| | | } |
| | | }, |
| | | { field: "category", title: "类别", sort: false, width: 105 }, |
| | | { |
| | |
| | | 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: "订货记录", |
| | |
| | | } |
| | | } |
| | | ); |
| | | formatUserSelInPut( |
| | | coreHelper, |
| | | form, |
| | | "selOfflinedisSelUserID", |
| | | "" |
| | | ); |
| | | dropdown.render({ |
| | | elem: "#SeCooperationIntent", |
| | | data: [ |
| | |
| | | { |
| | | title: "不确定", |
| | | id: 103, |
| | | }, |
| | | ], |
| | | click: function (obj) { |
| | | this.elem.val(obj.title); |
| | | }, |
| | | style: "min-width: 235px;", |
| | | }); |
| | | |
| | | dropdown.render({ |
| | | elem: "#searchCatgory", |
| | | data: [ |
| | | { |
| | | title: "文具店", |
| | | id: 101, |
| | | }, |
| | | { |
| | | title: "广告店", |
| | | id: 102, |
| | | }, |
| | | { |
| | | title: "小卖部", |
| | | id: 103, |
| | | }, |
| | | { |
| | | title: "其他", |
| | | id: 104, |
| | | }, |
| | | ], |
| | | click: function (obj) { |
| | |
| | | "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, |