From 312267b56eeca48da632dfa754f18ee88b4f1ad5 Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期五, 25 七月 2025 13:16:38 +0800
Subject: [PATCH] 优化
---
src/views/qms/InspectionPlanList.vue | 18 --------
src/views/qms/modules/inspectionPlan/InspectionPlanModel.vue | 47 +----------------------
2 files changed, 3 insertions(+), 62 deletions(-)
diff --git a/src/views/qms/InspectionPlanList.vue b/src/views/qms/InspectionPlanList.vue
index b1fb60e..0d7c92c 100644
--- a/src/views/qms/InspectionPlanList.vue
+++ b/src/views/qms/InspectionPlanList.vue
@@ -210,7 +210,6 @@
importExcelUrl: '/qms/inspectionPlan/importExcel',
exportXlsUrl: '/qms/inspectionPlan/exportXls',
edit:'/qms/inspectionPlan/edit',
- submit:'/qms/inspectionPlan/submit',
active: '/qms/inspectionPlan/active',
publish:'/qms/inspectionPlan/publish',
version:'/qms/inspectionPlan/version'
@@ -299,8 +298,7 @@
computed: {
/* 瀵煎叆璺緞椤甸潰閲嶆柊璁$畻 */
importExcelUrl: function () {
- // return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;//寮�鍙戠幆澧冩寚鍚�
- return `${window._CONFIG['hxFileURL']}/${this.url.importExcelUrl}`
+ return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;//寮�鍙戠幆澧冩寚鍚�
},
},
methods: {
@@ -340,20 +338,6 @@
this.$refs.modalForm.title = '鏂板'
this.$refs.modalForm.disableSubmit = false
},
- handleSubmit(record) {
- let that = this;
- that.loading = true
- getAction(that.url.submit, { id:record.id}).then((res) => {
- if (res.success) {
- that.$message.success(res.message);
- that.loadData();
- } else {
- that.$message.warning(res.message);
- }
- }).finally(() => {
- that.loading = false
- })
- },
//鍚敤绂佺敤
handleActive(id) {
if (!this.url.active) {
diff --git a/src/views/qms/modules/inspectionPlan/InspectionPlanModel.vue b/src/views/qms/modules/inspectionPlan/InspectionPlanModel.vue
index 0c6c049..29877bb 100644
--- a/src/views/qms/modules/inspectionPlan/InspectionPlanModel.vue
+++ b/src/views/qms/modules/inspectionPlan/InspectionPlanModel.vue
@@ -182,25 +182,7 @@
},
isDisabled: false,
selectedRowKeys: {},
- state: {
- show: false,
- maintenanceValue: 1,
- checkValue: 1,
- maintenanceState: false,
- checkState: false,
- },
- inboundDate: '',
- applicationDate: '',
- supplierShow: false,
disableSubmit: false,
- numDisable:false,
- quantityDisable:false,
- onlyCodeDisable:true,
- returnShow:false,
- toolingShow:false,
- sharpenShow:false,
- addDisable:false,
- toolinngOptions:[],
title: '鎿嶄綔',
visible: false,
model: {},
@@ -216,12 +198,7 @@
loading: false,
form: this.$form.createForm(this),
dataSource: [],
- toolingTreeData:[],
- warehouseOptions:[],
- locationOptions:[],
- allToolingList:[],
param: {},
- barcodeCurrentType: false,
planId:'',
validatorRules: {
planCode: {
@@ -366,11 +343,9 @@
return filterObj(this.param)
},
add() {
- this.handle = store.getters.userInfo.username
this.edit({})
},
edit(record) {
- let that = this
this.form.resetFields()
this.model = Object.assign({}, record)
this.visible = true
@@ -390,15 +365,7 @@
this.$emit('close')
this.dataSource = []
this.visible = false
- this.supplierShow = false,
- this.disableSubmit = false,
- this.numDisable = false,
- this.quantityDisable = false,
- this.onlyCodeDisable = true,
- this.returnShow = false,
- this.toolingShow = false,
- this.sharpenShow = false,
- this.addDisable = false
+ this.disableSubmit = false
},
handleTableChange(pagination, filters, sorter) {
this.ipagination = pagination
@@ -437,7 +404,7 @@
handleCancel() {
this.close()
},
- //閫夋嫨宸ュ叿
+ //閫夋嫨妫�楠岄」鐩�
selectInspectionItemList: function () {
let ids = []
for (let i = 0; i < this.dataSource.length; i++) {
@@ -449,15 +416,6 @@
},
handleDelete(record, index) {
this.dataSource.splice(index, 1)
- },
- onChange() {},
- //鎵嬮�変汉鍛樺��
- selectCurrentUserChange(e) {
- console.log('褰撳墠鎵嬮��', e)
- // this.form.setFieldsValue({
- // // userName: e,
- // userNameId: e,
- // })
},
detailList(planId) {
this.param.planId = planId
@@ -492,7 +450,6 @@
qualitativeOrQuantitativeName:data[i].qualitativeOrQuantitativeName
})
}
- //this.ipaginationm.total = this.dataSource.length
})
},
}
--
Gitblit v1.9.3