Commit 51cfc04a by 杨北旺

测试配置中心

1 parent 118e50f5
......@@ -12,11 +12,10 @@
"dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-common": "^2.1.0",
"glsx-components": "^1.5.2",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
......@@ -36,6 +35,7 @@
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
"vue-quill-editor": "^3.0.6",
"vue-template-compiler": "^2.6.10"
},
"browserslist": [
......
......@@ -10,16 +10,21 @@
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
let timeout = 30000 //超时时间
import { Http } from 'glsx-common'
export const fetchConfig = function(isEnv = true) {
import { Http,utils } from 'glsx-common'
export const fetchConfig = function (common) {
console.log(common);
console.log(utils);
let params = { moduleName: 'presale', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params)
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return common.utils.getConfig(params)
}
export const config = {
install(vue, cfg) {
......
......@@ -112,6 +112,18 @@ const staticRoutes = Object.freeze([
path: '/addCode/index',
component: resolve => require([`@/views/addCode/index.vue`], resolve),
meta: {}
}
},
{
name: 'renew',
path: '/GH/Renew/renew',
component: resolve => require([`@/views/GH/Renew/renew.vue`], resolve),
meta: {}
},
{
name: 'detail',
path: '/GH/Renew/detail/:id',
component: resolve => require([`@/views/GH/Renew/detail.vue`], resolve),
meta: {}
},
])
export default staticRoutes
......@@ -11,7 +11,7 @@ let router = null
let instance = null
Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
const { response, request, request_brand, sign, secret } = await fetchConfig(common)
// request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// request.baseURL = 'http://192.168.1.53:7226'
......
......@@ -4,14 +4,14 @@
<div class="material">
<div class="material-item" v-for="item in materialData" :key="item.name">
<label :class="{ require: item.label }">{{ item.label }}</label>
<el-upload :disabled="pageType == 2" :id="item.name" :ref="item.name + 'Ref'" :file-list="materialForm[item.name]" :list-type="item.listType ? item.listType : 'picture-card'" :class="[pageType == 2 || item.limit == materialForm[item.name].length ? 'hidePlusBtn' : '', 'upload-item']" :limit="item.limit" action="#" :before-upload="e => beforeAvatarUpload(e, item.name)" :on-preview="handlePictureCardPreview" :on-remove="e => handleRemove(e, item.name)" :http-request="e => httpRequest(e, item.name)">
<el-upload :disabled="pageType == 2 || renew" :id="item.name" :ref="item.name + 'Ref'" :file-list="materialForm[item.name]" :list-type="item.listType ? item.listType : 'picture-card'" :class="[pageType == 2 || item.limit == materialForm[item.name].length ? 'hidePlusBtn' : '', 'upload-item']" :limit="item.limit" action="#" :before-upload="e => beforeAvatarUpload(e, item.name)" :on-preview="handlePictureCardPreview" :on-remove="e => handleRemove(e, item.name)" :http-request="e => httpRequest(e, item.name)">
<!-- <i v-if="item.name == 'billInfo'" slot="default" class="el-icon-plus">
<p>上传图片</p>
</i> -->
<img v-if="item.name === 'billInfo'" slot="default" :src="upload_img" alt="" />
<img v-if="item.name === 'idCard'" slot="default" :src="idCard" alt="" />
<img v-if="item.name === 'idCardBack'" slot="default" :src="idCardBack" alt="" />
<el-button v-if="item.name == 'otherInfo'" slot="default" :disabled="pageType == 2 || item.limit == materialForm[item.name].length" size="small" class="el-icon-plus">上传文件</el-button>
<el-button v-if="item.name == 'otherInfo'" slot="default" :disabled="pageType == 2 || item.limit == materialForm[item.name].length || renew" size="small" class="el-icon-plus">上传文件</el-button>
<div slot="tip" class="remark" v-if="item.name == 'idCard'">身份证人像面</div>
<div slot="tip" class="remark" v-if="item.name == 'idCardBack'">身份证国徽面</div>
<div slot="tip" class="file-box" v-if="item.name == 'otherInfo'">
......@@ -62,7 +62,8 @@ export default {
pageType: {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
}
},
renew:Boolean
},
data() {
return {
......
......@@ -27,7 +27,7 @@
<p class="name">{{ item.serviceItemName }}</p>
<div class="price-wrap">
<label for="">定损批准金额:</label>
<el-input :disabled="pageType == 2" maxlength="10" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请选择定损批准金额" v-model="item.approveAmount"></el-input>
<el-input :disabled="pageType == 2 || renew" maxlength="10" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请选择定损批准金额" v-model="item.approveAmount"></el-input>
</div>
</div>
</template>
......@@ -46,7 +46,7 @@
</div>
<div class="collecter">
<label class="require" for="">收款对象:</label>
<el-radio-group @change="changeObjectType" :disabled="pageType == 2" v-model="accountForm.objectType">
<el-radio-group @change="changeObjectType" :disabled="pageType == 2 || renew" v-model="accountForm.objectType">
<el-radio :label="0">店面</el-radio>
<el-radio :label="1">其他</el-radio>
</el-radio-group>
......@@ -72,7 +72,8 @@ export default {
pageType: {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
}
},
renew:Boolean
},
components: {
glsxCombiForm
......@@ -98,7 +99,7 @@ export default {
optionLabel: 'confName',
isHide: true,
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '开户行名称',
......@@ -108,7 +109,7 @@ export default {
optionId: 'code',
optionLabel: 'name',
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '账户名称',
......@@ -116,7 +117,7 @@ export default {
type: 'input',
maxlength: 60,
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '收款账号',
......@@ -124,7 +125,7 @@ export default {
type: 'input',
maxlength: 25,
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '收款账号所在省市',
......@@ -135,7 +136,7 @@ export default {
optionId: 'code',
optionLabel: 'name',
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '收款人证件类型',
......@@ -145,7 +146,7 @@ export default {
optionId: 'code',
optionLabel: 'name',
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '收款人证件号码',
......@@ -153,7 +154,7 @@ export default {
type: 'input',
maxlength: 25,
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '收款人联系电话',
......@@ -161,7 +162,7 @@ export default {
type: 'input',
maxlength: 15,
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
}
],
handlerForm: [
......@@ -171,7 +172,7 @@ export default {
type: 'input',
isClear: true,
maxlength: 100,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
{
label: '经办人联系号码:',
......@@ -179,7 +180,7 @@ export default {
type: 'input',
maxlength: 11,
isClear: true,
isDisabled: this.pageType == 2
isDisabled: this.pageType == 2 || this.renew
},
// {
// label: '出险经过描述:',
......
......@@ -44,7 +44,8 @@ export default {
pageType: {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
}
},
renew:Boolean
},
data() {
return {
......@@ -162,7 +163,7 @@ export default {
},
// 处理广汇嘀加不同字段显示
diffKeyHandle(showGh) {
const isDisabled = this.pageType == 2 ? true : false
const isDisabled = this.pageType == 2 || this.renew ? true : false
const dj = [
{
label: '合同号',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!