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() {
const newRow = { try {
orderNumber: '', if (!this.$route.query.orderId) {
major: '', const result = await getEquipmentAddIdApi()
mainProcess: '', this.orderId = result.data.id
subProcess: '', this.$router.replace({
mainCategory: '', query: {
subCategory: '', orderId: result.data.id,
branch: '', isAddVisible: this.isAddVisible,
name: '', isApprovalVisible: this.isApprovalVisible,
specificationModel: '', },
originalCode: '', })
unit: '', }
manufacturer: '', const newRow = {
productionDate: '', orderNumber: this.orderNumber,
originalValue: '', major: '', //
province: '', process: [], //
appearanceImages: [], category: [], //
certificates: [], name: '', //
inspectionReports: [], specificationModel: '', //
purchaseInvoices: [], 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 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"