Commit 78a6b119 by 张权

第二轮测试

1 parent b708327a
......@@ -270,6 +270,7 @@ export default {
}
.detail-wrap {
padding: 32px 20px;
min-height: 520px;
.client {
color: #333;
}
......
......@@ -36,10 +36,10 @@
<GLButton class="switch" mode="el-switch" fn="禁用" :value="scope.scope.status == 0" active-color="#5850ff" inactive-color="#eee" :active-text="scope.scope.status == 0 ? '启用' : '停用'" @change="changStatus(scope.scope.status, scope.scope.id)">{{ scope.scope.status == 0 ? '启用' : '停用' }}</GLButton>
</span>
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <GLButton fn="编辑" type="text" @click="selectClientType(scope.scope.businessType, scope.scope.id)">编辑</GLButton>
<GLButton fn="删除" type="text" @click="handleDel(scope.scope)">删除</GLButton> -->
<el-button v-if="userType != 2" fn="编辑" type="text" @click="selectClientType(scope.scope.businessTypeName, scope.scope.id)">编辑</el-button>
<el-button v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</el-button>
<GLButton v-if="userType != 2" fn="编辑" type="text" @click="selectClientType(scope.scope.businessTypeName, scope.scope.id)">编辑</GLButton>
<GLButton v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</GLButton>
<!-- <el-button v-if="userType != 2" fn="编辑" type="text" @click="selectClientType(scope.scope.businessTypeName, scope.scope.id)">编辑</el-button>
<el-button v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</el-button> -->
</div>
</GLTable>
<div v-if="!hasData" class="default-box">
......@@ -383,7 +383,7 @@ export default {
}
.expert-wrap {
margin-top: 16px;
padding: 20px;
padding: 20px 20px 0;
background-color: #fff;
min-height: calc(100vh - 148px);
/deep/.switch {
......
......@@ -273,16 +273,12 @@ export default {
cardType: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
cardNo: [
{
required: true,
validator: (rule, value, callback) => {
return value ? callback() : callback(new Error('请输入' + (this.editForm.cardType == '1' ? '身份证' : '统一社会信息代码')))
}, trigger: 'change'
},
{
validator: (rule, value, callback) => {
return (/[a-zA-Z0-9]{18}/).test(value) ? callback() : callback(new Error('请输入18位数字或字母'))
}, trigger: 'change'
}
required: true,
validator: (rule, value, callback) => {
return value ? callback() : callback(new Error('请输入证件号码'))
},
trigger: 'change'
}
],
customerPhone: [
{ required: true, message: '请输入联系号码', trigger: 'change' },
......@@ -333,7 +329,7 @@ export default {
label: '身份证',
name: 'cardNo',
type: 'input',
maxlength: 18
maxlength: 30
},
{
label: '联系号码',
......@@ -499,23 +495,23 @@ export default {
{
confId: 2,
confName: '企业'
},
{
confId: 3,
confName: '个人(港澳)'
},
{
confId: 4,
confName: '个人(台)'
},
{
confId: 5,
confName: '个人(军官)'
},
{
confId: 6,
confName: '其他'
}
// {
// confId: 3,
// confName: '个人(港澳)'
// },
// {
// confId: 4,
// confName: '个人(台)'
// },
// {
// confId: 5,
// confName: '个人(军官)'
// },
// {
// confId: 6,
// confName: '其他'
// }
],
cardTypeList: [
{
......@@ -525,23 +521,23 @@ export default {
{
confId: 2,
confName: '统一社会信息代码'
},
{
confId: 3,
confName: '港澳返乡证'
},
{
confId: 4,
confName: '台胞证'
},
{
confId: 5,
confName: '军官证'
},
{
confId: 6,
confName: '其他证件'
}
// {
// confId: 3,
// confName: '港澳返乡证'
// },
// {
// confId: 4,
// confName: '台胞证'
// },
// {
// confId: 5,
// confName: '军官证'
// },
// {
// confId: 6,
// confName: '其他证件'
// }
],
servicePeriodList: [
{
......@@ -1041,6 +1037,10 @@ export default {
type: 'error'
})
} else {
this.$message({
message: res.code=='0'?'提交成功待ERP审核':res.message,
type:res.code=='0'? 'success':'error'
})
this.$router.push({
path: '/ghPreSale/equityList',
// name: 'beforeSale',
......
......@@ -24,10 +24,10 @@
<!-- 表格区域 开始 -->
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="[2, 4, 5,7,8,9,10,11].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<GLButton v-if="[2, 4, 5,7,8,9,10,11,12].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> -->
<el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button>
<el-button v-if="[2,8,10,11,12].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2,7,8,9,10,11,12].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button>
<!-- <el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<!-- <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button> -->
<GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
......@@ -363,6 +363,10 @@ export default {
confId: 11,
confName: 'ERP修改失败'
},
{
confId: 12,
confName: 'ERP出单审核中'
}
],
dataPerfectionList: [
{
......@@ -580,10 +584,12 @@ export default {
this.$apis.ghBeforeSale[this.secondObj.apiName](this.secondObj.apiParams).then(res => {
// this.handleSecondCancel()
// this.isTipVisible = true
this.$message({
if(res.code != '0'){
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
}
this.editNotify = res
// clearTimeout(this.timer)
// this.timer = setTimeout(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!