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.26 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.25 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.24 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.23 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.22 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.21 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.20 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.19 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.18 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.17 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.16 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.15 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.14 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.13 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.12 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.11 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.10 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.9 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.8 app/views/educode_sales/contracts/assign.html.erb
educode_sales-1.10.7 app/views/educode_sales/contracts/assign.html.erb