编辑客户->查看合同

dev
yujialong 3 years ago
parent b26d59d32b
commit 9692dce543
  1. 4
      src/config/index.js
  2. 2
      src/utils/http.js
  3. 8
      src/views/customer/AddCustomer.vue

@ -18,9 +18,9 @@ export default {
*/ */
initialPassword: '111aaa', initialPassword: '111aaa',
/** /**
* 所属平台1->职站 2->数据平台 * 所属平台1->职站 2->数据平台 3->中台
*/ */
platformId: 1, platformId: 3,
/** /**
* @description 系统列表 * @description 系统列表
*/ */

@ -40,7 +40,7 @@ axios.interceptors.request.use(config => {
axios.interceptors.response.use( axios.interceptors.response.use(
response => { response => {
if (response.status === 200) { if (response.status === 200) {
if(response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态 if(response.data.status && response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态
Message.error(response.data.message) Message.error(response.data.message)
return Promise.reject(response); return Promise.reject(response);
} }

@ -182,8 +182,8 @@
<el-table-column prop="contractMoney" label="合同金额" align="center"> <el-table-column prop="contractMoney" label="合同金额" align="center">
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template> <template slot-scope="scope">
<el-button type="text">查看</el-button> <el-button type="text" @click="showContract(scope.row)">查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -440,7 +440,6 @@ export default {
}).then(res => { }).then(res => {
this.NoAdd = true this.NoAdd = true
}).catch(res => { }).catch(res => {
this.$message.warning('该客户已存在')
this.NoAdd = false this.NoAdd = false
}) })
} }
@ -528,6 +527,9 @@ export default {
IPSure(){ IPSure(){
this.ipVisible = false this.ipVisible = false
}, },
showContract(row){
window.open(`https://view.officeapps.live.com/op/view.aspx?src=${row.contractFile}`)
},
goback(){ goback(){
this.$router.go(-1) this.$router.go(-1)
} }

Loading…
Cancel
Save