Merge branch 'release'

This commit is contained in:
liufu 2023-02-10 10:37:44 +08:00
commit fba8108d91
3 changed files with 47 additions and 5 deletions

View file

@ -741,7 +741,6 @@ namespace ModernWMS.WMS.Services
} }
if (d.lock_qty < d.qty) if (d.lock_qty < d.qty)
{ {
d.qty = d.qty - d.lock_qty;
new_dispatchlists.Add(new DispatchlistEntity new_dispatchlists.Add(new DispatchlistEntity
{ {
sku_id = vm.sku_id, sku_id = vm.sku_id,
@ -749,6 +748,7 @@ namespace ModernWMS.WMS.Services
qty = d.qty - d.lock_qty, qty = d.qty - d.lock_qty,
tenant_id = currentUser.tenant_id tenant_id = currentUser.tenant_id
}); });
d.qty = d.lock_qty;
} }
} }
else else

View file

@ -0,0 +1,24 @@
<template>
<div v-if="props.value" class="checkbox checkboxConfirm" @click="method.clickCheckBox()">
<v-icon style="font-size: 12px"> mdi-check </v-icon>
</div>
<div v-else class="checkbox" @click="method.clickCheckBox()"></div>
</template>
<script lang="ts" setup>
import { reactive } from 'vue'
const emit = defineEmits(['update:value'])
const props = defineProps<{
value: boolean
}>()
const method = reactive({
clickCheckBox: () => {
emit('update:value', !props.value)
}
})
</script>
<style scoped lang="less"></style>

View file

@ -1,5 +1,5 @@
<template> <template>
<v-dialog v-model="isShow" :width="'70%'" transition="dialog-top-transition" :persistent="true"> <v-dialog v-model="isShow" :width="'80%'" transition="dialog-top-transition" :persistent="true">
<template #default> <template #default>
<v-card class="formCard"> <v-card class="formCard">
<v-toolbar color="white" :title="`${$t('wms.deliveryManagement.confirmOrder')}`"></v-toolbar> <v-toolbar color="white" :title="`${$t('wms.deliveryManagement.confirmOrder')}`"></v-toolbar>
@ -11,7 +11,7 @@
keep-source keep-source
:column-config="{ minWidth: '100px' }" :column-config="{ minWidth: '100px' }"
:data="data.treeData" :data="data.treeData"
:height="'500px'" :height="'600px'"
align="center" align="center"
:cell-style="method.cellStyle" :cell-style="method.cellStyle"
@cell-click="method.cellClick" @cell-click="method.cellClick"
@ -23,7 +23,8 @@
<vxe-column width="40"> <vxe-column width="40">
<template #default="{ row }"> <template #default="{ row }">
<div style="height: 100%; display: flex; align-items: center; justify-content: center"> <div style="height: 100%; display: flex; align-items: center; justify-content: center">
<vxe-checkbox v-model="row.confirm"></vxe-checkbox> <!-- <input v-model="row.confirm" class="checkboxClass" type="checkbox" /> -->
<CustomCheckbox v-model:value="row.confirm" />
</div> </div>
</template> </template>
</vxe-column> </vxe-column>
@ -34,6 +35,7 @@
<span :style="data.validList.includes(row.sku_code) ? 'color: red' : ''">{{ row.sku_code }}</span> <span :style="data.validList.includes(row.sku_code) ? 'color: red' : ''">{{ row.sku_code }}</span>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="qty" :title="$t('wms.deliveryManagement.qty')"> </vxe-column>
</vxe-table> </vxe-table>
<!-- <v-card :height="tableHeight"> --> <!-- <v-card :height="tableHeight"> -->
<!-- <NavListVue <!-- <NavListVue
@ -52,7 +54,7 @@
keep-source keep-source
:column-config="{ minWidth: '100px' }" :column-config="{ minWidth: '100px' }"
:data="data.tableData" :data="data.tableData"
:height="'500px'" :height="'600px'"
align="center" align="center"
:edit-config="{ trigger: 'click', mode: 'cell' }" :edit-config="{ trigger: 'click', mode: 'cell' }"
:edit-rules="data.validRules" :edit-rules="data.validRules"
@ -90,6 +92,7 @@ import i18n from '@/languages/i18n'
import { getConfirmOrderInfoAndStock, confirmOrder } from '@/api/wms/deliveryManagement' import { getConfirmOrderInfoAndStock, confirmOrder } from '@/api/wms/deliveryManagement'
import { hookComponent } from '@/components/system/index' import { hookComponent } from '@/components/system/index'
import { isInteger } from '@/utils/dataVerification/tableRule' import { isInteger } from '@/utils/dataVerification/tableRule'
import CustomCheckbox from '@/components/custom-checkbox.vue'
const xTable = ref() const xTable = ref()
const detailXTable = ref() const detailXTable = ref()
@ -251,4 +254,19 @@ watch(
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.checkbox {
width: 20px;
height: 20px;
background-color: #fff;
border-radius: 5px;
border: 1px solid #f8f8f9;
display: flex;
justify-content: center;
align-items: center;
}
.checkboxConfirm {
background-color: #409eff;
color: #fff;
border: 1px solid #409eff;
}
</style> </style>