linwenxin il y a 9 mois
Parent
commit
43ac5185cd

+ 2 - 2
src/views/auxiliaryFittings/salesManagement/attachmentNewReturn/index.vue

@@ -105,12 +105,12 @@ export default {
   methods: {
     // 切换状态
     changeType(val) {
-      this.$refs.pageRef.refreshList()
+      this.$refs?.pageRef?.refreshList()
     },
     backList() {
       this.id = ''
       this.formDialog = false
-      this.$refs.pageRef.refreshList()
+      this.$refs?.pageRef?.refreshList()
     },
     // 列表请求函数
     getList(p, cb) {

+ 4 - 4
src/views/auxiliaryFittings/salesManagement/components/attachmentNewReturnDetail.vue

@@ -309,10 +309,10 @@
           <el-table-column prop="goods.brandRelaName" align="center" label="适用品牌"></el-table-column>
           <el-table-column prop="goods.productRelaName" align="center" label="适用产品大类"></el-table-column>
           <el-table-column prop="price" align="center" label="销售价格"></el-table-column>
-          <el-table-column prop="" align="center" label="销售金额">
-            <template slot-scope="scope" v-if="scope.row.newRefundQty && scope.row.price">
+          <el-table-column prop="saleAmount" align="center" label="销售金额">
+            <!-- <template slot-scope="scope" v-if="scope.row.newRefundQty && scope.row.price">
               {{ (scope.row.price * 100 * scope.row.newRefundQty) / 100 }}
-            </template>
+            </template> -->
           </el-table-column>
           <!-- <el-table-column prop="goods.qty" align="center" label="库存数量"></el-table-column> -->
           <el-table-column prop="" align="center" label="退款金额">
@@ -734,9 +734,9 @@ export default {
       })
     },
     handleSelectionChange(selection, row) {
+      this.selectedRow = JSON.parse(JSON.stringify(row))
       this.$refs.treeTable.clearSelection() // 这里因为需求做的是必选一个,如有其他需求可做调整
       this.$refs.treeTable.toggleRowSelection(row, true)
-      this.selectedRow = row
     },
     // 更改每页数量
     handleSizeChange(val) {