|
@@ -8,14 +8,9 @@
|
|
|
共{{ total }}个
|
|
|
</text>
|
|
|
</view>
|
|
|
- <My_listbox ref="List" @getlist="getList" bottomHeight="70">
|
|
|
- <store-list check ref="storeList" :list="list" @onClick="onClick" />
|
|
|
+ <My_listbox ref="List" @getlist="getList" bottomHeight="30">
|
|
|
+ <store-list check ref="storeList" :list="list" @onClick="onClick" @onHandle="onHandle" />
|
|
|
</My_listbox>
|
|
|
- <view class="footer">
|
|
|
- <navigator class="invite" @click="onInsert" url="/store/insert/store">
|
|
|
- 新增门店
|
|
|
- </navigator>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -37,6 +32,9 @@ export default {
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.getList()
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: '门店信息审核'
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
getList(init = false) {
|
|
@@ -56,11 +54,65 @@ export default {
|
|
|
this.content = this.$refs.List.paging(this.content, res)
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ updateList() {
|
|
|
+ if (this.content.pageNumber && this.content.pageNumber >= 2) {
|
|
|
+ let content = this.paging(this.content, true, true)
|
|
|
+ this.$Http.basic({
|
|
|
+ "id": "20240411141602",
|
|
|
+ content
|
|
|
+ }).then(res => {
|
|
|
+ console.log("更新待审核门店列表", res)
|
|
|
+ if (this.cutoff(res.msg)) return;
|
|
|
+ this.$refs.List.setHeight()
|
|
|
+ this.list = this.$refs.storeList.handleList(res.data);
|
|
|
+ this.total = res.total;
|
|
|
+ this.$refs.List.paging(content, res, true)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
onClick(item) {
|
|
|
this.onInsert();
|
|
|
uni.navigateTo({
|
|
|
url: '/store/center/detail?id=' + item.sa_storeid,
|
|
|
});
|
|
|
+ },
|
|
|
+ onHandle(item, funname) {
|
|
|
+ console.log(item, funname)
|
|
|
+ let id = '',
|
|
|
+ that = this;
|
|
|
+ switch (funname) {
|
|
|
+ case "退回":
|
|
|
+ id = 20240410135402;
|
|
|
+ break;
|
|
|
+ case "审核":
|
|
|
+ id = 20240410141002;
|
|
|
+ break;
|
|
|
+ case "反审核":
|
|
|
+ id = 20240410141402;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ uni.showModal({
|
|
|
+ title: '提醒',
|
|
|
+ content: `确定对“${item.storename}”执行“${funname}”操作吗?`,
|
|
|
+ confirmText: funname,
|
|
|
+ success: ({
|
|
|
+ confirm
|
|
|
+ }) => {
|
|
|
+ if (confirm) that.$Http.basic({
|
|
|
+ id,
|
|
|
+ "content": {
|
|
|
+ "sa_storeid": item.sa_storeid
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log(`${funname}门店`, res)
|
|
|
+ if (that.cutoff(res.msg, `门店“${funname}”成功`)) return;
|
|
|
+ that.updateList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
onInsert() {
|
|
|
this.$Http.uploadStoreList = function () {
|
|
@@ -74,7 +126,7 @@ export default {
|
|
|
if (this.cutoff(res.msg)) return;
|
|
|
this.$refs.List.setHeight()
|
|
|
this.list = this.$refs.storeList.handleList(res.data);
|
|
|
- this.$refs.List.paging(current, res, true)
|
|
|
+ this.$refs.List.paging(content, res, true)
|
|
|
})
|
|
|
}
|
|
|
}.bind(this)
|
|
@@ -95,31 +147,4 @@ export default {
|
|
|
font-size: 12px;
|
|
|
color: #666666;
|
|
|
}
|
|
|
-
|
|
|
-.footer {
|
|
|
- position: fixed;
|
|
|
- bottom: 0;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- width: 100vw;
|
|
|
- height: 65px;
|
|
|
- background: #FFFFFF;
|
|
|
- box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
|
|
|
- padding: 5px 10px;
|
|
|
- box-sizing: border-box;
|
|
|
-
|
|
|
- .invite {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- flex: 1;
|
|
|
- height: 45px;
|
|
|
- background: #C30D23;
|
|
|
- border-radius: 5px;
|
|
|
- font-family: PingFang SC, PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- font-size: 16px;
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|