|
@@ -2515,6 +2515,29 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
+ <!-- 信息采集表权限配置 -->
|
|
|
|
|
+ <el-tab-pane label="信息采集表权限配置" name="his.salesProxyFill">
|
|
|
|
|
+ <el-form ref="form30" :model="form30" :rules="rules30" label-width="200px">
|
|
|
|
|
+ <el-form-item label="是否开启销售代填" prop="isSalesProxyFill">
|
|
|
|
|
+ <el-switch
|
|
|
|
|
+ v-model="form30.isSalesProxyFill"
|
|
|
|
|
+ active-color="#13ce66"
|
|
|
|
|
+ inactive-color="#ff4949"
|
|
|
|
|
+ active-text="开启"
|
|
|
|
|
+ inactive-text="关闭"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-switch>
|
|
|
|
|
+ <div style="color: #909399; font-size: 12px; margin-top: 8px;">
|
|
|
|
|
+ 开启后,销售人员可以代客户填写信息采集表
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="footer">
|
|
|
|
|
+ <el-button type="primary" @click="submitForm30">提 交</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2697,6 +2720,9 @@ export default {
|
|
|
form27: {},
|
|
form27: {},
|
|
|
form28: {},
|
|
form28: {},
|
|
|
form29: {},
|
|
form29: {},
|
|
|
|
|
+ form30: {
|
|
|
|
|
+ isSalesProxyFill: false // 是否开启销售代填,默认关闭
|
|
|
|
|
+ },
|
|
|
storeProductScrmColumns:[],
|
|
storeProductScrmColumns:[],
|
|
|
storeScrmColumns: [],
|
|
storeScrmColumns: [],
|
|
|
photoArr: [],
|
|
photoArr: [],
|
|
@@ -2753,7 +2779,12 @@ export default {
|
|
|
rules21: {},
|
|
rules21: {},
|
|
|
rules25: {},
|
|
rules25: {},
|
|
|
rules26: {},
|
|
rules26: {},
|
|
|
- rules29: {}
|
|
|
|
|
|
|
+ rules29: {},
|
|
|
|
|
+ rules30: {
|
|
|
|
|
+ isSalesProxyFill: [
|
|
|
|
|
+ { required: true, message: '请选择是否开启销售代填', trigger: 'change' }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -3257,6 +3288,14 @@ export default {
|
|
|
console.log("----------"+response.data.configValue)
|
|
console.log("----------"+response.data.configValue)
|
|
|
this.form29 = JSON.parse(response.data.configValue)
|
|
this.form29 = JSON.parse(response.data.configValue)
|
|
|
}
|
|
}
|
|
|
|
|
+ if (key == 'his.salesProxyFill') {
|
|
|
|
|
+ this.configId = response.data.configId
|
|
|
|
|
+ this.configKey = response.data.configKey
|
|
|
|
|
+ const configValue = JSON.parse(response.data.configValue)
|
|
|
|
|
+ this.form30 = {
|
|
|
|
|
+ isSalesProxyFill: configValue.isSalesProxyFill || false
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
@@ -3551,6 +3590,27 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ // 提交信息采集表权限配置
|
|
|
|
|
+ submitForm30() {
|
|
|
|
|
+ this.$refs['form30'].validate(valid => {
|
|
|
|
|
+ if (valid) {
|
|
|
|
|
+ var param = {
|
|
|
|
|
+ configId: this.configId,
|
|
|
|
|
+ configKey: this.configKey,
|
|
|
|
|
+ configValue: JSON.stringify(this.form30)
|
|
|
|
|
+ }
|
|
|
|
|
+ updateConfigByKey(param).then(response => {
|
|
|
|
|
+ if (response.code === 200) {
|
|
|
|
|
+ this.msgSuccess('修改成功')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.msgError('修改失败')
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.msgError('请求失败: ' + error.message)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
submitform2() {
|
|
submitform2() {
|
|
|
// 将对象转换为JSON字符串并保留两位小数
|
|
// 将对象转换为JSON字符串并保留两位小数
|
|
|
var json_data = JSON.stringify(this.form2, function(key, value) {
|
|
var json_data = JSON.stringify(this.form2, function(key, value) {
|