|
@@ -13,9 +13,9 @@
|
|
<a-button key="1" type="primary" id="salesReturnEdit-print-btn">快速打印</a-button>
|
|
<a-button key="1" type="primary" id="salesReturnEdit-print-btn">快速打印</a-button>
|
|
</template> -->
|
|
</template> -->
|
|
</a-page-header>
|
|
</a-page-header>
|
|
- <a-card size="small" :bordered="false" class="salesReturnEdit-cont" v-if="ordeDetail&&ordeDetail.salesReturnBillSource=='SALES'">
|
|
|
|
|
|
+ <a-card size="small" :bordered="false" class="salesReturnEdit-cont" v-show="ordeDetail&&ordeDetail.salesReturnBillSource=='SALES'">
|
|
<!-- 查询配件列表 -->
|
|
<!-- 查询配件列表 -->
|
|
- <queryPart :buyerSn="$route.params.buyerSn" grabFlag="0" :newLoading="isInster" @add="saveProduct"></queryPart>
|
|
|
|
|
|
+ <queryPart ref="partQuery" :buyerSn="$route.params.buyerSn" grabFlag="0" :newLoading="isInster" @add="saveProduct"></queryPart>
|
|
</a-card>
|
|
</a-card>
|
|
<a-card size="small" :bordered="false" class="salesReturnEdit-cont">
|
|
<a-card size="small" :bordered="false" class="salesReturnEdit-cont">
|
|
<!-- alert -->
|
|
<!-- alert -->
|
|
@@ -40,6 +40,7 @@
|
|
:rowKey="(record) => record.id"
|
|
:rowKey="(record) => record.id"
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
|
|
+ :defaultLoadData="false"
|
|
:scroll="{ x: 910, y: 300 }"
|
|
:scroll="{ x: 910, y: 300 }"
|
|
bordered>
|
|
bordered>
|
|
<!-- 本次退货数量 -->
|
|
<!-- 本次退货数量 -->
|
|
@@ -305,16 +306,24 @@ export default {
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ pageInit () {
|
|
|
|
+ this.orderSn = this.$route.params.sn
|
|
|
|
+ this.buyerSn = this.$route.params.buyerSn
|
|
|
|
+ this.resetSearchForm(true)
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.partQuery.resetSearchForm()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
- this.orderSn = this.$route.params.sn
|
|
|
|
- this.buyerSn = this.$route.params.buyerSn
|
|
|
|
- this.getOrderDetail()
|
|
|
|
|
|
+ this.pageInit()
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {
|
|
next(vm => {
|
|
- console.log('beforeRouteEnter')
|
|
|
|
|
|
+ if (!vm.disabled) {
|
|
|
|
+ vm.pageInit()
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|