Commit 591f7c07 by zhangquan

添加serviceCode

1 parent a7f740ca
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
}, },
getParams(){ getParams(){
const params = this.$common.utils.deepClone(this.contentObj) const params = this.$common.utils.deepClone(this.contentObj)
params.useConditions = params.useConditions.replace(/<span.*?class.*?keyname="(.*?)\".*?<\/span>/g,'$1') params.useConditions = params.useConditions.replace(/<span.*?class.*?keyname="(.*?)".*?<\/span>/g,'$1')
return params return params
}, },
commitTemplate(){ commitTemplate(){
......
...@@ -350,6 +350,7 @@ export default { ...@@ -350,6 +350,7 @@ export default {
jumpListPage(){ jumpListPage(){
this.$router.push('/serviceConfig/index') this.$router.push('/serviceConfig/index')
}, },
// 查看基本信息详情 // 查看基本信息详情
getServiceDetail(){ getServiceDetail(){
this.$apis.serviceConfig.getServiceDetailApi({id: this.routeInfo?.id }).then(res => { this.$apis.serviceConfig.getServiceDetailApi({id: this.routeInfo?.id }).then(res => {
...@@ -393,6 +394,7 @@ export default { ...@@ -393,6 +394,7 @@ export default {
delImage(e){ delImage(e){
this.formObj[e.attr] = '' this.formObj[e.attr] = ''
}, },
// 获取责任和条件
getConfigList() { getConfigList() {
this.$apis.serviceConfig.getCommonConfig({}).then(res => { this.$apis.serviceConfig.getCommonConfig({}).then(res => {
if(!res) return; if(!res) return;
...@@ -403,6 +405,8 @@ export default { ...@@ -403,6 +405,8 @@ export default {
} }
}) })
}, },
// 添加购买条件或者除外责任
createConfig(type){ createConfig(type){
const {id, value} = this.curEditCondition const {id, value} = this.curEditCondition
if(!value) { if(!value) {
......
...@@ -232,12 +232,14 @@ ...@@ -232,12 +232,14 @@
addClause(type, row) { addClause(type, row) {
// 1新增 2查看 3编辑 // 1新增 2查看 3编辑
const { id } = row || {} const { id, serviceCode, serviceName } = row || {}
let query = { let query = {
type type
} }
if(type!=1){ if(type!=1){
query.id = id query.id = id
query.serviceCode = serviceCode
query.serviceName = serviceName
} }
const queryStr = encodeURIComponent(JSON.stringify(query)) const queryStr = encodeURIComponent(JSON.stringify(query))
this.$router.push('/serviceConfig/addService/' + queryStr) this.$router.push('/serviceConfig/addService/' + queryStr)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!