|
@@ -74,69 +74,16 @@
|
|
|
},
|
|
|
list: [],
|
|
|
loadMore: true,
|
|
|
- id: '',
|
|
|
- flag: '',
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.user = this.getUser()
|
|
|
- uni.$on('face', res => {
|
|
|
- if (this.flag == 1) {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/confirmOrder',
|
|
|
- data: {
|
|
|
- orderId: this.id
|
|
|
- },
|
|
|
- success: resp => {
|
|
|
- uni.showToast({
|
|
|
- title: '订单确认成功'
|
|
|
- });
|
|
|
- this.refresh();
|
|
|
- }
|
|
|
- });
|
|
|
- } else if (this.flag == 2) {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/applyOrder',
|
|
|
- data: {
|
|
|
- orderId: this.id
|
|
|
- },
|
|
|
- success: resp => {
|
|
|
- uni.showToast({
|
|
|
- title: '进口申报确认成功'
|
|
|
- });
|
|
|
- this.refresh();
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
},
|
|
|
onShow() {
|
|
|
this.user = this.getUser();
|
|
|
this.getData();
|
|
|
},
|
|
|
methods: {
|
|
|
- downOrder(item) {
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '确定下架?',
|
|
|
- success: res => {
|
|
|
- if (res.confirm) {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/down',
|
|
|
- data: {
|
|
|
- id: item.id
|
|
|
- },
|
|
|
- success: res => {
|
|
|
- uni.showToast({
|
|
|
- title: '提交成功'
|
|
|
- });
|
|
|
- item.upStatus = 1;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
getData() {
|
|
|
this.param.peopleId = this.user.fkId;
|
|
|
this.http.request({
|
|
@@ -147,8 +94,6 @@
|
|
|
this.loadMore = parseInt(res.data.pageCount) > this.param.pageNo;
|
|
|
if (res.data.data) {
|
|
|
this.list = res.data.data;
|
|
|
- console.log("---1---=" + this.list[0].finishStatus)
|
|
|
- console.log("---2---=" + this.list[0].resaleStatus)
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -176,31 +121,6 @@
|
|
|
goto(url) {
|
|
|
uni.navigateTo({ url: url });
|
|
|
},
|
|
|
- resale(item) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/market/two/leader/resale?item=' + JSON.stringify(item)
|
|
|
- });
|
|
|
- },
|
|
|
- orderRefund(id) {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/orderRefund',
|
|
|
- data: {
|
|
|
- id: id
|
|
|
- },
|
|
|
- method: 'POST',
|
|
|
- success: resp => {
|
|
|
- uni.showToast({
|
|
|
- title: '操作成功'
|
|
|
- });
|
|
|
- this.refresh();
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- updateResalePrice(id) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/market/two/leader/updatePrice?id=' + id
|
|
|
- });
|
|
|
- },
|
|
|
// 刷新数据
|
|
|
refresh() {
|
|
|
this.loadMore = true;
|