|
|
|
@ -18,7 +18,8 @@
|
|
|
|
|
<vxe-grid ref="xGrid" v-bind="gridOptions" />
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane key="recordTab" tab="车辆进出记录">
|
|
|
|
|
<WmsTruckRecord ref="recordRef" :headId="rowId" />
|
|
|
|
|
<!-- <WmsTruckRecord ref="recordRef" :headId="rowId" />-->
|
|
|
|
|
<vxe-grid ref="recordGrid" v-bind="recordOptions" />
|
|
|
|
|
</TabPane>
|
|
|
|
|
</Tabs>
|
|
|
|
|
</CollapseContainer>
|
|
|
|
@ -60,6 +61,7 @@
|
|
|
|
|
import WmsTruckRecord from '/@/views/wms/common/WmsTruckRecord.vue'
|
|
|
|
|
import {Divider, TabPane, Tabs} from 'ant-design-vue'
|
|
|
|
|
import { CollapseContainer } from '/@/components/Container'
|
|
|
|
|
import {getTruckRecordList} from "/@/views/wms/common/api";
|
|
|
|
|
// 声明Emits
|
|
|
|
|
const emit = defineEmits(['change', 'update:value', 'success', 'register'])
|
|
|
|
|
const isUpdate = ref(true)
|
|
|
|
@ -68,6 +70,7 @@
|
|
|
|
|
const billStatus = ref(0)
|
|
|
|
|
const storeHouse = ref('')
|
|
|
|
|
const dataSource = ref<any[]>([])
|
|
|
|
|
const recordSource = ref<any[]>([])
|
|
|
|
|
const areaList = ref<any[]>([])
|
|
|
|
|
const activeKey = ref('detailTab')
|
|
|
|
|
const [registerForm, { resetFields, setFieldsValue, validate, updateSchema, getFieldsValue }] =
|
|
|
|
@ -80,7 +83,7 @@
|
|
|
|
|
resetFields()
|
|
|
|
|
setModalProps({ confirmLoading: false, loading: true })
|
|
|
|
|
isUpdate.value = !!data?.isUpdate
|
|
|
|
|
activeKey.value = 'recordTab'
|
|
|
|
|
activeKey.value = 'detailTab'
|
|
|
|
|
if (unref(isUpdate)) {
|
|
|
|
|
// setModalProps({ confirmLoading: true });
|
|
|
|
|
rowId.value = data.record.wmsplanid
|
|
|
|
@ -202,6 +205,51 @@
|
|
|
|
|
toolbarConfig: {},
|
|
|
|
|
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() {
|
|
|
|
|
// const { summaryFunc, summaryData } = props;
|
|
|
|
|
const res: API.DataResult = await getWmsOutPlanGoodslist({ id: unref(rowId) })
|
|
|
|
@ -212,11 +260,18 @@
|
|
|
|
|
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) ? '预约出库-新增' : '预约出库-审批'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function handleAudit() {
|
|
|
|
|
try {
|
|
|
|
|
const values = await validate()
|
|
|
|
|