Commit 172a22db authored by dragondean@qq.com's avatar dragondean@qq.com

完善路线列表和批量修改

parent 492ec523
This diff is collapsed.
......@@ -63,7 +63,7 @@
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['ecw:product-price:create']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-setting" size="mini" @click="handleEdit" :disabled="multiple" v-hasPermi="['ecw:product:attr']">批量设置路线</el-button>
<el-button type="primary" plain icon="el-icon-setting" size="mini" @click="handleBatchEdit" :disabled="multiple" v-hasPermi="['ecw:product:attr']">批量设置路线</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
......@@ -78,31 +78,31 @@
<el-table-column label="序号" prop="id" width="50" />
<el-table-column label="商品编码" align="center" prop="productCode" >
<template slot-scope="scope">
<template slot-scope="{row}">
<div>
{{ scope.row.productDO.productCode }}
{{ row.productDO ? row.productDO.productCode : '无productDO字段' }}
</div>
</template>
</el-table-column>
<el-table-column label="海关编码" align="center" prop="customsCode" >
<template slot-scope="scope">
<template slot-scope="{row}">
<div>
{{ scope.row.productDO.customsCode }}
{{ row.productDO ? row.productDO.customsCode : '无productDO字段' }}
</div>
</template>
</el-table-column>
<el-table-column label="商品类型" align="center" prop="typeId">
<template slot-scope="scope">
<span>{{ getTypeName(scope.row.productDO.typeId) }}</span>
<template slot-scope="{row}">
<span>{{ row.productDO ? getTypeName(row.productDO.typeId) : '无productDO字段' }}</span>
</template>
</el-table-column>
<el-table-column label="商品名称" align="center" prop="productName" >
<template slot-scope="scope">
<template slot-scope="{row}">
<div>
{{ scope.row.productDO.titleZh }}
{{ row.productDO ? row.productDO.titleZh : '无productDO字段' }}
</div>
</template>
</el-table-column>
......@@ -547,12 +547,12 @@ export default {
},
// 批量设置路线
handleEdit() {
this.$router.push('product-price/edit?id=' + this.ids)
handleBatchEdit() {
this.$router.push('../../lineProject/product-price/edit?ids=' + this.ids)
},
/** 修改按钮操作 */
handleUpdate(row) {
return this.$router.push('../../lineProject/product-price/edit?id=' + row.id)
return this.$router.push('../../lineProject/product-price/edit?ids=' + row.id)
},
updateStatus(row, type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment