|
@@ -53,8 +53,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="登录密码" prop="password">
|
|
|
- <el-input v-model="step1Form.password" type="password" disabled></el-input>
|
|
|
- <el-button class="reset" @click="handleReset()">重置密码</el-button>
|
|
|
+ <el-input v-model="step1Form.password" type="password" disabled>
|
|
|
+ <el-button slot="append" @click="handleReset()">重置密码</el-button>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
@@ -64,10 +65,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="到期时间" prop="companyExpireTime">
|
|
|
- <el-date-picker v-model="step1Form.companyExpireTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ <el-date-picker :disabled="!~[2].indexOf(userType)" v-model="step1Form.companyExpireTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择日期时间">
|
|
|
</el-date-picker>
|
|
|
- <el-button type="primary" @click="saveTime()">保存</el-button>
|
|
|
+ <el-button :disabled="!~[2].indexOf(userType)" type="primary" @click="saveTime()">保存</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
@@ -212,77 +213,77 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="服务商appId" prop="appId">
|
|
|
- <el-input v-model="step3Form.appId" autocomplete="off" placeholder="请输入服务商appId"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.appId" autocomplete="off" placeholder="请输入服务商appId"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="服务商商户号" prop="merchantId">
|
|
|
- <el-input v-model="step3Form.merchantId" autocomplete="off" placeholder="请输入服务商商户号"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.merchantId" autocomplete="off" placeholder="请输入服务商商户号"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="服务商商户密钥" prop="merchantKey">
|
|
|
- <el-input v-model="step3Form.merchantKey" autocomplete="off" placeholder="请输入服务商商户密钥"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.merchantKey" autocomplete="off" placeholder="请输入服务商商户密钥"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="小程序appid" prop="appletAppid">
|
|
|
- <el-input v-model="step3Form.appletAppid" autocomplete="off" placeholder="请输入小程序appid"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.appletAppid" autocomplete="off" placeholder="请输入小程序appid"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="小程序密钥" prop="appletSecret">
|
|
|
- <el-input v-model="step3Form.appletSecret" autocomplete="off" placeholder="请输入小程序密钥"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.appletSecret" autocomplete="off" placeholder="请输入小程序密钥"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="子商户号Id" prop="childMerchantId">
|
|
|
- <el-input v-model="step3Form.childMerchantId" autocomplete="off" placeholder="请输入子商户号Id"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.childMerchantId" autocomplete="off" placeholder="请输入子商户号Id"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="微信订阅模版" prop="templateId">
|
|
|
- <el-input v-model="step3Form.templateId" autocomplete="off" placeholder="请输入微信订阅模版"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.templateId" autocomplete="off" placeholder="请输入微信订阅模版"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="公众号appid" prop="pubAppId">
|
|
|
- <el-input v-model="step3Form.pubAppId" autocomplete="off" placeholder="请输入公众号appid"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubAppId" autocomplete="off" placeholder="请输入公众号appid"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="公众号密钥" prop="pubAppSecret">
|
|
|
- <el-input v-model="step3Form.pubAppSecret" autocomplete="off" placeholder="请输入公众号密钥"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubAppSecret" autocomplete="off" placeholder="请输入公众号密钥"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="改派通知" prop="pubTemplateId1">
|
|
|
- <el-input v-model="step3Form.pubTemplateId1" autocomplete="off" placeholder="请输入工单派工,改派通知"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubTemplateId1" autocomplete="off" placeholder="请输入工单派工,改派通知"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="发货通知" prop="pubTemplateId2">
|
|
|
- <el-input v-model="step3Form.pubTemplateId2" autocomplete="off" placeholder="请输入商城订单支付成功提醒发货通知"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubTemplateId2" autocomplete="off" placeholder="请输入商城订单支付成功提醒发货通知"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="维权订单提醒" prop="pubTemplateId3">
|
|
|
- <el-input v-model="step3Form.pubTemplateId3" autocomplete="off" placeholder="请输入商城维权订单提醒"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubTemplateId3" autocomplete="off" placeholder="请输入商城维权订单提醒"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="支付成功通知" prop="pubTemplateId4">
|
|
|
- <el-input v-model="step3Form.pubTemplateId4" autocomplete="off" placeholder="请输入订单支付成功(含全部销售订单和延保)"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubTemplateId4" autocomplete="off" placeholder="请输入订单支付成功(含全部销售订单和延保)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="维保费用申请" prop="pubTemplateId5">
|
|
|
- <el-input v-model="step3Form.pubTemplateId5" autocomplete="off" placeholder="请输入维保的费用申请"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubTemplateId5" autocomplete="off" placeholder="请输入维保的费用申请"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="安维费用发放通知" prop="pubTemplateId6">
|
|
|
- <el-input v-model="step3Form.pubTemplateId6" autocomplete="off" placeholder="请输入安维费用发放通知"></el-input>
|
|
|
+ <el-input :disabled="!~[2].indexOf(userType)" v-model="step3Form.pubTemplateId6" autocomplete="off" placeholder="请输入安维费用发放通知"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -560,6 +561,9 @@ export default {
|
|
|
openSidebar: this.sidebar.opened
|
|
|
}
|
|
|
},
|
|
|
+ userType() {
|
|
|
+ return JSON.parse(localStorage.getItem('greemall_user')).type
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
const { id, type } = this.$route.query;
|