diff --git a/src/views/finance/flow.vue b/src/views/finance/flow.vue
index 21f7dba..9de0e5f 100644
--- a/src/views/finance/flow.vue
+++ b/src/views/finance/flow.vue
@@ -1,184 +1,192 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
select.pageSize = e" @pageIndexChange="pageChange" :list="list"
- :table-item="table"
- >
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/order/orderList.vue b/src/views/order/orderList.vue
index 47f4284..9723863 100644
--- a/src/views/order/orderList.vue
+++ b/src/views/order/orderList.vue
@@ -14,11 +14,9 @@
所属商户
- select.merchant = e">
-
-
-
+
+
包含历史服务商家
@@ -148,15 +146,18 @@
import {
download
} from '@/utils/downloadRequest'
+ import {
+ index as merchantIndex
+ } from '@/api/merchant'
import orderLog from '@/views/order/component/orderLog'
import actions from '@/views/order/component/actions'
- import orderEdit from '@/views/order/component/orderEdit'
+ import orderEdit from '@/views/order/component/orderEdit'
export default {
components: {
orderLog,
- actions,
+ actions,
orderEdit
},
data() {
@@ -277,28 +278,31 @@
width: 220,
align: "left",
customFn: (row) => {
- return ( {
- this.selectId=row.order.id;
- this.isShowEdit=true;
- }
- }}
-
- > {
+ }
+ on = {
+ {
+ ['click']: (e) => {
+ this.selectId = row.order.id;
+ this.isShowEdit = true;
+ }
+ }
+ }
+
+ >
+ {
row.order.member_address ? row.order.member_address : "修改服务地址"
- }
)
+ } < /div> )
}
- },
-
+ },
+
{
label: "用户信息",
Fprop: 'member',
@@ -353,19 +357,19 @@
width: 100
},
{
- prop: "merchant.name",
+ prop: "merchant.username",
label: "服务商家",
align: "left",
- width: 220
+ width: 160
},
{
label: "历史商家",
- width: 220,
+ width: 160,
align: "left",
customFn: (row) => {
return row.assign_merchant.map(item => {
return ( < div > {
- item.name
+ item.username
} < /div>)
})
}
@@ -389,6 +393,29 @@
}
},
methods: {
+ handleSelect(item) {
+ console.log(item)
+ this.select.merchant = {
+ id: item.id,
+ name: item.value
+ };
+ },
+ querySearchAsync(queryString, cb) {
+ merchantIndex({
+ keyword: queryString,
+ page_size: 999
+ }).then(res => {
+ var data = res.data;
+ let _data = [];
+ for (var m of data) {
+ _data.push({
+ value: m.username,
+ id: m.id
+ })
+ }
+ cb(_data)
+ })
+ },
resetsearch() {
this.select.page = 1;
this.select.merchant = '';