|
|
@@ -29,9 +29,9 @@
|
|
|
<search-table @search="reload"></search-table>
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
|
<el-tab-pane label="全部" name="all"></el-tab-pane>
|
|
|
- <el-tab-pane label="未发货" name="700"></el-tab-pane>
|
|
|
+ <el-tab-pane label="待发货" name="700"></el-tab-pane>
|
|
|
<el-tab-pane label="部分发货" name="701"></el-tab-pane>
|
|
|
- <el-tab-pane label="已发货" name="800"></el-tab-pane>
|
|
|
+ <el-tab-pane label="全部发货" name="800"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table
|
|
|
@@ -392,7 +392,7 @@ import {
|
|
|
import { getToDoReminder } from '@/api/common/index';
|
|
|
import { exportSaleorder } from '@/api/system/file/index.js';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
-import { reviewStatus, saleOrderProgressStatusEnum } from '@/enum/dict';
|
|
|
+import { reviewStatus, saleOrderProgressStatusEnum, saleOrderStatusEnum } from '@/enum/dict';
|
|
|
import entrustedReceive from '@/views/saleManage/saleOrder/entrustedReceive/index.vue';
|
|
|
import autogenerateDialog from '@/BIZComponents/autogenerateDialog.vue';
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
@@ -737,7 +737,7 @@ export default {
|
|
|
minWidth: 120
|
|
|
},
|
|
|
{
|
|
|
- prop: 'inventoryQuantity',
|
|
|
+ prop: 'inventoryQuantity1',
|
|
|
label: '库存状态',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
@@ -959,15 +959,33 @@ export default {
|
|
|
},
|
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where, order }) {
|
|
|
+ console.log('where~~~', where);
|
|
|
if (this.contactData.id) {
|
|
|
where['contactId'] = this.contactData.id;
|
|
|
}
|
|
|
+
|
|
|
+ // 构建进度列表参数
|
|
|
+ const progressList = [];
|
|
|
+ // 添加标签页进度筛选(如果不是'all'标签)
|
|
|
+ if (this.activeName !== 'all') {
|
|
|
+ progressList.push(this.activeName);
|
|
|
+ }
|
|
|
+ // 添加搜索条件中的进度筛选
|
|
|
+ if (where?.progress) {
|
|
|
+ progressList.push(where.progress);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 构建请求参数
|
|
|
this.params = {
|
|
|
pageNum: page,
|
|
|
size: limit,
|
|
|
- ...where,
|
|
|
- progress: this.activeName == 'all' ? '' : this.activeName
|
|
|
+ ...where
|
|
|
};
|
|
|
+ delete this.params.progress;
|
|
|
+ // 仅当进度列表有值时添加到请求参数
|
|
|
+ if (progressList.length > 0) {
|
|
|
+ this.params.progressList = progressList.join(',');
|
|
|
+ }
|
|
|
return getTableList(this.params);
|
|
|
},
|
|
|
|
|
|
@@ -977,10 +995,9 @@ export default {
|
|
|
this.getToDoReminder();
|
|
|
},
|
|
|
handleClick() {
|
|
|
- this.activeName;
|
|
|
this.$refs.table.reload({
|
|
|
page: 1,
|
|
|
- where: { progress: this.activeName == 'all' ? '' : this.activeName }
|
|
|
+ // where: { progress: this.activeName == 'all' ? '' : this.activeName }
|
|
|
});
|
|
|
},
|
|
|
//新增编辑
|