fix: 修复多处表单与接口适配问题,优化钢卷状态筛选逻辑
1. 修复SalaryPanel输入框边框缺失样式 2. 调整wms报表日期范围计算与视图类型默认值 3. 统一多页面钢卷状态筛选组件:替换为下拉选项新增历史卷,新增状态转换逻辑,修正接口传参格式 4. 同步crm合同、业务员页面的钢卷筛选适配改动
This commit is contained in:
@@ -75,10 +75,11 @@
|
||||
<el-option label="原料" value="raw_material" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="发货状态">
|
||||
<el-select v-model="productCoilBo.status" placeholder="全部" clearable style="width: 100px;">
|
||||
<el-option label="在库" :value="0" />
|
||||
<el-option label="已发货" :value="1" />
|
||||
<el-form-item label="钢卷状态">
|
||||
<el-select v-model="productCoilBo.coilStatusType" placeholder="全部" clearable style="width: 100px;" @change="handleProductCoilStatusChange">
|
||||
<el-option label="在库" value="in_stock" />
|
||||
<el-option label="已发货" value="shipped" />
|
||||
<el-option label="历史卷" value="history" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="质量状态">
|
||||
@@ -134,10 +135,11 @@
|
||||
<el-option label="原料" value="raw_material" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="发货状态">
|
||||
<el-select v-model="deliveryCoilBo.status" placeholder="全部" clearable style="width: 100px;">
|
||||
<el-option label="在库" :value="0" />
|
||||
<el-option label="已发货" :value="1" />
|
||||
<el-form-item label="钢卷状态">
|
||||
<el-select v-model="deliveryCoilBo.coilStatusType" placeholder="全部" clearable style="width: 100px;" @change="handleDeliveryCoilStatusChange">
|
||||
<el-option label="在库" value="in_stock" />
|
||||
<el-option label="已发货" value="shipped" />
|
||||
<el-option label="历史卷" value="history" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="质量状态">
|
||||
@@ -417,7 +419,7 @@ export default {
|
||||
orderId: this.orderId,
|
||||
pageNum: this.productPagination.currentPage,
|
||||
pageSize: this.productPagination.pageSize,
|
||||
...this.productCoilBo
|
||||
coilBo: this.productCoilBo
|
||||
}).then(res => {
|
||||
this.productCoilList = res.rows || [];
|
||||
this.productPagination.total = res.total || 0;
|
||||
@@ -431,7 +433,7 @@ export default {
|
||||
});
|
||||
},
|
||||
fetchProductCoilStatistics() {
|
||||
getProductCoilsStatisticsByContract({ ...this.productCoilBo, orderId: this.orderId }).then(res => {
|
||||
getProductCoilsStatisticsByContract({ orderId: this.orderId, coilBo: this.productCoilBo }).then(res => {
|
||||
this.productCoilStatistics = res.data || {};
|
||||
});
|
||||
},
|
||||
@@ -445,6 +447,21 @@ export default {
|
||||
this.productCoilBo = {};
|
||||
this.handleProductFilter();
|
||||
},
|
||||
handleProductCoilStatusChange(val) {
|
||||
if (val === 'in_stock') {
|
||||
this.productCoilBo.status = 0;
|
||||
this.productCoilBo.dataType = 1;
|
||||
} else if (val === 'shipped') {
|
||||
this.productCoilBo.status = 1;
|
||||
this.productCoilBo.dataType = undefined;
|
||||
} else if (val === 'history') {
|
||||
this.productCoilBo.status = 0;
|
||||
this.productCoilBo.dataType = 0;
|
||||
} else {
|
||||
this.productCoilBo.status = undefined;
|
||||
this.productCoilBo.dataType = undefined;
|
||||
}
|
||||
},
|
||||
handleDeliveryFilter() {
|
||||
this.deliveryCoilBo.selectType = this.deliveryCoilBo.itemType || '';
|
||||
this.deliveryPagination.currentPage = 1;
|
||||
@@ -455,6 +472,21 @@ export default {
|
||||
this.deliveryCoilBo = {};
|
||||
this.handleDeliveryFilter();
|
||||
},
|
||||
handleDeliveryCoilStatusChange(val) {
|
||||
if (val === 'in_stock') {
|
||||
this.deliveryCoilBo.status = 0;
|
||||
this.deliveryCoilBo.dataType = 1;
|
||||
} else if (val === 'shipped') {
|
||||
this.deliveryCoilBo.status = 1;
|
||||
this.deliveryCoilBo.dataType = undefined;
|
||||
} else if (val === 'history') {
|
||||
this.deliveryCoilBo.status = 0;
|
||||
this.deliveryCoilBo.dataType = 0;
|
||||
} else {
|
||||
this.deliveryCoilBo.status = undefined;
|
||||
this.deliveryCoilBo.dataType = undefined;
|
||||
}
|
||||
},
|
||||
handleProductPageChange({ currentPage, pageSize }) {
|
||||
this.productPagination.currentPage = currentPage;
|
||||
this.productPagination.pageSize = pageSize;
|
||||
|
||||
Reference in New Issue
Block a user