|
|
|
|
@ -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"
|
|
|
|
|
@ -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);
|
|
|
|
|
|