|
@@ -76,6 +76,15 @@
|
|
|
>删 除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-bottom"
|
|
|
+ @click="dialogVisible = true"
|
|
|
+ >导入
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
</trade-card>
|
|
|
<trade-card title="投标对比">
|
|
@@ -101,6 +110,75 @@
|
|
|
</avue-crud>
|
|
|
</trade-card>
|
|
|
<el-dialog
|
|
|
+ v-dialogdrag
|
|
|
+ title="导入客户"
|
|
|
+ :fullscreen="dialogFull"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ class="el-dialogDeep"
|
|
|
+ append-to-body
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ width="80%"
|
|
|
+ >
|
|
|
+ <template slot="title">
|
|
|
+ <span class="el-dialog__title">
|
|
|
+ <span
|
|
|
+ style="display:inline-block;background-color: #3478f5;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px"
|
|
|
+ ></span>
|
|
|
+ 导入客户
|
|
|
+ </span>
|
|
|
+ <div
|
|
|
+ style="float: right"
|
|
|
+ class="avue-crud__dialog__menu"
|
|
|
+ @click="dialogFull ? (dialogFull = false) : (dialogFull = true)"
|
|
|
+ >
|
|
|
+ <i class="el-icon-full-screen"></i>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <el-row style="height: 0">
|
|
|
+ <el-col :span="5">
|
|
|
+ <div class="box">
|
|
|
+ <el-scrollbar>
|
|
|
+ <basic-container>
|
|
|
+ <avue-tree
|
|
|
+ :option="treeOption"
|
|
|
+ :data="treeData"
|
|
|
+ @node-click="nodeClick"
|
|
|
+ />
|
|
|
+ </basic-container>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="19">
|
|
|
+ <basic-container>
|
|
|
+ <avue-crud
|
|
|
+ :option="option"
|
|
|
+ :data="dataList"
|
|
|
+ ref="crud"
|
|
|
+ v-model="form"
|
|
|
+ :page.sync="page"
|
|
|
+ :before-close="beforeClose"
|
|
|
+ @search-change="searchChange"
|
|
|
+ @search-reset="searchReset"
|
|
|
+ @refresh-change="refreshChange"
|
|
|
+ @selection-change="selectionChange"
|
|
|
+ @on-load="onLoad"
|
|
|
+ @saveColumn="saveColumn('crud','option','option',47)"
|
|
|
+ @tree-load="treeLoad"
|
|
|
+ >
|
|
|
+ </avue-crud>
|
|
|
+ </basic-container>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="confirmSelection"
|
|
|
+ :disabled="selection.length > 0 ? false : true"
|
|
|
+ >确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
append-to-body
|
|
|
title="审批"
|
|
|
class="el-dialogDeep"
|
|
@@ -146,11 +224,14 @@ import {
|
|
|
saveSaveList,
|
|
|
boxDelete,
|
|
|
agentDelete,
|
|
|
- confirmRelease, confirmVoid, confirmPleaseCheck, confirmWinningTheBid
|
|
|
+ confirmRelease, confirmVoid, confirmPleaseCheck, confirmWinningTheBid,allList
|
|
|
} from "@/api/bidingDocument/issueTender";
|
|
|
import check from "@/components/check/check";
|
|
|
import checkSchedule from "@/components/check/checkSchedule";
|
|
|
import {dateFormat} from "@/util/date";
|
|
|
+import option from "@/components/selectComponent/configuration/mainList.json";
|
|
|
+import {customerList, getDeptLazyTree} from "@/api/basicData/customerInformation";
|
|
|
+import {customerParameter} from "@/enums/management-type";
|
|
|
export default {
|
|
|
name: "detailsPageEdit",
|
|
|
components:{
|
|
@@ -180,20 +261,64 @@ export default {
|
|
|
this.$set(this.optionForm,'disabled',false)
|
|
|
this.findObject(this.optionForm.column, "status").disabled = true
|
|
|
this.$set(this.optionBox,'disabled',false)
|
|
|
- this.findObject(this.optionBox.column, "status").disabled = true
|
|
|
+ if (this.optionBox.column){
|
|
|
+ this.findObject(this.optionBox.column, "status").disabled = true
|
|
|
+ }
|
|
|
this.$set(this.optionAgent,'disabled',false)
|
|
|
- this.findObject(this.optionAgent.column, "status").disabled = true
|
|
|
+ if (this.optionAgent.column){
|
|
|
+ this.findObject(this.optionAgent.column, "status").disabled = true
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisible:false,
|
|
|
+ option:{},
|
|
|
+ treeOption: {
|
|
|
+ nodeKey: "id",
|
|
|
+ lazy: true,
|
|
|
+ treeLoad: function (node, resolve) {
|
|
|
+ const parentId = node.level === 0 ? 0 : node.data.id;
|
|
|
+ getDeptLazyTree({
|
|
|
+ parentId: parentId,
|
|
|
+ corpType: customerParameter.code
|
|
|
+ }).then(res => {
|
|
|
+ resolve(
|
|
|
+ res.data.data.map(item => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ leaf: !item.hasChildren
|
|
|
+ };
|
|
|
+ })
|
|
|
+ );
|
|
|
+ });
|
|
|
+ },
|
|
|
+ addBtn: false,
|
|
|
+ menu: false,
|
|
|
+ size: "small",
|
|
|
+ props: {
|
|
|
+ labelText: "标题",
|
|
|
+ label: "title",
|
|
|
+ value: "value",
|
|
|
+ children: "children"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ dataList:[],
|
|
|
+ page: {
|
|
|
+ pageSize: 10,
|
|
|
+ pagerCount: 5,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
+ dialogFull: false,
|
|
|
checkDialog:false,
|
|
|
checkScheduleDialog:false,
|
|
|
checkId: '',
|
|
|
batchNo:'',
|
|
|
+ line:'',
|
|
|
key:0,
|
|
|
+ selection:[],
|
|
|
checkData: {},
|
|
|
fullscreenLoading: false,
|
|
|
optionForm: {
|
|
@@ -267,6 +392,15 @@ export default {
|
|
|
label: "name",
|
|
|
value: "name"
|
|
|
},
|
|
|
+ change:(data)=>{
|
|
|
+ allList().then(res=>{
|
|
|
+ for (let item of res.data.data){
|
|
|
+ if (data.value == item.name){
|
|
|
+ this.line = item.line
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: " ",
|
|
@@ -608,6 +742,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(47), option);
|
|
|
if (this.id) {
|
|
|
this.refreshData(this.id)
|
|
|
}
|
|
@@ -621,6 +756,87 @@ export default {
|
|
|
this.key++
|
|
|
},
|
|
|
methods: {
|
|
|
+ nodeClick(data) {
|
|
|
+ this.treeDeptId = data.id;
|
|
|
+ this.page.currentPage = 1;
|
|
|
+ this.onLoad(this.page);
|
|
|
+ },
|
|
|
+ //确认导出触发
|
|
|
+ confirmSelection() {
|
|
|
+ console.log(this.selection);
|
|
|
+ for (let item of this.selection){
|
|
|
+ console.log(item)
|
|
|
+ this.dataListAgent.push({
|
|
|
+ $cellEdit: true,
|
|
|
+ agentId:item.id,
|
|
|
+ contacts:item.attn,
|
|
|
+ phone:item.tel
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.selection = [];
|
|
|
+ this.dialogVisible = false;
|
|
|
+ },
|
|
|
+ //点击新增时触发
|
|
|
+ beforeClose(done) {
|
|
|
+ this.parentId = "";
|
|
|
+ const column = this.findObject(this.option.column, "parentId");
|
|
|
+ column.value = "";
|
|
|
+ column.addDisabled = false;
|
|
|
+ done();
|
|
|
+ },
|
|
|
+ //点击搜索按钮触发
|
|
|
+ searchChange(params, done) {
|
|
|
+ console.log(params);
|
|
|
+ this.treeDeptId = "";
|
|
|
+ this.page.currentPage = 1;
|
|
|
+ this.onLoad(this.page, params);
|
|
|
+ done();
|
|
|
+ },
|
|
|
+ //搜索重置按钮触发
|
|
|
+ searchReset() {
|
|
|
+ this.treeDeptId = "";
|
|
|
+ this.onLoad(this.page);
|
|
|
+ },
|
|
|
+ //刷新触发
|
|
|
+ refreshChange() {
|
|
|
+ this.page = {
|
|
|
+ pageSize: 10,
|
|
|
+ pagerCount: 5,
|
|
|
+ total: 0
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //选中触发
|
|
|
+ selectionChange(selection) {
|
|
|
+ this.selection = selection;
|
|
|
+ },
|
|
|
+ //树桩列点击展开触发
|
|
|
+ treeLoad(tree, treeNode, resolve) {
|
|
|
+ const parentId = tree.id;
|
|
|
+ customerList({
|
|
|
+ parentId: parentId,
|
|
|
+ corpType: this.corpType ? this.corpType : "KH"
|
|
|
+ }).then(res => {
|
|
|
+ resolve(res.data.data.records);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ onLoad(page, params = { parentId: 0 }) {
|
|
|
+ let queryParams = Object.assign({}, params, {
|
|
|
+ size: page.pageSize,
|
|
|
+ current: page.currentPage,
|
|
|
+ corpsTypeId: this.treeDeptId,
|
|
|
+ corpType: this.corpType ? this.corpType : "KH",
|
|
|
+ line:this.line
|
|
|
+ });
|
|
|
+ customerList(queryParams).then(res => {
|
|
|
+ this.dataList = res.data.data.records;
|
|
|
+ this.page.total = res.data.data.total;
|
|
|
+ if (this.page.total) {
|
|
|
+ this.option.height = window.innerHeight - 500;
|
|
|
+ } else {
|
|
|
+ this.option.height = window.innerHeight - 200;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//自定义列保存
|
|
|
async saveColumn(ref, option, optionBack, code) {
|
|
|
/**
|