Commit 809792cc 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 8f2d0153 7934fb92
...@@ -328,7 +328,12 @@ $prefix: d2; ...@@ -328,7 +328,12 @@ $prefix: d2;
.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow { .el-tooltip__popper.is-light[x-placement^=top] .popper__arrow {
border-color: #e4e7ed !important; border-color: #e4e7ed !important;
} }
.el-tooltip__popper.is-dark {
white-space:wrap;
width:400px;
height:auto;
padding: 8px 10px;
}
.el-textarea { .el-textarea {
.el-input__count { .el-input__count {
right: -55px; right: -55px;
......
...@@ -265,14 +265,15 @@ export default { ...@@ -265,14 +265,15 @@ export default {
this.provinceForm.lng = lnglat.lng.toFixed(4) this.provinceForm.lng = lnglat.lng.toFixed(4)
var mapData = this.$refs.mapForm.geocoderAddress var mapData = this.$refs.mapForm.geocoderAddress
// 赋值省市区名称和code // 赋值省市区名称和code
console.log(this.$refs.mapForm, '\\\\\\') console.log(mapData, '\\\\\\')
const { city, city_code, province, district, town_code } = mapData const { city, adcode, province, district, town_code } = mapData
console.log(adcode, 'adcode')
if (!this.provinceForm.provinceName) { if (!this.provinceForm.provinceName) {
this.provinceForm.provinceName = province this.provinceForm.provinceName = province
this.provinceForm.cityName = city this.provinceForm.cityName = city
this.provinceForm.townName = district this.provinceForm.townName = district
this.provinceForm.provinceCode = mapData.adcode this.provinceForm.provinceCode = +((adcode + '').slice(0,3) + '000')
this.provinceForm.cityCode = city_code this.provinceForm.cityCode = adcode
this.provinceForm.townCode = town_code this.provinceForm.townCode = town_code
} }
var fullAddress = '' var fullAddress = ''
......
...@@ -423,7 +423,7 @@ export default { ...@@ -423,7 +423,7 @@ export default {
handleData(goods) { handleData(goods) {
const _formData = deepClone(goods) const _formData = deepClone(goods)
_formData.settlementType = _formData.createBusinessProduct.settlementType _formData.settlementType = _formData.createBusinessProduct.settlementType
_formData.djCost = _formData.upgradeGoods?.djCost _formData.djCost = _formData.createBusinessProduct?.djCost
// console.log('_formData', _formData) // console.log('_formData', _formData)
const { goodsTypeName, secondaryGoodsTypeName, thirdLevelGoodsTypeName } = const { goodsTypeName, secondaryGoodsTypeName, thirdLevelGoodsTypeName } =
_formData?.goodsInfo || {} _formData?.goodsInfo || {}
......
...@@ -698,14 +698,20 @@ export default { ...@@ -698,14 +698,20 @@ export default {
sellPrice: "", // 参考售价 sellPrice: "", // 参考售价
minSellPrice: "", // 最低售价 minSellPrice: "", // 最低售价
djCost: "", // 嘀加成本 djCost: "", // 嘀加成本
thirdPartyCost: "" // 第三方成本 thirdPartyCost: "", // 第三方成本
upgradeGoods: {
djCost: ""
}
}) })
this.oldValList.unshift({ this.oldValList.unshift({
upgradeGoodsId: "", // 商品id upgradeGoodsId: "", // 商品id
sellPrice: "", // 参考售价 sellPrice: "", // 参考售价
minSellPrice: "", // 最低售价 minSellPrice: "", // 最低售价
djCost: "", // 嘀加成本 djCost: "", // 嘀加成本
thirdPartyCost: "" // 第三方成本 thirdPartyCost: "", // 第三方成本
upgradeGoods: {
djCost: ""
}
}) })
}, },
......
...@@ -416,12 +416,14 @@ export default { ...@@ -416,12 +416,14 @@ export default {
} }
} }
}, },
mounted() {
async mounted() {
if (this.info) { if (this.info) {
console.log("info", this.info) console.log("info", this.info)
this.packageForm.settlementType =
this.packageForm.createBusinessProduct.settlementType
this.packageForm = deepClone(this.info) this.packageForm = deepClone(this.info)
this.goodsList = deepClone(this.info.merchantGoodsInfoList) this.goodsList = deepClone(this.info.merchantGoodsInfoList)
this.handleData(this.goodsList)
} }
}, },
...@@ -430,7 +432,53 @@ export default { ...@@ -430,7 +432,53 @@ export default {
get: "d2admin/base/get", get: "d2admin/base/get",
close: "d2admin/page/close" close: "d2admin/page/close"
}), }),
async getBaseData() {}, handleData(goodsList) {
goodsList = goodsList.map((item) => {
const _formData = item
const {
goodsTypeName,
secondaryGoodsTypeName,
thirdLevelGoodsTypeName
} = _formData?.goodsInfo || {}
const types = [
goodsTypeName,
secondaryGoodsTypeName,
thirdLevelGoodsTypeName
]
const result = types.filter((type) => type).join("-")
_formData.upgradeGoods_temporary = {
upgradeGoodsName: _formData.upgradeGoodsName,
goodsName: _formData.goodsInfo?.goodsName,
tempGoodsTypeName: result,
serviceItemNames: _formData.upgradeGoods?.upgradeGoodsServiceItemsList
?.map((item) => {
return `${item.serviceName}-${item.serviceGrade}/${
item.servicePeriod
}${
item.serviceItemId
? `/${convertYuanToWan(item.minPrice)}-${convertYuanToWan(
item.maxPrice
)}万`
: ""
}`
})
?.join(","), // 服务项目
specificationData: this.filterSpecsStr(_formData.upgradeGoods),
djCost: _formData.upgradeGoods?.djCost,
carTypeConfigName: _formData.upgradeGoods?.carTypeConfigList
?.map((item) => item.seriesName)
.join("/"),
upgradeCommodityCode: _formData.upgradeGoods?.commodityCode,
purchasePrice: _formData.upgradeGoods?.purchasePrice,
upgradePrice: _formData.upgradeGoods?.upgradePrice,
type: _formData.upgradeGoods?.type,
thirdPartyCode: _formData.upgradeGoods?.thirdPartyCode
}
_formData.upgradeGoods = {}
_formData.upgradeGoods = deepClone(_formData.upgradeGoods_temporary)
return _formData
})
},
// 处理金额补零 // 处理金额补零
priceFilter(num) { priceFilter(num) {
var pow = Math.pow(10, 2) var pow = Math.pow(10, 2)
......
...@@ -473,9 +473,11 @@ export default { ...@@ -473,9 +473,11 @@ export default {
// 通过地图选择省市和详细地址 // 通过地图选择省市和详细地址
selectAddressByMap(val) { selectAddressByMap(val) {
console.log(val) console.log(val)
const { provinceName, cityName, fullAddress, lat, lng } = val const { provinceName, provinceCode, cityCode, cityName, fullAddress, lat, lng } = val
this.editData.merchantAddress = fullAddress this.editData.merchantAddress = fullAddress
this.editData.provinceName = provinceName this.editData.provinceName = provinceName
this.editData.provinceCode = provinceCode
this.editData.cityCode = cityCode
this.editData.cityName = cityName this.editData.cityName = cityName
this.editData.lat = lat this.editData.lat = lat
this.editData.lng = lng this.editData.lng = lng
......
...@@ -1341,8 +1341,7 @@ export default { ...@@ -1341,8 +1341,7 @@ export default {
) )
this.editableTabs.push({ this.editableTabs.push({
title: title:
"特殊品类" + "特殊品类" + (hasAllGoodsType ? +this.addIndex - 1 : +this.addIndex),
(hasAllGoodsType ? +this.addIndex + 2 : +this.addIndex + 1),
name: newTabIndex name: newTabIndex
}) })
this.editableTabsValue = newTabIndex this.editableTabsValue = newTabIndex
......
...@@ -181,6 +181,37 @@ ...@@ -181,6 +181,37 @@
<el-button @click="routerBack">取消</el-button> <el-button @click="routerBack">取消</el-button>
</div> </div>
</div> </div>
<el-dialog title="提示"
:visible.sync="dialogVisible"
width="30%">
<div class="dialog-content"
v-if="updateStatus == ''">
<div>
<el-progress type="circle"
:percentage="updatePercentage"></el-progress>
</div>
<div class="dialog-tips-big">正在处理中</div>
<div class="dialog-tips-small">说明:系统正在加急导入中,请耐心等待;导入过程中,请不要退出当前操作,否则将导致本次提交无效。</div>
</div>
<div class="dialog-content"
v-else-if="updateStatus == true">
<div class="dialog-tips-big">处理成功,可返回列表查看</div>
</div>
<div class="dialog-content"
v-else>
<div class="dialog-tips-big">处理失败,可点击右上角下载失败模版,查看失败原因</div>
</div>
<span slot="footer"
class="dialog-footer">
<!-- <el-button @click="dialogVisible = false">取 消</el-button> -->
<el-button type="primary"
@click="gotoList"
v-if="updateStatus == true && updatePercentage == 100">确 定</el-button>
<el-button type="primary"
@click="dialogVisible = false"
v-if="updateStatus == false && updatePercentage == 100">确 定</el-button>
</span>
</el-dialog>
</d2-container> </d2-container>
</template> </template>
...@@ -221,7 +252,10 @@ export default { ...@@ -221,7 +252,10 @@ export default {
}, },
merchantIdName: '', merchantIdName: '',
currentPage: 1, currentPage: 1,
pageSize: 50 pageSize: 50,
dialogVisible: false,
updateStatus: '',
updatePercentage: 0
} }
}, },
computed: { computed: {
...@@ -230,6 +264,33 @@ export default { ...@@ -230,6 +264,33 @@ export default {
updateList: (state) => state.d2admin.user.updateList updateList: (state) => state.d2admin.user.updateList
}) })
}, },
watch: {
updateList: {
handler(newVal) {
console.log('newVal', newVal)
if (newVal.length > 0) {
for (var i = 0; i < newVal.length; i++) {
if (newVal[i].uuid == this.updateUuid) {
this.updatePercentage = deepClone(newVal[i].progress)
if (newVal[i].progress == 100) {
this.updateStatus = deepClone(newVal[i].ifSuccess)
console.log('this.updateStatus', this.updateStatus)
}
}
}
// this.updatePercentage = newVal[0].percentage
// this.updateStatus = newVal[0].status
// if (this.updateStatus) {
// this.dialogVisible = false
// this.$message.success('导入成功')
// this.$store.state.d2admin.user.updateList = []
// this.$router.push({ name: "shelfManage" })
// }
}
},
deep: true
}
},
mounted() { mounted() {
console.log("itemList", this.$route.params) console.log("itemList", this.$route.params)
this.loading = true this.loading = true
...@@ -546,7 +607,9 @@ export default { ...@@ -546,7 +607,9 @@ export default {
console.log("params", params) console.log("params", params)
saveApprove(params) saveApprove(params)
.then((res) => { .then((res) => {
console.log(res) this.dialogVisible = true
this.updateUuid = res
// this.updatePercentage = 0
// 异步处理文件上传 把id传入处理轮询 // 异步处理文件上传 把id传入处理轮询
const list = [...this.updateList, { const list = [...this.updateList, {
name: this.infoForm.fileName, name: this.infoForm.fileName,
...@@ -555,12 +618,12 @@ export default { ...@@ -555,12 +618,12 @@ export default {
type: 'upload' type: 'upload'
}] }]
this.actionSetDownloadList({ list, type: 'updateList' }) this.actionSetDownloadList({ list, type: 'updateList' })
this.$notify({ // this.$notify({
type: "success", // type: "success",
title: "保存成功" // title: "保存成功"
}) // })
this.close({ tagName: "/editShelf" }) // this.close({ tagName: "/editShelf" })
this.$router.push({ name: "shelfManage" }) // this.$router.push({ name: "shelfManage" })
}) })
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)
...@@ -572,6 +635,11 @@ export default { ...@@ -572,6 +635,11 @@ export default {
}) })
}, },
gotoList() {
this.close({ tagName: "/editShelf" })
this.$router.push({ name: "shelfManage" })
},
// 获取4S门店数据 // 获取4S门店数据
remoteMethod(query) { remoteMethod(query) {
this.merchantIdName = query this.merchantIdName = query
...@@ -762,4 +830,16 @@ export default { ...@@ -762,4 +830,16 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
} }
.dialog-content {
text-align: center;
.dialog-tips-big {
font-size: 16px;
color: #333333;
margin-bottom: 20px;
}
.dialog-tips-small {
font-size: 12px;
color: #666666;
}
}
</style> </style>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:form-data="showFormData"> :form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button @click="getList"
size="small" size="small"
type="primary"> type="primary">
查询 查询
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
tableData: [], tableData: [],
showFormData: [{ showFormData: [{
label: '督导名称', label: '督导名称',
name: 'upgradeGoodsName', name: 'staffName',
type: 'input', type: 'input',
maxlength: 50, maxlength: 50,
width: '250px', width: '250px',
...@@ -63,7 +63,8 @@ export default { ...@@ -63,7 +63,8 @@ export default {
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}], }],
searchForm: { searchForm: {
roleName: '飞行督导' roleName: '飞行督导',
staffName: ''
}, },
baseData: { baseData: {
}, },
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-button size="small" @click="handleReset"> 重置 </el-button> <el-button size="small" @click="handleReset"> 重置 </el-button>
</div> </div>
<el-button size="small" style="margin-right:1024px;" @click="exportTable"> <el-button size="small" style="margin-left:979px;" @click="exportTable">
导出 导出
</el-button> </el-button>
<d2-table <d2-table
...@@ -125,6 +125,10 @@ export default { ...@@ -125,6 +125,10 @@ export default {
}, },
{ {
label: "浏览时间", label: "浏览时间",
prop: "startTime"
},
{
label: "浏览时长",
prop:'sustainTimeStr' prop:'sustainTimeStr'
// formatter: (cellValue) => { // formatter: (cellValue) => {
// const secondsToMinutesAndSeconds = (seconds) => { // const secondsToMinutesAndSeconds = (seconds) => {
......
...@@ -56,6 +56,25 @@ ...@@ -56,6 +56,25 @@
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
max-height="400px" max-height="400px"
> >
<template slot="polishContent" slot-scope="scope">
<el-tooltip
class="item"
effect="dark"
:content="scope.scope.polishContent"
placement="top"
popper-class="text-tooltip"
>
<span>
{{
scope.scope.polishContent
? scope.scope.polishContent.length > 10
? scope.scope.polishContent.slice(0, 10) + "..."
: item.polishContent
: ""
}}
</span>
</el-tooltip>
</template>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)" <el-button type="text" @click="handleDetail(scope.scope)"
>详情</el-button >详情</el-button
...@@ -68,14 +87,14 @@ ...@@ -68,14 +87,14 @@
> >
</div> </div>
</d2-table> </d2-table>
<el-button </div>
<el-button
type="primary" type="primary"
@click="$router.push('/verbalTrickManagement')" @click="$router.push('/verbalTrickManagement')"
class="back-btn" class="back-btn"
> >
返回</el-button 返回</el-button
> >
</div>
<!-- 详细信息 --> <!-- 详细信息 -->
<detail-dialog <detail-dialog
:visible.sync="detailVisible" :visible.sync="detailVisible"
...@@ -154,7 +173,8 @@ export default { ...@@ -154,7 +173,8 @@ export default {
}, },
{ {
label: "话术内容", label: "话术内容",
prop: "sourceContent" prop: "polishContent",
addHtml: "polishContent"
}, },
{ {
label: "更新时间", label: "更新时间",
...@@ -337,9 +357,9 @@ export default { ...@@ -337,9 +357,9 @@ export default {
.el-tabs__nav-wrap::after { .el-tabs__nav-wrap::after {
height: 1px !important; height: 1px !important;
} }
::v-deep .el-tabs__item { ::v-deep .el-tabs__item {
height:48px !important; height: 48px !important;
line-height: 48px !important; line-height: 48px !important;
} }
} }
} }
...@@ -376,4 +396,5 @@ export default { ...@@ -376,4 +396,5 @@ export default {
transform: translateX(-50%); transform: translateX(-50%);
top: 10px; top: 10px;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="content" v-for="(item, index) in items" :key="index + 'reconc'"> <div class="content" v-for="(item, index) in items" :key="index + 'reconc'">
<template v-if="activeType == index"> <template v-if="activeType == index">
<div class="part1"> <div class="part1">
<div class="msg" v-if="index"> <div class="msg" v-if="item.goodsSource == 1">
<div class="msg-title">商品来源:</div> <div class="msg-title">商品来源:</div>
<div class="msg-val">{{ item.goodsSource | filterName }}</div> <div class="msg-val">{{ item.goodsSource | filterName }}</div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!