|
@@ -48,8 +48,17 @@
|
|
|
<el-checkbox v-model="search.notComplete" true-label="1"></el-checkbox>
|
|
<el-checkbox v-model="search.notComplete" true-label="1"></el-checkbox>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot-scope="{type,size,row,$index}" slot="menuLeft">
|
|
<template slot-scope="{type,size,row,$index}" slot="menuLeft">
|
|
|
- <el-button icon="el-icon-plus" type="primary" :size="size" @click="detailsOpen = true">新建订单</el-button>
|
|
|
|
|
- <el-button type="warning" icon="el-icon-download" size="small" @click="outExport">导出</el-button>
|
|
|
|
|
|
|
+ <div style="display: flex;align-items: center;">
|
|
|
|
|
+ <el-button icon="el-icon-plus" type="primary" :size="size" @click="detailsOpen = true">新建订单</el-button>
|
|
|
|
|
+ <el-button type="warning" icon="el-icon-download" size="small" @click="outExport">导出</el-button>
|
|
|
|
|
+ <div style="display: flex;align-items: center;">
|
|
|
|
|
+ <div class="buttonBox">
|
|
|
|
|
+ <span>采购金额总计:</span>
|
|
|
|
|
+ <span>{{ expenditure }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
<template slot-scope="{ row, index }" slot="ordNo">
|
|
<template slot-scope="{ row, index }" slot="ordNo">
|
|
|
<span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.ordNo }}
|
|
<span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.ordNo }}
|
|
@@ -67,9 +76,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getList, remove, getGoodsInfo } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
|
|
|
|
+import { getList, remove, getDetails, getExpenditurePrice } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
import detailsPage from "./detailsPage"
|
|
import detailsPage from "./detailsPage"
|
|
|
-import { getDetails } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
|
|
import { getToken } from "@/util/auth";
|
|
import { getToken } from "@/util/auth";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -83,6 +91,7 @@ export default {
|
|
|
actualStatusList: [],
|
|
actualStatusList: [],
|
|
|
returnStatusList: [],
|
|
returnStatusList: [],
|
|
|
detailsOpen: false,
|
|
detailsOpen: false,
|
|
|
|
|
+ expenditure: 0,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
search: {},
|
|
search: {},
|
|
|
form: {},
|
|
form: {},
|
|
@@ -359,7 +368,7 @@ export default {
|
|
|
// label: '金额',
|
|
// label: '金额',
|
|
|
// prop: "totalMoney",
|
|
// prop: "totalMoney",
|
|
|
// overHidden: true,
|
|
// overHidden: true,
|
|
|
- // },
|
|
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
label: '已付金额',
|
|
label: '已付金额',
|
|
|
prop: "paymentAmountTl",
|
|
prop: "paymentAmountTl",
|
|
@@ -530,8 +539,14 @@ export default {
|
|
|
this.getWorkDicts("return_Status").then(res => {
|
|
this.getWorkDicts("return_Status").then(res => {
|
|
|
this.returnStatusList = res.data.data
|
|
this.returnStatusList = res.data.data
|
|
|
});
|
|
});
|
|
|
|
|
+ this.getExpenditurePriceData()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getExpenditurePriceData(params) {
|
|
|
|
|
+ getExpenditurePrice(params ? params : {}).then(res => {
|
|
|
|
|
+ this.expenditure = res.data.data
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
// 导出
|
|
// 导出
|
|
|
outExport() {
|
|
outExport() {
|
|
|
console.log(this.search, 412)
|
|
console.log(this.search, 412)
|
|
@@ -640,6 +655,7 @@ export default {
|
|
|
this.$refs.crud.doLayout()
|
|
this.$refs.crud.doLayout()
|
|
|
this.$refs.crud.dicInit()
|
|
this.$refs.crud.dicInit()
|
|
|
})
|
|
})
|
|
|
|
|
+ this.getExpenditurePriceData(params)
|
|
|
this.loading = false
|
|
this.loading = false
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -684,6 +700,16 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
|
|
+.buttonBox {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ color: #909399;
|
|
|
|
|
+ margin-left: 10px;
|
|
|
|
|
+ border: 1px solid #d3d4d6;
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+ padding: 6px 10px;
|
|
|
|
|
+ background: #f4f4f5;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.bottomBox {
|
|
.bottomBox {
|
|
|
padding: 3px 6px;
|
|
padding: 3px 6px;
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|