Commit b26d3b67 authored by 邓春圆's avatar 邓春圆

赔付金额,时间选择报错修改

parent e8be39d0
<script>
export default {
name: "jd-input-number",
props:{
value:[Number,String]
},
computed:{
val:{
get(){
return this.value
},
set(val){
this.$emit('input',val)
}
}
}
}
</script>
<template>
<div style="display: flex;">
<div style="flex: 1">
<el-input-number controls-position="right" v-model="val" style="width: 100%;text-align: left;" ></el-input-number>
</div>
<slot></slot>
</div>
</template>
<style scoped lang="scss">
::v-deep.el-input-number{
.el-input__inner{
text-align: left;
}
span{
display: none;
}
}
</style>
...@@ -31,6 +31,12 @@ ...@@ -31,6 +31,12 @@
<el-date-picker v-model="dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd" <el-date-picker v-model="dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd"
type="daterange" range-separator="-" :start-placeholder="$t('开始日期')" :end-placeholder="$t('结束日期')" /> type="daterange" range-separator="-" :start-placeholder="$t('开始日期')" :end-placeholder="$t('结束日期')" />
</el-form-item> </el-form-item>
<el-form-item label="登记客服">
<el-select v-model="queryParams.adminId" :placeholder="$t('请选择客户经理')">
<el-option v-for="item in serviceUserList"
:key="item.id" :label="item.nickname" :value="item.id" />
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button> <el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button>
...@@ -176,11 +182,13 @@ ...@@ -176,11 +182,13 @@
<el-input type="textarea" :placeholder="$t('请输入处理结果')" v-model="form.result"></el-input> <el-input type="textarea" :placeholder="$t('请输入处理结果')" v-model="form.result"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="form.status == '3'" :label="$t('赔付金额')"> <el-form-item v-show="form.status == '3'" :label="$t('赔付金额')">
<el-input v-model="form.indemnity" :placeholder="$t('请输入赔付金额')"> <jd-input-number v-model="form.indemnity" >
<el-select slot="append" defaultable v-model="form.currencyUnit" :placeholder="$t('请选择货币单位')" style="width: 110px"> <el-select defaultable v-model="form.currencyUnit" :placeholder="$t('请选择货币单位')" style="width: 110px">
<el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh : item.titleEn " :value="item.id" /> <el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh : item.titleEn " :value="item.id" />
</el-select> </el-select>
</el-input> </jd-input-number>
<!-- <el-input :placeholder="$t('请输入赔付金额')">-->
<!-- </el-input>-->
</el-form-item> </el-form-item>
<el-form-item v-show="form.status == '3'" :label="$t('处理时间')" required> <el-form-item v-show="form.status == '3'" :label="$t('处理时间')" required>
<span>{{parseTime(form.handleAt)}}</span> <span>{{parseTime(form.handleAt)}}</span>
...@@ -272,14 +280,20 @@ ...@@ -272,14 +280,20 @@
<el-input type="textarea" :placeholder="$t('请输入处理结果')" v-model="form.result"></el-input> <el-input type="textarea" :placeholder="$t('请输入处理结果')" v-model="form.result"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="form.status == '3'" :label="$t('赔付金额')"> <el-form-item v-show="form.status == '3'" :label="$t('赔付金额')">
<el-input v-model="form.indemnity" :placeholder="$t('请输入赔付金额')"> <jd-input-number v-model="form.indemnity" >
<el-select slot="append" defaultable v-model="form.currencyUnit" :placeholder="$t('请选择货币单位')" style="width: 110px"> <el-select defaultable v-model="form.currencyUnit" :placeholder="$t('请选择货币单位')" style="width: 110px">
<el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh :item.titleEn" :value="item.id" /> <el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh :item.titleEn" :value="item.id" />
</el-select> </el-select>
</el-input> </jd-input-number>
<!-- <el-input-number v-model.number="form.indemnity" :placeholder="$t('请输入赔付金额')">-->
<!-- <el-select slot="append" defaultable v-model="form.currencyUnit" :placeholder="$t('请选择货币单位')" style="width: 110px">-->
<!-- <el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh :item.titleEn" :value="item.id" />-->
<!-- </el-select>-->
<!-- </el-input-number>-->
</el-form-item> </el-form-item>
<el-form-item v-show="form.status == '3'" :label="$t('处理时间')" required> <el-form-item v-show="form.status == '3'" :label="$t('处理时间')" required>
<el-date-picker type="datetime" v-model="form.handleAt" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetime" v-model="form.handleAt">
</el-date-picker>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -299,6 +313,8 @@ import { DICT_TYPE, getDictDataLabel, getDictDatas } from '@/utils/dict' ...@@ -299,6 +313,8 @@ import { DICT_TYPE, getDictDataLabel, getDictDatas } from '@/utils/dict'
import { getBillNoSearch, getOrderNoSearch } from '@/api/ecw/order' import { getBillNoSearch, getOrderNoSearch } from '@/api/ecw/order'
import customerSelect from '@/views/ecw/customer/customerSelect' import customerSelect from '@/views/ecw/customer/customerSelect'
import { getCurrencyPage } from "@/api/ecw/currency"; import { getCurrencyPage } from "@/api/ecw/currency";
import {listServiceUser} from "@/api/system/user";
import JdInputNumber from "@/views/ecw/customer/components/jd-input-number.vue";
export default { export default {
name: "CustomerComplaint", name: "CustomerComplaint",
...@@ -310,6 +326,7 @@ export default { ...@@ -310,6 +326,7 @@ export default {
customerId: Number customerId: Number
}, },
components: { components: {
JdInputNumber,
CustomerFollow, CustomerFollow,
DictSelector, DictSelector,
customerSelect customerSelect
...@@ -376,16 +393,19 @@ export default { ...@@ -376,16 +393,19 @@ export default {
page: 1, page: 1,
rows: 20, rows: 20,
}, },
currencyList:[] currencyList:[],
serviceUserList:[]
}; };
}, },
created() { created() {
listServiceUser().then(r => {
this.serviceUserList = r.data
})
this.getList(); this.getList();
getCurrencyPage(this.params).then(res => this.currencyList = res.data.list) getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
}, },
methods: { methods: {
getBillList(key){ getBillList(key){
getBillNoSearch({key, pageNo: 1, pageSize: 20}).then(r => { getBillNoSearch({key, pageNo: 1, pageSize: 20}).then(r => {
if (r.code === 0){ if (r.code === 0){
...@@ -459,6 +479,7 @@ export default { ...@@ -459,6 +479,7 @@ export default {
resetQuery() { resetQuery() {
this.dateRangeCreateTime = []; this.dateRangeCreateTime = [];
this.resetForm("queryForm"); this.resetForm("queryForm");
this.queryParams.adminId = null;
this.handleQuery(); this.handleQuery();
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
......
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