Commit b0c15a12 by 张立顺

feat 功能开发

1 parent a5f80d11
...@@ -312,3 +312,14 @@ export function updateDailyReportFlag(data) { ...@@ -312,3 +312,14 @@ export function updateDailyReportFlag(data) {
data.method = "dj.api.smartcarlife.serviceMerchant.dailyReportFillFlag.update" data.method = "dj.api.smartcarlife.serviceMerchant.dailyReportFillFlag.update"
return request(data) return request(data)
} }
// 接口名称:查询门店轻改录单设置
export function getOrderFieldSettingList(data) {
data.method = "dj.api.smartcarlife.order.field.lightChange.setting.list"
return request(data)
}
// 接口名称:更新门店录单设置
export function updateOrderFieldSetting(data) {
data.method = "dj.api.smartcarlife.order.field.setting.update"
return request(data)
}
...@@ -188,7 +188,8 @@ ...@@ -188,7 +188,8 @@
<equitySetVue></equitySetVue> <equitySetVue></equitySetVue>
</template> </template>
<template v-if="activeName == 'upgradeOrderSetting'"> <template v-if="activeName == 'upgradeOrderSetting'">
<div class="upgrade_container"> <orderSetting></orderSetting>
<!-- <div class="upgrade_container">
<div class="top_wrap"> <div class="top_wrap">
<div class="title-header"> <div class="title-header">
<div class="line"></div> <div class="line"></div>
...@@ -217,7 +218,7 @@ ...@@ -217,7 +218,7 @@
</el-button> </el-button>
<el-button class="cancel-btn" @click="handleCancel"> 取消 </el-button> <el-button class="cancel-btn" @click="handleCancel"> 取消 </el-button>
</div> </div>
</div> </div> -->
</template> </template>
</div> </div>
</div> </div>
...@@ -229,15 +230,10 @@ ...@@ -229,15 +230,10 @@
// import dayjs from "dayjs" // import dayjs from "dayjs"
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { getDiversionMerchantRef, serviceGetMerchantList, insertOrUpdateDiversionMerchantRef, getBaseInfo, updateCardCodeFlag, brandSetting, configureCar, updateSignatureConfiguration, getSignatureConfiguration } from '@api/merchant' import { getBaseInfo, updateCardCodeFlag, brandSetting, configureCar, updateSignatureConfiguration, getSignatureConfiguration } from '@api/merchant'
// import ledgerAccount from "./components/ledgerAccount.vue"
// import reconciliation from "./components/reconciliation.vue"
// import {
// getLedgerHistoryRecordApi,
// getReconciliationHistoryRecordApi
// } from "@api/merchant"
import equitySetVue from './components/equitySet.vue' import equitySetVue from './components/equitySet.vue'
import { updateLightModifyOrderConfig } from '@api/shopConfig' import orderSetting from './components/orderSetting.vue'
export default { export default {
name: "SetDetail", name: "SetDetail",
props: { props: {
...@@ -253,11 +249,13 @@ export default { ...@@ -253,11 +249,13 @@ export default {
components: { components: {
// ledgerAccount, // ledgerAccount,
// reconciliation // reconciliation
equitySetVue equitySetVue,
orderSetting
}, },
data() { data() {
return { return {
activeName: "setWarrantyCard", activeName: "setWarrantyCard",
// activeName: "upgradeOrderSetting",
merchantRow: {}, merchantRow: {},
// formArray: [], // formArray: [],
form: { form: {
...@@ -307,12 +305,12 @@ export default { ...@@ -307,12 +305,12 @@ export default {
signatureSwitch: 0, signatureSwitch: 0,
sceneType: 1 sceneType: 1
}, },
formData: { // formData: {
expiredTraffic: 'N' // expiredTraffic: 'N'
}, // },
rules: { // rules: {
expiredTraffic: [{ required: true, message: "请选择流量失效", trigger: "change" }] // expiredTraffic: [{ required: true, message: "请选择流量失效", trigger: "change" }]
} // }
} }
}, },
watch: { watch: {
...@@ -376,102 +374,12 @@ export default { ...@@ -376,102 +374,12 @@ export default {
} }
} else if (this.activeName == "constructionSet") { } else if (this.activeName == "constructionSet") {
this.getSignatureConfiguration(this.merchantRow.merchantId) this.getSignatureConfiguration(this.merchantRow.merchantId)
} else if (this.activeName == "upgradeOrderSetting") {
this.getLightModifyOrderConfig(this.merchantRow.merchantId)
} }
// else if (this.activeName == "upgradeOrderSetting") {
// this.getLightModifyOrderConfig(this.merchantRow.merchantId)
// }
}, },
/** 下级商户配置start */
// setSubordinateMerchant_getInfo(merchantId) {
// getDiversionMerchantRef({
// merchantId: merchantId
// }).then(res => {
// this.subShopMerchantList = res || []
// if (this.subShopMerchantList.length > 0) {
// this.form.tableData = deepClone(this.subShopMerchantList)
// this.form.tableData = this.form.tableData.map(item => {
// const item_new = {
// id: item.id,
// merchantName: item.subMerchantName,
// merchantNo: item.subMerchantId
// }
// this.options.push(item_new)
// return item_new
// })
// }
// })
// },
// setSubordinateMerchant_handleAddConfirm() {
// this.$refs.editSubordinateMerchantFrom.validate(valid => {
// if (valid) {
// var params = {}
// params.merchantId = this.merchantRow.merchantId
// params.merchantName = this.merchantRow.merchantName
// const list = []
// let info
// this.form.tableData.forEach(item => {
// info = deepClone(item)
// info.subMerchantId = info.merchantNo
// info.subMerchantName = info.merchantName
// list.push(info)
// })
// params.list = list
// insertOrUpdateDiversionMerchantRef(params).then(res => {
// this.notice.okTips('操作成功')
// this.handleCancel()
// })
// }
// })
// },
// handleAddMerchant() {
// this.options = []
// this.form.tableData.push({
// // merchantName: '',
// merchantNo: ''
// })
// },
// handleDelMerchant(index) {
// this.form.tableData.splice(index, 1)
// },
// remoteMethod(queryString) {
// if (queryString) {
// this.loading = true
// setTimeout(() => {
// this.loading = false
// var params = { currentPage: 1, pageSize: 1000, merchantIdName: queryString }
// serviceGetMerchantList(params).then(res => {
// this.options = res.list || []
// })
// }, 200)
// } else {
// this.options = []
// }
// },
// setDisabled(val) {
// const info = this.form.tableData.find(item => item.merchantNo == val)
// if (info) {
// return true
// } else {
// return false
// }
// },
// changeOpt(val) {
// const info = this.options.find(item => item.merchantNo == val)
// console.log(info)
// this.form.tableData = this.form.tableData.map(item => {
// if (item.merchantNo == info.merchantNo) {
// const id = deepClone(item.id)
// delete info.id
// item = deepClone(info)
// if (id) {
// item.id = id
// // return item = Object.assign(info, { id: item.id })
// }
// }
// return item
// })
// console.log(this.form.tableData)
// },
handleCancel() { handleCancel() {
this.$router.push({ this.$router.push({
name: 'shopConfig', name: 'shopConfig',
...@@ -515,26 +423,6 @@ export default { ...@@ -515,26 +423,6 @@ export default {
}, },
/** 质保卡配置end */ /** 质保卡配置end */
/** 轻改录单配置start */
getLightModifyOrderConfig(merchantId) {
getBaseInfo({ merchantId: merchantId }).then(res => {
this.formData.expiredTraffic = res.trafficExpireFlag || 'N'
})
},
upgradeOrderSetting_handleConfirm() {
let params = {
merchantId: this.merchantRow.merchantId,
trafficExpireFlag: this.formData.expiredTraffic
}
updateLightModifyOrderConfig(params).then(res => {
this.notice.okTips('操作成功')
this.handleCancel()
})
},
/** 轻改录单配置end */
/** 品牌设置start */
// 品牌设置确认 // 品牌设置确认
brandOkButton() { brandOkButton() {
this.treeList = [] this.treeList = []
...@@ -1084,55 +972,6 @@ $color: #2a58ad; ...@@ -1084,55 +972,6 @@ $color: #2a58ad;
} }
} }
.upgrade_container {
.top_wrap {
padding: 12px 20px;
background: #fff;
.title-header {
display: flex;
align-items: center;
box-sizing: border-box;
border-bottom: 1px solid #e8e8ea;
padding: 12px 20px 16px;
.line {
width: 4px;
height: 16px;
background: #185efe;
border-radius: 2px;
margin-right: 8px;
}
.line_text {
width: 72px;
height: 24px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18px;
color: #333333;
}
}
.content_main {
padding: 20px 0 0;
}
.tip_container {
padding: 0 0 20px 170px;
.tip_title {
font-size: 12px;
color: #999999;
}
}
}
.footer_btn {
display: flex;
align-items: center;
padding: 16px 0px 16px 178px;
}
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!