This commit is contained in:
bb_pan 2025-12-10 10:36:05 +08:00
parent d2c4e2c65f
commit 8e870faf5f
25 changed files with 66 additions and 46 deletions

View File

@ -94,7 +94,7 @@
</el-row>
<!-- 表格 -->
<div >
<el-table :data="tableData" border stripe :span-method="handleSpanMethod" height="546">
<el-table ref="tableRef" :data="tableData" border stripe :span-method="handleSpanMethod" height="546">
<!-- <el-table :data="tableData" >-->
<el-table-column label="序号" align="center" width="55" type="index" />
<el-table-column prop="orderNumber" label="录入单号" align="center" show-overflow-tooltip column-key="orderNumber"

View File

@ -373,6 +373,7 @@ import {
equipmentPassAndRejectApiNew,
equipmentSubmitApiNew,
removeDeviceApi,
getEquipmentAddIdApi,
} from '@/api/EquipmentEntryApply'
import { getManufacturerSelectApi } from '@/api/EquipmentLedger/index.js'
import { getToken } from '@/utils/auth'
@ -439,6 +440,7 @@ export default {
pageNum: 1,
pageSize: 10,
},
orderNumber: '',
manufacturerList: [],
//
formData: {
@ -638,6 +640,7 @@ export default {
}
const orderNumber = row.orderNumber
this.orderNumber = orderNumber
let count = 1
// orderNumber
@ -729,29 +732,46 @@ export default {
importTemplate() {
this.download('/material-mall/order/template', {}, `装备信息导入模板_${new Date().getTime()}.xlsx`)
},
addList() {
const newRow = {
orderNumber: '',
major: '',
mainProcess: '',
subProcess: '',
mainCategory: '',
subCategory: '',
branch: '',
name: '',
specificationModel: '',
originalCode: '',
unit: '',
manufacturer: '',
productionDate: '',
originalValue: '',
province: '',
appearanceImages: [],
certificates: [],
inspectionReports: [],
purchaseInvoices: [],
async addList() {
try {
if (!this.$route.query.orderId) {
const result = await getEquipmentAddIdApi()
this.orderId = result.data.id
this.$router.replace({
query: {
orderId: result.data.id,
isAddVisible: this.isAddVisible,
isApprovalVisible: this.isApprovalVisible,
},
})
}
const newRow = {
orderNumber: this.orderNumber,
major: '', //
process: [], //
category: [], //
name: '', //
specificationModel: '', //
originalValue: '', //
productionDate: '', //
manufacturerId: '', //
originalCode: '', //
nextMaintenanceDate: '', //
maxServiceLifeYears: '', // 寿
manageType: '0', //
count: 1, //
unit: '', //
purchaseDate: '', //
appearanceImages: [], //
certificates: [], //
inspectionReports: [], //
purchaseInvoices: [], //
propertyVoList: [], //
}
this.tableData.unshift(newRow)
} catch (error) {
console.log('🚀 ~ error:', error)
}
this.tableData.unshift(newRow)
},
},
}

View File

@ -39,7 +39,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -38,7 +38,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -38,7 +38,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -38,7 +38,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -38,7 +38,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -158,7 +158,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -45,7 +45,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -39,7 +39,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -33,7 +33,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -187,7 +187,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -45,7 +45,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -33,7 +33,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -187,7 +187,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -39,7 +39,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -33,7 +33,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"

View File

@ -20,7 +20,7 @@
highlight-current-row
style="width: 100%"
height="546"
class="table-container"
>
<el-table-column
type="index"