Commit 0073f8da by cwq0219

搜索项-回车刷新;财务,发券bug

1 parent da0f30b8
......@@ -21,6 +21,7 @@
v-model="searchForm[item.name]"
:disabled="item.isDisabled"
:clearable="item.isClear || false"
@keydown.native="e => handleInputDown(e, item)"
></el-input>
<!-- 选择框 -->
<el-select
......@@ -95,6 +96,11 @@ export default {
// 选择框-添加其他属性
selectAddAttr(value, targetItem) {
targetItem.changeAttr && targetItem.changeAttr(value, targetItem)
},
handleInputDown(e, item) {
if (e.keyCode === 13 && item.hasOwnProperty('keyFn')) {
item.keyFn()
}
}
}
}
......
......@@ -311,12 +311,14 @@ export default {
label: '流量信息',
name: 'name',
type: 'input',
keyFn: this.keyDowmGetList,
placeholder: '请输入推荐人或转化员姓名',
isClear: true
}, {
label: '客户信息',
name: 'keyword',
type: 'input',
keyFn: this.keyDowmGetList,
placeholder: '车架号或客户姓名或钥匙号',
isClear: true
}],
......@@ -419,6 +421,9 @@ export default {
this.count = res
})
},
keyDowmGetList() {
this.getList()
},
getList() {
var params = this.getParams()
params = {
......
......@@ -195,7 +195,9 @@ export default {
}, {
label: '预录员',
name: 'advanceUserName',
type: 'input'
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '流量来源',
name: 'merchantId',
......@@ -252,6 +254,7 @@ export default {
label: '客户信息',
name: 'standNoOrCustomerName',
type: 'input',
keyFn: this.keyDowmGetList,
placeholder: '客户姓名或车架号或钥匙号',
isClear: true
}],
......@@ -353,6 +356,9 @@ export default {
resolve()
})
},
keyDowmGetList() {
this.$refs.recordTable.refreshTable()
},
handleReset() {
this.searchForm = {
userId: '',
......
......@@ -367,7 +367,8 @@ export default {
label: '订单编号',
name: 'subOrderCode',
type: 'input',
isClear: true
isClear: true,
keyFn: this.keyDowmGetList
}],
tableParams: {
btnId: ''
......@@ -502,6 +503,9 @@ export default {
this.summayData = res
})
},
keyDowmGetList() {
this.getList()
},
getList() {
var params = this.getParams()
params = {
......
......@@ -154,7 +154,8 @@ export default {
label: '商品名称',
name: 'goodsName',
type: 'input',
isClear: true
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '服务门店',
name: 'yqMerchantId',
......@@ -299,6 +300,9 @@ export default {
resolve()
})
},
keyDowmGetList() {
this.$refs.commodityTable.refreshTable()
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
......
......@@ -120,7 +120,7 @@
:min="1"
:max="999"
size="mini"
@blur="handleNumBlur(scope.scope.index)"
@change="handleNumChange(scope.scope.index)"
></el-input-number>
</span>
</selected-show-table>
......@@ -161,12 +161,14 @@ export default {
label: '礼券名称',
name: 'couponName',
type: 'input',
isClear: true
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '门店名称',
name: 'merchantName',
type: 'input',
isClear: true
isClear: true,
keyFn: this.keyDowmGetList
}],
// 新增
couponsVisible: false,
......@@ -208,10 +210,13 @@ export default {
prop: 'couponTypeName'
}, {
label: '门店名称',
prop: 'yqMerchantName'
prop: 'merchantName'
}, {
label: '剩余数量',
prop: 'amount'
prop: 'amount',
formatter: cellValue => {
return cellValue.amount - cellValue.getAmount
}
}, {
label: '已核销',
prop: 'usedAmount'
......@@ -249,6 +254,9 @@ export default {
async getBaseData() {
this.baseData.productTypeList = _.cloneDeep(await this.get(BaseData.productType))
},
keyDowmGetList() {
this.$refs.couponsTable.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = {
......@@ -297,7 +305,7 @@ export default {
})
},
// 关联门店
handleNumBlur(idx) {
handleNumChange(idx) {
this.couponsForm.merchantCouponDTOList[idx].amount = this.couponsNumList[idx]
},
handleAddStore() {
......
......@@ -129,7 +129,8 @@ export default {
label: '素材名称',
name: 'goodsName',
type: 'input',
isClear: true
isClear: true,
keyFn: this.keyDowmGetList
}],
getListApi: getList,
// 表格参数
......@@ -206,6 +207,9 @@ export default {
}
})
},
keyDowmGetList() {
this.$refs.productTable.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
......
......@@ -202,11 +202,15 @@ export default {
}, {
label: '商品名称',
name: 'orderGoodsName',
type: 'input'
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '客户姓名',
name: 'customerName',
type: 'input'
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '服务门店',
name: 'yqMerchantId',
......@@ -350,6 +354,9 @@ export default {
return params
},
keyDowmGetList() {
this.getList()
},
getList() {
var params = this.getParams()
params = {
......
......@@ -77,7 +77,7 @@
<span class="tips-icon"></span>
</el-tooltip>:
</span>
<el-radio-group v-model="form.settleTimeType">
<el-radio-group v-model="form.settleTimeType" :disabled="form.autoFlag === 'N'">
<div class="block_item">
<el-radio :label="1">结算周期 T+1 日</el-radio>
<!-- <span class="form_tip">用户支付的款项会T+1打款到商户银行卡</span> -->
......@@ -91,6 +91,7 @@
size="small"
:min="1"
:max="31"
:disabled="form.settleTimeType === 1"
></el-input-number>
日</el-radio>
<!-- <span class="form_tip">用户支付的款项会在每个月1号将上月结算账单打款到商户银行卡</span> -->
......@@ -745,7 +746,7 @@ export default {
})
}
})
console.log(params)
// console.log(params)
updateRule(params).then((res) => {
this.$message({
......@@ -756,7 +757,7 @@ export default {
this.$router.push({
name: 'merchantManage'
})
})
}).catch(() => {})
} else {
this.handleSetEdit('isSecondSetEdit', 'accountSecondValiteForm', 'accountSecondSetForm', 'accountSetForm', 'accountSetStruct')
}
......
......@@ -91,11 +91,15 @@ export default {
}, {
label: '商户名称',
name: 'merchantName',
type: 'input'
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '园区店名称',
name: 'yqMerchantName',
type: 'input'
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}],
getListApi: getList,
tableParams: {
......@@ -183,6 +187,9 @@ export default {
this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.getOptionsList()
},
keyDowmGetList() {
this.$refs.merchantTable.refreshTable()
},
// 财务
handleDetail(row) {
this.close({ tagName: '/merchantDetail' })
......
......@@ -150,7 +150,9 @@ export default {
showFormData: [{
label: '商户名称',
name: 'merchantName',
type: 'input'
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}],
maxLength: 10,
getListApi: getList,
......@@ -253,6 +255,9 @@ export default {
async getBaseData() {
this.baseData.channelType = await this.get(BaseData.channelType)
},
keyDowmGetList() {
this.$refs.serviceStoreTable.refreshTable()
},
handleReset() {
this.searchForm = {
merchantName: ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!