|
|
@ -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()
|
|
|
|