Merge pull request 'master-客户管理' (#46) from master-客户管理 into master

Reviewed-on: http://git.xdadan.loc/tanex/emis-frontend/pulls/46
This commit is contained in:
wuteng 2025-07-31 11:23:48 +08:00
commit 5327bde82d
6 changed files with 45 additions and 15 deletions

View File

@ -256,10 +256,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用状态" align="center" prop="blOpen" min-width="100" > <el-table-column label="启用状态" align="center" prop="blOpen" min-width="100" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.blOpen==1" type="success">启用</el-tag> <el-tag v-if="scope.row.blOpen==1 && (queryParams.blOpen =='1' || queryParams.blOpen ==null || queryParams.blOpen == '')" type="success">启用</el-tag>
<el-tag v-if="scope.row.blOpen==0" type="danger">停用</el-tag> <el-tag v-else-if="scope.row.blOpen==0" type="danger">停用</el-tag>
<el-tag v-if="scope.row.blOpen==2" type="warning">启用已过期</el-tag> <el-tag v-else-if="scope.row.blOpen==1 && queryParams.blOpen =='2'" type="warning">启用已过期</el-tag>
<el-tag v-if="scope.row.blOpen==3" type="success">启用未过期</el-tag> <el-tag v-else-if="scope.row.blOpen==1 && queryParams.blOpen =='3'" type="success">启用未过期</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column :label="$t('员工编号')" align="center" prop="empCode" min-width="100" /> --> <!-- <el-table-column :label="$t('员工编号')" align="center" prop="empCode" min-width="100" /> -->
@ -365,6 +365,15 @@ export default {
created() { created() {
this.getList(); this.getList();
}, },
//watch 监听blOpen
watch: {
'queryParams.blOpen': {
handler(newVal, oldVal) {
this.getList();
},
immediate: true
}
},
methods: { methods: {
/** 查询员工提成方案报价列表 */ /** 查询员工提成方案报价列表 */
getList() { getList() {

View File

@ -234,12 +234,12 @@
<el-table-column :label="$t('客户名称')" align="center" prop="customerName" min-width="100" :show-overflow-tooltip="true"/> <el-table-column :label="$t('客户名称')" align="center" prop="customerName" min-width="100" :show-overflow-tooltip="true"/>
<!-- <el-table-column :label="$t('预计进仓日期')" align="center" prop="entryDate" min-width="170" :show-overflow-tooltip="true"/> --> <!-- <el-table-column :label="$t('预计进仓日期')" align="center" prop="entryDate" min-width="170" :show-overflow-tooltip="true"/> -->
<!-- <el-table-column :label="$t('客户确认状态')" align="center" prop="confirmStatus" min-width="150" /> --> <!-- <el-table-column :label="$t('客户确认状态')" align="center" prop="confirmStatus" min-width="150" /> -->
<el-table-column :label="$t('线路')" align="center" prop="transLineTypeName" min-width="100" :show-overflow-tooltip="true"> <el-table-column :label="$t('线路')" align="center" prop="waybillDetail.transLineTypeName" min-width="100" :show-overflow-tooltip="true">
<template slot-scope="scope" v-if="scope.row.waybillDetail.transLineTypeName"> <template slot-scope="scope" v-if="scope.row.waybillDetail.transLineTypeName">
{{scope.row.waybillDetail.transLineTypeName}} {{scope.row.waybillDetail.transLineTypeName}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('产品类型')" align="center" prop="productTypeName" min-width="100" :show-overflow-tooltip="true"> <el-table-column :label="$t('产品类型')" align="center" prop="waybillDetail.productTypeName" min-width="100" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.waybillDetail.productTypeName}} {{scope.row.waybillDetail.productTypeName}}
</template> </template>
@ -848,6 +848,12 @@ export default {
if (j === 'waybillDetail.paymentType') { if (j === 'waybillDetail.paymentType') {
return this.selectDictLabel(this.dict.type.emis_payment_type,v['waybillDetail']['paymentType']); return this.selectDictLabel(this.dict.type.emis_payment_type,v['waybillDetail']['paymentType']);
} }
if(j === 'waybillDetail.transLineTypeName'){
return v['waybillDetail']['transLineTypeName'];
}
if(j === 'waybillDetail.productTypeName'){
return v['waybillDetail']['productTypeName'];
}
return v[j] return v[j]
})) }))
}, },

View File

@ -347,7 +347,7 @@
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<el-form-item :label="$t('支付方式')" prop="paymentType" > <el-form-item :label="$t('支付方式')" prop="paymentType" >
<el-select v-model="form.paymentType" placeholder="" > <el-select v-model="form.paymentType" placeholder="" @change="calcBillFee">
<el-option <el-option
v-for="dict in dict.type.emis_payment_type" v-for="dict in dict.type.emis_payment_type"
:key="dict.value" :key="dict.value"
@ -1505,6 +1505,7 @@ export default {
newValue: { newValue: {
handler (newVa, oldValue) { handler (newVa, oldValue) {
this.form=this.newValue; this.form=this.newValue;
this.form.blSpecialQuote = Number(this.newValue.blSpecialQuote);
console.log("====>newValue this.form==>",this.form); console.log("====>newValue this.form==>",this.form);
console.log("====>newValue this.form.packType==>",this.form.packType); console.log("====>newValue this.form.packType==>",this.form.packType);
@ -1599,6 +1600,7 @@ export default {
this.form.payee=item.payee; this.form.payee=item.payee;
this.form.salesmen=item.salesmen; this.form.salesmen=item.salesmen;
} }
this.calcBillFee()
}, },
initData(){ initData(){

View File

@ -51,6 +51,7 @@
type="datetime" type="datetime"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择结束时间" placeholder="选择结束时间"
@change="changeEndDate"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -147,6 +148,9 @@ export default {
}); });
} }
}, },
changeEndDate(val){
this.form.endDate = val.split(' ')[0] + ' 23:59:59';
},
// 取消按钮 // 取消按钮
cancel() { cancel() {
this.reset(); this.reset();

View File

@ -260,6 +260,15 @@ export default {
return '停用'; return '停用';
} }
} }
if(j === 'salesExecutiveRatio'){
return v[j] + '%';
}
if(j === 'salesmenRatio'){
return v[j] + '%';
}
if(j === 'salesSupportRatio'){
return v[j] + '%';
}
return v[j] return v[j]
})) }))
}, },

View File

@ -2,8 +2,8 @@
<XdPageContainer class="app-container"> <XdPageContainer class="app-container">
<div slot="pageHeader"></div> <div slot="pageHeader"></div>
<XdTable slot="pageContent" slot-scope="slotProps" :height="(slotProps.contentHeight) + 'px'" <XdTable slot="pageContent" slot-scope="slotProps" :height="(slotProps.contentHeight) + 'px'"
storageName="batchWaybillRecord_main" ref="multipleTable" :row-class-name="tableRowClassName" storageName="draftSubmitReview_main" ref="multipleTable" :row-class-name="tableRowClassName"
v-loading="loading" border size="mini" :data="emisQuotePriceList" :showSearch.sync="showSearch" v-loading="loading" border size="mini" :data="list" :showSearch.sync="showSearch"
:queryParams="queryParams" :total="total" @queryTable="getList" @selection-change="handleSelectionChange" :queryParams="queryParams" :total="total" @queryTable="getList" @selection-change="handleSelectionChange"
@sort-change="handleSortChange"> @sort-change="handleSortChange">
@ -110,7 +110,7 @@ export default {
// 总条数 // 总条数
total: 0, total: 0,
// 报价列表表格数据 // 报价列表表格数据
emisQuotePriceList: [], list: [],
tmpDataList: [], tmpDataList: [],
selectionList: [], selectionList: [],
selectionIndexList: [], selectionIndexList: [],
@ -211,7 +211,7 @@ export default {
let loadingInstance = this.$loading({ let loadingInstance = this.$loading({
text: '正在解析 ' + _index + ' 数据...' text: '正在解析 ' + _index + ' 数据...'
}) })
this.emisQuotePriceList = []; this.list = [];
this.tmpDataList = []; this.tmpDataList = [];
// 组装提交的数据 // 组装提交的数据
for (let index = 0; index < results.length; index++) { for (let index = 0; index < results.length; index++) {
@ -277,7 +277,7 @@ export default {
return; return;
} }
this.emisQuotePriceList = this.emisQuotePriceList.concat(this.tmpDataList); this.list = this.list.concat(this.tmpDataList);
this.tmpDataList = []; this.tmpDataList = [];
@ -310,9 +310,9 @@ export default {
let that = this; let that = this;
this.$modal.confirm('是否确认删除').then(function () { this.$modal.confirm('是否确认删除').then(function () {
that.selectionList.forEach((item, index) => { that.selectionList.forEach((item, index) => {
that.emisQuotePriceList.forEach((v, i) => { that.list.forEach((v, i) => {
if (item.index === v.index) { if (item.index === v.index) {
that.emisQuotePriceList.splice(i, 1) that.list.splice(i, 1)
} }
}) })
}) })