|
|
@@ -38,250 +38,6 @@
|
|
|
></addProduct>
|
|
|
</div>
|
|
|
<div class="produtMag-panel">
|
|
|
-<!-- <el-table
|
|
|
- ref="multipleTable"
|
|
|
- :data="list"
|
|
|
- style="width: 100%"
|
|
|
- height="calc(100vh - 500px)"
|
|
|
- :header-cell-style="{height:'50px',color:'#606266',fontWeight:'400'}"
|
|
|
- :cell-style="{height:'50px',color:'#666666',fontWeight:'400'}"
|
|
|
- @selection-change="selectionChange"
|
|
|
- border>
|
|
|
- <el-table-column
|
|
|
- type="selection"
|
|
|
- width="55"
|
|
|
- fixed>
|
|
|
- </el-table-column>
|
|
|
-<!– <el-table-column
|
|
|
- align="center"
|
|
|
- label="产品图"
|
|
|
- width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-if="scope.row.attinfos[0]">
|
|
|
- <previewImage class="image" :image="scope.row.attinfos[0]" :list="scope.row.attinfos" :deletebtn="false"></previewImage>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>–>
|
|
|
- <el-table-column
|
|
|
- prop="itemname"
|
|
|
- label="商品名称"
|
|
|
- width="180">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="itemno"
|
|
|
- label="编码"
|
|
|
- width="180">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="erpitemno"
|
|
|
- label="品号"
|
|
|
- width="180">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="型号"
|
|
|
- width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.model}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="marketprice"
|
|
|
- label="牌价"
|
|
|
- width="80"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.marketprice?tool.formatAmount(scope.row.marketprice,2):'--'}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="num"
|
|
|
- label="数量"
|
|
|
- width="160"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>
|
|
|
-<!– <el-input-number :disabled="!saveShow || index !== scope.row.rowindex" v-model="scope.row.qty" size="mini" :min="1" label="描述文字" @change="onChangeNum(scope.row.qty,scope.row,scope.$index)"></el-input-number>–>
|
|
|
- <el-input-number :disabled="data.status !== '新建'" v-model="scope.row.qty" size="mini" :min="1" label="描述文字" @change="onChangeNum(scope.row.qty,scope.row,scope.$index)"></el-input-number>
|
|
|
-
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- prop="discountrate"
|
|
|
- label="折扣(%)"
|
|
|
- width="100"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-if="scope.row.discountDifferenceAmount >= 0 ">
|
|
|
- <span v-if="tool.checkAuth($route.name,'productDetails') || data.status == '新建' || disabled">
|
|
|
- <el-input :disabled="data.status !== '新建'" v-model="scope.row.discountrate" size="mini" placeholder="请输入折扣" @change="onChangeDiscountrate(scope.row.discountrate,scope.row,scope.$index)"></el-input>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.row.discountDifferenceAmount < 0 ">
|
|
|
- <span v-if="tool.checkAuth($route.name,'productDetails') || data.status == '新建' || disabled">
|
|
|
- <el-input :disabled="data.status !== '新建'" v-model="scope.row.discountrate" size="mini" placeholder="请输入折扣" @change="onChangeDiscountrate(scope.row.discountrate,scope.row,scope.$index)"></el-input>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
-<!– <span v-else>
|
|
|
- <span v-if="saveShow && index === scope.row.rowindex">
|
|
|
- <el-input v-model="scope.row.discountrate" size="mini" placeholder="请输入折扣" @change="onChangeDiscountrate(scope.row.discountrate,scope.row,scope.$index)"></el-input>
|
|
|
- </span>
|
|
|
- <span v-else>
|
|
|
- <span >{{tool.formatAmount(scope.row.discountrate,2)}}</span>
|
|
|
- </span>
|
|
|
-
|
|
|
- </span>–>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="price"
|
|
|
- label="单价"
|
|
|
- width="120"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-if="scope.row.discountDifferenceAmount >= 0 ">
|
|
|
- <p v-if="!disabled"><span :style="[setTopColor]">{{tool.formatAmount(scope.row.price,2)}}</span></p>
|
|
|
- <span v-if="tool.checkAuth($route.name,'productDetails') || data.status == '新建' || disabled">
|
|
|
- <el-input :disabled="data.status !== '新建'" v-model="scope.row.price" size="mini" placeholder="请输入单价" @change="onChangePrice(scope.row.price,scope.row,scope.$index)"></el-input>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.row.discountDifferenceAmount < 0 " >
|
|
|
- <p v-if="!disabled"><span :style="[setDownColor]">{{tool.formatAmount(scope.row.price,2)}}</span></p>
|
|
|
- <span v-if="tool.checkAuth($route.name,'productDetails') || data.status == '新建' || disabled">
|
|
|
- <el-input :disabled="data.status !== '新建'" v-model="scope.row.price" size="mini" placeholder="请输入单价" @change="onChangePrice(scope.row.price,scope.row,scope.$index)"></el-input>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
-<!– <span v-else>
|
|
|
- <span v-if="saveShow && index === scope.row.rowindex">
|
|
|
- <el-input v-model="scope.row.price" size="mini" placeholder="请输入单价" @change="onChangePrice(scope.row.price,scope.row,scope.$index)"></el-input>
|
|
|
- </span>
|
|
|
- <span v-else>
|
|
|
- <span >{{tool.formatAmount(scope.row.price,2)}}</span>
|
|
|
- </span>
|
|
|
- </span>–>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="discountDifferenceAmount"
|
|
|
- label="单价差额(元)"
|
|
|
- width="100"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{tool.formatAmount(scope.row.discountDifferenceAmount,2)}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- label="规格"
|
|
|
- width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.spec}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="material"
|
|
|
- label="材质"
|
|
|
- width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.material?scope.row.material:'--'}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="standards"
|
|
|
- label="标准"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="unitid"
|
|
|
- label="计量单位"
|
|
|
- width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tag size="mini" type="info" effect="plain">{{scope.row.unitname}}/{{scope.row.axunitname}}</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="device"
|
|
|
- label="装置"
|
|
|
- width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.device || '--'}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="prodline"
|
|
|
- label="产线"
|
|
|
- width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.prodline || '--'}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="specalnote"
|
|
|
- label="特殊说明"
|
|
|
- width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.specalnote || '--'}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- prop="mindiscountrate"
|
|
|
- label="最低授权折扣(%)"
|
|
|
- width="80"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <p><span>{{scope.row.mindiscountrate}}</span></p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- prop="amount"
|
|
|
- label="金额"
|
|
|
- width="100"
|
|
|
- fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-if="scope.row.discountDifferenceAmount >= 0 ">
|
|
|
- <p ><span style="color: #79da56">{{tool.formatAmount(scope.row.amount,2)}}</span></p>
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.row.discountDifferenceAmount < 0 " >
|
|
|
- <p><span style="color: #ef230c ">{{tool.formatAmount(scope.row.amount,2)}}</span></p>
|
|
|
- </div>
|
|
|
-<!– <p v-else><span>{{tool.formatAmount(scope.row.amount,2)}}</span></p>–>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="specialoffer"
|
|
|
- label="是否特价"
|
|
|
- width="50"
|
|
|
- fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <i class="el-icon-check" v-if="scope.row.discountDifferenceAmount < 0" style="color: red;font-size: 20px"></i>
|
|
|
- <p v-else>--</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!– <el-table-column
|
|
|
- prop="operation"
|
|
|
- fixed="right"
|
|
|
- label="操作"
|
|
|
- width="120">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" class="inline-16" @click="onEdit(scope.row)" v-if="index !== scope.row.rowindex" :disabled="!tool.checkAuth($route.name,'productDetails') || data.status !== '新建' || !disabled">编 辑</el-button>
|
|
|
- <el-button size="mini" type="text" class="inline-16" @click="onSave(scope.row)" v-if="saveShow && index === scope.row.rowindex">保 存</el-button>
|
|
|
- <el-popconfirm
|
|
|
- title="确定删除该产品吗?"
|
|
|
- @confirm="deleteProduct(scope.row)"
|
|
|
- >
|
|
|
- <el-button class="inline-16" slot="reference" size="mini" type="text" :disabled="!tool.checkAuth($route.name,'productDetails') || data.status !== '新建' || !disabled" >删 除</el-button>
|
|
|
- </el-popconfirm>
|
|
|
-
|
|
|
- <el-button size="mini" type="text" class="inline-16" @click="saveShow = false;index = '';productData()" v-if="saveShow && index === scope.row.rowindex">取 消</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column> –>
|
|
|
- </el-table>-->
|
|
|
<tableLayout :layout="tablecols" checkbox="true" :data="list" :opwidth="200" height="calc(100vh - 550px)" :width="true" :custom="true" fixedName="offerPrice amount" @selectionChange="selectionChange">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<div v-if="scope.column.columnname == 'qty'">
|