Commit b76375f3 by 前端

Merge branch 'SAAS+V4.42' into 'master'

上线合并

See merge request !15
2 parents 095cb680 925cdc0f
...@@ -1715,6 +1715,11 @@ export default { ...@@ -1715,6 +1715,11 @@ export default {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1)) this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
} }
this.dataSourceDisable = res.dataSource == 'car' this.dataSourceDisable = res.dataSource == 'car'
if (res?.vehicle?.invoicePrice && this.editForm.orderStatus != 2) {
// 调用详情后先过滤一边定制权益商品
let autoList = this.packageToPrice(res.vehicle.invoicePrice, true) || []
productArrData = autoList.concat(this.productList)
}
this.editForm.packageCode && this.packageAttr(true, productArrData, res) this.editForm.packageCode && this.packageAttr(true, productArrData, res)
const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId) const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId)
if (spaItem) { if (spaItem) {
...@@ -1772,8 +1777,8 @@ export default { ...@@ -1772,8 +1777,8 @@ export default {
}) })
}, },
// 改建议价,实际销售价 // 改建议价,实际销售价
packageToPrice(e) { packageToPrice(e, formDetail) {
let _price = e?.target?.value || '' let _price = formDetail ? e : e?.target?.value || ''
if (_price && this.editForm.orderStatus != 2) { if (_price && this.editForm.orderStatus != 2) {
let _list = [] let _list = []
this.copyCustomProductList.forEach(item => { this.copyCustomProductList.forEach(item => {
...@@ -1786,6 +1791,7 @@ export default { ...@@ -1786,6 +1791,7 @@ export default {
} }
}) })
this.customProductList = _list this.customProductList = _list
if (formDetail) return _list
} }
// var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode) // var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode)
// this.editForm.suggestedSellingPrice = '' // this.editForm.suggestedSellingPrice = ''
...@@ -1806,6 +1812,7 @@ export default { ...@@ -1806,6 +1812,7 @@ export default {
packCode = [] packCode = []
detailInfo.attributes.forEach(item => { detailInfo.attributes.forEach(item => {
let targetItem = productArrData.find(k => k.packageCode == item.packageCode) let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
if(targetItem){
if (targetItem && item.parentId) { if (targetItem && item.parentId) {
targetItem.parentId = item.parentId targetItem.parentId = item.parentId
targetItem.parentName = item.parentName targetItem.parentName = item.parentName
...@@ -1833,7 +1840,11 @@ export default { ...@@ -1833,7 +1840,11 @@ export default {
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) { if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.leftDisable = true this.leftDisable = true
this.customProductList.map(c => { this.customProductList.map(c => {
if (this.editForm.dataSource != 'car' && this.editForm.orderStatus == 4) {
this.dataSourceDisable = false
} else {
c.disabled = true c.disabled = true
}
c.groupAttributeList.map(ele => { c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) { if (ele.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) {
ele.disabled = true ele.disabled = true
...@@ -1850,7 +1861,11 @@ export default { ...@@ -1850,7 +1861,11 @@ export default {
} }
if (this.routeInfo.addOrEdit == 2) { if (this.routeInfo.addOrEdit == 2) {
this.customProductList.map(c => { this.customProductList.map(c => {
if (this.editForm.dataSource == 'car') {
c.disabled = true c.disabled = true
} else {
this.dataSourceDisable = false
}
c.groupAttributeList.map(ele => { c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) { if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true ele.disabled = true
...@@ -1881,7 +1896,11 @@ export default { ...@@ -1881,7 +1896,11 @@ export default {
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) { if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.rightDisable = true this.rightDisable = true
this.productList.map(d => { this.productList.map(d => {
if (this.editForm.dataSource != 'car' && this.editForm.orderStatus == 4) {
this.dataSourceDisable = false
} else {
d.disabled = true d.disabled = true
}
d.groupAttributeList.map(elee => { d.groupAttributeList.map(elee => {
if (elee.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) { if (elee.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) {
elee.disabled = true elee.disabled = true
...@@ -1901,7 +1920,11 @@ export default { ...@@ -1901,7 +1920,11 @@ export default {
} }
if (this.routeInfo.addOrEdit == 2) { if (this.routeInfo.addOrEdit == 2) {
this.productList.map(c => { this.productList.map(c => {
if (this.editForm.dataSource == 'car') {
c.disabled = true c.disabled = true
} else {
this.dataSourceDisable = false
}
c.groupAttributeList.map(ele => { c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) { if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true ele.disabled = true
...@@ -1915,6 +1938,8 @@ export default { ...@@ -1915,6 +1938,8 @@ export default {
if (targetItem.printType == 2) { if (targetItem.printType == 2) {
this.showUploadInfo = true this.showUploadInfo = true
} }
}
packCode.push(item.packageCode) packCode.push(item.packageCode)
const _curProdTarget = this.allProdList.find(el => el.packageCode == item.packageCode) const _curProdTarget = this.allProdList.find(el => el.packageCode == item.packageCode)
......
...@@ -776,6 +776,7 @@ export default { ...@@ -776,6 +776,7 @@ export default {
} }
}, },
mounted() { mounted() {
//修改字段名,增减字段都在这里操作就行
if (this.pageName != 'insurance') { if (this.pageName != 'insurance') {
this.fieldList = this.fieldList.filter(item => !item.filter) this.fieldList = this.fieldList.filter(item => !item.filter)
this.$nextTick(() => { this.$nextTick(() => {
...@@ -787,6 +788,11 @@ export default { ...@@ -787,6 +788,11 @@ export default {
} }
} }
}) })
}else{
const target = this.fieldList.find(item => item.value == 'shopTrafficMoney')
if(target) {
target.label = '流量费/元'
}
} }
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate) let startDate = utils.dateFormat(openInfo.openDate)
...@@ -807,7 +813,7 @@ export default { ...@@ -807,7 +813,7 @@ export default {
methods: { methods: {
objectSpanMethod({ row, column, rowIndex, columnIndex }) { objectSpanMethod({ row, column, rowIndex, columnIndex }) {
// column没有prop,只能用label判断 // column没有prop,只能用label判断
const mergeColNameList = ['序号', '主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', '分账金额/元', '分账类型', '操作'] const mergeColNameList = ['序号', '主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `${this.pageName=='insurance' ? '流量费' : '分账金额'}/元`, '分账类型', '操作']
return { return {
rowspan: mergeColNameList.includes(column.label) ? row.rowspan : column.label == '套餐规则' ? row.setMealRowspan : 1, rowspan: mergeColNameList.includes(column.label) ? row.rowspan : column.label == '套餐规则' ? row.setMealRowspan : 1,
colspan: 1 colspan: 1
...@@ -905,7 +911,7 @@ export default { ...@@ -905,7 +911,7 @@ export default {
} }
}, },
setClass({ row, column, rowIndex, columnIndex }) { setClass({ row, column, rowIndex, columnIndex }) {
const mergeColNameList = ['主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', '分账金额/元', '分账类型'] const mergeColNameList = ['主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `${this.pageName=='insurance' ? '流量费' : '分账金额'}/元`, '分账类型']
if (columnIndex == 1) return 'add-right-border' if (columnIndex == 1) return 'add-right-border'
return (mergeColNameList.includes(column.label) && row.rowspan > 1) || (column.label == '套餐规则' && row.setMealRowspan > 1) ? 'add-border' : '' return (mergeColNameList.includes(column.label) && row.rowspan > 1) || (column.label == '套餐规则' && row.setMealRowspan > 1) ? 'add-border' : ''
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!