后台磅重记录修改

dev
ZR20090193-陈敬勇 2 years ago
parent 6a7f070768
commit 66e109e853

@ -46,7 +46,7 @@
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
max: 100, max: 1000,
splitNumber: 4, splitNumber: 4,
axisTick: { axisTick: {
show: false, show: false,

@ -27,7 +27,7 @@
<vxe-column field="id" title="id" :visible="false" /> <vxe-column field="id" title="id" :visible="false" />
<vxe-column field="wmsplanid" title="wmsplanid" :visible="false" /> <vxe-column field="wmsplanid" title="wmsplanid" :visible="false" />
<vxe-column field="recordTime" title="记录时间" width="200" /> <vxe-column field="recordTime" title="记录时间" width="200" />
<vxe-column field="recordType" title="记录类型" width="100" /> <vxe-column field="recordTypeName" title="记录类型" width="100" />
<vxe-column field="truckno" title="车牌号" width="100" /> <vxe-column field="truckno" title="车牌号" width="100" />
<vxe-column field="boxNo" title="箱号" width="200" /> <vxe-column field="boxNo" title="箱号" width="200" />
<vxe-column field="weigth" title="磅重" width="100" /> <vxe-column field="weigth" title="磅重" width="100" />

@ -18,7 +18,8 @@
<vxe-grid ref="xGrid" v-bind="gridOptions" /> <vxe-grid ref="xGrid" v-bind="gridOptions" />
</TabPane> </TabPane>
<TabPane key="recordTab" tab="车辆进出记录"> <TabPane key="recordTab" tab="车辆进出记录">
<WmsTruckRecord ref="recordRef" :headId="rowId" /> <!-- <WmsTruckRecord ref="recordRef" :headId="rowId" />-->
<vxe-grid ref="recordGrid" v-bind="recordOptions" />
</TabPane> </TabPane>
</Tabs> </Tabs>
</CollapseContainer> </CollapseContainer>
@ -59,6 +60,7 @@
import WmsTruckRecord from '/@/views/wms/common/WmsTruckRecord.vue' import WmsTruckRecord from '/@/views/wms/common/WmsTruckRecord.vue'
import { CollapseContainer } from '/@/components/Container' import { CollapseContainer } from '/@/components/Container'
import chapter from '/@/utils/chapter' import chapter from '/@/utils/chapter'
import {getTruckRecordList} from "/@/views/wms/common/api";
// Emits // Emits
const emit = defineEmits(['change', 'update:value', 'success', 'register']) const emit = defineEmits(['change', 'update:value', 'success', 'register'])
const isUpdate = ref(true) const isUpdate = ref(true)
@ -67,6 +69,7 @@
const billStatus = ref(0) const billStatus = ref(0)
const storeHouse = ref('') const storeHouse = ref('')
const dataSource = ref<any[]>([]) const dataSource = ref<any[]>([])
const recordSource = ref<any[]>([])
const areaList = ref<any[]>([]) const areaList = ref<any[]>([])
const activeKey = ref('detailTab') const activeKey = ref('detailTab')
const [registerForm, { resetFields, setFieldsValue, validate, updateSchema, getFieldsValue }] = const [registerForm, { resetFields, setFieldsValue, validate, updateSchema, getFieldsValue }] =
@ -80,7 +83,7 @@
setModalProps({ confirmLoading: false, loading: true }) setModalProps({ confirmLoading: false, loading: true })
isUpdate.value = !!data?.isUpdate isUpdate.value = !!data?.isUpdate
// console.log(data.record) // console.log(data.record)
activeKey.value = 'recordTab' activeKey.value = 'detailTab'
if (unref(isUpdate)) { if (unref(isUpdate)) {
// setModalProps({ confirmLoading: true }); // setModalProps({ confirmLoading: true });
rowId.value = data.record.wmsplanid rowId.value = data.record.wmsplanid
@ -205,6 +208,52 @@
toolbarConfig: {}, toolbarConfig: {},
data: dataSource, data: dataSource,
}) })
const recordOptions = reactive<VxeGridProps>({
border: true,
height: 500,
align: null,
columnConfig: {
resizable: true,
},
columns: [
{
title: '序号',
type: 'seq',
fixed: 'left',
width: 50,
align: 'center',
},
{
title: '记录时间',
field: 'recordTime',
width: 200,
fixed: 'left',
},
{
title: '记录类型',
field: 'recordTypeName',
width: 100,
},
{
title: '车牌号',
field: 'truckno',
width: 100,
},
{
title: '箱号',
field: 'boxNo',
width: 200,
},
{
title: '磅重',
field: 'weigth',
width: 100,
},
],
toolbarConfig: {},
data: recordSource,
})
async function loadListData() { async function loadListData() {
// const { summaryFunc, summaryData } = props; // const { summaryFunc, summaryData } = props;
const res: API.DataResult = await getDetailList({ id: unref(rowId) }) const res: API.DataResult = await getDetailList({ id: unref(rowId) })
@ -215,6 +264,14 @@
dataSource.value = [] dataSource.value = []
} }
console.log(dataSource.value) console.log(dataSource.value)
const records: API.DataResult = await getTruckRecordList({ id: unref(rowId) })
// console.log(res)
if (records.succeeded) {
recordSource.value = records.data
} else {
recordSource.value = []
}
} }
const getTitle = computed(() => (!unref(isUpdate) ? '预约清关-新增' : '预约清关-审批')) const getTitle = computed(() => (!unref(isUpdate) ? '预约清关-新增' : '预约清关-审批'))

@ -51,7 +51,8 @@
<vxe-grid ref="feeGrid" v-bind="feeOptions" /> <vxe-grid ref="feeGrid" v-bind="feeOptions" />
</TabPane> </TabPane>
<TabPane key="recordTab" tab="车辆进出记录"> <TabPane key="recordTab" tab="车辆进出记录">
<WmsTruckRecord ref="recordRef" :headId="rowId" /> <!-- <WmsTruckRecord ref="recordRef" :headId="rowId" />-->
<vxe-grid ref="recordGrid" v-bind="recordOptions" />
</TabPane> </TabPane>
</Tabs> </Tabs>
</CollapseContainer> </CollapseContainer>
@ -102,6 +103,7 @@
import { get } from 'lodash-es' import { get } from 'lodash-es'
import WmsFeeRateModal from './WmsFeeRateModal.vue' import WmsFeeRateModal from './WmsFeeRateModal.vue'
import WmsTruckRecord from '/@/views/wms/common/WmsTruckRecord.vue' import WmsTruckRecord from '/@/views/wms/common/WmsTruckRecord.vue'
import {getTruckRecordList} from "/@/views/wms/common/api";
// Emits // Emits
const emit = defineEmits(['change', 'update:value', 'success', 'register']) const emit = defineEmits(['change', 'update:value', 'success', 'register'])
const isUpdate = ref(true) const isUpdate = ref(true)
@ -109,6 +111,7 @@
const rowId = ref('') const rowId = ref('')
const billStatus = ref(0) const billStatus = ref(0)
const dataSource = ref<any[]>([]) const dataSource = ref<any[]>([])
const recordSource = ref<any[]>([])
const feeSource = ref<any[]>([]) const feeSource = ref<any[]>([])
const activeKey = ref('detailTab') const activeKey = ref('detailTab')
const activeMainKey = ref('mainTab') const activeMainKey = ref('mainTab')
@ -128,7 +131,7 @@
resetFields() resetFields()
setModalProps({ confirmLoading: false, loading: true }) setModalProps({ confirmLoading: false, loading: true })
isUpdate.value = !!data?.isUpdate isUpdate.value = !!data?.isUpdate
activeKey.value = 'recordTab' activeKey.value = 'detailTab'
if (unref(isUpdate)) { if (unref(isUpdate)) {
// setModalProps({ confirmLoading: true }); // setModalProps({ confirmLoading: true });
rowId.value = data.record.wmsplanid rowId.value = data.record.wmsplanid
@ -196,8 +199,59 @@
} else { } else {
feeSource.value = [] feeSource.value = []
} }
console.log(dataSource.value) const records: API.DataResult = await getTruckRecordList({ id: unref(rowId) })
// console.log(res)
if (records.succeeded) {
recordSource.value = records.data
} else {
recordSource.value = []
}
} }
const recordOptions = reactive<VxeGridProps>({
border: true,
height: 500,
align: null,
columnConfig: {
resizable: true,
},
columns: [
{
title: '序号',
type: 'seq',
fixed: 'left',
width: 50,
align: 'center',
},
{
title: '记录时间',
field: 'recordTime',
width: 200,
fixed: 'left',
},
{
title: '记录类型',
field: 'recordTypeName',
width: 100,
},
{
title: '车牌号',
field: 'truckno',
width: 100,
},
{
title: '箱号',
field: 'boxNo',
width: 200,
},
{
title: '磅重',
field: 'weigth',
width: 100,
},
],
toolbarConfig: {},
data: recordSource,
})
const gridOptions = reactive<VxeGridProps>({ const gridOptions = reactive<VxeGridProps>({
border: true, border: true,
height: 500, height: 500,

@ -18,7 +18,8 @@
<vxe-grid ref="xGrid" v-bind="gridOptions" /> <vxe-grid ref="xGrid" v-bind="gridOptions" />
</TabPane> </TabPane>
<TabPane key="recordTab" tab="车辆进出记录"> <TabPane key="recordTab" tab="车辆进出记录">
<WmsTruckRecord ref="recordRef" :headId="rowId" /> <!-- <WmsTruckRecord ref="recordRef" :headId="rowId" />-->
<vxe-grid ref="recordGrid" v-bind="recordOptions" />
</TabPane> </TabPane>
</Tabs> </Tabs>
</CollapseContainer> </CollapseContainer>
@ -60,6 +61,7 @@
import WmsTruckRecord from '/@/views/wms/common/WmsTruckRecord.vue' import WmsTruckRecord from '/@/views/wms/common/WmsTruckRecord.vue'
import {Divider, TabPane, Tabs} from 'ant-design-vue' import {Divider, TabPane, Tabs} from 'ant-design-vue'
import { CollapseContainer } from '/@/components/Container' import { CollapseContainer } from '/@/components/Container'
import {getTruckRecordList} from "/@/views/wms/common/api";
// Emits // Emits
const emit = defineEmits(['change', 'update:value', 'success', 'register']) const emit = defineEmits(['change', 'update:value', 'success', 'register'])
const isUpdate = ref(true) const isUpdate = ref(true)
@ -68,6 +70,7 @@
const billStatus = ref(0) const billStatus = ref(0)
const storeHouse = ref('') const storeHouse = ref('')
const dataSource = ref<any[]>([]) const dataSource = ref<any[]>([])
const recordSource = ref<any[]>([])
const areaList = ref<any[]>([]) const areaList = ref<any[]>([])
const activeKey = ref('detailTab') const activeKey = ref('detailTab')
const [registerForm, { resetFields, setFieldsValue, validate, updateSchema, getFieldsValue }] = const [registerForm, { resetFields, setFieldsValue, validate, updateSchema, getFieldsValue }] =
@ -80,7 +83,7 @@
resetFields() resetFields()
setModalProps({ confirmLoading: false, loading: true }) setModalProps({ confirmLoading: false, loading: true })
isUpdate.value = !!data?.isUpdate isUpdate.value = !!data?.isUpdate
activeKey.value = 'recordTab' activeKey.value = 'detailTab'
if (unref(isUpdate)) { if (unref(isUpdate)) {
// setModalProps({ confirmLoading: true }); // setModalProps({ confirmLoading: true });
rowId.value = data.record.wmsplanid rowId.value = data.record.wmsplanid
@ -202,6 +205,51 @@
toolbarConfig: {}, toolbarConfig: {},
data: dataSource, data: dataSource,
}) })
const recordOptions = reactive<VxeGridProps>({
border: true,
height: 500,
align: null,
columnConfig: {
resizable: true,
},
columns: [
{
title: '序号',
type: 'seq',
fixed: 'left',
width: 50,
align: 'center',
},
{
title: '记录时间',
field: 'recordTime',
width: 200,
fixed: 'left',
},
{
title: '记录类型',
field: 'recordTypeName',
width: 100,
},
{
title: '车牌号',
field: 'truckno',
width: 100,
},
{
title: '箱号',
field: 'boxNo',
width: 200,
},
{
title: '磅重',
field: 'weigth',
width: 100,
},
],
toolbarConfig: {},
data: recordSource,
})
async function loadListData() { async function loadListData() {
// const { summaryFunc, summaryData } = props; // const { summaryFunc, summaryData } = props;
const res: API.DataResult = await getWmsOutPlanGoodslist({ id: unref(rowId) }) const res: API.DataResult = await getWmsOutPlanGoodslist({ id: unref(rowId) })
@ -212,11 +260,18 @@
dataSource.value = [] dataSource.value = []
} }
console.log(dataSource.value) console.log(dataSource.value)
const records: API.DataResult = await getTruckRecordList({ id: unref(rowId) })
// console.log(res)
if (records.succeeded) {
recordSource.value = records.data
} else {
recordSource.value = []
}
} }
const getTitle = computed(() => (!unref(isUpdate) ? '预约出库-新增' : '预约出库-审批')) const getTitle = computed(() => (!unref(isUpdate) ? '预约出库-新增' : '预约出库-审批'))
async function handleAudit() { async function handleAudit() {
try { try {
const values = await validate() const values = await validate()

@ -191,6 +191,13 @@
<param name="model"></param> <param name="model"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:DS.WMS.WebApi.Controllers.CommonController.GetTruckRecordList(System.String)">
<summary>
获取车号磅重箱号记录
</summary>
<param name="id"></param>
<returns></returns>
</member>
<member name="M:DS.WMS.WebApi.Controllers.CompanyController.#ctor(DS.WMS.Core.System.Interface.ICompanyService)"> <member name="M:DS.WMS.WebApi.Controllers.CompanyController.#ctor(DS.WMS.Core.System.Interface.ICompanyService)">
<summary> <summary>
构造函数 构造函数
@ -217,6 +224,36 @@
<param name="id"></param> <param name="id"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:DS.WMS.WebApi.Controllers.HomeController.#ctor(DS.WMS.Core.System.Interface.IHomeService)">
<summary>
构造函数
</summary>
<param name="invokeService"></param>
</member>
<member name="M:DS.WMS.WebApi.Controllers.HomeController.GetBusinessData">
<summary>
获取首页数据-业务数据
</summary>
<returns></returns>
</member>
<member name="M:DS.WMS.WebApi.Controllers.HomeController.GetGoodsData">
<summary>
商品品类
</summary>
<returns></returns>
</member>
<member name="M:DS.WMS.WebApi.Controllers.HomeController.GetWmsStoreData">
<summary>
园区告警
</summary>
<returns></returns>
</member>
<member name="M:DS.WMS.WebApi.Controllers.HomeController.GetBusinessTrendData">
<summary>
业务趋势
</summary>
<returns></returns>
</member>
<member name="T:DS.WMS.WebApi.Controllers.NoticeController"> <member name="T:DS.WMS.WebApi.Controllers.NoticeController">
<summary> <summary>
客户端公告模块 客户端公告模块

@ -5614,3 +5614,6 @@
2023-05-30 16:52:21.0531 Info Adding target ColoredConsoleTarget(Name=console) 2023-05-30 16:52:21.0531 Info Adding target ColoredConsoleTarget(Name=console)
2023-05-30 16:52:21.1108 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\sdgslk-wms-solution\gslk-wmsapi-service-client\DS.WMS.WebApi\bin\Debug\net6.0\nlog.config 2023-05-30 16:52:21.1108 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\sdgslk-wms-solution\gslk-wmsapi-service-client\DS.WMS.WebApi\bin\Debug\net6.0\nlog.config
2023-05-30 16:52:21.1249 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile 2023-05-30 16:52:21.1249 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2023-05-30 17:07:59.8058 Info Shutdown() called. Logger closing...
2023-05-30 17:07:59.8058 Info Closing old configuration.
2023-05-30 17:07:59.9249 Info Logger has been closed down.

@ -8580,3 +8580,13 @@
2023-05-30 14:01:17.4010 Info Shutdown() called. Logger closing... 2023-05-30 14:01:17.4010 Info Shutdown() called. Logger closing...
2023-05-30 14:01:17.4010 Info Closing old configuration. 2023-05-30 14:01:17.4010 Info Closing old configuration.
2023-05-30 14:01:17.4391 Info Logger has been closed down. 2023-05-30 14:01:17.4391 Info Logger has been closed down.
2023-05-30 17:39:18.3303 Info Message Template Auto Format enabled
2023-05-30 17:39:18.3668 Info Loading assembly: NLog.Web.AspNetCore
2023-05-30 17:39:18.6738 Info Adding target FileTarget(Name=allfile)
2023-05-30 17:39:18.6846 Info Adding target FileTarget(Name=ownFile-web)
2023-05-30 17:39:18.7240 Info Adding target ColoredConsoleTarget(Name=console)
2023-05-30 17:39:18.7770 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\sdgslk-wms-solution\gslk-wmsapi-service-server\DS.WMS.WebApi\bin\Debug\net6.0\nlog.config
2023-05-30 17:39:18.7770 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2023-05-30 18:04:00.1889 Info Shutdown() called. Logger closing...
2023-05-30 18:04:00.1889 Info Closing old configuration.
2023-05-30 18:04:00.2930 Info Logger has been closed down.

@ -13,5 +13,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishUrl>D:\Publish\GSLKServiceApi</PublishUrl> <PublishUrl>D:\Publish\GSLKServiceApi</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod> <WebPublishMethod>FileSystem</WebPublishMethod>
<_TargetId>Folder</_TargetId> <_TargetId>Folder</_TargetId>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<ProjectGuid>9bf88456-d3d9-4d55-bc93-1b5527aa6d6a</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup> </PropertyGroup>
</Project> </Project>
Loading…
Cancel
Save