|
@@ -26,46 +26,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
limit: 10,
|
|
|
// form搜索
|
|
|
searchForm: {
|
|
|
- status: "all",
|
|
|
+ sh_status: "all",
|
|
|
createtime: [moment().startOf('day').format('YYYY-MM-DD HH:mm:ss'), moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')],
|
|
|
- form_1_key: "order_sn",
|
|
|
+ form_1_key: "user_id",
|
|
|
form_1_value: "",
|
|
|
- platform: "",
|
|
|
- dispatch_type: "",
|
|
|
- type: "",
|
|
|
- pay_type: "",
|
|
|
- form_2_key: "user_id",
|
|
|
- form_2_value: "",
|
|
|
},
|
|
|
searchFormInit: {
|
|
|
- status: "all",
|
|
|
+ sh_status: "all",
|
|
|
createtime: [moment().startOf('day').format('YYYY-MM-DD HH:mm:ss'), moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')],
|
|
|
- form_1_key: "order_sn",
|
|
|
+ form_1_key: "user_id",
|
|
|
form_1_value: "",
|
|
|
- platform: "",
|
|
|
- dispatch_type: "",
|
|
|
- type: "",
|
|
|
- pay_type: "",
|
|
|
- form_2_key: "user_id",
|
|
|
- form_2_value: "",
|
|
|
},
|
|
|
searchOp: {
|
|
|
- status: "=",
|
|
|
- createtime: "range",
|
|
|
- order_sn: "like",
|
|
|
- id: "=",
|
|
|
- aftersale_sn: "=",
|
|
|
- transaction_id: "=",
|
|
|
- platform: "=",
|
|
|
- dispatch_type: "=",
|
|
|
- type: "=",
|
|
|
- pay_type: "=",
|
|
|
+ sh_status: "=",
|
|
|
+ create_at: "range",
|
|
|
user_id: "=",
|
|
|
nickname: "like",
|
|
|
user_phone: "like",
|
|
|
- consignee: "like",
|
|
|
- phone: "like",
|
|
|
-
|
|
|
},
|
|
|
focusi: false,
|
|
|
//审核
|
|
@@ -79,18 +56,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getData()
|
|
|
- this.getType()
|
|
|
},
|
|
|
methods: {
|
|
|
- getType() {
|
|
|
- var that = this;
|
|
|
- Fast.api.ajax({
|
|
|
- url: 'shopro/order/order/getType',
|
|
|
- }, function (ret, res) {
|
|
|
- that.typeList = res.data
|
|
|
- return false;
|
|
|
- })
|
|
|
- },
|
|
|
//请求
|
|
|
getData(offset, limit) {
|
|
|
var that = this;
|
|
@@ -99,6 +66,27 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
that.currentPage = that.offset / that.limit + 1;
|
|
|
let filter = {}
|
|
|
let op = {}
|
|
|
+ for (key in that.searchForm) {
|
|
|
+ if (key == 'sh_status') {
|
|
|
+ if (that.searchForm[key] != '' && that.searchForm[key] != 'all') {
|
|
|
+ filter[key] = that.searchForm[key];
|
|
|
+ }
|
|
|
+ } else if (key == 'form_1_value') {
|
|
|
+ if (that.searchForm[key] != '') {
|
|
|
+ filter[that.searchForm.form_1_key] = that.searchForm[key];
|
|
|
+ }
|
|
|
+ } else if (key == 'createtime') {
|
|
|
+ if (that.searchForm[key]) {
|
|
|
+ if (that.searchForm[key].length > 0) {
|
|
|
+ filter[key] = that.searchForm[key].join(' - ');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (key in filter) {
|
|
|
+ op[key] = that.searchOp[key] ;
|
|
|
+ }
|
|
|
+
|
|
|
Fast.api.ajax({
|
|
|
url: 'shopro/order/order_shift/index',
|
|
|
loading: true,
|
|
@@ -174,12 +162,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
that.agreeDialogVisible = false
|
|
|
that.refuseDialogVisible = false;
|
|
|
that.auditForm.remark = "";
|
|
|
+ that.auditForm.integral = "";
|
|
|
return false;
|
|
|
})
|
|
|
},
|
|
|
- audit() {
|
|
|
- this.reqApplyOper(this.agreeRow, this.auditForm.sh_status, this.auditForm.remark,this.auditForm.integral)
|
|
|
+ auditAgree() {
|
|
|
+ this.reqApplyOper(this.agreeRow,1, this.auditForm.remark,this.auditForm.integral)
|
|
|
},
|
|
|
+ auditRefused(){
|
|
|
+ this.reqApplyOper(this.agreeRow,2, this.auditForm.remark,this.auditForm.integral)
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
})
|