|
@@ -6,17 +6,17 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="中心店名称">
|
|
|
- <a-input id="userAuthList-orgName" v-model.trim="queryParam.orgName" allowClear placeholder="请输入中心店名称"/>
|
|
|
+ <a-input id="userAuthList-ownerOrgName" v-model.trim="queryParam.ownerOrgName" allowClear placeholder="请输入中心店名称"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="中心店授权账号">
|
|
|
- <a-input id="userAuthList-orgName" v-model.trim="queryParam.orgName" allowClear placeholder="请输入中心店授权账号"/>
|
|
|
+ <a-input id="userAuthList-userQueryWord" v-model.trim="queryParam.userQueryWord" allowClear placeholder="请输入中心店授权账号"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="配送店名称">
|
|
|
- <a-input id="userAuthList-childName" v-model.trim="queryParam.childName" allowClear placeholder="请输入配送店名称"/>
|
|
|
+ <a-input id="userAuthList-orgName" v-model.trim="queryParam.orgName" allowClear placeholder="请输入配送店名称"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -35,7 +35,7 @@
|
|
|
class="sTable"
|
|
|
ref="table"
|
|
|
size="default"
|
|
|
- :rowKey="(record) => record.orgSn"
|
|
|
+ :rowKey="(record) => record.userSn"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
:scroll="{ y: tableHeight }"
|
|
@@ -61,7 +61,7 @@
|
|
|
</template>
|
|
|
</s-table>
|
|
|
<!-- 新增/编辑 -->
|
|
|
- <storeManagement-user-auth-edit-modal :openModal="openModal" :nowData="nowData" :itemSn="itemSn" @ok="$refs.table.refresh(true)" @close="closeModal" />
|
|
|
+ <storeManagement-user-auth-edit-modal :openModal="openModal" :itemSn="itemSn" @ok="$refs.table.refresh(true)" @close="closeModal" />
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -74,15 +74,16 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
queryParam: { // 查询条件
|
|
|
- orgName: '',
|
|
|
- childName: ''
|
|
|
+ ownerOrgName: '',
|
|
|
+ userQueryWord: '',
|
|
|
+ orgName: ''
|
|
|
},
|
|
|
tableHeight: 0,
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
- { title: '中心店名称', dataIndex: 'user.name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '中心店授权账号', dataIndex: 'user.loginName', scopedSlots: { customRender: 'loginName' }, width: 200, align: 'center' },
|
|
|
+ { title: '中心店名称', dataIndex: 'ownerOrgName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '中心店授权账号', scopedSlots: { customRender: 'loginName' }, width: 200, align: 'center' },
|
|
|
{ title: '已绑配送店', dataIndex: 'userAllOrgName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center' }
|
|
|
],
|
|
@@ -103,21 +104,20 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
openModal: false, // 新增编辑 弹框
|
|
|
- itemSn: '', // 当前sn
|
|
|
- nowData: null // 当前记录数据
|
|
|
+ itemSn: '' // 当前sn
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
+ this.queryParam.ownerOrgName = ''
|
|
|
+ this.queryParam.userQueryWord = ''
|
|
|
this.queryParam.orgName = ''
|
|
|
- this.queryParam.childName = ''
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 新增/编辑
|
|
|
handleEdit (row) {
|
|
|
this.itemSn = row ? row.userSn : null
|
|
|
- this.nowData = row || null
|
|
|
this.openModal = true
|
|
|
},
|
|
|
// 关闭弹框
|