Commit 591f7c07 by zhangquan

添加serviceCode

1 parent a7f740ca
......@@ -149,7 +149,7 @@ export default {
},
getParams(){
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
},
commitTemplate(){
......
......@@ -350,6 +350,7 @@ export default {
jumpListPage(){
this.$router.push('/serviceConfig/index')
},
// 查看基本信息详情
getServiceDetail(){
this.$apis.serviceConfig.getServiceDetailApi({id: this.routeInfo?.id }).then(res => {
......@@ -393,6 +394,7 @@ export default {
delImage(e){
this.formObj[e.attr] = ''
},
// 获取责任和条件
getConfigList() {
this.$apis.serviceConfig.getCommonConfig({}).then(res => {
if(!res) return;
......@@ -403,6 +405,8 @@ export default {
}
})
},
// 添加购买条件或者除外责任
createConfig(type){
const {id, value} = this.curEditCondition
if(!value) {
......
......@@ -232,12 +232,14 @@
addClause(type, row) {
// 1新增 2查看 3编辑
const { id } = row || {}
const { id, serviceCode, serviceName } = row || {}
let query = {
type
}
if(type!=1){
query.id = id
query.serviceCode = serviceCode
query.serviceName = serviceName
}
const queryStr = encodeURIComponent(JSON.stringify(query))
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!