Commit 613826fa by wangzhihui

```

fix(router): 更新最后编辑时间并修复商品详情页keepAlive配置

更新文件最后编辑时间为2026-02-09,并将商品详情页的keepAlive配置从true改为false,
避免页面缓存导致的数据更新问题。同时修复了两处相同的配置变更。

feat(cannibalize): 添加组件条件渲染和yqMerchantId参数传递

为sendOutComp组件添加isFlag条件渲染控制,优化组件加载性能。
在调拨详情页面跳转时增加yqMerchantId参数传递,修复字段名错误upgradeGoodsld为upgradeGoodsId。
移除调试用的console.log语句。
```
1 parent d07944e2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com' * @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-11-18 14:23:31 * @Date: 2025-11-18 14:23:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com' * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-02-06 16:38:29 * @LastEditTime: 2026-02-09 16:04:41
* @FilePath: \wx-notification\src\router\routes.js * @FilePath: \wx-notification\src\router\routes.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
*/ */
...@@ -25,7 +25,7 @@ const pages = { ...@@ -25,7 +25,7 @@ const pages = {
{ {
name: 'detail', name: 'detail',
meta: { meta: {
keepAlive: true, keepAlive: false,
title: '商品详情', title: '商品详情',
noAuth: true, noAuth: true,
backgroundColor: '#f7f8fa', backgroundColor: '#f7f8fa',
...@@ -48,7 +48,7 @@ const pages = { ...@@ -48,7 +48,7 @@ const pages = {
{ {
name: 'detail', name: 'detail',
meta: { meta: {
keepAlive: true, keepAlive: false,
title: '商品详情', title: '商品详情',
noAuth: true, noAuth: true,
backgroundColor: '#f7f8fa', backgroundColor: '#f7f8fa',
......
<template> <template>
<h-dialog ref="myDialog" :title="title" :isVisible="isVisible" @confirm="handleSubmit" @cancel="handleCancel"> <h-dialog ref="myDialog" :title="title" :isVisible="isVisible" @confirm="handleSubmit" @cancel="handleCancel">
<div class="formObj"> <div class="formObj" v-if="isFlag">
<div class="search-pop-input"> <div class="search-pop-input">
<van-field v-model="keyword" placeholder="搜索" left-icon="https://img02.glsx.com.cn/weapp/resource/saas/scrm/search-icon.png" @input="onSearch" /> <van-field v-model="keyword" placeholder="搜索" left-icon="https://img02.glsx.com.cn/weapp/resource/saas/scrm/search-icon.png" @input="onSearch" />
</div> </div>
...@@ -30,6 +30,7 @@ export default { ...@@ -30,6 +30,7 @@ export default {
components: { hDialog }, components: { hDialog },
data() { data() {
return { return {
isFlag:false,
title: '调出门店仓库', title: '调出门店仓库',
keyword: '', keyword: '',
originalShippingEntityList: [], originalShippingEntityList: [],
...@@ -106,6 +107,7 @@ export default { ...@@ -106,6 +107,7 @@ export default {
let params = {} let params = {}
if(this.isYq ==1) params.yqMerchantId = this.yqMerchantId if(this.isYq ==1) params.yqMerchantId = this.yqMerchantId
let result = await allocateApi[methodName](params) let result = await allocateApi[methodName](params)
this.isFlag = true
if (result.code == 0) { if (result.code == 0) {
result.data.forEach(item => { result.data.forEach(item => {
item.checked = false item.checked = false
......
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
}, },
getList() { getList() {
let list = this.StockList let list = this.StockList
allocateApi.getAllocateGoodsStockDetail({ ...this.page, merchantName: this.keyword, upgradeGoodsld: this.orderInfo.goodsId }).then(({ code, data, message }) => { allocateApi.getAllocateGoodsStockDetail({ ...this.page, merchantName: this.keyword, upgradeGoodsId: this.orderInfo.goodsId}).then(({ code, data, message }) => {
this.hideLoading() this.hideLoading()
if (code == 0) { if (code == 0) {
this.total = data.total this.total = data.total
......
...@@ -221,7 +221,8 @@ export default { ...@@ -221,7 +221,8 @@ export default {
path: '/cannibalize/detail', path: '/cannibalize/detail',
query: { query: {
id: row.id, id: row.id,
staffType:this.staffType staffType:this.staffType,
yqMerchantId:row.yqMerchantId
} }
}) })
}, },
...@@ -256,7 +257,7 @@ export default { ...@@ -256,7 +257,7 @@ export default {
}, },
async allocateOrderDetail() { async allocateOrderDetail() {
let result = await allocateApi.allocateOrderDetail({ allocateCode: this.orderCode }) let result = await allocateApi.allocateOrderDetail({ allocateCode: this.orderCode })
console.log(result,'result')
if (result.code == 0) { if (result.code == 0) {
this.allocateOrderInfo = result.data this.allocateOrderInfo = result.data
} }
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
}, },
getList() { getList() {
let list = this.StockList let list = this.StockList
allocateApi.getAllocateGoodsStockDetail({ ...this.page, merchantName: this.keyword, upgradeGoodsld: this.orderInfo.goodsId }).then(({ code, data, message }) => { allocateApi.getAllocateGoodsStockDetail({ ...this.page, merchantName: this.keyword, upgradeGoodsId: this.orderInfo.goodsId }).then(({ code, data, message }) => {
this.hideLoading() this.hideLoading()
if (code == 0) { if (code == 0) {
this.StockList = [...list, ...data.list] this.StockList = [...list, ...data.list]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!