|
@@ -14,11 +14,11 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="app-tabs">
|
|
<view class="app-tabs">
|
|
|
- <app-tabs :tabs="tabs" :isFixed="false" :top="50" :currentTab="tabIndex" :height="100" @change="change" itemWidth="20%" />
|
|
|
|
|
|
|
+ <app-tabs :tabs="tabs" :isFixed="false" :top="50" :currentTab="tabIndex" :height="100" @change="change" itemWidth="33%" />
|
|
|
</view>
|
|
</view>
|
|
|
<div class="list-wrap">
|
|
<div class="list-wrap">
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
- <div class="list" v-for="(item, index) in list.data" :key="index">
|
|
|
|
|
|
|
+ <div class="list" v-for="(item, index) in list.data.list" :key="index">
|
|
|
|
|
|
|
|
<workItem :item="item" @orderEventBtn="orderEventBtn"></workItem>
|
|
<workItem :item="item" @orderEventBtn="orderEventBtn"></workItem>
|
|
|
|
|
|
|
@@ -32,8 +32,6 @@
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <NotLogin></NotLogin>
|
|
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -43,7 +41,7 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import { list } from "@/mixins";
|
|
import { list } from "@/mixins";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
-import { getListB} from "@/api/order";
|
|
|
|
|
|
|
+import { getWorkList} from "@/api/work";
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import DropShopSelect from "@/components/module/shopSelect";
|
|
import DropShopSelect from "@/components/module/shopSelect";
|
|
|
import workItem from "./components/workItem";
|
|
import workItem from "./components/workItem";
|
|
@@ -74,40 +72,28 @@ export default {
|
|
|
{
|
|
{
|
|
|
name: "全部",
|
|
name: "全部",
|
|
|
value: 0,
|
|
value: 0,
|
|
|
- id: 0,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: "待付款",
|
|
|
|
|
- value: 0,
|
|
|
|
|
- id: 1,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: "待配送",
|
|
|
|
|
- value: 0,
|
|
|
|
|
- id: 2,
|
|
|
|
|
|
|
+ id: -1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: "配送中",
|
|
|
|
|
|
|
+ name: "待完成",
|
|
|
value: 0,
|
|
value: 0,
|
|
|
- id: 3,
|
|
|
|
|
|
|
+ id: 0,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: "已完成",
|
|
name: "已完成",
|
|
|
value: 0,
|
|
value: 0,
|
|
|
- id: 4,
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ id: 1,
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
selectItemId: "",
|
|
selectItemId: "",
|
|
|
operateIndex: null,
|
|
operateIndex: null,
|
|
|
operateData: {},
|
|
operateData: {},
|
|
|
- // 免发货
|
|
|
|
|
- freeShipModal: false,
|
|
|
|
|
classifyForm: {
|
|
classifyForm: {
|
|
|
categoryId: "",
|
|
categoryId: "",
|
|
|
usageId: "",
|
|
usageId: "",
|
|
|
},
|
|
},
|
|
|
searchType:0,
|
|
searchType:0,
|
|
|
- searchTypeName:'客户',
|
|
|
|
|
|
|
+ searchTypeName:'名称',
|
|
|
searchTime:'',
|
|
searchTime:'',
|
|
|
startTime:'',
|
|
startTime:'',
|
|
|
endTime:''
|
|
endTime:''
|
|
@@ -144,14 +130,14 @@ export default {
|
|
|
setSearchType(){
|
|
setSearchType(){
|
|
|
let that = this
|
|
let that = this
|
|
|
uni.showActionSheet({
|
|
uni.showActionSheet({
|
|
|
- itemList: ['搜索类型:', '客户', '编号'],
|
|
|
|
|
|
|
+ itemList: ['搜索类型:', '名称', '编号'],
|
|
|
success: function (respond) {
|
|
success: function (respond) {
|
|
|
let currentIndex = respond.tapIndex
|
|
let currentIndex = respond.tapIndex
|
|
|
if(currentIndex == 0){
|
|
if(currentIndex == 0){
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
that.searchType = Number(currentIndex) - 1
|
|
that.searchType = Number(currentIndex) - 1
|
|
|
- that.searchTypeName = that.searchType == 0 ? '客户' : '编号'
|
|
|
|
|
|
|
+ that.searchTypeName = that.searchType == 0 ? '名称' : '编号'
|
|
|
that.searchFn()
|
|
that.searchFn()
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -169,7 +155,7 @@ export default {
|
|
|
this._list()
|
|
this._list()
|
|
|
},
|
|
},
|
|
|
_list() {
|
|
_list() {
|
|
|
- return getListB({
|
|
|
|
|
|
|
+ return getWorkList({
|
|
|
searchTime: this.searchTime,
|
|
searchTime: this.searchTime,
|
|
|
startTime: this.startTime,
|
|
startTime: this.startTime,
|
|
|
endTime: this.endTime,
|
|
endTime: this.endTime,
|
|
@@ -182,11 +168,6 @@ export default {
|
|
|
if (this.$util.isEmpty(res.data)){
|
|
if (this.$util.isEmpty(res.data)){
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- this.tabs[0].value = res.data.totalNum || 0;
|
|
|
|
|
- this.tabs[1].value = res.data.shop.unPayOrder || 0;
|
|
|
|
|
- this.tabs[2].value = res.data.shop.unSendOrder || 0;
|
|
|
|
|
- this.tabs[3].value = res.data.shop.sendingOrder || 0;
|
|
|
|
|
- this.tabs[4].value = res.data.shop.finishOrder || 0;
|
|
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
change(e) {
|
|
change(e) {
|
|
@@ -198,10 +179,6 @@ export default {
|
|
|
this._list();
|
|
this._list();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- // 关闭弹窗
|
|
|
|
|
- modalCancel() {
|
|
|
|
|
- this.freeShipModal = false;
|
|
|
|
|
- },
|
|
|
|
|
classifyOrder(id) {
|
|
classifyOrder(id) {
|
|
|
this.currentOrderId = id;
|
|
this.currentOrderId = id;
|
|
|
},
|
|
},
|