|
|
|
@ -160,7 +160,7 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '入库单编号',
|
|
|
|
title: '入库单编号',
|
|
|
|
key: 'recptCode',
|
|
|
|
key: 'recptCode',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
width: 130,
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -169,7 +169,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '入库单名称',
|
|
|
|
title: '入库单名称',
|
|
|
|
key: 'recptName',
|
|
|
|
key: 'recptName',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -178,7 +177,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '销售订单编号',
|
|
|
|
title: '销售订单编号',
|
|
|
|
key: 'poCode',
|
|
|
|
key: 'poCode',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -187,7 +185,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '供应商名称',
|
|
|
|
title: '供应商名称',
|
|
|
|
key: 'vendorName',
|
|
|
|
key: 'vendorName',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -196,7 +193,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '仓库名称',
|
|
|
|
title: '仓库名称',
|
|
|
|
key: 'warehouseName',
|
|
|
|
key: 'warehouseName',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -217,7 +213,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '入库日期',
|
|
|
|
title: '入库日期',
|
|
|
|
key: 'recptDate',
|
|
|
|
key: 'recptDate',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -226,7 +221,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '创建时间',
|
|
|
|
title: '创建时间',
|
|
|
|
key: 'createTime',
|
|
|
|
key: 'createTime',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 180,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -238,7 +232,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
render: row => {
|
|
|
|
render: row => {
|
|
|
|
return <dict-tag options={wms_item_recpt_status.value} value={row.status}></dict-tag>;
|
|
|
|
return <dict-tag options={wms_item_recpt_status.value} value={row.status}></dict-tag>;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -247,7 +240,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '来源单据编码',
|
|
|
|
title: '来源单据编码',
|
|
|
|
key: 'fromBillCode',
|
|
|
|
key: 'fromBillCode',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -256,7 +248,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '负责人简称',
|
|
|
|
title: '负责人简称',
|
|
|
|
key: 'headByNick',
|
|
|
|
key: 'headByNick',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 110,
|
|
|
|
|
|
|
|
ellipsis: {
|
|
|
|
ellipsis: {
|
|
|
|
tooltip: true
|
|
|
|
tooltip: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -265,7 +256,6 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
title: '操作',
|
|
|
|
title: '操作',
|
|
|
|
key: 'action',
|
|
|
|
key: 'action',
|
|
|
|
fixed: 'right',
|
|
|
|
fixed: 'right',
|
|
|
|
width: 220,
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
render: row => {
|
|
|
|
render: row => {
|
|
|
|
console.log(wms_item_recpt_status.value, row.status, '----');
|
|
|
|
console.log(wms_item_recpt_status.value, row.status, '----');
|
|
|
|
@ -283,7 +273,7 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
() => {
|
|
|
|
() => {
|
|
|
|
router.push({
|
|
|
|
router.push({
|
|
|
|
name: 'storage_auxiliaryProduceinfo',
|
|
|
|
name: 'storage_auxiliaryProduceinfo',
|
|
|
|
query: { id: row.recptId, warehouseId: row.warehouseId }
|
|
|
|
query: {id: row.recptId, warehouseId: row.warehouseId}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'tiny',
|
|
|
|
'tiny',
|
|
|
|
@ -296,7 +286,7 @@ const columns: Ref<DataTableColumns<wms.recptRawType.columns>> = ref([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]) as Ref<DataTableColumns<any>>;
|
|
|
|
]) as Ref<DataTableColumns<any>>;
|
|
|
|
|
|
|
|
|
|
|
|
const { loading, startLoading, endLoading } = useLoading(false);
|
|
|
|
const {loading, startLoading, endLoading} = useLoading(false);
|
|
|
|
// const { setTrue: openModal } = useBoolean();
|
|
|
|
// const { setTrue: openModal } = useBoolean();
|
|
|
|
|
|
|
|
|
|
|
|
// function setModalType(type: ModalType) {
|
|
|
|
// function setModalType(type: ModalType) {
|
|
|
|
@ -307,7 +297,7 @@ function reset() {
|
|
|
|
searchForm.value.pageNum = 1;
|
|
|
|
searchForm.value.pageNum = 1;
|
|
|
|
page.value = 1;
|
|
|
|
page.value = 1;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
const { pageNum, pageSize, ...rest } = searchForm.value;
|
|
|
|
const {pageNum, pageSize, ...rest} = searchForm.value;
|
|
|
|
for (const key in rest) {
|
|
|
|
for (const key in rest) {
|
|
|
|
if (searchForm.value[key] !== '' && searchForm.value[key] !== 'YL') {
|
|
|
|
if (searchForm.value[key] !== '' && searchForm.value[key] !== 'YL') {
|
|
|
|
searchForm.value[key] = null;
|
|
|
|
searchForm.value[key] = null;
|
|
|
|
@ -325,6 +315,7 @@ function print(row: wms.recptRawType.columns) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
window.$message?.success('已发送打印命令');
|
|
|
|
window.$message?.success('已发送打印命令');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// async function handleEditTable(issueId: number) {
|
|
|
|
// async function handleEditTable(issueId: number) {
|
|
|
|
// console.log('执行部入库操作', issueId);
|
|
|
|
// console.log('执行部入库操作', issueId);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
@ -358,7 +349,7 @@ function search() {
|
|
|
|
// 获取信息
|
|
|
|
// 获取信息
|
|
|
|
function getWmsItemRecptData() {
|
|
|
|
function getWmsItemRecptData() {
|
|
|
|
startLoading();
|
|
|
|
startLoading();
|
|
|
|
selectWmsItemRecptList({ params: searchForm.value }).then(res => {
|
|
|
|
selectWmsItemRecptList({params: searchForm.value}).then(res => {
|
|
|
|
data.value = res.rows;
|
|
|
|
data.value = res.rows;
|
|
|
|
total.value = res.total;
|
|
|
|
total.value = res.total;
|
|
|
|
searchForm.value.total = res.total;
|
|
|
|
searchForm.value.total = res.total;
|
|
|
|
@ -369,6 +360,7 @@ function getWmsItemRecptData() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 删除
|
|
|
|
// 删除
|
|
|
|
function delSelect() {
|
|
|
|
function delSelect() {
|
|
|
|
delWmsItemRecpt(selectKeys.value.join(',') as string).then(() => {
|
|
|
|
delWmsItemRecpt(selectKeys.value.join(',') as string).then(() => {
|
|
|
|
@ -384,5 +376,6 @@ function init() {
|
|
|
|
getWmsItemRecptData();
|
|
|
|
getWmsItemRecptData();
|
|
|
|
// 获取供应商列表
|
|
|
|
// 获取供应商列表
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
init();
|
|
|
|
init();
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|