This commit is contained in:
parent
d2c4e2c65f
commit
8e870faf5f
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue