md
This commit is contained in:
parent
532c572fa7
commit
626110d42f
@ -3,8 +3,8 @@
|
|||||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||||
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="月结客户" prop="customerCode">
|
<el-form-item label="月结客户" prop="monthlyPayCode">
|
||||||
<EmisMonthpayAccountPicker v-model="form.customerCode" @onChange="onMonthpayAccountChange" :disabled="form.id!=null"></EmisMonthpayAccountPicker>
|
<EmisMonthpayAccountPicker v-model="form.monthlyPayCode" @onChange="onMonthpayAccountChange" :disabled="form.id!=null"></EmisMonthpayAccountPicker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@ -40,16 +40,7 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="12">
|
|
||||||
<el-form-item label="当前余额" prop="curMoney">
|
|
||||||
<el-input v-model="form.curMoney" placeholder="请输入当前余额" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="余额比率" prop="curMoneyRate">
|
|
||||||
<el-input v-model="form.curMoneyRate" placeholder="请输入余额比率" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col> -->
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="固定额度" prop="creditMoney">
|
<el-form-item label="固定额度" prop="creditMoney">
|
||||||
<el-input v-model="form.creditMoney" placeholder="请输入信用额度" />
|
<el-input v-model="form.creditMoney" placeholder="请输入信用额度" />
|
||||||
@ -67,12 +58,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<!--
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="是否启用" prop="blOpen">
|
|
||||||
<el-input v-model="form.blOpen" placeholder="请输入是否启用" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col> -->
|
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||||
@ -120,8 +105,8 @@ export default {
|
|||||||
id: [
|
id: [
|
||||||
{ required: true, message: "id不能为空", trigger: "blur" }
|
{ required: true, message: "id不能为空", trigger: "blur" }
|
||||||
],
|
],
|
||||||
customerCode: [
|
monthlyPayCode: [
|
||||||
{ required: true, message: "客户编码不能为空", trigger: "blur" }
|
{ required: true, message: "月结客户不能为空", trigger: "blur" }
|
||||||
],
|
],
|
||||||
creditMoney: [
|
creditMoney: [
|
||||||
{ required: true, message: "信用额度不能为空", trigger: "blur" }
|
{ required: true, message: "信用额度不能为空", trigger: "blur" }
|
||||||
@ -176,6 +161,7 @@ export default {
|
|||||||
// this.getTreeselect();
|
// this.getTreeselect();
|
||||||
},
|
},
|
||||||
onMonthpayAccountChange(item){
|
onMonthpayAccountChange(item){
|
||||||
|
this.form.customerCode=item.payee;
|
||||||
this.form.payee=item.payee;
|
this.form.payee=item.payee;
|
||||||
this.form.salesmen=item.salesmen;
|
this.form.salesmen=item.salesmen;
|
||||||
},
|
},
|
||||||
@ -189,6 +175,7 @@ export default {
|
|||||||
this.form = {
|
this.form = {
|
||||||
id: null,
|
id: null,
|
||||||
customerCode: null,
|
customerCode: null,
|
||||||
|
monthlyPayCode:null,
|
||||||
curMoney: null,
|
curMoney: null,
|
||||||
curMoneyRate: null,
|
curMoneyRate: null,
|
||||||
creditMoney: null,
|
creditMoney: null,
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
|
|
||||||
if(this.id !=null) {
|
if(this.id !=null) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getEmisCreditCustomerRecord(this.id).then(response => {
|
getEmisCreditCustomerRecord(this.id).then(response => {
|
||||||
|
|||||||
@ -58,8 +58,11 @@
|
|||||||
slot-scope="slotProps"
|
slot-scope="slotProps"
|
||||||
:height="(slotProps.contentHeight)+'px'"
|
:height="(slotProps.contentHeight)+'px'"
|
||||||
|
|
||||||
v-loading="loading" border size="mini"
|
ref="refTable"
|
||||||
|
|
||||||
|
v-loading="loading" border size="mini"
|
||||||
:data="userList"
|
:data="userList"
|
||||||
|
|
||||||
storageName="emisUser_main"
|
storageName="emisUser_main"
|
||||||
|
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
@ -137,7 +140,7 @@
|
|||||||
v-hasPermi="['system:user:import']"
|
v-hasPermi="['system:user:import']"
|
||||||
>导入</el-button>
|
>导入</el-button>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<!-- <el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
plain
|
plain
|
||||||
@ -146,7 +149,7 @@
|
|||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
v-hasPermi="['system:user:export']"
|
v-hasPermi="['system:user:export']"
|
||||||
>导出</el-button>
|
>导出</el-button>
|
||||||
</el-col> -->
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<!-- <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange"> -->
|
<!-- <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange"> -->
|
||||||
@ -337,6 +340,8 @@ export default {
|
|||||||
openForm: false,
|
openForm: false,
|
||||||
titleForm: "",
|
titleForm: "",
|
||||||
|
|
||||||
|
selectionList:null,
|
||||||
|
|
||||||
// 部门树选项
|
// 部门树选项
|
||||||
deptOptions: undefined,
|
deptOptions: undefined,
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
@ -476,6 +481,7 @@ export default {
|
|||||||
this.ids = selection.map(item => item.userId);
|
this.ids = selection.map(item => item.userId);
|
||||||
this.single = selection.length != 1;
|
this.single = selection.length != 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
|
this.selectionList = selection;
|
||||||
},
|
},
|
||||||
// 更多操作触发
|
// 更多操作触发
|
||||||
handleCommand(command, row) {
|
handleCommand(command, row) {
|
||||||
@ -544,12 +550,80 @@ export default {
|
|||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
// this.download('system/user/export', {
|
const loadingInstance = this.$loading({
|
||||||
// ...this.queryParams
|
text: '正在导出...'
|
||||||
// }, `user_${new Date().getTime()}.xlsx`)
|
})
|
||||||
|
|
||||||
|
if(this.selectionList&&this.selectionList.length>0){
|
||||||
|
this.exportData(this.selectionList,loadingInstance);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
let qExportParam = {...this.queryParams};
|
||||||
|
qExportParam.pageNum=1;
|
||||||
|
qExportParam.pageSize=20000;
|
||||||
|
qExportParam=this.addDateRange(qExportParam, this.dateRange);
|
||||||
|
|
||||||
|
listUser(qExportParam).then(response => {
|
||||||
|
if (response.code === 200) {
|
||||||
|
this.exportData(response.rows,loadingInstance);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
exportData(selData,loadingInstance){
|
||||||
|
const curList =selData
|
||||||
|
import('@/vendor/Export2Excel').then(excel => {
|
||||||
|
const exportParam=this.$refs.refTable.getExportParam();
|
||||||
|
const tHeader = exportParam.header;
|
||||||
|
const filterVal = exportParam.filter;
|
||||||
|
const data = this.formatJson(filterVal, curList, selData)
|
||||||
|
excel.export_json_to_excel({
|
||||||
|
header: tHeader,
|
||||||
|
data,
|
||||||
|
filename: '员工列表',
|
||||||
|
autoWidth: true
|
||||||
|
})
|
||||||
|
loadingInstance.close()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
formatJson(filterVal, jsonData, resData) {
|
||||||
|
let index = 0
|
||||||
|
return jsonData.map(v => filterVal.map(j => {
|
||||||
|
|
||||||
|
if (j === 'index') {
|
||||||
|
return ++index
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (j === 'blLock') {
|
||||||
|
if(v[j]=='1'){
|
||||||
|
return '是';
|
||||||
|
}else{
|
||||||
|
return '否';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (j === 'blComputid') {
|
||||||
|
if(v[j]=='1'){
|
||||||
|
return '是';
|
||||||
|
}else{
|
||||||
|
return '否';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (j === 'dept.deptName') {
|
||||||
|
return v['dept']['deptName'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (j === 'blOpen') {
|
||||||
|
return this.selectDictLabel(this.dict.type.sys_biz_enable_status,v[j]);
|
||||||
|
}
|
||||||
|
return v[j]
|
||||||
|
}))
|
||||||
|
},
|
||||||
|
|
||||||
/** 导入按钮操作 */
|
/** 导入按钮操作 */
|
||||||
handleImport() {
|
handleImport() {
|
||||||
this.upload.title = "用户导入";
|
this.upload.title = "用户导入";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user