Commit b7db1e39 by wangzhihui

```

feat(transferShipment): 添加分页配置和用户信息获取

- 在EllipsisTooltip.vue中添加文件头注释和样式类
- 在rejectDialog.vue中添加pageConf属性到GLTable组件以支持分页功能
- 在rejectDialog.vue中引入userInfo以获取用户信息
- 在shipmentDialog.vue中为GLTable添加hasPage=false属性并优化错误提示样式
- 在transferDetailDialog.vue中添加pageConf配置对象
- 在拒单接口调用中增加fromSaas和userName参数
```
1 parent 3da7598b
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-04-13 14:29:05
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-04-22 18:17:00
* @FilePath: \scrm-micro-inventory\src\views\transferShipment\components\EllipsisTooltip.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<el-tooltip :content="displayContent || ''" :disabled="isDisabled" :placement="placement" effect="dark"> <el-tooltip :content="displayContent || ''" :disabled="isDisabled" :placement="placement" effect="dark">
<div class="ellipsis-tooltip-content" @mouseenter="checkOverflow"> <div class="ellipsis-tooltip-content" @mouseenter="checkOverflow">
<div>{{ displayContent }}</div> <div class="ellipsis-tooltip-content">{{ displayContent }}</div>
</div> </div>
</el-tooltip> </el-tooltip>
</template> </template>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="reject-page edit-tmpl"> <div class="reject-page edit-tmpl">
<div class="title">商品信息</div> <div class="title">商品信息</div>
<div class="content-box"> <div class="content-box">
<GLTable ref="purchaseOrderDetailTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable ref="purchaseOrderDetailTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf"></GLTable>
</div> </div>
</div> </div>
<el-form :rules="rejectRules" :model="formData" label-width="150px" ref="delivery-dialog-form"> <el-form :rules="rejectRules" :model="formData" label-width="150px" ref="delivery-dialog-form">
...@@ -84,6 +84,7 @@ export default { ...@@ -84,6 +84,7 @@ export default {
}, },
data() { data() {
return { return {
userInfo: this.$globalState.session,
emptyImgUrl: url, emptyImgUrl: url,
searchForm: { searchForm: {
allocateCode: '' allocateCode: ''
...@@ -127,6 +128,7 @@ export default { ...@@ -127,6 +128,7 @@ export default {
3: { rejectedStatus: '商务审核' } 3: { rejectedStatus: '商务审核' }
}, },
getListApi: this.$apis.stockManage.getTransferGoodsInfo, getListApi: this.$apis.stockManage.getTransferGoodsInfo,
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
...@@ -252,7 +254,7 @@ export default { ...@@ -252,7 +254,7 @@ export default {
this.$refs['delivery-dialog-form'].validate(valid => { this.$refs['delivery-dialog-form'].validate(valid => {
if (valid) { if (valid) {
this.$apis.stockManage this.$apis.stockManage
.deliveryReject({ allocateCode: this.rejectData.allocateCode, rejectNode: this.formData.rejectNode, rejectCause: this.formData.rejectCause }) .deliveryReject({ fromSaas: true, userName: this.userInfo.merchantName, allocateCode: this.rejectData.allocateCode, rejectNode: this.formData.rejectNode, rejectCause: this.formData.rejectCause })
.then(res => { .then(res => {
if (res) { if (res) {
this.handleClose(true) this.handleClose(true)
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</div> </div>
</div> </div>
<div class="table-class"> <div class="table-class">
<GLTable ref="purchaseOrderDetailTable" :table-params="tableParams" :table-data="tableList"> <GLTable ref="purchaseOrderDetailTable" :hasPage="false" :table-params="tableParams" :table-data="tableList">
<template slot="nowPurNum" slot-scope="scope"> <template slot="nowPurNum" slot-scope="scope">
<div> <div>
<el-input :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)"></el-input> <el-input :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)"></el-input>
...@@ -202,7 +202,12 @@ export default { ...@@ -202,7 +202,12 @@ export default {
if (valid) { if (valid) {
// 验证本次发货数量 // 验证本次发货数量
if (this.nowPurNumList.some(item => !item || item <= 0)) { if (this.nowPurNumList.some(item => !item || item <= 0)) {
this.$message.error('发货数量必须全部填写且不能为0') this.$message({
message: '发货数量必须全部填写且不能为0',
type: 'error',
customClass: 'message-Z-zinde'
})
return true return true
} }
var params = { var params = {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<!-- 商品列表表格 --> <!-- 商品列表表格 -->
<div class="table-class"> <div class="table-class">
<GLTable ref="purchaseOrderDetailTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn"> <GLTable ref="purchaseOrderDetailTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf">
<template slot="filmRollNo" slot-scope="scope"> <template slot="filmRollNo" slot-scope="scope">
<div v-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1"> <div v-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">
{{ scope.scope.filmRollList[0] }} {{ scope.scope.filmRollList[0] }}
...@@ -144,6 +144,7 @@ export default { ...@@ -144,6 +144,7 @@ export default {
}, },
data() { data() {
return { return {
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
emptyImgUrl: require('@/assets/empty.png'), emptyImgUrl: require('@/assets/empty.png'),
getListApi: this.$apis.stockManage.getTransferGoodsInfo, getListApi: this.$apis.stockManage.getTransferGoodsInfo,
searchForm: { searchForm: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!