Sha256: 80b94ad194ea21bbaa7d4adc1de363c155eca64b42dfc502dc6c1a001054d165

Contents?: true

Size: 1.49 KB

Versions: 75

Compression:

Stored size: 1.49 KB

Contents

<%= Gon::Base.render_data %>
<div class="layui-form layuimini-form" style="padding:30px">
  <div class="layui-form-item">
    <label class="layui-form-label required">选择售后工程师:</label>
    <div class="layui-input-block" style="width: 300px">
      <div id="sales_id"></div>
    </div>
  </div>
  <hr>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
    </div>
  </div>
</div>

<script>
  layui.use(['form', 'table', 'upload', 'laytpl', 'request', 'selectInput'], function () {
      var form = layui.form,
          layer = layui.layer,
          table = layui.table,
          laytpl = layui.laytpl,
          request = layui.request,
          $ = layui.$;

      form.render();
     staff_list_select = xmSelect.render({
        el: '#sales_id',
        data: gon.sales_staffs,
        filterable: true,
        radio: false,
      })
      var parentIndex = layer.index;
      form.on('submit(saveBtn)', function (data) {
          layer.confirm('确定指派合同【' + parent.name  +  "】售后工程师?", function (index) {
            request.post('missions/contracts/' + parent.id +"/assign_staff", {to_id: staff_list_select.getValue('valueStr')}, function (res) {
                layer.close(index);
                layer.close(parentIndex)
               parent.table.reload('contact_table')
            })
        });
          return false;
      });
  });
</script>

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.73 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.72 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.71 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.70 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.59 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.58 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.49 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.48 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.46 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.41 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.37 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.36 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.35 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.34 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.33 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.31 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.30 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.29 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.28 app/views/educode_sales/contracts/assign.html.erb