|
|
|
|
@ -21,15 +21,15 @@
|
|
|
|
|
<n-descriptions-item :span="1" label="应入数量:">
|
|
|
|
|
{{ RecptInfo.quantityRecived }}
|
|
|
|
|
</n-descriptions-item>
|
|
|
|
|
<n-descriptions-item :span="1" label="应入数量:">
|
|
|
|
|
<!-- <n-descriptions-item :span="1" label="应入数量:">
|
|
|
|
|
{{ RecptInfo.weightRecived }}
|
|
|
|
|
</n-descriptions-item>
|
|
|
|
|
</n-descriptions-item> -->
|
|
|
|
|
<n-descriptions-item :span="1" label="入库数量:">
|
|
|
|
|
{{ num }}
|
|
|
|
|
</n-descriptions-item>
|
|
|
|
|
<n-descriptions-item :span="1" label="入库数量:">
|
|
|
|
|
<!-- <n-descriptions-item :span="1" label="入库数量:">
|
|
|
|
|
{{ weight }}
|
|
|
|
|
</n-descriptions-item>
|
|
|
|
|
</n-descriptions-item> -->
|
|
|
|
|
<n-descriptions-item :span="1" label="入库仓库:">
|
|
|
|
|
<n-select
|
|
|
|
|
v-model:value="RecptInfo.warehouseId"
|
|
|
|
|
@ -61,22 +61,22 @@
|
|
|
|
|
<n-select class="w-210px" :disabled="info" :options="userOptions" @update:value="headSelect"></n-select>
|
|
|
|
|
</n-descriptions-item>
|
|
|
|
|
<!-- <n-descriptions-item :span="1" label="业务部门:">
|
|
|
|
|
<n-tree-select
|
|
|
|
|
v-model:value="RecptInfo.salseDeptId"
|
|
|
|
|
:options="menuOptions"
|
|
|
|
|
label-field="label"
|
|
|
|
|
key-field="id"
|
|
|
|
|
@update:value="deptSelect"
|
|
|
|
|
></n-tree-select>
|
|
|
|
|
</n-descriptions-item>
|
|
|
|
|
<n-descriptions-item :span="1" label="业务员:">
|
|
|
|
|
<n-select
|
|
|
|
|
v-model:value="RecptInfo.salseBy"
|
|
|
|
|
class="w-210px"
|
|
|
|
|
:options="salesOptions"
|
|
|
|
|
@update:value="salseSelect"
|
|
|
|
|
></n-select>
|
|
|
|
|
</n-descriptions-item> -->
|
|
|
|
|
<n-tree-select
|
|
|
|
|
v-model:value="RecptInfo.salseDeptId"
|
|
|
|
|
:options="menuOptions"
|
|
|
|
|
label-field="label"
|
|
|
|
|
key-field="id"
|
|
|
|
|
@update:value="deptSelect"
|
|
|
|
|
></n-tree-select>
|
|
|
|
|
</n-descriptions-item>
|
|
|
|
|
<n-descriptions-item :span="1" label="业务员:">
|
|
|
|
|
<n-select
|
|
|
|
|
v-model:value="RecptInfo.salseBy"
|
|
|
|
|
class="w-210px"
|
|
|
|
|
:options="salesOptions"
|
|
|
|
|
@update:value="salseSelect"
|
|
|
|
|
></n-select>
|
|
|
|
|
</n-descriptions-item> -->
|
|
|
|
|
<n-descriptions-item :span="1" label="备注:">
|
|
|
|
|
<!-- {{ RecptInfo.remark }} -->
|
|
|
|
|
<n-input v-model:value="RecptInfo.remark" :disabled="info"></n-input>
|
|
|
|
|
@ -84,12 +84,12 @@
|
|
|
|
|
</n-descriptions>
|
|
|
|
|
</my-card>
|
|
|
|
|
<!-- <my-card title="搜索条件" search>
|
|
|
|
|
<n-form ref="formRef" inline label-width="auto" :model="searchForm" size="medium">
|
|
|
|
|
<n-form-item>
|
|
|
|
|
<component :is="useSearchBtn(search, reset)"></component>
|
|
|
|
|
</n-form-item>
|
|
|
|
|
</n-form>
|
|
|
|
|
</my-card> -->
|
|
|
|
|
<n-form ref="formRef" inline label-width="auto" :model="searchForm" size="medium">
|
|
|
|
|
<n-form-item>
|
|
|
|
|
<component :is="useSearchBtn(search, reset)"></component>
|
|
|
|
|
</n-form-item>
|
|
|
|
|
</n-form>
|
|
|
|
|
</my-card> -->
|
|
|
|
|
<my-card title="产品(物料)信息">
|
|
|
|
|
<template #right>
|
|
|
|
|
<div class="flex-center">
|
|
|
|
|
@ -120,11 +120,11 @@
|
|
|
|
|
<my-pagination v-model:search-form="searchForm" @init="init"></my-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <table-action-modal
|
|
|
|
|
v-model:visible="showModal"
|
|
|
|
|
:type="modalType"
|
|
|
|
|
:edit-data="editData"
|
|
|
|
|
:get-list="getWmsItemRecptLineData"
|
|
|
|
|
/> -->
|
|
|
|
|
v-model:visible="showModal"
|
|
|
|
|
:type="modalType"
|
|
|
|
|
:edit-data="editData"
|
|
|
|
|
:get-list="getWmsItemRecptLineData"
|
|
|
|
|
/> -->
|
|
|
|
|
</my-card>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -151,9 +151,10 @@ const rules: any = {};
|
|
|
|
|
const storageOptions = ref<{ value: string; label: string }[]>([]);
|
|
|
|
|
const { proxy } = getCurrentInstance() as any;
|
|
|
|
|
const { wms_item_recpt_status, wms_item_recpt_type } = proxy.useDict('wms_item_recpt_status', 'wms_item_recpt_type');
|
|
|
|
|
console.log(wms_item_recpt_type);
|
|
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
console.log(wms_item_recpt_type);
|
|
|
|
|
|
|
|
|
|
const message = useMessage();
|
|
|
|
|
|
|
|
|
|
@ -292,6 +293,11 @@ const columns: Ref<DataTableColumns<wms.recptLineRawType.columns>> = ref([
|
|
|
|
|
key: 'specification',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '颜色',
|
|
|
|
|
key: 'colorName',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '应入数量',
|
|
|
|
|
// key: 'quantityRecived',
|
|
|
|
|
@ -333,21 +339,21 @@ const columns: Ref<DataTableColumns<wms.recptLineRawType.columns>> = ref([
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '入库数量',
|
|
|
|
|
key: 'weight',
|
|
|
|
|
width: 180,
|
|
|
|
|
render: row => {
|
|
|
|
|
return (
|
|
|
|
|
<div class="flex-center">
|
|
|
|
|
<sapn class="color-red mr-5px">*</sapn>
|
|
|
|
|
<n-form-item path={`weight${row.recptId}`}>
|
|
|
|
|
<n-input disabled={info.value} v-model:value={row.weight}></n-input>
|
|
|
|
|
</n-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '入库数量',
|
|
|
|
|
// key: 'weight',
|
|
|
|
|
// width: 180,
|
|
|
|
|
// render: row => {
|
|
|
|
|
// return (
|
|
|
|
|
// <div class="flex-center">
|
|
|
|
|
// <sapn class="color-red mr-5px">*</sapn>
|
|
|
|
|
// <n-form-item path={`weight${row.recptId}`}>
|
|
|
|
|
// <n-input disabled={info.value} v-model:value={row.weight}></n-input>
|
|
|
|
|
// </n-form-item>
|
|
|
|
|
// </div>
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: '仓库名称',
|
|
|
|
|
key: 'warehouseName',
|
|
|
|
|
@ -592,16 +598,16 @@ const num = computed(() => {
|
|
|
|
|
RecptInfo.value.quantitySaved = val;
|
|
|
|
|
return val;
|
|
|
|
|
});
|
|
|
|
|
const weight = computed(() => {
|
|
|
|
|
const val = data.value.reduce((acc, cur) => {
|
|
|
|
|
const num1 = new BigNumber(acc);
|
|
|
|
|
const num2 = new BigNumber(cur.weight || 0);
|
|
|
|
|
return num1.plus(num2).toNumber();
|
|
|
|
|
}, 0);
|
|
|
|
|
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
|
|
|
|
RecptInfo.value.weightSaved = val;
|
|
|
|
|
return val;
|
|
|
|
|
});
|
|
|
|
|
// const weight = computed(() => {
|
|
|
|
|
// const val = data.value.reduce((acc, cur) => {
|
|
|
|
|
// const num1 = new BigNumber(acc);
|
|
|
|
|
// const num2 = new BigNumber(cur.weight || 0);
|
|
|
|
|
// return num1.plus(num2).toNumber();
|
|
|
|
|
// }, 0);
|
|
|
|
|
// // eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
|
|
|
|
// RecptInfo.value.weightSaved = val;
|
|
|
|
|
// return val;
|
|
|
|
|
// });
|
|
|
|
|
// function deptSelect(_val, item) {
|
|
|
|
|
// // console.log(_val, item, '11');
|
|
|
|
|
// salesUser(_val);
|
|
|
|
|
|