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> </el-row>
<!-- 表格 --> <!-- 表格 -->
<div > <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 :data="tableData" >-->
<el-table-column label="序号" align="center" width="55" type="index" /> <el-table-column label="序号" align="center" width="55" type="index" />
<el-table-column prop="orderNumber" label="录入单号" align="center" show-overflow-tooltip column-key="orderNumber" <el-table-column prop="orderNumber" label="录入单号" align="center" show-overflow-tooltip column-key="orderNumber"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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