|
|
|
|
@ -76,11 +76,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="12">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.deviceBrand')" prop="deviceBrand">
|
|
|
|
|
<el-input v-model="formData.deviceBrand" placeholder="请输入品牌" />
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.factoryEntryDate')" prop="factoryEntryDate">
|
|
|
|
|
<el-date-picker v-model="formData.factoryEntryDate" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderFactoryEntryDate')" class="!w-full" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="24">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.deviceModel')" prop="deviceModel">
|
|
|
|
|
<el-input v-model="formData.deviceModel" :placeholder="t('EquipmentManagement.EquipmentLedger.placeholderDeviceModel')" />
|
|
|
|
|
@ -115,6 +116,13 @@
|
|
|
|
|
-->
|
|
|
|
|
<!-- </el-form-item>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.outgoingTime')" prop="outgoingTime">
|
|
|
|
|
<el-date-picker v-model="formData.outgoingTime" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderOutgoingTime')" class="!w-full" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.isSchedueld')" prop="isScheduled">
|
|
|
|
|
<el-switch v-model="formData.isScheduled" :active-value="1" :inactive-value="0"
|
|
|
|
|
@ -123,16 +131,17 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.productionDate')" prop="productionDate">
|
|
|
|
|
<el-date-picker v-model="formData.productionDate" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderProductionDate')" class="!w-full" />
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.deviceBrand')" prop="deviceBrand">
|
|
|
|
|
<el-input v-model="formData.deviceBrand"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderDeviceBrand')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.factoryEntryDate')" prop="factoryEntryDate">
|
|
|
|
|
<el-date-picker v-model="formData.factoryEntryDate" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderFactoryEntryDate')" class="!w-full" />
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.sn')" prop="sn">
|
|
|
|
|
<el-input v-model="formData.sn"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderSn')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
@ -497,6 +506,7 @@ const initFormData = () => ({
|
|
|
|
|
deviceName: undefined,
|
|
|
|
|
deviceStatus: undefined,
|
|
|
|
|
deviceBrand: undefined,
|
|
|
|
|
sn: undefined,
|
|
|
|
|
deviceModel: undefined,
|
|
|
|
|
deviceSpec: undefined,
|
|
|
|
|
isScheduled: 0,
|
|
|
|
|
@ -509,6 +519,7 @@ const initFormData = () => ({
|
|
|
|
|
systemOrg: undefined,
|
|
|
|
|
deviceManagerIds: [] as number[],
|
|
|
|
|
productionDate: undefined,
|
|
|
|
|
outgoingTime: undefined,
|
|
|
|
|
factoryEntryDate: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
componentIds: [] as number[],
|
|
|
|
|
@ -698,6 +709,8 @@ const buildPrintData = () => {
|
|
|
|
|
deviceName: formData.value.deviceName,
|
|
|
|
|
deviceSpec: formData.value.deviceSpec,
|
|
|
|
|
deviceBrand: formData.value.deviceBrand,
|
|
|
|
|
sn: formData.value.sn,
|
|
|
|
|
outgoingTime: formData.value.outgoingTime,
|
|
|
|
|
deviceModel: formData.value.deviceModel,
|
|
|
|
|
deviceLocation: formData.value.deviceLocation,
|
|
|
|
|
remark: formData.value.remark,
|
|
|
|
|
@ -762,6 +775,7 @@ const open = async (type: string, id?: number, defaultDeviceTypeId?: number, def
|
|
|
|
|
deviceLine: normalizeNumberish((detail as any)?.deviceLine),
|
|
|
|
|
deviceManagerIds: parseIdsValue((detail as any)?.deviceManager),
|
|
|
|
|
productionDate: normalizeYmd((detail as any)?.productionDate),
|
|
|
|
|
outgoingTime: normalizeYmd((detail as any)?.outgoingTime),
|
|
|
|
|
factoryEntryDate: normalizeYmd((detail as any)?.factoryEntryDate),
|
|
|
|
|
componentIds: parseIdsValue((detail as any)?.componentId),
|
|
|
|
|
beijianIds: parseIdsValue((detail as any)?.beijianId),
|
|
|
|
|
@ -996,6 +1010,7 @@ const submitForm = async () => {
|
|
|
|
|
deviceType: normalizeNumberish(formData.value.deviceType),
|
|
|
|
|
deviceLine: normalizeNumberish((formData.value as any).deviceLine),
|
|
|
|
|
productionDate: normalizeYmd(formData.value.productionDate),
|
|
|
|
|
outgoingTime: normalizeYmd((formData.value as any).outgoingTime),
|
|
|
|
|
factoryEntryDate: normalizeYmd(formData.value.factoryEntryDate),
|
|
|
|
|
deviceManager: formData.value.deviceManagerIds?.length ? formData.value.deviceManagerIds.join(',') : undefined,
|
|
|
|
|
componentId: formData.value.componentIds?.length ? formData.value.componentIds.join(',') : undefined,
|
|
|
|
|
|