Commit 435bf2d9 by 杨北旺

Merge branch 'v1.1.0' of 192.168.3.233:saas/scrm-micro-services into v1.1.0

2 parents db494373 9b6da93c
...@@ -4,20 +4,20 @@ ...@@ -4,20 +4,20 @@
<!-- 车辆信息 --> <!-- 车辆信息 -->
<div class="container"> <div class="container">
<p class="edit-title">车辆信息</p> <p class="edit-title">车辆信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefCar" labelWidth="160px" defaultWidth="320px" formRef="editChildRefCar" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(0, 7)" :formRules="editRuleCar"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRefCar" :isEdit="true" defaultWidth="320px" formRef="editChildRefCar" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(0, 7)" :formRules="editRuleCar"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="160px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(7)" :formRules="editRuleCar"> <glsx-combi-form ref="editFormRefBrand" :isEdit="true" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(7)" :formRules="editRuleCar">
<template slot="vehicleBrandId" slot-scope="scope"> <template slot="vehicleBrandId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicle.vehicleBrandId)" style="width: 160px" :disabled="scope.scope.isDisabled"> <el-select v-model="editForm.vehicle.vehicleBrandId" class="m-r-10" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicle.vehicleBrandId)" style="width: 160px" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
<template slot="vehicleSubBrandId" slot-scope="scope"> <template slot="vehicleSubBrandId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleSubBrandId" placeholder="请选择子品牌" filterable @change="getCarSeriesList()" style="width: 160px" :disabled="scope.scope.isDisabled"> <el-select v-model="editForm.vehicle.vehicleSubBrandId" class="m-r-10" placeholder="请选择子品牌" filterable @change="getCarSeriesList()" style="width: 160px" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
<template slot="vehicleSeriesId" slot-scope="scope"> <template slot="vehicleSeriesId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleSeriesId" placeholder="请选择车系" @change="getCarTypeList(editForm.vehicle.vehicleSeriesId)" style="width: 215px" :disabled="scope.scope.isDisabled"> <el-select v-model="editForm.vehicle.vehicleSeriesId" class="m-r-10" placeholder="请选择车系" @change="getCarTypeList(editForm.vehicle.vehicleSeriesId)" style="width: 215px" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carSeriesOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carSeriesOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!-- 客户信息 --> <!-- 客户信息 -->
<div class="container m-t-10"> <div class="container m-t-10">
<p class="edit-title">客户信息</p> <p class="edit-title">客户信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefUser" labelWidth="160px" defaultWidth="320px" formRef="editChildRefUser" :formObj="editForm" :formData="editFormDataUser" :formRules="editRuleUser"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRefUser" :isEdit="true" defaultWidth="320px" formRef="editChildRefUser" :formObj="editForm" :formData="editFormDataUser" :formRules="editRuleUser"></glsx-combi-form>
</div> </div>
<!-- 选择产品 --> <!-- 选择产品 -->
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</div> </div>
<template v-for="(ele, indexs) in curSelectPro"> <template v-for="(ele, indexs) in curSelectPro">
<div v-if="ele == item.packageName" :key="indexs" class="child_wrap"> <div v-if="ele == item.packageName" :key="indexs" class="child_wrap">
<!-- <glsx-combi-form class="edit-form-container" ref="editProductFormRefPro" labelWidth="160px" defaultWidth="320px" formRef="editProductChildRefPro" :isBlock="isBlock" :formObj="editProductObj" :formData="item.groupAttributeList" :formRules="item.rules"></glsx-combi-form> --> <!-- <glsx-combi-form class="edit-form-container" ref="editProductFormRefPro" :isEdit="true" defaultWidth="320px" formRef="editProductChildRefPro" :isBlock="isBlock" :formObj="editProductObj" :formData="item.groupAttributeList" :formRules="item.rules"></glsx-combi-form> -->
<div v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex"> <div v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc"> <div class="attr_wrapper flex_sc">
<div class="attr_label h13_title"> <div class="attr_label h13_title">
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</el-radio-group> </el-radio-group>
</div> </div>
<!-- <div v-if="equityRadio == '2'" class="auto_widget"> <!-- <div v-if="equityRadio == '2'" class="auto_widget">
<glsx-combi-form class="edit-form-container" labelWidth="160px" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro"> <glsx-combi-form class="edit-form-container" :isEdit="true" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro">
<template slot="packageCode" slot-scope="scope"> <template slot="packageCode" slot-scope="scope">
<el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange"> <el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange">
<el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]"> <el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]">
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)"> <div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)">
<p class="package-subtitle">{{ subItem.serviceItems }}</p> <p class="package-subtitle">{{ subItem.serviceItems }}</p>
<div v-if="editForm.packageCode == subItem[scope.scope.optionId]"> <div v-if="editForm.packageCode == subItem[scope.scope.optionId]">
<glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" defaultWidth="320px" formRef="editChildRefPro" :isBlock="isBlock" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro"> <glsx-combi-form class="edit-form-container" ref="editFormRefPro" :isEdit="true" defaultWidth="320px" formRef="editChildRefPro" :isBlock="isBlock" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro">
<template slot="table" slot-scope="scope"> <template slot="table" slot-scope="scope">
<table class="table-style"> <table class="table-style">
<tbody> <tbody>
...@@ -158,13 +158,13 @@ ...@@ -158,13 +158,13 @@
<!-- 其他信息 --> <!-- 其他信息 -->
<div class="container m-t-10"> <div class="container m-t-10">
<p class="edit-title">其他信息</p> <p class="edit-title">其他信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefOther" labelWidth="160px" defaultWidth="320px" formRef="editChildRefOther" :formObj="editForm" :formData="editFormDataOther" :formRules="editRuleOther"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRefOther" :isEdit="true" defaultWidth="320px" formRef="editChildRefOther" :formObj="editForm" :formData="editFormDataOther" :formRules="editRuleOther"></glsx-combi-form>
</div> </div>
<!-- 店面信息 --> <!-- 店面信息 -->
<div class="container m-t-10"> <div class="container m-t-10">
<p class="edit-title">店面信息</p> <p class="edit-title">店面信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefShop" labelWidth="160px" defaultWidth="320px" formRef="editChildRefShop" :formObj="editForm" :formData="editFormDataShop" :formRules="editRuleShop"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRefShop" :isEdit="true" defaultWidth="320px" formRef="editChildRefShop" :formObj="editForm" :formData="editFormDataShop" :formRules="editRuleShop"></glsx-combi-form>
</div> </div>
...@@ -1544,6 +1544,9 @@ export default { ...@@ -1544,6 +1544,9 @@ export default {
.m-t-10 { .m-t-10 {
margin-top: 10px; margin-top: 10px;
} }
.m-r-10 {
margin-right: 10px;
}
.fixed_bottom { .fixed_bottom {
position: fixed; position: fixed;
width: 100%; width: 100%;
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
</div> </div>
<div class="container"> <div class="container">
<div class="find_wrap"> <div class="find_wrap">
<glsx-combi-form ref="showSearch" labelWidth="110px" defaultWidth="215px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData">
</glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button> <el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -122,7 +124,7 @@ export default { ...@@ -122,7 +124,7 @@ export default {
type: 'selectInput', type: 'selectInput',
selectName: 'nameOrNoOrVin', selectName: 'nameOrNoOrVin',
isClear: true, isClear: true,
inputWidth: '320px', inputWidth: '325px',
selectWidth: '110px', selectWidth: '110px',
selectOption: [ selectOption: [
{ {
...@@ -159,11 +161,14 @@ export default { ...@@ -159,11 +161,14 @@ export default {
optionId: 'packageCode', optionId: 'packageCode',
optionLabel: 'packageName', optionLabel: 'packageName',
optionsName: 'goodsStatusList' optionsName: 'goodsStatusList'
}, }
],
searchFormData2: [
{ {
label: '提单成功时间', label: '提单成功时间',
name: 'successDate', name: 'successDate',
type: 'datePicker', type: 'datePicker',
labelWidth: 95,
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
}, },
...@@ -173,91 +178,6 @@ export default { ...@@ -173,91 +178,6 @@ export default {
type: 'datePicker', type: 'datePicker',
isClear: true isClear: true
} }
// {
// label: '财务审核状态',
// name: 'auditStatus',
// type: 'select',
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confName',
// optionsName: 'auditStatusList'
// },
// {
// label: '上传资料',
// name: 'dataPerfection',
// type: 'select',
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confName',
// optionsName: 'dataPerfectionList'
// },
// {
// label: '总部',
// name: 'merchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantList',
// isHide: true,
// changeAttr: (val, targetItem) => {
// var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['2'])
// this.searchFormData[idx].isHide = false
// this.searchForm[this.levelToShow['2']] = ''
// var tempIdx = ''
// for(var i = 3; i <= 4; i++) {
// tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
// this.searchFormData[tempIdx].isHide = true
// this.searchForm[this.levelToShow[i + '']] = ''
// }
// this.getMerchantList(val, 2, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
// }
// },
// {
// label: '大区',
// name: 'dqtId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'dqList',
// isHide: true,
// changeAttr: (val, targetItem) => {
// var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['3'])
// this.searchFormData[idx].isHide = false
// this.searchForm[this.levelToShow['3']] = ''
// var tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow['4'])
// this.searchFormData[tempIdx].isHide = true
// this.searchForm[this.levelToShow['4']] = ''
// this.getMerchantList(val, 3, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
// }
// },
// {
// label: '片区',
// name: 'pqId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'pqList',
// isHide: true,
// changeAttr: (val, targetItem) => {
// var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['4'])
// this.searchFormData[idx].isHide = false
// this.searchForm[this.levelToShow['4']] = ''
// this.getMerchantList(val, 4, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
// }
// },
// {
// label: '门店',
// name: 'mdId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'mdList',
// isHide: true
// }
], ],
// 表格 // 表格
getListApi: this.$apis.beforeSale.getListApi, getListApi: this.$apis.beforeSale.getListApi,
...@@ -855,14 +775,14 @@ export default { ...@@ -855,14 +775,14 @@ export default {
} }
} }
var tempIdx = '' var tempIdx = ''
var addNum = this.userInfo.admin ? 1 : 2 // var addNum = this.userInfo.admin ? 1 : 2
if (this.userInfo.merchantAccountLevel != 4) { // if (this.userInfo.merchantAccountLevel != 4) {
for (var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) { // for (var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) {
tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + '']) // tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true // this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = '' // this.searchForm[this.levelToShow[i + '']] = ''
} // }
} // }
this.handleSearch() this.handleSearch()
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!