Commit 530934f7 by zhangquan

功能按钮

1 parent 9fcc4330
...@@ -70,11 +70,11 @@ export default { ...@@ -70,11 +70,11 @@ export default {
titleList, titleList,
buttonList: [ buttonList: [
{ {
type: 'el-button', type: 'GLbutton',
name: '详情', name: '详情',
attrs: { attrs: {
type: 'text', type: 'text',
fn: '详情' fn: '商品订单详情'
}, },
listeners: { listeners: {
click: row => this.goOrderDetaillPage(row.scope) click: row => this.goOrderDetaillPage(row.scope)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<img :src="scope.scope.goodsImgUrl" alt="">{{ scope.scope.goodsSkuName }} <img :src="scope.scope.goodsImgUrl" alt="">{{ scope.scope.goodsSkuName }}
</div> </div>
<div class="setPriceSlot" slot="setPriceSlot" slot-scope="scope"> <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> .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> <span class="unedited" v-else>
{{scope.scope.salePrice}} {{scope.scope.salePrice}}
...@@ -157,11 +157,11 @@ export default { ...@@ -157,11 +157,11 @@ export default {
}, },
buttonList: [ buttonList: [
{ {
type: 'el-button', type: 'GLbutton',
name: '商品详情', name: '商品详情',
attrs: { attrs: {
type: 'text', type: 'text',
fn: '详情' fn: '销售商品详情'
}, },
listeners: { listeners: {
click: row => this.goDetaillPage(row.scope) click: row => this.goDetaillPage(row.scope)
...@@ -207,6 +207,9 @@ export default { ...@@ -207,6 +207,9 @@ export default {
}, },
editPrice(row){ editPrice(row){
this.curEditId = row.id this.curEditId = row.id
// this.$nextTick(()=>{
// this.$refs.priceRef.focus()
// })
}, },
//获取复选table数据 //获取复选table数据
getAllData(){ getAllData(){
......
...@@ -150,11 +150,11 @@ export default { ...@@ -150,11 +150,11 @@ export default {
}, },
buttonList: [ buttonList: [
{ {
type: 'el-button', type: 'GLbutton',
name: '商品详情', name: '商品详情',
attrs: { attrs: {
type: 'text', type: 'text',
fn: '详情' fn: '仓库商品详情'
}, },
listeners: { listeners: {
click: row => this.goDetaillPage(row.scope) click: row => this.goDetaillPage(row.scope)
......
...@@ -58,11 +58,11 @@ export default { ...@@ -58,11 +58,11 @@ export default {
titleList, titleList,
buttonList: [ buttonList: [
{ {
type: 'el-button', type: 'GLbutton',
name: '详情', name: '详情',
attrs: { attrs: {
type: 'text', type: 'text',
fn: '详情' fn: '售后订单详情'
}, },
listeners: { listeners: {
click: row => this.goOrderDetaillPage(row.scope) 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!