This commit is contained in:
parent
e8c14c01d8
commit
b264c3d060
|
|
@ -866,6 +866,9 @@ export default {
|
||||||
// 获取 任务详情数据
|
// 获取 任务详情数据
|
||||||
async GetViewByApply(params) {
|
async GetViewByApply(params) {
|
||||||
const res = await getBackApplyInfo(this.rowId)
|
const res = await getBackApplyInfo(this.rowId)
|
||||||
|
if (res.msg) {
|
||||||
|
this.$message.warning(res.msg)
|
||||||
|
}
|
||||||
console.log(res)
|
console.log(res)
|
||||||
const data = res.data
|
const data = res.data
|
||||||
this.queryParams.unitId = data.backApplyInfo.unitId
|
this.queryParams.unitId = data.backApplyInfo.unitId
|
||||||
|
|
@ -1103,6 +1106,7 @@ export default {
|
||||||
typeId: typeId
|
typeId: typeId
|
||||||
}
|
}
|
||||||
await getMachineById(param).then(res => {
|
await getMachineById(param).then(res => {
|
||||||
|
console.log('🚀 ~ awaitgetMachineById ~ res.data:', res.data)
|
||||||
this.machineList = res.data
|
this.machineList = res.data
|
||||||
this.machineList.forEach(item => {
|
this.machineList.forEach(item => {
|
||||||
item.bmFileInfos = []
|
item.bmFileInfos = []
|
||||||
|
|
@ -1119,20 +1123,16 @@ export default {
|
||||||
console.log(this.maCodeList)
|
console.log(this.maCodeList)
|
||||||
console.log(this.machineList)
|
console.log(this.machineList)
|
||||||
if (this.rowId != '') {
|
if (this.rowId != '') {
|
||||||
// //编辑插入已选数据后再回显勾选
|
|
||||||
this.rowData.tempMaCodeList.forEach(item => {
|
|
||||||
this.machineList.unshift(item) //插入
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.$refs.codeTableList.toggleRowSelection(item, true)
|
|
||||||
// })
|
|
||||||
})
|
|
||||||
this.maCodeList = this.rowData.maCodeList
|
this.maCodeList = this.rowData.maCodeList
|
||||||
|
console.log('🚀 ~ 编辑 ~ this.maCodeList:', this.maCodeList)
|
||||||
this.machineList.forEach(item => {
|
this.machineList.forEach(item => {
|
||||||
this.maCodeList.forEach(sub => {
|
this.maCodeList.forEach(sub => {
|
||||||
if (sub.maId == item.maId) {
|
if (sub.maId == item.maId) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
setTimeout(() => {
|
||||||
this.$refs.codeTableList.toggleRowSelection(item, true)
|
this.$refs.codeTableList.toggleRowSelection(item, true)
|
||||||
item.apDetection = sub.apDetection
|
item.apDetection = sub.apDetection
|
||||||
|
}, 200)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -42,31 +42,42 @@
|
||||||
<span v-else>{{ (queryParams.pageNum - 1) * 10 + scope.$index }}</span>
|
<span v-else>{{ (queryParams.pageNum - 1) * 10 + scope.$index }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="单位名称" align="center" prop="" show-overflow-tooltip />
|
<el-table-column label="单位名称" align="center" prop="backUnit" show-overflow-tooltip />
|
||||||
<el-table-column label="工程名称" align="center" prop="" show-overflow-tooltip />
|
<el-table-column label="工程名称" align="center" prop="backPro" show-overflow-tooltip />
|
||||||
<el-table-column label="物资名称" align="center" prop="typeName" show-overflow-tooltip />
|
<el-table-column label="物资名称" align="center" prop="typeName" show-overflow-tooltip />
|
||||||
<el-table-column label="规格型号" align="center" prop="typeModelName" show-overflow-tooltip />
|
<el-table-column label="规格型号" align="center" prop="typeModelName" show-overflow-tooltip />
|
||||||
<el-table-column label="计量单位" align="center" prop="unitName" show-overflow-tooltip />
|
<el-table-column label="计量单位" align="center" prop="unitName" show-overflow-tooltip />
|
||||||
<el-table-column label="设备编号" align="center" prop="" show-overflow-tooltip />
|
<el-table-column label="设备编号" align="center" prop="maCode" show-overflow-tooltip />
|
||||||
<el-table-column label="报废数量" align="center" prop="scrapNum" show-overflow-tooltip>
|
<el-table-column label="报废数量" align="center" prop="scrapNum" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">
|
||||||
<!-- 当 manageType 为 '编码' 时,使用可点击的 span -->
|
|
||||||
<span class="clickText" v-if="scope.row.manageType == '0'" @click="openRecords(scope.row)">
|
<span class="clickText" v-if="scope.row.manageType == '0'" @click="openRecords(scope.row)">
|
||||||
{{ scope.row.scrapNum }}
|
{{ scope.row.scrapNum }}
|
||||||
</span>
|
</span>
|
||||||
<!-- 否则,直接显示数字 -->
|
|
||||||
<span v-else>
|
<span v-else>
|
||||||
{{ scope.row.scrapNum }}
|
{{ scope.row.scrapNum }}
|
||||||
</span>
|
</span>
|
||||||
|
</template> -->
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="报废费用" align="center" prop="scrapPrice" show-overflow-tooltip />
|
||||||
|
<el-table-column label="报废原因" align="center" prop="scrapReason" show-overflow-tooltip />
|
||||||
|
<el-table-column label="报废图片" align="center" prop="fileList" show-overflow-tooltip>
|
||||||
|
<template slot-scope="{ row }">
|
||||||
|
<div style="width: 30; height: 30px;">
|
||||||
|
<el-image
|
||||||
|
v-for="(item, index) in row.fileList"
|
||||||
|
:key="index"
|
||||||
|
:src="item.url"
|
||||||
|
style="width: 30px; height: 30px; margin-right: 10px"
|
||||||
|
fit="cover"
|
||||||
|
:preview-src-list="[item.url]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="报废费用" align="center" prop="" show-overflow-tooltip />
|
|
||||||
<el-table-column label="报废原因" align="center" prop="" show-overflow-tooltip />
|
|
||||||
<el-table-column label="报废图片" align="center" prop="" show-overflow-tooltip />
|
|
||||||
<el-table-column label="报废类型" align="center" prop="scrapType" show-overflow-tooltip />
|
<el-table-column label="报废类型" align="center" prop="scrapType" show-overflow-tooltip />
|
||||||
<el-table-column label="报废单号" align="center" prop="scrapCode" show-overflow-tooltip />
|
<el-table-column label="报废单号" align="center" prop="scrapCode" show-overflow-tooltip />
|
||||||
<el-table-column label="报废人员" align="center" prop="scrapPersonName" show-overflow-tooltip />
|
<el-table-column label="报废人员" align="center" prop="scrapPersonName" show-overflow-tooltip />
|
||||||
<el-table-column label="报废时间" align="center" prop="" show-overflow-tooltip />
|
<el-table-column label="报废时间" align="center" prop="scrapTime" show-overflow-tooltip />
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue