fix(wms): 修正合卷操作状态查询参数并添加绑定钢卷列表功能
将actionStatus从0改为-1以正确查询不为2的记录 添加listBoundCoil接口用于查询已绑定发货的钢卷列表 在基础面板中显示单据状态标签并优化仓库查询逻辑
This commit is contained in:
@@ -51,3 +51,12 @@ export function batchAddDeliveryWaybillDetail(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询已绑定发货的钢卷列表
|
||||||
|
export function listBoundCoil(query) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/deliveryWaybillDetail/boundCoilList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -309,7 +309,7 @@ export default {
|
|||||||
if (!value) {
|
if (!value) {
|
||||||
this.queryParams.actionStatus = null;
|
this.queryParams.actionStatus = null;
|
||||||
} else {
|
} else {
|
||||||
this.queryParams.actionStatus = 0;
|
this.queryParams.actionStatus = '-1';
|
||||||
}
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ export default {
|
|||||||
// 分别查询待处理和处理中的记录
|
// 分别查询待处理和处理中的记录
|
||||||
const responses = await listPendingAction({
|
const responses = await listPendingAction({
|
||||||
actionType: 200, // 合卷操作
|
actionType: 200, // 合卷操作
|
||||||
actionStatus: 0, // 只要传递了actionStatus就会查询不为2的
|
actionStatus: '-1', // -1表示只查询不为2的记录
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 1000
|
pageSize: 1000
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -149,7 +149,8 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="逻辑库位" align="center" prop="warehouseId" v-if="editWarehouse">
|
<el-table-column label="逻辑库位" align="center" prop="warehouseId" v-if="editWarehouse">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<warehouse-select @change="handleWarehouseChange(scope.row)" v-model="scope.row.warehouseId" placeholder="请选择仓库/库区/库位" style="width: 100%;" clearable />
|
<warehouse-select @change="handleWarehouseChange(scope.row)" v-model="scope.row.warehouseId"
|
||||||
|
placeholder="请选择仓库/库区/库位" style="width: 100%;" clearable />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
@@ -187,6 +188,13 @@
|
|||||||
<el-descriptions-item label="负责人">
|
<el-descriptions-item label="负责人">
|
||||||
{{ scope.row.bindPrincipal || '-' }}
|
{{ scope.row.bindPrincipal || '-' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="单据状态">
|
||||||
|
<el-tag v-if="scope.row.bindWaybillStatus === 0" type="info" size="mini">未发货</el-tag>
|
||||||
|
<el-tag v-else-if="scope.row.bindWaybillStatus === 1" type="info" size="mini">已发货</el-tag>
|
||||||
|
<el-tag v-else-if="scope.row.bindWaybillStatus === 2" type="info" size="mini">未打印</el-tag>
|
||||||
|
<el-tag v-else-if="scope.row.bindWaybillStatus === 3" type="info" size="mini">已打印</el-tag>
|
||||||
|
<el-tag v-else type="danger" size="mini">未知状态</el-tag>
|
||||||
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
<div slot="reference" class="text-ellipsis" v-text>{{ scope.row.bindLicensePlate || '-' }}</div>
|
<div slot="reference" class="text-ellipsis" v-text>{{ scope.row.bindLicensePlate || '-' }}</div>
|
||||||
@@ -217,7 +225,7 @@
|
|||||||
@click="handleCancelExport(scope.row)">
|
@click="handleCancelExport(scope.row)">
|
||||||
撤回发货
|
撤回发货
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" v-if="showExportTime" type="text" icon="el-icon-sold-out"
|
<el-button size="mini" v-if="showExportTime" type="text" icon="el-icon-sold-out"
|
||||||
@click="handleReturnCoil(scope.row)">
|
@click="handleReturnCoil(scope.row)">
|
||||||
退货钢卷
|
退货钢卷
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -375,6 +383,7 @@ import {
|
|||||||
checkCoilNo,
|
checkCoilNo,
|
||||||
returnCoil
|
returnCoil
|
||||||
} from "@/api/wms/coil";
|
} from "@/api/wms/coil";
|
||||||
|
import { listBoundCoil } from "@/api/wms/deliveryWaybillDetail";
|
||||||
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
|
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
|
||||||
import QRCode from "../../print/components/QRCode.vue";
|
import QRCode from "../../print/components/QRCode.vue";
|
||||||
import * as XLSX from 'xlsx'
|
import * as XLSX from 'xlsx'
|
||||||
@@ -727,7 +736,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 查询钢卷物料列表 */
|
/** 查询钢卷物料列表 */
|
||||||
getList() {
|
async getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
const { updateTime, ...query } = {
|
const { updateTime, ...query } = {
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
@@ -736,13 +745,16 @@ export default {
|
|||||||
}
|
}
|
||||||
// 如果没有设置itemType,则设置为raw_material
|
// 如果没有设置itemType,则设置为raw_material
|
||||||
query.selectType = this.querys.materialType === '原料' ? 'raw_material' : 'product';
|
query.selectType = this.querys.materialType === '原料' ? 'raw_material' : 'product';
|
||||||
|
if (this.showWaybill) {
|
||||||
|
listBoundCoil(query).then(res => {
|
||||||
|
this.materialCoilList = res.rows || [];
|
||||||
|
this.total = res.total;
|
||||||
|
this.loading = false;
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
listMaterialCoil(query).then(response => {
|
listMaterialCoil(query).then(response => {
|
||||||
if (this.querys.warehouseId != 111) {
|
this.materialCoilList = response.rows
|
||||||
// 排除掉111仓库的
|
|
||||||
this.materialCoilList = response.rows.filter(item => item.warehouseId != 111)
|
|
||||||
} else {
|
|
||||||
this.materialCoilList = response.rows;
|
|
||||||
}
|
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user