123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="panel panel-default">
- <div class="panel-body">
- <form class="form" data-next="true" action="#" method="GET">
- <input type="hidden" name="id" value="{$id}">
- <div class="form-group">
- <div class="form-group">
- <label class="control-label">提交人</label>
- <input class="form-control" readonly value="{$info['real_name']}" placeholder="提交人" />
- </div>
- <div class="form-group">
- <label class="control-label">所在科室/部门</label>
- <input class="form-control" readonly value="{$info['dep']}" placeholder="科室" />
- </div>
- <div class="form-group">
- <label class="control-label">电话</label>
- <input class="form-control" readonly value="{$info['phone']}" placeholder="电话" />
- </div>
- <div class="form-group">
- <label class="control-label">订单类型</label>
- <select name="mode" class="form-control" onchange="changeType(this)">
- {foreach $worktype as $k=>$v}
- <option value="{$v['id']}">{$v['title']}</option>
- {/foreach}
- </select>
- </div>
- <div class="form-group">
- <button type="button" onclick="tt()" class="btn btn-sm btn-primary">下一步</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- var mode = 1;
- function changeType(_self) {
- mode = $(_self).val();
- }
- function tt() {
- var title = '';
- if(mode == 1){
- title = '添加报修';
- }else if(mode == 2){
- title = '添加保洁';
- }else if(mode == 3){
- title = '添加运送';
- }else if(mode == 4){
- title = '添加应急';
- }else{
- title = '添加';
- }
- var url = '{:url("orders/dispatchAdd",[],"")}/mode/'+mode+'?id={$id}&aid={$info.address_id}';
- lay_open(title,url);
- }
- function lay_open (title,url) {
- parent.layer.open({
- type: 2,
- title: title,
- shadeClose: true,
- shade: 0.3,
- maxmin: true,
- area: ['90%', '90%'],
- content: url,
- end: function () {
- }
- });
- }
- </script>
- {/block}
|