开封利通水务前端

seeBusiness.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * 业务信息详情
  3. * */
  4. $(function() {
  5. // //获取所属行业//获取税务类别//获取客户信誉等级
  6. // $.when(helper.getDropList.getlistDropByDic($('#customer_subtrade'), 'KHSSHY'),
  7. // helper.getDropList.getlistDropByDic($('#customer_taxCategory'), 'SWLB'),
  8. // helper.getDropList.getlistDropByDic($('#customer_layer'), 'KHLayer'))
  9. // .done(function() {
  10. var edit_id = helper.request.queryString("edit_id");
  11. if (edit_id) {
  12. getCustomer(edit_id);
  13. }
  14. // });
  15. });
  16. //获取详情
  17. function getCustomer(ids) {
  18. $.getJSON(huayi.config.callcenter_url + "WoBill/GetBus", {
  19. id: ids, //id
  20. token: $.cookie("token")
  21. }, function(data) {
  22. if (data.state.toLowerCase() == "success") {
  23. data = data.data;
  24. if (data) {
  25. $('#bus_title').text(data.F_BusName);// string 业务名称
  26. $('#bus_label').text(data.F_BusLabel);// string 业务标签
  27. $('#bus_createuser').text(data.F_CreateBy);
  28. $('#bus_createtime').text(data.F_CreateOn);
  29. if(data.F_BusContent){
  30. $('#bus_content').html(decodeURIComponent(data.F_BusContent));// string 业务内容
  31. }else{
  32. $('#bus_content').text('暂无内容。。。');
  33. }
  34. $('#bus_remark').html(helper.filter.content(data.F_Remark));// string 备注
  35. }
  36. }
  37. });
  38. }