소스 검색

bug 修复

lilei 3 년 전
부모
커밋
e926ade0ee

+ 1 - 1
src/components/Select/index.js

@@ -91,7 +91,7 @@ export default {
     }
     if(this.showType === 'radio'){
       return (
-        <a-radio-group vModel={props.value} {...{ props, on: radioOn }} >,
+        <a-radio-group vModel={props.value} {...{ props, on: radioOn }} >
           {
             this.dataList.map(item => {
               return (<a-radio value={item.code} key={item.code}>{item['dispName']}</a-radio>)

+ 3 - 6
src/views/allocationManagement/transferReturn/check.vue

@@ -20,7 +20,8 @@
           ref="table"
           :style="{ height: tableHeight+84.5+'px' }"
           size="small"
-          :rowKey="(record) => record.id"
+          rowKeyName="productSn"
+          :rowKey="(record) => record.productSn"
           :row-selection="{ columnWidth: 40 }"
           @rowSelection="rowSelectionFun"
           :columns="columns"
@@ -196,17 +197,13 @@ export default {
         list: data
       }).then(res => {
         if (res.status == 200) {
-          this.resetSearchForm(true)
+          this.resetSearchForm(false)
           this.$message.success(res.message)
         }
         this.loading = false
         this.spinning = false
       })
     },
-    // 重置列表
-    resetForm () {
-      this.$refs.table.refresh(true)
-    },
     // 获取单据详细
     getOrderDetail () {
       allocateReturnQueryBySn({ allocateReturnSn: this.orderSn }).then(res => {

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

@@ -141,8 +141,9 @@ export default {
       })
     },
     //  编辑
-    handleEdit (row) {
-      this.$router.push({ name: row.grapFlag == 1 ? 'transferReturnGrpEdit' : 'transferReturnEdit', params: { sn: row.allocateReturnSn, targetType: row.targetType } })
+    handleEdit () {
+      const row = this.basicInfoData
+      this.$router.push({ name: row.grabFlag == 1 ? 'transferReturnGrpEdit' : 'transferReturnEdit', params: { sn: row.allocateReturnSn, targetType: row.targetType, dealerLevel: row.dealerLevel } })
     },
     pageInit () {
       if (this.outBizSn || this.$route.params.sn) {