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 @@
: ""
}}</span>
</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">
<template slot-scope="scope">
<!-- <el-button type="text"
......@@ -912,7 +922,7 @@ export default {
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList,
updateList: (state) => state.d2admin.user.updateList,
updateList: (state) => state.d2admin.user.updateList
}),
specialAccout() {
return this.userInfo?.loginAccount?.loginAccout == "18123663366"
......@@ -1075,7 +1085,7 @@ export default {
this.$refs.fileRuleForm.validate((valid) => {
if (valid) {
var params = {
file: this.fileInfo
file: this.fileInfo
}
api.uploadFile(params).then((res) => {
if (res) {
......@@ -1365,7 +1375,6 @@ export default {
},
getParams() {
var params = this.getSelectInputParams()
if (this.searchForm.yqMerchantId) {
params.yqMerchantId = this.searchForm.yqMerchantId
}
......@@ -1407,9 +1416,13 @@ export default {
if (this.searchForm?.sceneType == 0 && this.searchForm?.businessType) {
params.businessType = this.searchForm?.businessType
}
if (this.searchForm.reconciliationFlag) {
params.reconciliationFlag = this.searchForm?.reconciliationFlag
}
return params
},
getTotal() {
console.log(this.getParams())
api.getListTotal(this.getParams()).then((res) => {
this.totalObj = res
})
......@@ -1641,25 +1654,25 @@ export default {
display: inline-block;
}
.m-l-md {
margin-left: 20px;
}
.import-btn {
position: relative;
}
.import-input {
opacity: 0;
position: absolute;
right: 0;
top: 0;
width: 98px;
height: 36px;
cursor: pointer;
font-size: 0;
}
.import-template {
position: absolute;
height: 20px;
top: 50px;
left: 0;
}
margin-left: 20px;
}
.import-btn {
position: relative;
}
.import-input {
opacity: 0;
position: absolute;
right: 0;
top: 0;
width: 98px;
height: 36px;
cursor: pointer;
font-size: 0;
}
.import-template {
position: absolute;
height: 20px;
top: 50px;
left: 0;
}
</style>
......@@ -97,7 +97,7 @@ export default {
},
searchFormSearch: {},
searchForm: {
businessCodeArr:[],
businessCodeArr: [],
storeName: "",
reportDate: [],
storeBrandId: "",
......@@ -114,13 +114,25 @@ export default {
label: "主营品牌",
name: "storeBrandId",
type: "select",
// multiple: true,
// multiple: true,
isClear: true,
collapseTags: true,
optionList: [],
optionId: "id",
optionLabel: "label",
optionsName: "brandList"
},
// {
// label: "主营品牌",
// name: "storeBrandId",
// type: "select",
// // multiple: true,
// isClear: true,
// optionList: [],
// optionId: "id",
// optionLabel: "label",
// optionsName: "brandList"
// },
{
label: "业务类型",
name: "businessCode",
......@@ -161,10 +173,13 @@ export default {
})
},
beforeSearchFn(type = 1) {
console.log(this.searchForm)
console.log(this.searchForm)
return new Promise((resolve, reject) => {
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) {
let [startDate, endDate] = this.searchForm.reportDate
this.searchFormSearch.startDate = Util.dateFormate(
......@@ -232,13 +247,21 @@ export default {
})
})
},
getBrandList() {
const brandList = []
return new Promise((resolve, reject) => {
getBrandList({})
getBrandList({ containsChildren: true })
.then((res) => {
this.baseData.brandList = res
resolve(res) // 返回结果以便主流程感知
res.map((e) => {
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) => {
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!