|
@@ -5,8 +5,8 @@
|
|
<div class="squrt"></div>订单审核
|
|
<div class="squrt"></div>订单审核
|
|
</h2>
|
|
</h2>
|
|
<div class="m-core">
|
|
<div class="m-core">
|
|
- <el-form :inline="true"
|
|
|
|
- :model="searchForm">
|
|
|
|
|
|
+
|
|
|
|
+ <saveform ref="searchForm" :model.sync="searchForm" inline style="margin-top: 20px" >
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-input v-model.trim="searchForm.transNo"
|
|
<el-input v-model.trim="searchForm.transNo"
|
|
@keyup.enter.native="transNo"
|
|
@keyup.enter.native="transNo"
|
|
@@ -55,7 +55,7 @@
|
|
<el-button @click="onReSet"
|
|
<el-button @click="onReSet"
|
|
type="primary">重置</el-button>
|
|
type="primary">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-form>
|
|
|
|
|
|
+ </saveform>
|
|
<div class="tableWrap">
|
|
<div class="tableWrap">
|
|
<el-table style="width: 100%"
|
|
<el-table style="width: 100%"
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
@@ -129,7 +129,9 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <pagination :total="rules.total"
|
|
|
|
|
|
+ <pagination
|
|
|
|
+ sync
|
|
|
|
+ :total.sync="rules.total"
|
|
:page.sync="rules.page"
|
|
:page.sync="rules.page"
|
|
:limit.sync="rules.limit"
|
|
:limit.sync="rules.limit"
|
|
:page-sizes="rules.page_size"
|
|
:page-sizes="rules.page_size"
|
|
@@ -170,21 +172,22 @@ import { getToken } from "@/utils/auth";
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import load from "@/utils/loading";
|
|
import load from "@/utils/loading";
|
|
import { getEmployeeOrgan, getAddress, getCooperation } from "@/api/buildTeam";
|
|
import { getEmployeeOrgan, getAddress, getCooperation } from "@/api/buildTeam";
|
|
-import { orderServerList, orderAuditTypeList } from "@/utils/searchArray"
|
|
|
|
-import orderAuditDetail from './orderAuditDetail'
|
|
|
|
-import { getRouteOrderList } from '@/api/orderManager'
|
|
|
|
-import { goodsQuery } from '@/api/businessManager'
|
|
|
|
-import { formatData } from '@/utils/utils';
|
|
|
|
-import Tooltip from '@/components/Tooltip/index'
|
|
|
|
|
|
+import { orderServerList, orderAuditTypeList } from "@/utils/searchArray";
|
|
|
|
+import orderAuditDetail from "./orderAuditDetail";
|
|
|
|
+import { getRouteOrderList } from "@/api/orderManager";
|
|
|
|
+import { goodsQuery } from "@/api/businessManager";
|
|
|
|
+import { formatData } from "@/utils/utils";
|
|
|
|
+import Tooltip from "@/components/Tooltip/index";
|
|
|
|
+import saveform from '@/components/save-form'
|
|
export default {
|
|
export default {
|
|
- components: { pagination, orderAuditDetail, Tooltip },
|
|
|
|
- data () {
|
|
|
|
|
|
+ components: { pagination, orderAuditDetail, Tooltip,saveform },
|
|
|
|
+ data() {
|
|
return {
|
|
return {
|
|
searchForm: {
|
|
searchForm: {
|
|
transNo: null,
|
|
transNo: null,
|
|
organId: null,
|
|
organId: null,
|
|
auditStatus: null,
|
|
auditStatus: null,
|
|
- type: null
|
|
|
|
|
|
+ type: null,
|
|
},
|
|
},
|
|
tableList: [],
|
|
tableList: [],
|
|
organList: [],
|
|
organList: [],
|
|
@@ -195,104 +198,102 @@ export default {
|
|
limit: 10, // 限制显示条数
|
|
limit: 10, // 限制显示条数
|
|
page: 1, // 当前页
|
|
page: 1, // 当前页
|
|
total: 0, // 总条数
|
|
total: 0, // 总条数
|
|
- page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
|
|
|
+ page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
},
|
|
},
|
|
orderVisible: false,
|
|
orderVisible: false,
|
|
activceId: null,
|
|
activceId: null,
|
|
activeRow: null,
|
|
activeRow: null,
|
|
- isLook: null
|
|
|
|
|
|
+ isLook: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
- created () { },
|
|
|
|
|
|
+ created() {},
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
- mounted () {
|
|
|
|
- getEmployeeOrgan().then(res => {
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ getEmployeeOrgan().then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.organList = res.data;
|
|
this.organList = res.data;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
// 获取分部
|
|
// 获取分部
|
|
- goodsQuery({ status: 1, rows: 99999 }).then(res => {
|
|
|
|
|
|
+ goodsQuery({ status: 1, rows: 99999 }).then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
-
|
|
|
|
- this.shopList = res.data.rows
|
|
|
|
|
|
+ this.shopList = res.data.rows;
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
- activated () {
|
|
|
|
|
|
+ activated() {
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- init () {
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ init() {
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
- search () {
|
|
|
|
|
|
+ search() {
|
|
|
|
+ this.$refs.searchForm.save( this.searchForm)
|
|
this.rules.page = 1;
|
|
this.rules.page = 1;
|
|
- this.getList()
|
|
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
- onReSet () {
|
|
|
|
|
|
+ onReSet() {
|
|
this.searchForm = {
|
|
this.searchForm = {
|
|
transNo: null,
|
|
transNo: null,
|
|
organId: null,
|
|
organId: null,
|
|
auditStatus: null,
|
|
auditStatus: null,
|
|
- type: null
|
|
|
|
- }
|
|
|
|
- this.search()
|
|
|
|
|
|
+ type: null,
|
|
|
|
+ };
|
|
|
|
+ this.search();
|
|
},
|
|
},
|
|
- getList () {
|
|
|
|
- let params = this.searchForm
|
|
|
|
- params.rows = this.rules.limit
|
|
|
|
- params.page = this.rules.page
|
|
|
|
- getRouteOrderList(params).then(res => {
|
|
|
|
|
|
+ getList() {
|
|
|
|
+ let params = this.searchForm;
|
|
|
|
+ params.rows = this.rules.limit;
|
|
|
|
+ params.page = this.rules.page;
|
|
|
|
+ getRouteOrderList(params).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- this.tableList = res.data.rows
|
|
|
|
- this.rules.total = res.data.total
|
|
|
|
- this.orderVisible = false
|
|
|
|
|
|
+ this.tableList = res.data.rows;
|
|
|
|
+ this.rules.total = res.data.total;
|
|
|
|
+ this.orderVisible = false;
|
|
}
|
|
}
|
|
-
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- lookDetail (row) {
|
|
|
|
- this.activceId = row.id
|
|
|
|
- this.activeRow = row
|
|
|
|
- this.isLook = true
|
|
|
|
- this.orderVisible = true
|
|
|
|
|
|
+ lookDetail(row) {
|
|
|
|
+ this.activceId = row.id;
|
|
|
|
+ this.activeRow = row;
|
|
|
|
+ this.isLook = true;
|
|
|
|
+ this.orderVisible = true;
|
|
},
|
|
},
|
|
- resetDetail (row) {
|
|
|
|
- this.activceId = row.id
|
|
|
|
- this.activeRow = row
|
|
|
|
- this.isLook = false
|
|
|
|
- this.orderVisible = true
|
|
|
|
|
|
+ resetDetail(row) {
|
|
|
|
+ this.activceId = row.id;
|
|
|
|
+ this.activeRow = row;
|
|
|
|
+ this.isLook = false;
|
|
|
|
+ this.orderVisible = true;
|
|
},
|
|
},
|
|
- submit (str) {
|
|
|
|
|
|
+ submit(str) {
|
|
let message;
|
|
let message;
|
|
- str == 'REJECT' ? message = '驳回' : message = '同意'
|
|
|
|
|
|
+ str == "REJECT" ? (message = "驳回") : (message = "同意");
|
|
this.$confirm(`是否${message}审核`, "提示", {
|
|
this.$confirm(`是否${message}审核`, "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.$refs.orderAuditDetail.auditOutOrder(str)
|
|
|
|
|
|
+ this.$refs.orderAuditDetail.auditOutOrder(str);
|
|
})
|
|
})
|
|
- .catch(() => { });
|
|
|
|
-
|
|
|
|
|
|
+ .catch(() => {});
|
|
},
|
|
},
|
|
- submitReaet () {
|
|
|
|
|
|
+ submitReaet() {
|
|
this.$confirm(`是否提交修改`, "提示", {
|
|
this.$confirm(`是否提交修改`, "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.$refs.orderAuditDetail.submitReaet()
|
|
|
|
|
|
+ this.$refs.orderAuditDetail.submitReaet();
|
|
})
|
|
})
|
|
- .catch(() => { });
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ .catch(() => {});
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang='scss' scoped>
|
|
<style lang='scss' scoped>
|