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;
.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow {
border-color: #e4e7ed !important;
}
.el-tooltip__popper.is-dark {
white-space:wrap;
width:400px;
height:auto;
padding: 8px 10px;
}
.el-textarea {
.el-input__count {
right: -55px;
......
......@@ -265,14 +265,15 @@ export default {
this.provinceForm.lng = lnglat.lng.toFixed(4)
var mapData = this.$refs.mapForm.geocoderAddress
// 赋值省市区名称和code
console.log(this.$refs.mapForm, '\\\\\\')
const { city, city_code, province, district, town_code } = mapData
console.log(mapData, '\\\\\\')
const { city, adcode, province, district, town_code } = mapData
console.log(adcode, 'adcode')
if (!this.provinceForm.provinceName) {
this.provinceForm.provinceName = province
this.provinceForm.cityName = city
this.provinceForm.townName = district
this.provinceForm.provinceCode = mapData.adcode
this.provinceForm.cityCode = city_code
this.provinceForm.provinceCode = +((adcode + '').slice(0,3) + '000')
this.provinceForm.cityCode = adcode
this.provinceForm.townCode = town_code
}
var fullAddress = ''
......
......@@ -423,7 +423,7 @@ export default {
handleData(goods) {
const _formData = deepClone(goods)
_formData.settlementType = _formData.createBusinessProduct.settlementType
_formData.djCost = _formData.upgradeGoods?.djCost
_formData.djCost = _formData.createBusinessProduct?.djCost
// console.log('_formData', _formData)
const { goodsTypeName, secondaryGoodsTypeName, thirdLevelGoodsTypeName } =
_formData?.goodsInfo || {}
......
......@@ -698,14 +698,20 @@ export default {
sellPrice: "", // 参考售价
minSellPrice: "", // 最低售价
djCost: "", // 嘀加成本
thirdPartyCost: "" // 第三方成本
thirdPartyCost: "", // 第三方成本
upgradeGoods: {
djCost: ""
}
})
this.oldValList.unshift({
upgradeGoodsId: "", // 商品id
sellPrice: "", // 参考售价
minSellPrice: "", // 最低售价
djCost: "", // 嘀加成本
thirdPartyCost: "" // 第三方成本
thirdPartyCost: "", // 第三方成本
upgradeGoods: {
djCost: ""
}
})
},
......
......@@ -416,12 +416,14 @@ export default {
}
}
},
async mounted() {
mounted() {
if (this.info) {
console.log("info", this.info)
this.packageForm.settlementType =
this.packageForm.createBusinessProduct.settlementType
this.packageForm = deepClone(this.info)
this.goodsList = deepClone(this.info.merchantGoodsInfoList)
this.handleData(this.goodsList)
}
},
......@@ -430,7 +432,53 @@ export default {
get: "d2admin/base/get",
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) {
var pow = Math.pow(10, 2)
......
......@@ -473,9 +473,11 @@ export default {
// 通过地图选择省市和详细地址
selectAddressByMap(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.provinceName = provinceName
this.editData.provinceCode = provinceCode
this.editData.cityCode = cityCode
this.editData.cityName = cityName
this.editData.lat = lat
this.editData.lng = lng
......
......@@ -1341,8 +1341,7 @@ export default {
)
this.editableTabs.push({
title:
"特殊品类" +
(hasAllGoodsType ? +this.addIndex + 2 : +this.addIndex + 1),
"特殊品类" + (hasAllGoodsType ? +this.addIndex - 1 : +this.addIndex),
name: newTabIndex
})
this.editableTabsValue = newTabIndex
......
......@@ -181,6 +181,37 @@
<el-button @click="routerBack">取消</el-button>
</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>
</template>
......@@ -221,7 +252,10 @@ export default {
},
merchantIdName: '',
currentPage: 1,
pageSize: 50
pageSize: 50,
dialogVisible: false,
updateStatus: '',
updatePercentage: 0
}
},
computed: {
......@@ -230,6 +264,33 @@ export default {
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() {
console.log("itemList", this.$route.params)
this.loading = true
......@@ -546,7 +607,9 @@ export default {
console.log("params", params)
saveApprove(params)
.then((res) => {
console.log(res)
this.dialogVisible = true
this.updateUuid = res
// this.updatePercentage = 0
// 异步处理文件上传 把id传入处理轮询
const list = [...this.updateList, {
name: this.infoForm.fileName,
......@@ -555,12 +618,12 @@ export default {
type: 'upload'
}]
this.actionSetDownloadList({ list, type: 'updateList' })
this.$notify({
type: "success",
title: "保存成功"
})
this.close({ tagName: "/editShelf" })
this.$router.push({ name: "shelfManage" })
// this.$notify({
// type: "success",
// title: "保存成功"
// })
// this.close({ tagName: "/editShelf" })
// this.$router.push({ name: "shelfManage" })
})
.catch((err) => {
console.log(err)
......@@ -572,6 +635,11 @@ export default {
})
},
gotoList() {
this.close({ tagName: "/editShelf" })
this.$router.push({ name: "shelfManage" })
},
// 获取4S门店数据
remoteMethod(query) {
this.merchantIdName = query
......@@ -762,4 +830,16 @@ export default {
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>
......@@ -13,7 +13,7 @@
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
<el-button @click="getList"
size="small"
type="primary">
查询
......@@ -55,7 +55,7 @@ export default {
tableData: [],
showFormData: [{
label: '督导名称',
name: 'upgradeGoodsName',
name: 'staffName',
type: 'input',
maxlength: 50,
width: '250px',
......@@ -63,7 +63,8 @@ export default {
keyFn: this.keyDowmGetList
}],
searchForm: {
roleName: '飞行督导'
roleName: '飞行督导',
staffName: ''
},
baseData: {
},
......
......@@ -20,7 +20,7 @@
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
<el-button size="small" style="margin-right:1024px;" @click="exportTable">
<el-button size="small" style="margin-left:979px;" @click="exportTable">
导出
</el-button>
<d2-table
......@@ -125,6 +125,10 @@ export default {
},
{
label: "浏览时间",
prop: "startTime"
},
{
label: "浏览时长",
prop:'sustainTimeStr'
// formatter: (cellValue) => {
// const secondsToMinutesAndSeconds = (seconds) => {
......
......@@ -56,6 +56,25 @@
:before-search-fn="beforeSearchFn"
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">
<el-button type="text" @click="handleDetail(scope.scope)"
>详情</el-button
......@@ -68,14 +87,14 @@
>
</div>
</d2-table>
<el-button
</div>
<el-button
type="primary"
@click="$router.push('/verbalTrickManagement')"
class="back-btn"
>
返回</el-button
>
</div>
<!-- 详细信息 -->
<detail-dialog
:visible.sync="detailVisible"
......@@ -154,7 +173,8 @@ export default {
},
{
label: "话术内容",
prop: "sourceContent"
prop: "polishContent",
addHtml: "polishContent"
},
{
label: "更新时间",
......@@ -337,9 +357,9 @@ export default {
.el-tabs__nav-wrap::after {
height: 1px !important;
}
::v-deep .el-tabs__item {
height:48px !important;
line-height: 48px !important;
::v-deep .el-tabs__item {
height: 48px !important;
line-height: 48px !important;
}
}
}
......@@ -376,4 +396,5 @@ export default {
transform: translateX(-50%);
top: 10px;
}
</style>
\ No newline at end of file
......@@ -32,7 +32,7 @@
<div class="content" v-for="(item, index) in items" :key="index + 'reconc'">
<template v-if="activeType == index">
<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-val">{{ item.goodsSource | filterName }}</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!