lilei %!s(int64=3) %!d(string=hai) anos
pai
achega
1ace0edf75
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/views/allocationManagement/transferReturn/detail.vue

+ 4 - 3
src/views/allocationManagement/transferReturn/detail.vue

@@ -141,7 +141,7 @@ export default {
         { title: '退货金额(¥)', dataIndex: 'totalPrice', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ]
 
-      if (this.basicInfoData.grapFlag == '1') {
+      if (this.basicInfoData && this.basicInfoData.grapFlag == '1') {
         arr.splice(1, 0, { title: '调拨单号', dataIndex: 'productEntity.code', width: '10%', align: 'center', customRender: function (text) { return text || '--' } })
       }
       return arr
@@ -174,13 +174,14 @@ export default {
     },
     //  编辑
     handleEdit () {
-      this.$router.push({ path: `/allocationManagement/transferOut/edit/${this.basicInfoData.allocateSn}/${this.basicInfoData.dealerLevel}` })
+      const row = this.basicInfoData
+      this.$router.push({ name: row.grabFlag == 1 ? 'transferReturnGrpEdit' : 'transferReturnEdit', params: { sn: row.allocateSn, dealerLevel: row.dealerLevel } })
     },
     // 导出
     handleExcel () {
       const _this = this
       this.spinning = true
-      hdExportExcel(allocateBillDetailExcel, { allocateSn: this.outBizSn || this.$route.params.sn }, '调拨明细', function () {
+      hdExportExcel(allocateBillDetailExcel, { allocateSn: this.outBizSn || this.$route.params.sn }, '调拨退货明细', function () {
         _this.spinning = false
       })
     },