Browse Source

【长春派格1.5】计划管理优化

HQ
安虹睿 11 months ago
parent
commit
8f47014ff8
  1. 93
      vue/src/views/pg-fis/basedate/planControl/index.vue

93
vue/src/views/pg-fis/basedate/planControl/index.vue

@ -233,21 +233,6 @@
@close="importClose" @close="importClose"
/> />
</div> </div>
<!-- 抽屉控件 -->
<el-drawer
title="信息详细页"
size="75%"
direction="rtl"
:visible.sync="drawer"
:before-close="handleDrawerClose"
>
<div>
<!-- <Detail
v-bind:customerInfos="customerInfos"
style="margin-top: -35px"
></Detail> -->
</div>
</el-drawer>
</div> </div>
</template> </template>
@ -275,38 +260,16 @@
export default { export default {
name: "RepeatM100", name: "RepeatM100",
// components: { Pagination, CRMTableHead, importExcel, Detail },
components: { Pagination, CRMTableHead, importExcel }, components: { Pagination, CRMTableHead, importExcel },
directives: { permission }, directives: { permission },
filters: {
IsCustomerSignFilter(status) {
//
const statusMap = {
true: "是",
false: "否",
};
return statusMap[status];
},
},
mixins: [message_table], mixins: [message_table],
data() { data() {
return { return {
customerInfos: [],
isVINShowState:false,
versionValue: "",
customerInfosMB:[],
customerInfosZHB:[],
versionList: [], //
searchContent: "", //
showExcelImport: false, showExcelImport: false,
form: {}, form: {},
drawer: false,
list: null, list: null,
totalCount: 0, totalCount: 0,
listLoading: true, listLoading: true,
customerInfo: {
bomId: "",
},
listQuery: { listQuery: {
factory:undefined, factory:undefined,
vin:undefined, vin:undefined,
@ -327,34 +290,11 @@
SkipCount: 0, SkipCount: 0,
MaxResultCount: 15, MaxResultCount: 15,
}, },
listPLQuery: {
BillType: 2,
//UserId: this.userinfo.UserId,
},
page: 1, page: 1,
//
// VehicleModelCodelist:[
// {id: 1, name: "C8"},
// {id: 2, name: "B8L"},
// {id: 3, name: "CC"},
// {id: 4, name: "BSMV"},
// {id: 5, name: "B9"},
// {id: 6, name: "Q5"},
// ],
productTypeList: [
{ id: 1, name: "门板" },
{ id: 2, name: "柱护板" },
],
showSearch: true, showSearch: true,
bomUnit, bomUnit,
PLList: [],
PLChildList: [], //线
multipleSelection: [], multipleSelection: [],
drawer: false, tableHeight: document.documentElement.clientHeight - 260,
isShowState: true,
dialogTableVisible: false,
vehicleModelList:[],//list
//tableHeight: document.documentElement.clientHeight - 260,
}; };
}, },
mounted() { mounted() {
@ -404,19 +344,6 @@
...mapGetters(["userInfo"]), // ...mapGetters(["userInfo"]), //
}, },
methods: { methods: {
//
handleDrawerOpen(param) {
this.drawer = true;
var parentId = param.id; //id
this.customerInfos = [
{
ParentId: parentId,
},
];
},
handleDrawerClose(done) {
done();
},
/** 导出功能 */ /** 导出功能 */
handleDownload() { handleDownload() {
this.listLoading = true; this.listLoading = true;
@ -455,7 +382,6 @@
}); });
}); });
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery(refName) { resetQuery(refName) {
this.$refs[refName].resetFields(); this.$refs[refName].resetFields();
@ -464,15 +390,6 @@
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.listQuery.SkipCount = 1; this.listQuery.SkipCount = 1;
//this.getList();
},
selectValue(params) {
//
this.versionValue = params.value;
this.getList();
},
selectOptionsChange(item) {
this.getList(); this.getList();
}, },
// //
@ -494,11 +411,6 @@
fieldFormatter(row, column) { fieldFormatter(row, column) {
return row[column.property] || "--"; return row[column.property] || "--";
}, },
roleFilter(type) {
return projectTypeKeyValue[type];
},
getList(data){ getList(data){
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {
@ -506,7 +418,6 @@
} else { } else {
this.listQuery.SkipCount = (this.page - 1) * this.listQuery.MaxResultCount; this.listQuery.SkipCount = (this.page - 1) * this.listQuery.MaxResultCount;
} }
this.dialogTableVisible = true;
this.$axios.gets("/api/newjit/import-record/list", this.listQuery) this.$axios.gets("/api/newjit/import-record/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
@ -521,13 +432,13 @@
}); });
}, },
handleFilter() { handleFilter() {
this.dialogTableVisible = false;
this.page = 1; this.page = 1;
this.getList(); this.getList();
}, },
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
this.listQuery.Sorting = undefined
this.handleFilter(); this.handleFilter();
return; return;
} }

Loading…
Cancel
Save