xuhy
1 天以前 9d1267aaf8968cc8fe2a257c33a27fd381288b78
ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/financialStatement/paymentOrderStatistics/paymentOrderStatistics.js
@@ -35,7 +35,7 @@
      {title: '支付时间', field: 'paymentTime', visible: true, align: 'center', valign: 'middle'},
      {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',
         formatter: function (value, row) {
            return '<a onclick="PaymentOrderStatistics.openPaymentOrderStatisticsDetail(' + value + ')" style="color: blue;">订单详情</a>';
            return '<a onclick="PaymentOrderStatistics.openPaymentOrderStatisticsDetail(' + value + ','+row.orderType+')" style="color: blue;">订单详情</a>';
         }
      }
   ];
@@ -74,16 +74,30 @@
/**
 * 打开查看详情
 */
PaymentOrderStatistics.openPaymentOrderStatisticsDetail = function (id) {
   var index = layer.open({
      type: 2,
      title: '出租车订单详情',
      area: ['100%', '100%'], //宽高
      fix: false, //不固定
      maxmin: true,
      content: Feng.ctxPath + '/tOrderTaxi/tOrderTaxi_update/' + id
   });
   this.layerIndex = index;
PaymentOrderStatistics.openPaymentOrderStatisticsDetail = function (id, orderType) {
   console.log("dahgbhjbsubcjksnb"+id);
   console.log("dahgbhjbsubcjksnb"+orderType);
   if(orderType==2){
      var index = layer.open({
         type: 2,
         title: '出租车订单详情',
         area: ['100%', '100%'], //宽高
         fix: false, //不固定
         maxmin: true,
         content: Feng.ctxPath + '/tOrderTaxi/tOrderTaxi_update/' + id
      });
      this.layerIndex = index;
   }else {
      var index = layer.open({
         type: 2,
         title: '跨城出行订单详情',
         area: ['100%', '100%'], //宽高
         fix: false, //不固定
         maxmin: true,
         content: Feng.ctxPath + '/tOrderCrossCity/tOrderCrossCity_update/' + id
      });
      this.layerIndex = index;
   }
};