Merge remote-tracking branch 'origin/main'

main
zhen 11 months ago
commit b003bcf6dc
  1. 15
      src/api/spares/materialclassification.js
  2. 2
      src/views/inspection/inspectionobject.vue
  3. 7
      src/views/inspection/inspectionobjectDetail.vue
  4. 2
      src/views/leger/equipmentledger.vue
  5. 5
      src/views/leger/toolinventoryrecord.vue
  6. 18
      src/views/spares/materialDetail.vue

@ -47,3 +47,18 @@ export const update = (row) => {
data: row data: row
}) })
} }
export const getCodeList = () => {
return request({
url: '/api/materialclassification/getCodeList',
method: 'get'
})
}
export const codeAdd = (row) => {
return request({
url: '/api/materialclassification/submit',
method: 'post',
data: row
})
}

@ -413,7 +413,7 @@
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
expUtil.excelExport(`/api/inspection/inspectionobject/export?daf-auth=${getToken()}`, this.search, ['stations', "istatus", "objectName"]); expUtil.excelExportEasy(`/api/inspection/inspectionobject/export?daf-auth=${getToken()}`, this.search);
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

@ -48,7 +48,7 @@ export default {
label: "对象编号", label: "对象编号",
prop: "objectNo", prop: "objectNo",
span:8, span:8,
disabled: true, disabled:true,
rules: [{ rules: [{
required: true, required: true,
message: "请输入对象编号", message: "请输入对象编号",
@ -102,8 +102,6 @@ export default {
kksNo.disabled = true; kksNo.disabled = true;
if(["view"].includes(this.$route.query.frameMode)) { if(["view"].includes(this.$route.query.frameMode)) {
kksNo.disabled = false; kksNo.disabled = false;
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.disabled = false;
} }
}else{ }else{
const toolsCodeId = this.findObject(this.option.column, "toolsCodeId"); const toolsCodeId = this.findObject(this.option.column, "toolsCodeId");
@ -112,8 +110,6 @@ export default {
kksNo.disabled = false; kksNo.disabled = false;
if(["view"].includes(this.$route.query.frameMode)) { if(["view"].includes(this.$route.query.frameMode)) {
kksNo.disabled = false; kksNo.disabled = false;
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.disabled = false;
} }
} }
} }
@ -258,7 +254,6 @@ export default {
}else{ }else{
const objectNo = this.findObject(this.option.column, "objectNo"); const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.value = ' '; objectNo.value = ' ';
objectNo.disabled = true;
const iStatus = this.findObject(this.option.column, "istatus"); const iStatus = this.findObject(this.option.column, "istatus");
iStatus.display = false; iStatus.display = false;
const cancelReason = this.findObject(this.option.column, "cancelReason"); const cancelReason = this.findObject(this.option.column, "cancelReason");

@ -635,7 +635,7 @@ import {getList, getDetail, add, update, remove, reject, auditing} from "@/api/l
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
expUtil.excelExportEasy(`/api/workorder/export?daf-auth=${getToken()}`, this.search); expUtil.excelExportEasy(`/api/equipmentledger/export?daf-auth=${getToken()}`, this.search);
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

@ -62,11 +62,13 @@
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import {getToken} from "@/util/auth"; import {getToken} from "@/util/auth";
import {Alert} from "element-ui"; import {Alert} from "element-ui";
import expUtil from "@/util/exportUtil";
export default { export default {
data() { data() {
return { return {
form: {}, form: {},
query: {}, query: {},
search:{},
loading: true, loading: true,
page: { page: {
pageSize: 10, pageSize: 10,
@ -327,8 +329,7 @@
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
var formStr = Object.keys(this.search).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(this.search[key])}`).join('&'); expUtil.excelExportEasy(`/api/leger/toolinventoryrecord/export?daf-auth=${getToken()}`, this.search);
window.open(`/api/leger/toolinventoryrecord/export?daf-auth=${getToken()}&${formStr}`);
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

@ -30,8 +30,8 @@
v-model="inbound_form" v-model="inbound_form"
ref="inbound_crud"> ref="inbound_crud">
<template #menu="{row,index,size}"> <template #menu="{row,index,size}">
<el-button size="small" type="text" v-if="permission.auditing" @click="auditing_in(row)">审核</el-button> <el-button size="small" type="text" v-if="permission.material_auditing" @click="auditing_in(row)">审核</el-button>
<el-button size="small" type="text" v-if="permission.reject" @click="reject_in(row)">驳回</el-button> <el-button size="small" type="text" v-if="permission.material_reject" @click="reject_in(row)">驳回</el-button>
</template> </template>
</avue-crud> </avue-crud>
</div> </div>
@ -45,8 +45,8 @@
v-model="outbound_form" v-model="outbound_form"
ref="outbound_crud2"> ref="outbound_crud2">
<template #menu="{row,index,size}"> <template #menu="{row,index,size}">
<el-button size="small" type="text" v-if="permission.auditing" @click="auditing_out(row)">审核</el-button> <el-button size="small" type="text" v-if="permission.material_auditing" @click="auditing_out(row)">审核</el-button>
<el-button size="small" type="text" v-if="permission.reject" @click="reject_out(row)">驳回</el-button> <el-button size="small" type="text" v-if="permission.material_reject" @click="reject_out(row)">驳回</el-button>
</template> </template>
</avue-crud> </avue-crud>
</span> </span>
@ -83,7 +83,7 @@
import {outbound_getListByMaterialNo, update_materialDetailOut} from "@/api/spares/outbound"; import {outbound_getListByMaterialNo, update_materialDetailOut} from "@/api/spares/outbound";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import request from "@/router/axios"; import request from "@/router/axios";
import {getMaterialClassCode, materialClassCodeAdd } from "@/api/spares/materialclasscode"; import {getCodeList, codeAdd} from "@/api/spares/materialclassification";
export default { export default {
data() { data() {
@ -389,13 +389,13 @@
column: [ column: [
{ {
label: "物资分类码", label: "物资分类码",
prop: "materialClassCode", prop: "code",
span:22, span:22,
labelWidth: 150 labelWidth: 150
}, },
{ {
label: "物资类型", label: "物资类型",
prop: "materialType", prop: "type",
span:22, span:22,
labelWidth: 150 labelWidth: 150
} }
@ -496,7 +496,7 @@
}); });
}, },
SearchClassCode() { SearchClassCode() {
getMaterialClassCode().then(res => { getCodeList().then(res => {
this.optionsExt = res.data.data; this.optionsExt = res.data.data;
}); });
}, },
@ -629,7 +629,7 @@
this.$refs.diaForm.validate((valid, done, msg) => { this.$refs.diaForm.validate((valid, done, msg) => {
if (valid) { if (valid) {
done() done()
materialClassCodeAdd(this.diaForm).then(() => { codeAdd(this.diaForm).then(() => {
this.$refs.diaForm.resetForm(); this.$refs.diaForm.resetForm();
this.dialogVisible = false; this.dialogVisible = false;
this.SearchClassCode(); this.SearchClassCode();

Loading…
Cancel
Save