|
@@ -348,14 +348,13 @@ function getSysAdmin(){
|
|
|
|
|
|
/*初始化产品类型 -- 客诉头部的产品类型单选*/
|
|
|
function initProduceType(){
|
|
|
- var html = "";
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
data: {
|
|
|
},
|
|
|
url: url_path + "/admin/customer/select_produce_type",
|
|
|
- async: false,
|
|
|
success: function(data){
|
|
|
+ var html = "";
|
|
|
if (data.returnCode == 200) {
|
|
|
var check = "checked";
|
|
|
for(var i=0;i<data.returnMsg.productTypeList.length;i++){
|
|
@@ -369,12 +368,19 @@ function initProduceType(){
|
|
|
}else{
|
|
|
html = '';
|
|
|
}
|
|
|
+ $("#produceTypeHtml").html(html);
|
|
|
+ initCheck();
|
|
|
},
|
|
|
error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
}
|
|
|
});
|
|
|
- $("#produceTypeHtml").html(html);
|
|
|
- initCheck();
|
|
|
+
|
|
|
+ /*绑定产品类型选择事件*/
|
|
|
+ $("input[name='typeId']").change(function (){
|
|
|
+ opentionSelectOrder($(this).val());
|
|
|
+ })
|
|
|
+ /*当前第一个默认选中上朵电动牙刷 isNeedSelectOrder = 2 默认不需要选择订单*/
|
|
|
+ opentionSelectOrder(2);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1460,6 +1466,17 @@ function setStore(companyId,node){
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 控制展示订单
|
|
|
+ * 1:需要有订单 2:不需要有订单
|
|
|
+ */
|
|
|
+function opentionSelectOrder(type){
|
|
|
+ isNeedSelectOrder = type ;
|
|
|
+ if(isNeedSelectOrder){
|
|
|
+ $("#orderHead").hide();
|
|
|
+ $("#order").hide();
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
/*===============================客诉提交 -- start -- =============================== */
|
|
|
$(function(){
|