|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view class="content">
|
|
<view class="content">
|
|
<view class="one">
|
|
<view class="one">
|
|
- <input type="text" v-model="searchInfo.goods" @input="toInput" placeholder="搜索商品">
|
|
|
|
|
|
+ <input type="text" v-model="searchInfo.user_name" @input="toInput" placeholder="搜索用户">
|
|
</view>
|
|
</view>
|
|
<view class="two">
|
|
<view class="two">
|
|
<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
|
|
<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
|
|
@@ -137,8 +137,13 @@
|
|
skip: that.skip,
|
|
skip: that.skip,
|
|
limit: that.limit,
|
|
limit: that.limit,
|
|
};
|
|
};
|
|
- if (user.role == 'kj') info.s_accounting = user._id;
|
|
|
|
- else info.s_leader = user._id;
|
|
|
|
|
|
+ if (user.role == 'kj') {
|
|
|
|
+ info.s_accounting = user._id;
|
|
|
|
+ info.status = '0'
|
|
|
|
+ } else {
|
|
|
|
+ info.s_leader = user._id;
|
|
|
|
+ info.status = '2'
|
|
|
|
+ }
|
|
let res;
|
|
let res;
|
|
res = await that.$api(`/OrderDetail/queryInfo`, 'GET', {
|
|
res = await that.$api(`/OrderDetail/queryInfo`, 'GET', {
|
|
...info,
|
|
...info,
|
|
@@ -208,7 +213,7 @@
|
|
// 输入框
|
|
// 输入框
|
|
toInput(e) {
|
|
toInput(e) {
|
|
const that = this;
|
|
const that = this;
|
|
- if (that.searchInfo.goods) that.$set(that.searchInfo, `goods`, e.detail.value)
|
|
|
|
|
|
+ if (that.searchInfo.user_name) that.$set(that.searchInfo, `user_name`, e.detail.value)
|
|
else that.$set(that, `searchInfo`, {})
|
|
else that.$set(that, `searchInfo`, {})
|
|
that.clearPage();
|
|
that.clearPage();
|
|
that.search();
|
|
that.search();
|
|
@@ -235,7 +240,7 @@
|
|
const res = await that.$api(`/OrderDetail/${item._id}`, 'POST', obj);
|
|
const res = await that.$api(`/OrderDetail/${item._id}`, 'POST', obj);
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '审批完成请等待其他管理员审批',
|
|
|
|
|
|
+ title: '维护信息成功',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
})
|
|
})
|
|
that.clearPage()
|
|
that.clearPage()
|