移动系统liao
2024-05-20 45c6d6e44e9e8428718fc635d71e0869556da2c3
CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html
@@ -35,9 +35,10 @@
        <div class="layui-input-inline">
          <input
            type="text"
            name="Category"
            name="category"
            placeholder="请输入类别"
            class="layui-input"
            id="searchCatgory"
          />
        </div>
      </div>
@@ -48,7 +49,7 @@
        <div class="layui-input-inline" style="width: 260px;">
          <input
            type="text"
            name="CollectionTime"
            name="collectionTime"
            id="searchTime-OfflineDistributor-CollectionTime"
            placeholder="请输入信息收集时间"
            class="layui-input"
@@ -66,7 +67,7 @@
        <div class="layui-input-inline">
          <input
            type="text"
            name="Adder"
            name="adder"
            placeholder="请输入详细地址"
            class="layui-input"
          />
@@ -74,11 +75,11 @@
      </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"
          />
@@ -89,7 +90,7 @@
        <div class="layui-input-inline">
          <input
            type="text"
            name="DealerName"
            name="dealerName"
            placeholder="请输入经销商名称"
            class="layui-input"
          />
@@ -100,7 +101,7 @@
        <label class="layui-form-label" for="CooperationIntent">合作意向</label>
        <div class="layui-input-inline">
          <input
            name="CooperationIntent"
            name="cooperationIntent"
            class="layui-input"
            placeholder="请输入合作意向"
            lay-reqText="请输入合作意向"
@@ -108,7 +109,16 @@
          />
        </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"
@@ -235,6 +245,13 @@
                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 },
              {
@@ -250,14 +267,35 @@
                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: "联系电话",
@@ -278,6 +316,7 @@
                width: 105,
                templet: "#OffdismeetingCountTmp",
              },
              {
                field: "money",
                title: "订货记录",
@@ -337,6 +376,12 @@
            }
          }
        );
        formatUserSelInPut(
          coreHelper,
          form,
          "selOfflinedisSelUserID",
         ""
        );
        dropdown.render({
          elem: "#SeCooperationIntent",
          data: [
@@ -351,6 +396,32 @@
            {
              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) {
@@ -391,8 +462,23 @@
                          "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"
@@ -464,7 +550,25 @@
                          "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,