|
@@ -21,7 +21,7 @@
|
|
|
<a-form-model-item label="门头照片" prop="storeImage">
|
|
|
<Upload
|
|
|
class="upload"
|
|
|
- id="noticeEdit-imgPaths"
|
|
|
+ id="authPass-storeImage"
|
|
|
v-model="form.storeImage"
|
|
|
ref="storeImage"
|
|
|
:fileSize="10"
|
|
@@ -36,7 +36,7 @@
|
|
|
<a-form-model-item label="营业执照" prop="licenseImage">
|
|
|
<Upload
|
|
|
class="upload"
|
|
|
- id="noticeEdit-imgPaths"
|
|
|
+ id="authPass-licenseImage"
|
|
|
v-model="form.licenseImage"
|
|
|
ref="licenseImage"
|
|
|
:fileSize="10"
|
|
@@ -123,7 +123,7 @@
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-model-item label="关联客户" prop="customerSn">
|
|
|
- <custList ref="custList" :dealerFlag="0" :isEnabled="true" @change="custChange"></custList>
|
|
|
+ <custList id="authPass-customerSn" ref="custList" :dealerFlag="0" :isEnabled="true" @change="custChange"></custList>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12" v-if="form.settleType == 'CREDIT'">
|
|
@@ -132,6 +132,7 @@
|
|
|
:min="100"
|
|
|
:max="9999999"
|
|
|
style="width:100%"
|
|
|
+ id="authPass-creditLimit"
|
|
|
:precision="2"
|
|
|
v-model="form.creditLimit"
|
|
|
placeholder="请输入大于100的数字(最多允许两位小数)"></a-input-number>
|
|
@@ -142,7 +143,7 @@
|
|
|
<template slot="label">
|
|
|
<a-tooltip placement="top">
|
|
|
<template slot="title">
|
|
|
- 不勾选则不显示价格,结算价:即易码通进货价。
|
|
|
+ 不勾选则不显示价格,结算价:即易码通进货价。
|
|
|
</template>
|
|
|
价格权限设置<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
|
|
|
</a-tooltip>
|
|
@@ -150,19 +151,19 @@
|
|
|
<a-checkbox-group v-model="showPrice">
|
|
|
<div style="display: flex;padding:10px 0;">
|
|
|
<div style="width: 80px;font-weight: bold;">货架产品:</div>
|
|
|
- <a-checkbox value="shelf_price_show">
|
|
|
+ <a-checkbox value="shelf_price_show" id="authPass-shelf_price_show">
|
|
|
车主价
|
|
|
</a-checkbox>
|
|
|
- <a-checkbox value="shelf_cost_show">
|
|
|
+ <a-checkbox value="shelf_cost_show" id="authPass-shelf_cost_show">
|
|
|
结算价
|
|
|
</a-checkbox>
|
|
|
</div>
|
|
|
<div style="display: flex;padding:10px 0;">
|
|
|
<div style="width: 80px;font-weight: bold;">非货架产品:</div>
|
|
|
- <a-checkbox value="non_shelf_price_show">
|
|
|
+ <a-checkbox value="non_shelf_price_show" id="authPass-nonshelf_price_show">
|
|
|
车主价
|
|
|
</a-checkbox>
|
|
|
- <a-checkbox value="non_shelf_cost_show">
|
|
|
+ <a-checkbox value="non_shelf_cost_show" id="authPass-nonshelf_cost_show">
|
|
|
结算价
|
|
|
</a-checkbox>
|
|
|
</div>
|
|
@@ -182,8 +183,9 @@
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import { STable, VSelect, Upload } from '@/components'
|
|
|
-import { getAreaCgj } from '@/api/data'
|
|
|
import custList from '@/views/common/custList.vue'
|
|
|
+// 接口
|
|
|
+import { getAreaCgj } from '@/api/data'
|
|
|
import { xprhStoreApplyDetail, xprhStoreApplyAudit } from '@/api/approveStore'
|
|
|
import { updateShelfPriceShow } from '@/api/shelf'
|
|
|
export default {
|
|
@@ -217,7 +219,7 @@ export default {
|
|
|
applySn: undefined,
|
|
|
auditStatus: 'PASS' // 通过
|
|
|
},
|
|
|
- showPrice:['shelf_price_show','non_shelf_price_show'], // 价格显示
|
|
|
+ showPrice: ['shelf_price_show', 'non_shelf_price_show'], // 价格显示
|
|
|
rules: {
|
|
|
storeImage: [{ required: true, message: '请上传门头照片', trigger: 'change' }],
|
|
|
storeName: [{ required: true, message: '请输入门店名称', trigger: 'change' }],
|
|
@@ -237,6 +239,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 过滤空字符
|
|
|
filterEmpty () {
|
|
|
let str = this.form.storeName
|
|
|
str = str.replace(/\ +/g, '')
|
|
@@ -248,18 +251,20 @@ export default {
|
|
|
custChange (obj, row) {
|
|
|
this.form.customerSn = row ? row.customerSn : undefined
|
|
|
},
|
|
|
- // 图片上传
|
|
|
+ // 门店图片上传
|
|
|
changeImage1 (file) {
|
|
|
this.form.storeImage = file
|
|
|
},
|
|
|
+ // 删除门店图片
|
|
|
removeImage1 () {
|
|
|
this.form.storeImage = ''
|
|
|
this.$refs.storeImage.setFileList('')
|
|
|
},
|
|
|
- // 图片上传
|
|
|
+ // 营业执照图片上传
|
|
|
changeImage2 (file) {
|
|
|
this.form.licenseImage = file
|
|
|
},
|
|
|
+ // 删除营业执照图片
|
|
|
removeImage2 () {
|
|
|
this.form.licenseImage = ''
|
|
|
this.$refs.licenseImage.setFileList('')
|
|
@@ -279,7 +284,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 保存
|
|
|
+ // 保存门店信息
|
|
|
saveForm () {
|
|
|
const _this = this
|
|
|
_this.$refs.ruleForm.validate(valid => {
|
|
@@ -298,6 +303,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 提交门店数据
|
|
|
handleSubmit (e) {
|
|
|
const _this = this
|
|
|
_this.spinning = true
|
|
@@ -306,15 +312,15 @@ export default {
|
|
|
const shelfSn = res.data.shelfSn
|
|
|
// 更新价格显示设置
|
|
|
const priceStr = [
|
|
|
- {paramCode: 'shelf_price_show',paramValue:0},
|
|
|
- {paramCode: 'shelf_cost_show',paramValue:0},
|
|
|
- {paramCode: 'non_shelf_price_show',paramValue:0},
|
|
|
- {paramCode: 'non_shelf_cost_show',paramValue:0}
|
|
|
- ]
|
|
|
+ { paramCode: 'shelf_price_show', paramValue: 0 },
|
|
|
+ { paramCode: 'shelf_cost_show', paramValue: 0 },
|
|
|
+ { paramCode: 'non_shelf_price_show', paramValue: 0 },
|
|
|
+ { paramCode: 'non_shelf_cost_show', paramValue: 0 }
|
|
|
+ ]
|
|
|
priceStr.map(item => {
|
|
|
- item.paramValue = _this.showPrice.includes(item.paramCode) ? 1 : 0
|
|
|
+ item.paramValue = _this.showPrice.includes(item.paramCode) ? 1 : 0
|
|
|
})
|
|
|
- // 更新价格显示
|
|
|
+ // 保存价格显示
|
|
|
updateShelfPriceShow({
|
|
|
shelfSn: shelfSn,
|
|
|
paramValue: priceStr
|
|
@@ -329,7 +335,6 @@ export default {
|
|
|
_this.spinning = false
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
} else {
|
|
|
_this.spinning = false
|
|
|
}
|
|
@@ -404,7 +409,9 @@ export default {
|
|
|
this.getArea('province') // 省市区
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
},
|
|
|
+ // 初始页面
|
|
|
initPage () {
|
|
|
+ // 获取审核信息
|
|
|
this.getBaseData()
|
|
|
// 编辑页
|
|
|
if (this.$route.params.sn) {
|
|
@@ -413,7 +420,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- console.log('mounted')
|
|
|
this.initPage()
|
|
|
},
|
|
|
beforeRouteEnter (to, from, next) {
|