Commit e4b11133 by 前端

Merge branch 'SAAS+V4.51.1-0415' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.51.1-0415
2 parents a4ddf618 9cfa2444
...@@ -565,6 +565,16 @@ ...@@ -565,6 +565,16 @@
: "" : ""
}}</span> }}</span>
</el-table-column> </el-table-column>
<el-table-column
prop="reconciliationFlag"
label="对账状态"
align="center"
>
<template slot-scope="scope">
<span v-if="scope.row.reconciliationFlag === 'Y'">已对账</span>
<span v-else>未对账</span>
</template>
</el-table-column>
<el-table-column align="center" label="操作" width="120" fixed="right"> <el-table-column align="center" label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button type="text" <!-- <el-button type="text"
...@@ -912,7 +922,7 @@ export default { ...@@ -912,7 +922,7 @@ export default {
computed: { computed: {
...mapState({ ...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList, dowloadList: (state) => state.d2admin.user.dowloadList,
updateList: (state) => state.d2admin.user.updateList, updateList: (state) => state.d2admin.user.updateList
}), }),
specialAccout() { specialAccout() {
return this.userInfo?.loginAccount?.loginAccout == "18123663366" return this.userInfo?.loginAccount?.loginAccout == "18123663366"
...@@ -1365,7 +1375,6 @@ export default { ...@@ -1365,7 +1375,6 @@ export default {
}, },
getParams() { getParams() {
var params = this.getSelectInputParams() var params = this.getSelectInputParams()
if (this.searchForm.yqMerchantId) { if (this.searchForm.yqMerchantId) {
params.yqMerchantId = this.searchForm.yqMerchantId params.yqMerchantId = this.searchForm.yqMerchantId
} }
...@@ -1407,9 +1416,13 @@ export default { ...@@ -1407,9 +1416,13 @@ export default {
if (this.searchForm?.sceneType == 0 && this.searchForm?.businessType) { if (this.searchForm?.sceneType == 0 && this.searchForm?.businessType) {
params.businessType = this.searchForm?.businessType params.businessType = this.searchForm?.businessType
} }
if (this.searchForm.reconciliationFlag) {
params.reconciliationFlag = this.searchForm?.reconciliationFlag
}
return params return params
}, },
getTotal() { getTotal() {
console.log(this.getParams())
api.getListTotal(this.getParams()).then((res) => { api.getListTotal(this.getParams()).then((res) => {
this.totalObj = res this.totalObj = res
}) })
...@@ -1642,11 +1655,11 @@ export default { ...@@ -1642,11 +1655,11 @@ export default {
} }
.m-l-md { .m-l-md {
margin-left: 20px; margin-left: 20px;
} }
.import-btn { .import-btn {
position: relative; position: relative;
} }
.import-input { .import-input {
opacity: 0; opacity: 0;
position: absolute; position: absolute;
right: 0; right: 0;
...@@ -1655,11 +1668,11 @@ export default { ...@@ -1655,11 +1668,11 @@ export default {
height: 36px; height: 36px;
cursor: pointer; cursor: pointer;
font-size: 0; font-size: 0;
} }
.import-template { .import-template {
position: absolute; position: absolute;
height: 20px; height: 20px;
top: 50px; top: 50px;
left: 0; left: 0;
} }
</style> </style>
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}, },
searchFormSearch: {}, searchFormSearch: {},
searchForm: { searchForm: {
businessCodeArr:[], businessCodeArr: [],
storeName: "", storeName: "",
reportDate: [], reportDate: [],
storeBrandId: "", storeBrandId: "",
...@@ -116,11 +116,23 @@ export default { ...@@ -116,11 +116,23 @@ export default {
type: "select", type: "select",
// multiple: true, // multiple: true,
isClear: true, isClear: true,
collapseTags: true,
optionList: [], optionList: [],
optionId: "id", optionId: "id",
optionLabel: "label", optionLabel: "label",
optionsName: "brandList" optionsName: "brandList"
}, },
// {
// label: "主营品牌",
// name: "storeBrandId",
// type: "select",
// // multiple: true,
// isClear: true,
// optionList: [],
// optionId: "id",
// optionLabel: "label",
// optionsName: "brandList"
// },
{ {
label: "业务类型", label: "业务类型",
name: "businessCode", name: "businessCode",
...@@ -164,7 +176,10 @@ export default { ...@@ -164,7 +176,10 @@ export default {
console.log(this.searchForm) console.log(this.searchForm)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.businessCode=this.searchFormSearch.businessCodeArr.length>1?this.searchFormSearch.businessCodeArr[1]:'' this.searchFormSearch.businessCode =
this.searchFormSearch.businessCodeArr.length > 1
? this.searchFormSearch.businessCodeArr[1]
: ""
if (this.searchForm?.reportDate?.length) { if (this.searchForm?.reportDate?.length) {
let [startDate, endDate] = this.searchForm.reportDate let [startDate, endDate] = this.searchForm.reportDate
this.searchFormSearch.startDate = Util.dateFormate( this.searchFormSearch.startDate = Util.dateFormate(
...@@ -232,13 +247,21 @@ export default { ...@@ -232,13 +247,21 @@ export default {
}) })
}) })
}, },
getBrandList() { getBrandList() {
const brandList = []
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getBrandList({}) getBrandList({ containsChildren: true })
.then((res) => { .then((res) => {
this.baseData.brandList = res res.map((e) => {
resolve(res) // 返回结果以便主流程感知 if (e && e.children && e.children.length) {
e.children.map((i) => {
i.brandId = e.id
brandList.push(i)
})
}
})
this.baseData.brandList = brandList
resolve(brandList) // 返回结果以便主流程感知
}) })
.catch((err) => { .catch((err) => {
console.error("Error in getBrandList:", err) console.error("Error in getBrandList:", err)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!