|
@@ -4,29 +4,20 @@
|
|
|
<avue-crud :option="option" :search.sync="search" v-model="form" :table-loading="loading" :data="dataList"
|
|
|
ref="crud" :key="key" @on-load="onLoad" @search-change="searchChange" @row-del="rowDel"
|
|
|
@expand-change="expandChange" @refresh-change="refreshChange"
|
|
|
- @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 342)"
|
|
|
- @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 342)" :page.sync="page">
|
|
|
+ @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 405)"
|
|
|
+ @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 405)" :page.sync="page">
|
|
|
<template slot-scope="{type,size,row,index}" slot="menu">
|
|
|
- <!-- <el-button :size="size" :type="type" @click="check(row)">查看</el-button> -->
|
|
|
- <el-button :size="size" :type="type" :disabled="row.status != '录入' || row.numberRows != 0"
|
|
|
- @click="$refs.crud.rowDel(row, index)">删除</el-button>
|
|
|
- </template>
|
|
|
- <template slot="corpNameSearch">
|
|
|
- <crop-select v-model="search.corpId" corpType="KH" :refresh="false"></crop-select>
|
|
|
- </template>
|
|
|
- <template slot="notCompleteSearch">
|
|
|
- <el-checkbox v-model="search.notComplete" true-label="1"></el-checkbox>
|
|
|
+ <el-button :size="size" :type="type" @click="$refs.crud.rowDel(row, index)">删除</el-button>
|
|
|
</template>
|
|
|
<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>
|
|
|
+ <el-button icon="el-icon-plus" type="primary" :size="size" @click="detailsOpen = true">新建</el-button>
|
|
|
</template>
|
|
|
- <template slot-scope="{ row, index }" slot="ordNo">
|
|
|
- <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.ordNo }}
|
|
|
+ <template slot-scope="{ row, index }" slot="confirmingPersonName">
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.confirmingPersonName }}
|
|
|
</span>
|
|
|
</template>
|
|
|
- <template slot-scope="{ row, index }" slot="srcOrdNo">
|
|
|
- <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 3)">{{ row.srcOrdNo }}
|
|
|
+ <template slot-scope="{ row, index }" slot="sysNo">
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.sysNo }}
|
|
|
</span>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
@@ -37,7 +28,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getList, remove, getGoodsInfo } from "@/api/tirePartsMall/salesService/saleOrder";
|
|
|
+import { getList, remove } from "@/api/tirePartsMall/financingManagement/balanceRecharge";
|
|
|
import detailsPage from "./detailsPage"
|
|
|
import { getDetails } from "@/api/tirePartsMall/salesService/saleOrder";
|
|
|
import { getToken } from "@/util/auth";
|
|
@@ -50,8 +41,6 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
detailsOpen: false,
|
|
|
- orderStatusList: [],
|
|
|
- actualStatusList: [],
|
|
|
loading: false,
|
|
|
search: {},
|
|
|
form: {},
|
|
@@ -88,27 +77,18 @@ export default {
|
|
|
dialogWidth: "70%",
|
|
|
summaryText: "合计",
|
|
|
showSummary: true,
|
|
|
- sumColumnList: [{
|
|
|
- name: 'goodsTotalNum',
|
|
|
- type: 'sum',
|
|
|
- decimals: 0
|
|
|
- }, {
|
|
|
- name: 'returnsNumber',
|
|
|
- type: 'sum',
|
|
|
- }, {
|
|
|
- name: 'returnsAmount',
|
|
|
- type: 'sum',
|
|
|
- }],
|
|
|
- column: [
|
|
|
+ sumColumnList: [
|
|
|
{
|
|
|
- label: '业务编号',
|
|
|
- prop: "ordNo",
|
|
|
- search: true,
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
+ name: 'fundingAmount',
|
|
|
+ type: 'sum',
|
|
|
+ }, {
|
|
|
+ name: 'availableAmount',
|
|
|
+ type: 'sum',
|
|
|
+ }],
|
|
|
+ column: [
|
|
|
{
|
|
|
- label: '往来单位',
|
|
|
- prop: "customerName",
|
|
|
+ label: '确认人',
|
|
|
+ prop: "confirmingPersonName",
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
type: 'select',
|
|
@@ -119,123 +99,76 @@ export default {
|
|
|
value: 'cname',
|
|
|
res: 'data.records'
|
|
|
},
|
|
|
- dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=KH&cname={{key}}',
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
|
|
|
},
|
|
|
{
|
|
|
- label: '显示已完成',
|
|
|
- prop: 'notComplete',
|
|
|
+ label: '单号',
|
|
|
+ prop: "sysNo",
|
|
|
overHidden: true,
|
|
|
- hide: true,
|
|
|
- search: true,
|
|
|
- searchslot: true
|
|
|
},
|
|
|
{
|
|
|
- label: '业务员',
|
|
|
- disabled: false,
|
|
|
- prop: "salerName",
|
|
|
- search: true,
|
|
|
- type: "select",
|
|
|
- props: {
|
|
|
- label: "name",
|
|
|
- value: "id"
|
|
|
- },
|
|
|
- dicUrl: "/api/blade-user/salerList",
|
|
|
- filterable: true,
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: " ",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
+ label: '金额',
|
|
|
+ prop: "amount",
|
|
|
+ overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
- label: '仓库',
|
|
|
- prop: "storageName",
|
|
|
- search: true,
|
|
|
- overHidden: true,
|
|
|
- // remote: true,
|
|
|
+ label: '状态',
|
|
|
+ prop: "status",
|
|
|
type: 'select',
|
|
|
- props: {
|
|
|
- label: 'cname',
|
|
|
- value: 'cname'
|
|
|
- },
|
|
|
- dicUrl: '/api/blade-sales-part/storageDesc/listAll?cname={{key}}',
|
|
|
+ dicData: [{
|
|
|
+ label: '已确认',
|
|
|
+ value: 1
|
|
|
+ }, {
|
|
|
+ label: '录入',
|
|
|
+ value: 0
|
|
|
+ }],
|
|
|
+ overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
- label: '行数',
|
|
|
- prop: "numberRows",
|
|
|
+ label: "确认时间",
|
|
|
+ prop: "confirmingPersonDate",
|
|
|
+ searchProp: "confirmingPersonDateList",
|
|
|
+ type: "date",
|
|
|
+ search: true,
|
|
|
overHidden: true,
|
|
|
+ searchRange: true,
|
|
|
+ searchDefaultTime: ["00:00:00", "23:59:59"],
|
|
|
+ format: "yyyy-MM-dd",
|
|
|
+ valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
|
},
|
|
|
{
|
|
|
- label: '商品名称',
|
|
|
- prop: "goodsNameJoin",
|
|
|
+ label: "制单人",
|
|
|
+ prop: "createUserName",
|
|
|
+ searchProp: "createUser",
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
filterable: true,
|
|
|
remote: true,
|
|
|
- type: 'select',
|
|
|
+ type: "select",
|
|
|
+ dicUrl: "/api/blade-user/page?size=20¤t=1&account={{key}}",
|
|
|
props: {
|
|
|
- label: 'cname',
|
|
|
- value: 'cname',
|
|
|
+ label: "account",
|
|
|
+ value: "id",
|
|
|
res: 'data.records'
|
|
|
- },
|
|
|
- dicUrl: "/api/blade-sales-part/goodsDesc/list?current=1&size=20&cname={{key}}"
|
|
|
- },
|
|
|
- {
|
|
|
- label: '数量',
|
|
|
- prop: "goodsTotalNum",
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '退货数量',
|
|
|
- prop: "returnsNumber",
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '退货金额',
|
|
|
- prop: "returnsAmount",
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '销售单号',
|
|
|
- prop: "srcNo",
|
|
|
- search: true,
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '状态',
|
|
|
- prop: "status",
|
|
|
- overHidden: true,
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- label: '业务日期',
|
|
|
- prop: "businesDate",
|
|
|
- searchProp: "businesDateList",
|
|
|
+ label: "制单日期",
|
|
|
+ prop: "createTime",
|
|
|
+ searchProp: "createTimeList",
|
|
|
type: "date",
|
|
|
- overHidden: true,
|
|
|
search: true,
|
|
|
- width: 100,
|
|
|
+ overHidden: true,
|
|
|
searchRange: true,
|
|
|
searchDefaultTime: ["00:00:00", "23:59:59"],
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
|
},
|
|
|
- // {
|
|
|
- // label: '状态',
|
|
|
- // prop: "returnsStatus",
|
|
|
- // overHidden: true,
|
|
|
- // type: 'select',
|
|
|
- // dicUrl: "/api/blade-system/dict-biz/dictionary?code=sales_Status",
|
|
|
- // props: {
|
|
|
- // label: "dictValue",
|
|
|
- // value: "dictKey"
|
|
|
- // }
|
|
|
- // },
|
|
|
{
|
|
|
- label: "制单人",
|
|
|
- prop: "createUserName",
|
|
|
- searchProp: "createUser",
|
|
|
+ label: "更新人",
|
|
|
+ prop: "updateUserName",
|
|
|
+ searchProp: "updateUser",
|
|
|
overHidden: true,
|
|
|
- width: 100,
|
|
|
filterable: true,
|
|
|
remote: true,
|
|
|
type: "select",
|
|
@@ -247,12 +180,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: "制单日期",
|
|
|
- prop: "createTime",
|
|
|
- searchProp: "createTimeList",
|
|
|
+ label: "更新日期",
|
|
|
+ prop: "updateTime",
|
|
|
+ searchProp: "updateTimeList",
|
|
|
type: "date",
|
|
|
overHidden: true,
|
|
|
- width: 100,
|
|
|
searchRange: true,
|
|
|
searchDefaultTime: ["00:00:00", "23:59:59"],
|
|
|
format: "yyyy-MM-dd",
|
|
@@ -264,33 +196,14 @@ export default {
|
|
|
},
|
|
|
activated() {
|
|
|
setTimeout(() => {
|
|
|
- if (this.$route.query.showTrue) {
|
|
|
- this.$store.commit("XSTH_IN_DETAIL");
|
|
|
+ if (this.$route.query.srcId) {
|
|
|
+ this.$store.commit("IN_BALANCE_DETAIL");
|
|
|
this.detailsOpen = true;
|
|
|
}
|
|
|
- if (this.$route.query.check) {
|
|
|
- this.editOpen({ id: this.$route.query.check.srcBillId }, 1)
|
|
|
- this.$store.commit("XSTH_IN_DETAIL");
|
|
|
- this.detailData = {
|
|
|
- id: this.$route.query.check.billId,
|
|
|
- check: this.$route.query.check,
|
|
|
- auditId: this.$route.query.check.id
|
|
|
- };
|
|
|
- }
|
|
|
- if (this.$route.query.type == 'S') {
|
|
|
- this.editOpen({ id: this.$route.query.detail.srcParentId }, 1)
|
|
|
- }
|
|
|
- if (this.$route.query.jumpId) {
|
|
|
- this.editOpen({ id: this.$route.query.jumpId }, 1)
|
|
|
- }
|
|
|
- if (this.$route.query.bsType == 'TKXS') {
|
|
|
- this.$store.commit("XSTH_IN_DETAIL");
|
|
|
- this.editOpen({ id: this.$route.query.id }, 1)
|
|
|
- }
|
|
|
}, 100);
|
|
|
},
|
|
|
async created() {
|
|
|
- this.option = await this.getColumnData(this.getColumnName(342), this.optionList);
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(405), this.optionList);
|
|
|
this.key++
|
|
|
let i = 0;
|
|
|
this.option.column.forEach(item => {
|
|
@@ -301,18 +214,10 @@ export default {
|
|
|
// this.option.searchMenuSpan = num * 8;
|
|
|
// this.option.searchMenuPosition = "right";
|
|
|
// }
|
|
|
- this.getWorkDicts("sales_Status").then(res => {
|
|
|
- this.orderStatusList = res.data.data
|
|
|
- console.log(this.orderStatusList);
|
|
|
- });
|
|
|
- this.getWorkDicts("settlement_Status").then(res => {
|
|
|
- this.actualStatusList = res.data.data
|
|
|
- });
|
|
|
},
|
|
|
methods: {
|
|
|
// 导出
|
|
|
outExport() {
|
|
|
- console.log(this.search, 412)
|
|
|
let config = { params: { ...this.search } }
|
|
|
if (config.params) {
|
|
|
for (const propName of Object.keys(config.params)) {
|
|
@@ -328,8 +233,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(config, 427)
|
|
|
- config.params.bsType = 'TKXS'
|
|
|
const routeData = this.$router.resolve({
|
|
|
path: '/api/blade-sales-part/returns/listExport', //跳转目标下载地址
|
|
|
query: {
|
|
@@ -348,14 +251,14 @@ export default {
|
|
|
if (type === 0) {
|
|
|
this.detailData = {}
|
|
|
}
|
|
|
- if (this.$route.query.bsType) {
|
|
|
+ if (this.$route.query.srcId) {
|
|
|
this.$router.$avueRouter.closeTag(this.$route.fullPath);
|
|
|
this.$router.push({
|
|
|
- path: "/tirePartsMall/salesService/returns/index"
|
|
|
+ path: "/tirePartsMall/financingManagement/balanceRecharge/index"
|
|
|
});
|
|
|
}
|
|
|
this.onLoad(this.page, this.search)
|
|
|
- this.$store.commit("XSTH_OUT_DETAIL");
|
|
|
+ this.$store.commit("OUT_BALANCE_DETAIL");
|
|
|
|
|
|
},
|
|
|
editOpen(row, status) {
|
|
@@ -364,7 +267,7 @@ export default {
|
|
|
id: row.id,
|
|
|
status: status
|
|
|
};
|
|
|
- this.$store.commit("XSTH_IN_DETAIL");
|
|
|
+ this.$store.commit("IN_BALANCE_DETAIL");
|
|
|
this.detailsOpen = true;
|
|
|
},
|
|
|
//刷新
|
|
@@ -409,7 +312,6 @@ export default {
|
|
|
...params,
|
|
|
current: page.currentPage,
|
|
|
size: page.pageSize,
|
|
|
- bsType: "TKXS",
|
|
|
...Object.assign(params, this.search)
|
|
|
}
|
|
|
this.loading = true
|
|
@@ -428,7 +330,6 @@ export default {
|
|
|
this.$refs.crud.doLayout()
|
|
|
this.$refs.crud.dicInit()
|
|
|
})
|
|
|
- this.loading = false
|
|
|
}).finally(() => {
|
|
|
this.loading = false
|
|
|
})
|