|
@@ -75,16 +75,6 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
- <li class="f_item">
|
|
|
|
- <div class="box">
|
|
|
|
- <div class="f_label">
|
|
|
|
- <span>追加的服务: </span>
|
|
|
|
- </div>
|
|
|
|
- <div class="box_flex f_content">
|
|
|
|
- <span id="append_info" style="width: 250px;"></span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </li>
|
|
|
|
<li class="f_item">
|
|
<li class="f_item">
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="f_label">
|
|
<div class="f_label">
|
|
@@ -385,34 +375,6 @@
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <li class="f_item">
|
|
|
|
- <div class="box">
|
|
|
|
- <div class="f_label">
|
|
|
|
- <span>订购的服务: </span>
|
|
|
|
- </div>
|
|
|
|
- <div class="box_flex f_content">
|
|
|
|
- <input id="main_products" name="main_products" />
|
|
|
|
- <br>
|
|
|
|
- <div id="extra_items"></div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </li>
|
|
|
|
-
|
|
|
|
- <li class="f_item">
|
|
|
|
- <div class="box">
|
|
|
|
- <div class="f_label">
|
|
|
|
- <span>追加的服务: </span>
|
|
|
|
- </div>
|
|
|
|
- <div class="box_flex f_content">
|
|
|
|
- <input id="append_products" name="append_products" />
|
|
|
|
- <br>
|
|
|
|
- <div id="extra_items"></div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </li>
|
|
|
|
-
|
|
|
|
<li class="f_item">
|
|
<li class="f_item">
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="f_label">
|
|
<div class="f_label">
|
|
@@ -424,17 +386,6 @@
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
|
|
|
|
- <li class="f_item">
|
|
|
|
- <div class="box">
|
|
|
|
- <div class="f_label">
|
|
|
|
- <span>是否加急: </span>
|
|
|
|
- </div>
|
|
|
|
- <div class="box_flex f_content">
|
|
|
|
- <input id="set_precedence" name="precedence" />
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </li>
|
|
|
|
-
|
|
|
|
<li class="f_item">
|
|
<li class="f_item">
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="f_label">
|
|
<div class="f_label">
|
|
@@ -545,9 +496,7 @@
|
|
var jq_filter_station = $('#filter_station');
|
|
var jq_filter_station = $('#filter_station');
|
|
var module_router = site_root + '/index.php?r=ROrder';
|
|
var module_router = site_root + '/index.php?r=ROrder';
|
|
var status_data = <?php echo json_encode($status); ?>;
|
|
var status_data = <?php echo json_encode($status); ?>;
|
|
- var precedence_data = <?php echo json_encode($precedence); ?>;
|
|
|
|
var channel_data = <?php echo json_encode($channels); ?>;
|
|
var channel_data = <?php echo json_encode($channels); ?>;
|
|
- var main_products = <?php echo json_encode($main_products); ?>;
|
|
|
|
var type = <?php echo json_encode($type); ?>;
|
|
var type = <?php echo json_encode($type); ?>;
|
|
var station_data = <?php echo json_encode($station); ?>;
|
|
var station_data = <?php echo json_encode($station); ?>;
|
|
|
|
|
|
@@ -751,35 +700,7 @@
|
|
editable: false,
|
|
editable: false,
|
|
data: status_data
|
|
data: status_data
|
|
});
|
|
});
|
|
- $('#main_products').combobox({
|
|
|
|
- editable: false,
|
|
|
|
- data: (function () {
|
|
|
|
- var main_products_temp = new Array();
|
|
|
|
- $.extend(main_products_temp, main_products)
|
|
|
|
- main_products_temp.shift();
|
|
|
|
-
|
|
|
|
- return main_products_temp;
|
|
|
|
- })(),
|
|
|
|
- onSelect: function(rec){
|
|
|
|
- $.ajax({
|
|
|
|
- type: "GET",
|
|
|
|
- url: "index.php?r=product/GetExtra",
|
|
|
|
- data: {product_id:rec.value},
|
|
|
|
- dataType: "json",
|
|
|
|
- success: function(data){
|
|
|
|
- var _html = "";
|
|
|
|
- $('#set_type').combobox('setValue',data.type);
|
|
|
|
- for (i in data.data){
|
|
|
|
- _html += '<input type="checkbox" name="box[]" value="'+data.data[i]['id']+'" />'+data.data[i]['name'];
|
|
|
|
- }
|
|
|
|
|
|
|
|
- $('#extra_items').html(_html);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- console.log(rec.value);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
|
|
jq_setStatus_add.combobox({
|
|
jq_setStatus_add.combobox({
|
|
editable: false,
|
|
editable: false,
|
|
@@ -803,16 +724,7 @@
|
|
})()
|
|
})()
|
|
});
|
|
});
|
|
|
|
|
|
- jq_set_precedence.combobox({
|
|
|
|
- editable : false,
|
|
|
|
- data : (function () {
|
|
|
|
- var precedence_data_temp = new Array();
|
|
|
|
- $.extend(precedence_data_temp, precedence_data);
|
|
|
|
- precedence_data_temp.shift();
|
|
|
|
|
|
|
|
- return precedence_data_temp;
|
|
|
|
- })()
|
|
|
|
- });
|
|
|
|
|
|
|
|
jq_set_station.combobox({
|
|
jq_set_station.combobox({
|
|
editable : false,
|
|
editable : false,
|
|
@@ -925,14 +837,9 @@
|
|
]],
|
|
]],
|
|
columns:[[
|
|
columns:[[
|
|
{field:'id', title:'id', hidden:true},
|
|
{field:'id', title:'id', hidden:true},
|
|
- {field:'products', title:'服务', width:30,
|
|
|
|
|
|
+ {field:'type', title:'服务', width:30,
|
|
formatter: function(value, row){
|
|
formatter: function(value, row){
|
|
- var returnString = value[0].type_str.replace('宠物','');
|
|
|
|
- if (row.hasSendTec == 1) {
|
|
|
|
- // returnString += '<span style="color:red">»»»</span>';
|
|
|
|
- returnString += '<span class="l-btn-icon icon-ok" style="position:relative;"></span>';
|
|
|
|
- }
|
|
|
|
- return returnString;
|
|
|
|
|
|
+ return type[value].text;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{field:'user', title:'用户', width:50,
|
|
{field:'user', title:'用户', width:50,
|
|
@@ -958,11 +865,7 @@
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {field:'precedence', title:'加急', width:20,sortable:false,
|
|
|
|
- formatter: function(value, row){
|
|
|
|
- return get_filed_text(value, precedence_data);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
{field:'booking_time', title:'预约时间', width:60,sortable:false,formatter: function(value, row){
|
|
{field:'booking_time', title:'预约时间', width:60,sortable:false,formatter: function(value, row){
|
|
var now=new Date(value*1000);
|
|
var now=new Date(value*1000);
|
|
|
|
|
|
@@ -1061,7 +964,6 @@
|
|
$('#booking_time').datetimebox('setValue', parse_time(data,'booking_time'));
|
|
$('#booking_time').datetimebox('setValue', parse_time(data,'booking_time'));
|
|
$('#deal_time').datetimebox('setValue', parse_time(data,'deal_time'));
|
|
$('#deal_time').datetimebox('setValue', parse_time(data,'deal_time'));
|
|
$('#product_info').html(product_info);
|
|
$('#product_info').html(product_info);
|
|
- $('#append_info').html(append_info);
|
|
|
|
|
|
|
|
$('#coupon_info').html(coupon_info);
|
|
$('#coupon_info').html(coupon_info);
|
|
|
|
|
|
@@ -1450,15 +1352,6 @@ function add_content(){
|
|
jq_add_dialog.dialog('open');
|
|
jq_add_dialog.dialog('open');
|
|
}
|
|
}
|
|
|
|
|
|
-function process_append_order(orderid){
|
|
|
|
- console.log(orderid);
|
|
|
|
- jq_refund_tip_dialog.dialog('close');
|
|
|
|
- $.post( "/index.php?r=rOrder/cancelProcess", { orderid: orderid } );
|
|
|
|
- parent.load_url('<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=rOrder&id='+orderid);
|
|
|
|
-}
|
|
|
|
-function cancel_process_append_order(orderid){
|
|
|
|
- jq_refund_tip_dialog.dialog('close');
|
|
|
|
-}
|
|
|
|
function reset_technician() {
|
|
function reset_technician() {
|
|
var id = jq_resetTec_form.find('input[name="id"]').val();
|
|
var id = jq_resetTec_form.find('input[name="id"]').val();
|
|
if (id.length == 0) {
|
|
if (id.length == 0) {
|
|
@@ -1502,10 +1395,6 @@ function checkAddForm () {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- if ($('#main_products').combobox('getValue') == '') {
|
|
|
|
- $.messager.alert('提示', '请选择服务', 'warning');
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
if ($('#set_type').combobox('getValue') == '') {
|
|
if ($('#set_type').combobox('getValue') == '') {
|
|
$.messager.alert('提示', '请选择订单类型', 'warning');
|
|
$.messager.alert('提示', '请选择订单类型', 'warning');
|
|
return false;
|
|
return false;
|