diff --git a/src/api/spares/inbound.js b/src/api/spares/inbound.js new file mode 100644 index 0000000..4f03845 --- /dev/null +++ b/src/api/spares/inbound.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/spares/inbound/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/spares/inbound/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/spares/inbound/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/spares/inbound/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/spares/inbound/submit', + method: 'post', + data: row + }) +} + diff --git a/src/api/spares/material.js b/src/api/spares/material.js new file mode 100644 index 0000000..0ee0c57 --- /dev/null +++ b/src/api/spares/material.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/spares/material/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/spares/material/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/spares/material/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/spares/material/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/spares/material/submit', + method: 'post', + data: row + }) +} + diff --git a/src/api/spares/materialclasscode.js b/src/api/spares/materialclasscode.js new file mode 100644 index 0000000..d68adc8 --- /dev/null +++ b/src/api/spares/materialclasscode.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/spares/materialclasscode/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/spares/materialclasscode/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/spares/materialclasscode/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/spares/materialclasscode/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/spares/materialclasscode/submit', + method: 'post', + data: row + }) +} + diff --git a/src/api/spares/outbound.js b/src/api/spares/outbound.js new file mode 100644 index 0000000..a51a7be --- /dev/null +++ b/src/api/spares/outbound.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/spares/outbound/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/spares/outbound/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/spares/outbound/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/spares/outbound/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/spares/outbound/submit', + method: 'post', + data: row + }) +} + diff --git a/src/views/leger/equipmentledgerDetail.vue b/src/views/leger/equipmentledgerDetail.vue index f26dd6f..9768d34 100644 --- a/src/views/leger/equipmentledgerDetail.vue +++ b/src/views/leger/equipmentledgerDetail.vue @@ -674,7 +674,7 @@ }, methods: { handleFormSubmit() { - this.$refs.form.validate((valid, done, msg) => { + this.$refs.tab1_form.validate((valid, done, msg) => { if (valid) { done() this.Submit(); diff --git a/src/views/leger/toolinventoryrecordDetail.vue b/src/views/leger/toolinventoryrecordDetail.vue index 874dab4..3d6fe44 100644 --- a/src/views/leger/toolinventoryrecordDetail.vue +++ b/src/views/leger/toolinventoryrecordDetail.vue @@ -510,7 +510,7 @@ export default { }, methods: { handleFormSubmit() { - this.$refs.form.validate((valid, done, msg) => { + this.$refs.tab1_form.validate((valid, done, msg) => { if (valid) { done() this.Submit(); diff --git a/src/views/smart/workorder.vue b/src/views/smart/workorder.vue index a786bfc..cec0ade 100644 --- a/src/views/smart/workorder.vue +++ b/src/views/smart/workorder.vue @@ -33,7 +33,7 @@ 删除 - + diff --git a/src/views/smart/workorderDetail.vue b/src/views/smart/workorderDetail.vue index d59113d..9458f6c 100644 --- a/src/views/smart/workorderDetail.vue +++ b/src/views/smart/workorderDetail.vue @@ -102,7 +102,7 @@ }, event: { change: (val) => { - if (this.$route.query.frameMode == "add") { + if (this.addupdateShowButton) { this.tab1_form.kksDescriptdion = ''; this.tab1_form.station = ''; if (val) { @@ -129,7 +129,7 @@ // offset:6, span: 8, maxlength: 400, - disabled: this.$route.query.frameMode != 'search' + disabled: true }, { label: "场站", prop: "station", @@ -145,7 +145,7 @@ message: "请选择场站", trigger: "blur" }], - disabled: this.$route.query.frameMode != 'search' + disabled: true }, { label: "工单编号", prop: "workOrderNo", @@ -310,6 +310,8 @@ created() { this.type = this.option.column[0]; if (this.$route.query.frameMode == "add") { + this.tab1_option.column[1].disabled = true; + this.tab1_option.column[2].disabled = true; this.readonlyForm = false; this.shouldShowButton = false; this.addupdateShowButton = true; @@ -317,6 +319,8 @@ this.checkStatusValue = this.$route.query.checkstatus; this.searchDetail(); } else if (this.$route.query.frameMode == "search") { + this.tab1_option.column[1].disabled = false; + this.tab1_option.column[2].disabled = false; this.readonlyForm = true; this.shouldShowButton = true; this.addupdateShowButton = false; @@ -348,6 +352,8 @@ } }, updateToSearch() { + this.tab1_option.column[1].disabled = false; + this.tab1_option.column[2].disabled = false; this.readonlyForm = true; this.shouldShowButton = true; this.addupdateShowButton = false; @@ -432,8 +438,7 @@ }); }, submitRejectOrauditing(status) { - var formData = {...this.tab1_form}; - formData.approvalStatus = status; + var formData = {id: this.tab1_form.id, approvalStatus: status}; update(formData).then(() => { this.$router.push({ path: "/smart/workorder", @@ -452,6 +457,8 @@ }); }, seachToUpdate() { + this.tab1_option.column[1].disabled = true; + this.tab1_option.column[2].disabled = true; this.shouldShowButton = false; this.addupdateShowButton = true; this.readonlyForm = false; diff --git a/src/views/spares/inbound.vue b/src/views/spares/inbound.vue new file mode 100644 index 0000000..477407a --- /dev/null +++ b/src/views/spares/inbound.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/src/views/spares/material.vue b/src/views/spares/material.vue new file mode 100644 index 0000000..6b917e0 --- /dev/null +++ b/src/views/spares/material.vue @@ -0,0 +1,306 @@ + + + + + diff --git a/src/views/spares/materialclasscode.vue b/src/views/spares/materialclasscode.vue new file mode 100644 index 0000000..bce5ea6 --- /dev/null +++ b/src/views/spares/materialclasscode.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/src/views/spares/outbound.vue b/src/views/spares/outbound.vue new file mode 100644 index 0000000..98ea43e --- /dev/null +++ b/src/views/spares/outbound.vue @@ -0,0 +1,270 @@ + + + + +