Commit 280d68fb authored by caimeng's avatar caimeng

发送短信需求,切图已完成

parent ecfe8869
NODE_ENV=development NODE_ENV=development
VUE_APP_ENV=development
VUE_APP_SIGN_URL=http://m.jqtianxia.cn/sign_agreement/index.html VUE_APP_SIGN_URL=http://m.jqtianxia.cn/sign_agreement/index.html
VUE_APP_API=http://47.99.245.36:8202 VUE_APP_API=http://47.99.245.36:8202
NODE_ENV=dr NODE_ENV=dr
VUE_APP_ENV=production
VUE_APP_SIGN_URL=https://sign.taimedias.com/dr/index.html VUE_APP_SIGN_URL=https://sign.taimedias.com/dr/index.html
VUE_APP_API=https://drwater.dingrongxd.com VUE_APP_API=https://drwater.dingrongxd.com
\ No newline at end of file
NODE_ENV=prod NODE_ENV=prod
VUE_APP_ENV=production
VUE_APP_SIGN_URL=https://sign.taimedias.com/index.html VUE_APP_SIGN_URL=https://sign.taimedias.com/index.html
VUE_APP_API=https://water.jqtianxia.com VUE_APP_API=https://water.jqtianxia.com
NODE_ENV=staging NODE_ENV=staging
VUE_APP_ENV=test
VUE_APP_SIGN_URL=http://m.jqtianxia.cn/sign_agreement/index.html VUE_APP_SIGN_URL=http://m.jqtianxia.cn/sign_agreement/index.html
VUE_APP_API=http://47.99.245.36:8202 VUE_APP_API=http://47.99.245.36:8202
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build:test": "export COMPILE_ENV=staging && vue-cli-service build --mode test && node ./upload_oss.js", "build:staging": "export COMPILE_ENV=staging && vue-cli-service build --mode staging",
"build:dr": "export COMPILE_ENV=dr && vue-cli-service build --mode dr --modern", "build:dr": "export COMPILE_ENV=dr && vue-cli-service build --mode dr --modern",
"build:prod": "export COMPILE_ENV=prod && vue-cli-service build --mode production --modern && node ./upload_oss.js" "build:prod": "export COMPILE_ENV=prod && vue-cli-service build --mode production --modern && node ./upload_oss.js",
"upload:staging":"export COMPILE_ENV=staging && node ./upload_oss.js",
"upload:prod":"export COMPILE_ENV=prod && node ./upload_oss.js"
}, },
"dependencies": { "dependencies": {
"ali-oss": "^6.20.0", "ali-oss": "^6.20.0",
......
...@@ -2,34 +2,28 @@ ...@@ -2,34 +2,28 @@
<div class="page-dialog"> <div class="page-dialog">
<block-header title="借款记录"></block-header> <block-header title="借款记录"></block-header>
<div class="block-box"> <div class="block-box">
<el-table <el-table border size="mini" :highlight-current-row="true" :header-row-class-name="headerStyle" :data="data"
border stripe style="width: 100%;">
size="mini"
:highlight-current-row="true"
:header-row-class-name="headerStyle"
:data="data" stripe style="width: 100%;">
<el-table-column align="center" width="140" prop="loanNo" label="借款编号"></el-table-column> <el-table-column align="center" width="140" prop="loanNo" label="借款编号"></el-table-column>
<el-table-column align="center" prop="gmtCreated" label="申请日期" :formatter="dateFormats"></el-table-column> <el-table-column align="center" prop="gmtCreated" label="申请日期" :formatter="dateFormats"></el-table-column>
<el-table-column align="center" prop="startDate" label="放款日期" :formatter="dateFormats"></el-table-column> <el-table-column align="center" prop="startDate" label="放款日期" :formatter="dateFormats"></el-table-column>
<el-table-column align="center" prop="raiseAmt" label="放款本金"></el-table-column> <el-table-column align="center" prop="raiseAmt" label="放款本金"></el-table-column>
<el-table-column align="center" prop="productNameStr" label="产品名称"></el-table-column> <el-table-column align="center" prop="productNameStr" label="产品名称"></el-table-column>
<el-table-column align="center" prop="capitalCodeStr" label="放款资方" <el-table-column align="center" prop="capitalCodeStr" label="放款资方"></el-table-column>
></el-table-column> <el-table-column align="center" prop="serviceThemeName" label="服务费主体"></el-table-column>
<el-table-column align="center" prop="serviceThemeName" label="服务费主体"
></el-table-column>
<el-table-column align="center" prop="status" label="借款单状态"> <el-table-column align="center" prop="status" label="借款单状态">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="success" v-if="scope.row.status==='AUDITED'" size="small">{{ loanStatusFormat(scope.row) }} <el-tag type="success" v-if="scope.row.status === 'AUDITED'" size="small">{{ loanStatusFormat(scope.row) }}
</el-tag> </el-tag>
<el-tag v-else-if="scope.row.status==='SETTLED'" size="small">{{ loanStatusFormat(scope.row) }}</el-tag> <el-tag v-else-if="scope.row.status === 'SETTLED'" size="small">{{ loanStatusFormat(scope.row) }}</el-tag>
<el-tag type="danger" v-else-if="scope.row.status==='OVERDUED'" size="small"> <el-tag type="danger" v-else-if="scope.row.status === 'OVERDUED'" size="small">
{{ loanStatusFormat(scope.row) }} {{ loanStatusFormat(scope.row) }}
</el-tag> </el-tag>
<el-tag type="warning" v-else-if="scope.row.status==='SUBMITED'" size="small"> <el-tag type="warning" v-else-if="scope.row.status === 'SUBMITED'" size="small">
{{ loanStatusFormat(scope.row) }} {{ loanStatusFormat(scope.row) }}
</el-tag> </el-tag>
<el-tag type="warning" v-else-if="scope.row.status==='BACKING'" size="small"> <el-tag type="warning" v-else-if="scope.row.status === 'BACKING'" size="small">
{{ loanStatusFormat(scope.row) }} {{ loanStatusFormat(scope.row) }}
</el-tag> </el-tag>
<el-tag type="info" v-else size="small">{{ loanStatusFormat(scope.row) }}</el-tag> <el-tag type="info" v-else size="small">{{ loanStatusFormat(scope.row) }}</el-tag>
...@@ -41,33 +35,41 @@ ...@@ -41,33 +35,41 @@
<el-table-column align="center" label="查看详情"> <el-table-column align="center" label="查看详情">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="handleClick(scope.row)">详情</el-button> <el-button type="text" size="small" @click="handleClick(scope.row)">详情</el-button>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode !== 'OWNBUSINESS' && scope.row.capitalCode !== 'FENGSHENGBUSINESSJQ' && scope.row.capitalCode !== 'YUANFENGBUSINESS' && scope.row.capitalCode !== 'FENGSHENGBUSINESSDR' && scope.row.capitalCode !== 'FENGSHENGBUSINESSZY'"> <template
<el-button type="text" size="small" @click="handleShow(scope.row,'SettleReport','结清报告')">结清报告 v-if="scope.row.status === 'SETTLED' && scope.row.capitalCode !== 'OWNBUSINESS' && scope.row.capitalCode !== 'FENGSHENGBUSINESSJQ' && scope.row.capitalCode !== 'YUANFENGBUSINESS' && scope.row.capitalCode !== 'FENGSHENGBUSINESSDR' && scope.row.capitalCode !== 'FENGSHENGBUSINESSZY'">
<el-button type="text" size="small" @click="handleShow(scope.row, 'SettleReport', '结清报告')">结清报告
</el-button> </el-button>
</template> </template>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode === 'OWNBUSINESS' && zyItem"> <template v-if="scope.row.status === 'SETTLED' && scope.row.capitalCode === 'OWNBUSINESS' && zyItem">
<el-button type="text" size="small" @click="handleShow(scope.row,'GenerateSettleReport','结清报告')">结清报告 <el-button type="text" size="small" @click="handleShow(scope.row, 'GenerateSettleReport', '结清报告')">结清报告
</el-button> </el-button>
</template> </template>
<!--偷懒写法--> <!--偷懒写法-->
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode === 'FENGSHENGBUSINESSJQ' && zyItem"> <template
<el-button type="text" size="small" @click="handleShow(scope.row,'GenerateSettleReport','结清报告')">结清报告 v-if="scope.row.status === 'SETTLED' && scope.row.capitalCode === 'FENGSHENGBUSINESSJQ' && zyItem">
<el-button type="text" size="small" @click="handleShow(scope.row, 'GenerateSettleReport', '结清报告')">结清报告
</el-button> </el-button>
</template> </template>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode === 'FENGSHENGBUSINESSDR' && zyItem"> <template
<el-button type="text" size="small" @click="handleShow(scope.row,'GenerateSettleReport','结清报告')">结清报告 v-if="scope.row.status === 'SETTLED' && scope.row.capitalCode === 'FENGSHENGBUSINESSDR' && zyItem">
<el-button type="text" size="small" @click="handleShow(scope.row, 'GenerateSettleReport', '结清报告')">结清报告
</el-button> </el-button>
</template> </template>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode === 'FENGSHENGBUSINESSZY' && zyItem"> <template
<el-button type="text" size="small" @click="handleShow(scope.row,'GenerateSettleReport','结清报告')">结清报告 v-if="scope.row.status === 'SETTLED' && scope.row.capitalCode === 'FENGSHENGBUSINESSZY' && zyItem">
<el-button type="text" size="small" @click="handleShow(scope.row, 'GenerateSettleReport', '结清报告')">结清报告
</el-button> </el-button>
</template> </template>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode === 'YUANFENGBUSINESS' && zyItem"> <template v-if="scope.row.status === 'SETTLED' && scope.row.capitalCode === 'YUANFENGBUSINESS' && zyItem">
<el-button type="text" size="small" @click="handleShow(scope.row,'GenerateSettleReport','结清报告')">结清报告 <el-button type="text" size="small" @click="handleShow(scope.row, 'GenerateSettleReport', '结清报告')">结清报告
</el-button> </el-button>
</template> </template>
<!-- 短信 -->
<el-button type="text" size="small" @click="handleMessageSend(scope.row)">短信</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -76,21 +78,47 @@ ...@@ -76,21 +78,47 @@
<!--借款详情--> <!--借款详情-->
<template v-if="visible"> <template v-if="visible">
<loan-detail <loan-detail @handleClose="visible = false" :title="title" :params="items" :dialogVisible="visible" />
@handleClose="visible=false"
:title="title"
:params="items"
:dialogVisible="visible"/>
</template> </template>
<!-- 那啥--> <!-- 那啥-->
<template v-if="mcDialogVisible"> <template v-if="mcDialogVisible">
<component <component @handleClose="mcDialogVisible = false" :is="ActiveCom" :title="mcTitle" :params="mcItems"
@handleClose="mcDialogVisible = false" :visible="mcDialogVisible" />
:is="ActiveCom" </template>
:title="mcTitle"
:params="mcItems" <!-- 短信发送 -->
:visible="mcDialogVisible"/> <template v-if="MessageDialogVisible">
<BaseDialog width="45%" :footer="true" :visible.sync="MessageDialogVisible" title="发短信"
@onSubmit="handleMessageSubmit">
<el-form size="small" :model="MessageForm" :rules="MessageRules" ref="MessageForm" label-width="120px">
<el-row>
<el-col :span="18">
<el-form-item label="短信模板:" prop="template">
<el-select style="width: 100%;" v-model="MessageForm.template" placeholder="请选择">
<el-option label="label" value="value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="投诉渠道:" prop="channel">
<el-select style="width: 100%;" v-model="MessageForm.channel" placeholder="请选择">
<el-option label="label" value="value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="短信内容:">
<el-input type="textarea" v-model="MessageForm.context" placeholder="请输入发送号码" :row="4" disabled />
</el-form-item>
<el-form-item label="发送号码:">
<el-input placeholder="请输入发送号码" v-model="MessageForm.mobile" disabled />
</el-form-item>
</el-col>
</el-row>
</el-form>
</BaseDialog>
</template> </template>
</div> </div>
</template> </template>
...@@ -124,20 +152,30 @@ export default { ...@@ -124,20 +152,30 @@ export default {
mcItems: null, mcItems: null,
mcTitle: "", mcTitle: "",
ActiveCom: "", ActiveCom: "",
zyItem:"", zyItem: "",
data: [] data: [],
// 短信发送
MessageForm: {
template: '',
channel: '',
context: 'asdfsaf',
mobile: '13588322792'
},
MessageRules: {},
MessageDialogVisible: false,
} }
}, },
async created() { async created() {
const btnUrl=localStorage.getItem('btnUrl'); const btnUrl = localStorage.getItem('btnUrl');
if(btnUrl){ if (btnUrl) {
this.zyItem=btnUrl this.zyItem = btnUrl
}else{ } else {
this.zyItem=null this.zyItem = null
} }
const {clientNo, clientProductName} = this.params; const { clientNo, clientProductName } = this.params;
const res = await this.$$post('/loan/getLoanListByClientNo/', {productName: clientProductName, clientNo: clientNo}); const res = await this.$$post('/loan/getLoanListByClientNo/', { productName: clientProductName, clientNo: clientNo });
const {success, result} = res.data; const { success, result } = res.data;
if (success && result !== null) { if (success && result !== null) {
this.data = result; this.data = result;
} }
...@@ -172,21 +210,34 @@ export default { ...@@ -172,21 +210,34 @@ export default {
}; };
}, },
handleShow(row, com, title) { handleShow(row, com, title) {
console.log(row,com,title, '当前行') console.log(row, com, title, '当前行')
this.mcDialogVisible = true; this.mcDialogVisible = true;
this.mcItems = { this.mcItems = {
...this.params, ...this.params,
...row ...row
}; };
console.log(this.params,'什么鬼'); console.log(this.params, '什么鬼');
console.log(this.mcItems,'mmmcccc'); console.log(this.mcItems, 'mmmcccc');
this.mcTitle = title; this.mcTitle = title;
this.ActiveCom = com; this.ActiveCom = com;
},
// 短信发送弹框
handleMessageSend(row) {
this.MessageDialogVisible = true;
},
// 发送短信提交
handleMessageSubmit() {
this.$refs['MessageForm'].validate((valid) => {
console.log(valid,'xx')
if (!valid) {
return false
}
})
} }
} }
} }
</script> </script>
<style> <style></style>
</style>
...@@ -29,6 +29,21 @@ ...@@ -29,6 +29,21 @@
width="350" width="350"
label="短信内容" label="短信内容"
></el-table-column> ></el-table-column>
<el-table-column
align="center"
prop="content"
label="短信通道"
></el-table-column>
<el-table-column
align="center"
prop="content"
label="提交人"
></el-table-column>
<el-table-column
align="center"
prop="sendStateStr"
label="提交结果"
></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="sendStateStr" prop="sendStateStr"
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
label: '操作', label: '操作',
prop: 'zipPath', prop: 'zipPath',
render: (_, text, row) => { render: (_, text, row) => {
if (row.caseStatus === 'FINISHED') return <el-link type="primary" target="_blank" href={text}>下载材料包</el-link> if (row.caseStatus === 'FINISHED') return <a alt='' title='' target="_blank" href={text}>下载材料包</a>
else return '' else return ''
} }
} }
......
...@@ -11,10 +11,6 @@ let accessKeyId = "LTAI5tAhrEnqLFtnWPwZbDue", ...@@ -11,10 +11,6 @@ let accessKeyId = "LTAI5tAhrEnqLFtnWPwZbDue",
if (COMPILE_ENV === "prod") { if (COMPILE_ENV === "prod") {
bucket = "customer-vue"; bucket = "customer-vue";
} else if (COMPILE_ENV === "dr") {
bucket = "mmyx-h5-gray";
accessKeyId = "";
accessKeySecret = "";
} else if (COMPILE_ENV === "staging") { } else if (COMPILE_ENV === "staging") {
bucket = "customer-vue-test"; bucket = "customer-vue-test";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment