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

View File

@ -347,7 +347,7 @@
</el-col>
<el-col :span="14">
<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
v-for="dict in dict.type.emis_payment_type"
:key="dict.value"
@ -1505,6 +1505,7 @@ export default {
newValue: {
handler (newVa, oldValue) {
this.form=this.newValue;
this.form.blSpecialQuote = Number(this.newValue.blSpecialQuote);
console.log("====>newValue this.form==>",this.form);
console.log("====>newValue this.form.packType==>",this.form.packType);
@ -1599,6 +1600,7 @@ export default {
this.form.payee=item.payee;
this.form.salesmen=item.salesmen;
}
this.calcBillFee()
},
initData(){

View File

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

View File

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

View File

@ -2,8 +2,8 @@
<XdPageContainer class="app-container">
<div slot="pageHeader"></div>
<XdTable slot="pageContent" slot-scope="slotProps" :height="(slotProps.contentHeight) + 'px'"
storageName="batchWaybillRecord_main" ref="multipleTable" :row-class-name="tableRowClassName"
v-loading="loading" border size="mini" :data="emisQuotePriceList" :showSearch.sync="showSearch"
storageName="draftSubmitReview_main" ref="multipleTable" :row-class-name="tableRowClassName"
v-loading="loading" border size="mini" :data="list" :showSearch.sync="showSearch"
:queryParams="queryParams" :total="total" @queryTable="getList" @selection-change="handleSelectionChange"
@sort-change="handleSortChange">
@ -69,7 +69,7 @@
href="/static/tpl/imp_trans_quote.xls">下载导入Excel模板</el-link>
<div v-if="uploadExcelDataInfo != ''"
style="color: black;font-size: 12px;font-weight: 800;">{{
fileName }} {{ uploadExcelDataInfo }}</div>
fileName }} {{ uploadExcelDataInfo }}</div>
</el-upload>
<el-alert title="注意" type="info" description="仅允许导入“xls”或“xlsx”格式文件!" close-text="知道了">
</el-alert>
@ -110,7 +110,7 @@ export default {
// 总条数
total: 0,
// 报价列表表格数据
emisQuotePriceList: [],
list: [],
tmpDataList: [],
selectionList: [],
selectionIndexList: [],
@ -211,7 +211,7 @@ export default {
let loadingInstance = this.$loading({
text: '正在解析 ' + _index + ' 数据...'
})
this.emisQuotePriceList = [];
this.list = [];
this.tmpDataList = [];
// 组装提交的数据
for (let index = 0; index < results.length; index++) {
@ -277,7 +277,7 @@ export default {
return;
}
this.emisQuotePriceList = this.emisQuotePriceList.concat(this.tmpDataList);
this.list = this.list.concat(this.tmpDataList);
this.tmpDataList = [];
@ -310,9 +310,9 @@ export default {
let that = this;
this.$modal.confirm('是否确认删除').then(function () {
that.selectionList.forEach((item, index) => {
that.emisQuotePriceList.forEach((v, i) => {
that.list.forEach((v, i) => {
if (item.index === v.index) {
that.emisQuotePriceList.splice(i, 1)
that.list.splice(i, 1)
}
})
})