Commit 22e3d4c4 by 张立顺

Merge branch 'dev_v4.23.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into dev_v4.23.0
2 parents 8764ffd1 a646b096
...@@ -651,10 +651,10 @@ export const storeType = [ ...@@ -651,10 +651,10 @@ export const storeType = [
//店面配置 部署场景 //店面配置 部署场景
export const sceneForShop = [ export const sceneForShop = [
{ confId: 1, confValue: "1.1精品升级" }, { confId: 1, confValue: "1.1精品升级" },
{ confId: 2, confValue: "1.2次新车升配" }, { confId: 4, confValue: "1.2次新车升配" },
{ confId: 3, confValue: "1.3售后众筹" }, { confId: 3, confValue: "1.3售后众筹" },
{ confId: 0, confValue: "2.1会员权益/升级" }, { confId: 0, confValue: "2.1会员权益/升级" },
{ confId: 4, confValue: "2.2续保膨胀金" } { confId: 2, confValue: "2.2续保膨胀金" }
] ]
//店面配置 员工类型 //店面配置 员工类型
export const staffBusinessType = [ export const staffBusinessType = [
...@@ -664,8 +664,8 @@ export const staffBusinessType = [ ...@@ -664,8 +664,8 @@ export const staffBusinessType = [
//店面配置 人员设置列表-部署场景 //店面配置 人员设置列表-部署场景
export const sceneForPerson = [ export const sceneForPerson = [
{ confId: "1", confValue: "1.1" }, { confId: "1", confValue: "1.1" },
{ confId: "2", confValue: "1.2" }, { confId: "4", confValue: "1.2" },
{ confId: "3", confValue: "1.3" }, { confId: "3", confValue: "1.3" },
{ confId: "0", confValue: "2.1" }, { confId: "0", confValue: "2.1" },
{ confId: "4", confValue: "2.2" } { confId: "2", confValue: "2.2" }
] ]
...@@ -167,10 +167,12 @@ ...@@ -167,10 +167,12 @@
accept=".jpg,.png,.pdf" accept=".jpg,.png,.pdf"
class="upload-file" class="upload-file"
drag drag
:limit="30"
:show-file-list="false" :show-file-list="false"
:file-list="uploadFileList"
:limit="30"
:auto-upload="false" :auto-upload="false"
:on-change="e => handleFileChange(e, item)" :on-change="e => handleFileChange(e, item)"
:on-exceed="hanldeOnExceed"
multiple> multiple>
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">点击或将文件拖拽到此区域上传</div> <div class="el-upload__text">点击或将文件拖拽到此区域上传</div>
...@@ -329,7 +331,7 @@ export default { ...@@ -329,7 +331,7 @@ export default {
}, },
selectDisabled: false, selectDisabled: false,
dialogObj: {}, dialogObj: {},
fileArr: [], uploadFileList: [],
imageFileArr: [], imageFileArr: [],
imgViewerVisible: false, imgViewerVisible: false,
initialIndex: 0 initialIndex: 0
...@@ -397,7 +399,7 @@ export default { ...@@ -397,7 +399,7 @@ export default {
'formData.voucherList': { 'formData.voucherList': {
handler(newVal) { handler(newVal) {
if (newVal) { if (newVal) {
this.fileArr = newVal.filter(v => !this.filterEmpty(v.uploadProgress) || v.voucherFileUrl) this.uploadFileList = newVal.filter(v => !this.filterEmpty(v.uploadProgress) || v.voucherFileUrl) // 文件列表
let imageFileArr = newVal.filter(v => v.voucherFileUrl && (v.voucherFileUrl.includes('.png') || v.voucherFileUrl.includes('jpg'))) let imageFileArr = newVal.filter(v => v.voucherFileUrl && (v.voucherFileUrl.includes('.png') || v.voucherFileUrl.includes('jpg')))
this.imageFileArr = imageFileArr.map(item => { return item.voucherFileUrl }) this.imageFileArr = imageFileArr.map(item => { return item.voucherFileUrl })
} }
...@@ -471,6 +473,12 @@ export default { ...@@ -471,6 +473,12 @@ export default {
} }
}, 50) }, 50)
}, },
hanldeOnExceed() {
this.$message({
message: '最多可上传30个文件',
type: 'error'
})
},
setProgressText(item) { setProgressText(item) {
return () => { return () => {
return item.name return item.name
......
...@@ -13,7 +13,13 @@ ...@@ -13,7 +13,13 @@
:key="subIndex" :key="subIndex"
:label="subItem.label" :label="subItem.label"
class="row-item"> class="row-item">
<span class="detail-txt ellipsis-1" <div class="" v-if="subItem.isImage">
<img v-if="detailForm[subItem.name]" class="order-img"
:src="detailForm[subItem.name]"
@click="handleEnlargeImg(detailForm[subItem.name])">
<span v-else>-</span>
</div>
<span v-else class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]">{{ :title="detailForm[subItem.name]">{{
detailForm[subItem.name] detailForm[subItem.name]
? detailForm[subItem.name] + (subItem.suffix || "") ? detailForm[subItem.name] + (subItem.suffix || "")
...@@ -105,6 +111,12 @@ ...@@ -105,6 +111,12 @@
</div> </div>
<!-- </GLFooter> --> <!-- </GLFooter> -->
</div> </div>
<el-dialog :visible="imgVisible"
:before-close="handleEnlargeImg">
<img width="100%"
:src="detailForm.payVoucher"
alt="图片">
</el-dialog>
</d2-container> </d2-container>
</template> </template>
...@@ -180,7 +192,8 @@ export default { ...@@ -180,7 +192,8 @@ export default {
{ confId: "2", confName: "企微" } { confId: "2", confName: "企微" }
] ]
}, },
hideStatus: false hideStatus: false,
imgVisible: false // 收款凭证图片弹窗
} }
}, },
...@@ -277,6 +290,11 @@ export default { ...@@ -277,6 +290,11 @@ export default {
{ {
label: '备注', label: '备注',
name: 'orderRemark' name: 'orderRemark'
},
{
label: '收款凭证',
name: 'payVoucher',
isImage: true
} }
] ]
this.detailFormData = detailFormData this.detailFormData = detailFormData
...@@ -398,6 +416,9 @@ export default { ...@@ -398,6 +416,9 @@ export default {
this.formToRow("detailFormData") this.formToRow("detailFormData")
}) })
}, },
handleEnlargeImg() {
this.imgVisible = !this.imgVisible
},
handleCancel() { handleCancel() {
this.$router.push({ this.$router.push({
path: "/orderList" path: "/orderList"
...@@ -447,6 +468,11 @@ export default { ...@@ -447,6 +468,11 @@ export default {
.order-detail .row-item { .order-detail .row-item {
width: 33%; width: 33%;
} }
.order-detail .row-item .order-img {
width: 80px;
height: 80px;
cursor: pointer;
}
.detail-txt { .detail-txt {
display: inline-block; display: inline-block;
width: 320px; width: 320px;
......
<template> <template>
<d2-dialog title="收款二维码" :is-visible="qRcodeVisible" class="qRcodeDailog" width="750px" btn-ok-label="全部下载" <d2-dialog title="收款二维码"
@closeDialog="handleClose" @confirmDialog="handleAddConfirm"> :is-visible="qRcodeVisible"
class="qRcodeDailog"
width="750px"
btn-ok-label="全部下载"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<div class="qrcon"> <div class="qrcon">
<div class="wxcon"> <div class="wxcon">
<div class="codeDiv" id="wxview"> <div class="codeDiv"
<img style="width:100%;height:100%" src="../../images/code3.png"> id="wxview">
<img style="width:100%;height:100%"
src="../../images/code3.png">
<!-- v-if="qrCodeURL" <div class="imgDiv"> --> <!-- v-if="qrCodeURL" <div class="imgDiv"> -->
<img v-if="qrCodeURL" class="qrImg" crossorigin="anonymous" :src="qrCodeURL"> <img v-if="qrCodeURL"
class="qrImg"
crossorigin="anonymous"
:src="qrCodeURL">
<!-- crossorigin="anonymous" --> <!-- crossorigin="anonymous" -->
<div v-if="!qrCodeURL" class="el-icon-loading loadingIcon" /> <div v-if="!qrCodeURL"
class="el-icon-loading loadingIcon" />
<!-- </div> --> <!-- </div> -->
<div class="merchantNameDiv">{{ info.merchantName }}</div> <div class="merchantNameDiv">{{ info.merchantName }}</div>
</div> </div>
<el-button style="marginTop:20px" type="primary " <el-button style="marginTop:20px"
@click="takeScreenshot('wxview', `${info.merchantName}微信支付收款码`)">下载</el-button> type="primary "
@click="takeScreenshot('wxview', `${info.merchantName}微信支付收款码`)">下载</el-button>
</div> </div>
<div class="alicon"> <div class="alicon">
<div class="codeDiv" id="aliview"> <div class="codeDiv"
<img style="width:100%;height:100%" src="../../images/alipay.png"> id="aliview">
<img style="width:100%;height:100%"
src="../../images/alipay.png">
<!-- <img v-if="aliqrCodeURL" <!-- <img v-if="aliqrCodeURL"
class="qrImg imgs" class="qrImg imgs"
:src="aliqrCodeURL" :src="aliqrCodeURL"
crossorigin="anonymous"> --> crossorigin="anonymous"> -->
<div id="qrcodeDiv" class="qrImg" /> <div id="qrcodeDiv"
class="qrImg" />
<!-- --> <!-- -->
<!-- :src="aliqrCodeURL"> --> <!-- :src="aliqrCodeURL"> -->
<div v-if="!aliqrCodeURL" class="el-icon-loading loadingIcon" /> <div v-if="!aliqrCodeURL"
class="el-icon-loading loadingIcon" />
<!-- </div> --> <!-- </div> -->
<div class="merchantNameDiv">{{ info.merchantName }}</div> <div class="merchantNameDiv">{{ info.merchantName }}</div>
</div> </div>
<el-button style="marginTop:20px" type="primary " <el-button style="marginTop:20px"
@click="takeScreenshot('aliview', `${info.merchantName}支付宝支付收款码`)">下载 type="primary "
@click="takeScreenshot('aliview', `${info.merchantName}支付宝支付收款码`)">下载
</el-button> </el-button>
</div> </div>
</div> </div>
...@@ -84,6 +101,8 @@ export default { ...@@ -84,6 +101,8 @@ export default {
components: {}, components: {},
mounted() { mounted() {
console.log(this.info);
this.createQrcodeImage() this.createQrcodeImage()
this.alipayQrcode() this.alipayQrcode()
}, },
...@@ -253,9 +272,9 @@ export default { ...@@ -253,9 +272,9 @@ export default {
}, },
handleAddConfirm() { handleAddConfirm() {
this.takeScreenshot('wxview', `${this.info.yqMerchantName}微信支付收款码`) this.takeScreenshot('wxview', `${this.info.merchantName}微信支付收款码`)
setTimeout(() => { setTimeout(() => {
this.takeScreenshot('aliview', `${this.info.yqMerchantName}支付宝支付收款码`) this.takeScreenshot('aliview', `${this.info.merchantName}支付宝支付收款码`)
}, 2000) }, 2000)
// this.takeScreenshot() // this.takeScreenshot()
}, },
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
class="import-template" class="import-template"
@click="downLoadTemplate" @click="downLoadTemplate"
icon="el-icon-link"> icon="el-icon-link">
模版下载 文件下载
</el-link> </el-link>
</el-button> </el-button>
</el-col> </el-col>
......
...@@ -30,13 +30,14 @@ ...@@ -30,13 +30,14 @@
filterable filterable
remote remote
reserve-keyword reserve-keyword
clearable
placeholder="请输入关键字" placeholder="请输入关键字"
:remote-method="remoteMethod_merchant" :remote-method="remoteMethod_merchant"
:loading="loading"> :loading="loading">
<el-option v-for="(opt, optIndex) in baseData.merchantList" <el-option v-for="(opt, optIndex) in baseData.merchantList"
:key="optIndex" :key="optIndex"
:label="opt.merchantName + ' / ' + opt.merchantNo" :label="opt.merchantName + ' / ' + opt.merchantNo"
:value="opt.merchantNo"> :value="opt.id">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
...@@ -240,6 +241,7 @@ export default { ...@@ -240,6 +241,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.getDepartment()
this.getBaseData() this.getBaseData()
}, },
......
...@@ -368,7 +368,9 @@ export default { ...@@ -368,7 +368,9 @@ export default {
if (this.activeName == "setWarrantyCard") { if (this.activeName == "setWarrantyCard") {
this.setWarrantyCard_getInfo(this.merchantRow.merchantId) this.setWarrantyCard_getInfo(this.merchantRow.merchantId)
} else if (this.activeName == "brandSettings") { } else if (this.activeName == "brandSettings") {
this.brandSettings(this.merchantRow) if (this.data.length == 0) {
this.brandSettings(this.merchantRow)
}
} else if (this.activeName == "constructionSet") { } else if (this.activeName == "constructionSet") {
this.getSignatureConfiguration(this.merchantRow.merchantId) this.getSignatureConfiguration(this.merchantRow.merchantId)
} }
......
<!-- 店铺设置 --> <!-- 店铺设置 -->
<template> <template>
<d2-container> <d2-container>
<el-form ref="shopSetFrom" class="shopSetFrom d2-container-content" :model="form" :rules="formRules" <el-form ref="shopSetFrom"
label-width="120px" v-loading="$store.state.d2admin.loading.value"> class="shopSetFrom d2-container-content"
:model="form"
:rules="formRules"
label-width="120px"
v-loading="$store.state.d2admin.loading.value">
<p class="edit-sub-title"> <p class="edit-sub-title">
店铺设置 店铺设置
<span class="merchantName">{{ info.merchantName }} {{ info.merchantId }}</span> <span class="merchantName">{{ info.merchantName }} {{ info.merchantId }}</span>
</p> </p>
<el-form-item label="业务性质:" prop="businessType"> <el-form-item label="业务性质:"
<el-select v-model="form.businessType" placeholder="请选择" class="el_select itd"> prop="businessType">
<el-option v-for="item in businessNature" :key="item.confId" :value="item.confId" :label="item.confName" /> <el-select v-model="form.businessType"
placeholder="请选择"
class="el_select itd">
<el-option v-for="item in businessNature"
:key="item.confId"
:value="item.confId"
:label="item.confName" />
</el-select> </el-select>
<span class="item-tips">注:包含直营渠道和直营4S店两种业务性质</span> <span class="item-tips">注:包含直营渠道和直营4S店两种业务性质</span>
</el-form-item> </el-form-item>
<el-form-item label="下级商户:"> <el-form-item label="下级商户:">
<div v-for="(item, index) in form.list" :key="index"> <div v-for="(item, index) in form.list"
:key="index">
<div class="inputCol"> <div class="inputCol">
<!-- <el-form-item :prop="'list.' + index + '.merchantNo'" <!-- <el-form-item :prop="'list.' + index + '.merchantNo'"
:rules="[{ required: true, message: '请选择二级流量方', trigger: 'change' }]"> --> :rules="[{ required: true, message: '请选择二级流量方', trigger: 'change' }]"> -->
<el-form-item> <el-form-item>
<el-select v-model="item.merchantNo" filterable remote reserve-keyword placeholder="请输入关键字" <el-select v-model="item.merchantNo"
style="width: 432px" :remote-method="remoteMethod" @change="changeOpt" :loading="loading"> filterable
<el-option v-for="(opt, optIndex) in options" :key="optIndex" :label="opt.merchantName" remote
:value="opt.merchantNo" :disabled="setDisabled(opt.merchantNo)"> reserve-keyword
placeholder="请输入关键字"
style="width: 432px"
:remote-method="remoteMethod"
@change="changeOpt"
:loading="loading">
<el-option v-for="(opt, optIndex) in options"
:key="optIndex"
:label="opt.merchantName"
:value="opt.merchantNo"
:disabled="setDisabled(opt.merchantNo)">
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-button type="text" <el-button type="text"
style="color: red;paddingLeft:10px" style="color: red;paddingLeft:10px"
@click="handleDelMerchant(index)">删除</el-button> --> @click="handleDelMerchant(index)">删除</el-button>
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
<div> <div>
<el-button type="primary" size="small" plain @click="handleAddMerchant">添加一行</el-button> <el-button type="primary"
size="small"
plain
@click="handleAddMerchant">添加一行</el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="部署状态:" prop="deployScene"> <el-form-item label="部署状态:"
prop="deployScene">
<el-checkbox-group v-model="form.deployScene"> <el-checkbox-group v-model="form.deployScene">
<el-checkbox v-for="(item, index) in sceneForShop" :key="index" :label="item.confId">{{ item.confValue <el-checkbox v-for="(item, index) in sceneForShop"
:key="index"
:label="item.confId">{{ item.confValue
}}</el-checkbox> }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item label="设置区域督导:" prop="areaSupervision"> <el-form-item label="设置区域督导:"
<el-select clearable filterable value-key="userId" v-model="form.areaSupervision" collapse-tags prop="areaSupervision">
class="el_select itd" placeholder="请选择"> <el-select clearable
<el-option v-for="item in supervisionOptionsList" :key="item.userId" :label="item.userName" :value="item"> filterable
value-key="userId"
v-model="form.areaSupervision"
collapse-tags
class="el_select itd"
placeholder="请选择">
<el-option v-for="item in supervisionOptionsList"
:key="item.userId"
:label="item.userName"
:value="item">
</el-option> </el-option>
</el-select> </el-select>
<span class="item-tips">注:区域督导在账户中心创建广联数科员工,角色类型选区域督导</span> <span class="item-tips">注:区域督导在账户中心创建广联数科员工,角色类型选区域督导</span>
</el-form-item> </el-form-item>
<el-form-item label="驻店负责人:" prop="residentManager"> <el-form-item label="驻店负责人:"
<el-select clearable filterable value-key="userId" v-model="form.residentManager" collapse-tags prop="residentManager">
class="el_select itd" placeholder="请选择"> <el-select clearable
<el-option v-for="item in residentManagerOptionsList" :key="item.userId" :label="item.userName" :value="item"> filterable
value-key="userId"
v-model="form.residentManager"
collapse-tags
class="el_select itd"
placeholder="请选择">
<el-option v-for="item in residentManagerOptionsList"
:key="item.userId"
:label="item.userName"
:value="item">
</el-option> </el-option>
</el-select> </el-select>
<span class="item-tips">注:设置店面的驻店负责人,可配置驻店月份绩效</span> <span class="item-tips">注:设置店面的驻店负责人,可配置驻店月份绩效</span>
...@@ -62,19 +107,31 @@ ...@@ -62,19 +107,31 @@
<div class="month-choose"> <div class="month-choose">
<span class="month-choose-span">设置每月产值绩效(绩效细化到驻店负责人,汇总给区域督导)</span> <span class="month-choose-span">设置每月产值绩效(绩效细化到驻店负责人,汇总给区域督导)</span>
<span> <span>
<el-date-picker v-model="year" type="year" placeholder="选择年" value-format="yyyy" format="yyyy" <el-date-picker v-model="year"
:clearable="false" :picker-options="pickerOption" style="width:136px" @change="chooseYear"> type="year"
placeholder="选择年"
value-format="yyyy"
format="yyyy"
:clearable="false"
:picker-options="pickerOption"
style="width:136px"
@change="chooseYear">
</el-date-picker> </el-date-picker>
</span> </span>
</div> </div>
<div class="set-value-div"> <div class="set-value-div">
<div class="label">目标产值:</div> <div class="label">目标产值:</div>
<div class="right"> <div class="right">
<div class="set-value-alone" v-for="(item, index) in outputValueListByYear" :key="index"> <div class="set-value-alone"
v-for="(item, index) in outputValueListByYear"
:key="index">
<p>{{ index + 1 }}月</p> <p>{{ index + 1 }}月</p>
<p> <p>
<el-input style="height: 32px;" v-model="item.outputValue" @input="handleInput($event, item, index)" <el-input style="height: 32px;"
:disabled="item.isDisabled" placeholder="请输入" /> v-model="item.outputValue"
@input="handleInput($event, item, index)"
:disabled="item.isDisabled"
placeholder="请输入" />
</p> </p>
</div> </div>
</div> </div>
...@@ -83,10 +140,14 @@ ...@@ -83,10 +140,14 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="btnCon"> <div class="btnCon">
<el-button type="primary" @click="handleSave" :disabled="$store.state.d2admin.loading.value" class="ok-btn"> <el-button type="primary"
@click="handleSave"
:disabled="$store.state.d2admin.loading.value"
class="ok-btn">
提交 提交
</el-button> </el-button>
<el-button class="cancel-btn" @click="handleCancel"> <el-button class="cancel-btn"
@click="handleCancel">
取消 取消
</el-button> </el-button>
</div> </div>
...@@ -562,7 +623,7 @@ export default { ...@@ -562,7 +623,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; */ justify-content: center; */
padding: 0 0 20px; // padding: 0 0 20px;
} }
.month-set-div { .month-set-div {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!