sth
This commit is contained in:
parent
47e27cbb85
commit
2e61682f94
|
|
@ -88,6 +88,17 @@ class Dispatch2 extends Backend
|
||||||
|
|
||||||
return json($result);
|
return json($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$abnormal = \app\admin\model\Abnormal::where('type',3)->select();
|
||||||
|
|
||||||
|
$newList = [];
|
||||||
|
foreach ($abnormal as $item){
|
||||||
|
$newList[$item->title] = $item->title;
|
||||||
|
}
|
||||||
|
|
||||||
|
$selectBuild = build_select('reason_title',$newList,null,['id'=>'reason_title']);
|
||||||
|
$this->assignconfig('abnormal_select',$selectBuild);
|
||||||
|
|
||||||
return $this->view->fetch();
|
return $this->view->fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -215,15 +215,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
|
||||||
'提示:取消后该订单会重新进入待派单状态' +
|
'提示:取消后该订单会重新进入待派单状态' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
//'<input id="input-title" data-field="title" data-params=\'{"custom[type]":"1"}\' data-rule="required" data-source="setting/abnormal/index" class="form-control selectpage" type="text" value="">'+
|
//'<input id="input-title" data-field="title" data-params=\'{"custom[type]":"1"}\' data-rule="required" data-source="setting/abnormal/index" class="form-control selectpage" type="text" value="">'+
|
||||||
'<textarea id="input-reason" class="form-control" data-rule="required" rows="4" placeholder="请输入操作理由"></textarea>' +
|
Config.abnormal_select +
|
||||||
|
'<textarea style="margin-top: 10px" id="input-reason" class="form-control" data-rule="required" rows="4" placeholder="请输入操作理由"></textarea>' +
|
||||||
'</div>',
|
'</div>',
|
||||||
yes: function(index, layero) {
|
yes: function(index, layero) {
|
||||||
|
var inputTitle = $("#reason_title").val()+',';
|
||||||
var inputValue = $("#input-reason").val().trim();
|
var inputValue = $("#input-reason").val().trim();
|
||||||
|
|
||||||
if (!inputValue) {
|
if (!inputValue) {
|
||||||
Layer.msg('输入内容不能为空!');
|
Layer.msg('输入内容不能为空!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
inputValue = inputTitle + inputValue
|
||||||
|
|
||||||
|
|
||||||
Layer.close(index);
|
Layer.close(index);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user