购置批次增加点击跳转

This commit is contained in:
bb_pan 2025-03-26 14:05:56 +08:00
parent 0cd1273e59
commit 1a9253c6a4
3 changed files with 23 additions and 6 deletions

View File

@ -70,11 +70,17 @@
<el-table-column label="设备编号" align="center" prop="maCode" sortable show-overflow-tooltip/>
<el-table-column label="设备状态" align="center" prop="statusName" sortable show-overflow-tooltip/>
<el-table-column label="固定资产编号" align="center" prop="assetsCode" sortable show-overflow-tooltip/>
<el-table-column label="设备原编号" align="center" prop="preCode" sortable show-overflow-tooltip/>
<el-table-column label="购置批次" align="center" prop="buyTask" sortable show-overflow-tooltip/>
<el-table-column label="设备原值" align="center" prop="buyPrice" sortable show-overflow-tooltip/>
<el-table-column label="购置批次" align="center" prop="buyTask" sortable show-overflow-tooltip>
<template slot-scope="{ row }">
<span style="color:blue; cursor: pointer" @click="handleViewBuyTask(row)">
{{ row.buyTask }}
</span>
</template>
</el-table-column>
<el-table-column label="绑定标签" align="center" prop="qrCode" sortable show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.qrCode!=null" style="color:blue" @click="handleViewQrCode(scope.row)">
<span v-if="scope.row.qrCode!=null" style="color:blue; cursor: pointer" @click="handleViewQrCode(scope.row)">
{{ "查看" }}
</span>
<span v-else>
@ -82,7 +88,7 @@
</span>
</template>
</el-table-column>
<el-table-column label="所在仓库" align="center" prop="ownHouse" sortable show-overflow-tooltip/>
<!-- <el-table-column label="所在仓库" align="center" prop="ownHouse" sortable show-overflow-tooltip/> -->
<el-table-column label="操作" align="center" width="180">
<template slot-scope="scope">
<el-button
@ -692,6 +698,14 @@
})
}
},
handleViewBuyTask(row) {
this.$router.push({
path: '/purchase/goodsEntry',
query: {
buyTask: row.buyTask
}
})
}
// handleExport() {

View File

@ -552,9 +552,9 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="抽检比例(%)" prop="name11">
<el-form-item label="抽检比例(%)" prop="samplingRatio">
<el-input
v-model="form.name11"
v-model="form.samplingRatio"
type="number" :min="0"
placeholder="请输入"
maxlength="20"

View File

@ -269,6 +269,9 @@ export default {
if (this.$route.query.code) {
this.queryParams.keyWord = this.$route.query.code
}
if (this.$route.query.buyTask) {
this.queryParams.keyWord = this.$route.query.buyTask
}
this.getList()
},
methods: {