Commit 530934f7 by zhangquan

功能按钮

1 parent 9fcc4330
......@@ -70,11 +70,11 @@ export default {
titleList,
buttonList: [
{
type: 'el-button',
type: 'GLbutton',
name: '详情',
attrs: {
type: 'text',
fn: '详情'
fn: '商品订单详情'
},
listeners: {
click: row => this.goOrderDetaillPage(row.scope)
......
......@@ -24,7 +24,7 @@
<img :src="scope.scope.goodsImgUrl" alt="">{{ scope.scope.goodsSkuName }}
</div>
<div class="setPriceSlot" slot="setPriceSlot" slot-scope="scope">
<el-input v-if="curEditId==scope.scope.id" v-model="scope.scope.salePrice" onkeyup="value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/\.{2,}/g, '').replace('.', '$#$')
<el-input ref="priceRef" autofocus v-if="curEditId==scope.scope.id" v-model="scope.scope.salePrice" onkeyup="value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/\.{2,}/g, '').replace('.', '$#$')
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value" type="text" clearable @blur="setPriceFn($event, scope.scope)"></el-input>
<span class="unedited" v-else>
{{scope.scope.salePrice}}
......@@ -157,11 +157,11 @@ export default {
},
buttonList: [
{
type: 'el-button',
type: 'GLbutton',
name: '商品详情',
attrs: {
type: 'text',
fn: '详情'
fn: '销售商品详情'
},
listeners: {
click: row => this.goDetaillPage(row.scope)
......@@ -207,6 +207,9 @@ export default {
},
editPrice(row){
this.curEditId = row.id
// this.$nextTick(()=>{
// this.$refs.priceRef.focus()
// })
},
//获取复选table数据
getAllData(){
......
......@@ -150,11 +150,11 @@ export default {
},
buttonList: [
{
type: 'el-button',
type: 'GLbutton',
name: '商品详情',
attrs: {
type: 'text',
fn: '详情'
fn: '仓库商品详情'
},
listeners: {
click: row => this.goDetaillPage(row.scope)
......
......@@ -58,11 +58,11 @@ export default {
titleList,
buttonList: [
{
type: 'el-button',
type: 'GLbutton',
name: '详情',
attrs: {
type: 'text',
fn: '详情'
fn: '售后订单详情'
},
listeners: {
click: row => this.goOrderDetaillPage(row.scope)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!