Merge remote-tracking branch 'origin/main'

main
Dayu 11 months ago
commit 21dadccf39
  1. 15
      src/api/spares/materialclassification.js
  2. 16
      src/router/views/index.js
  3. 2
      src/views/inspection/inspectionobject.vue
  4. 7
      src/views/inspection/inspectionobjectDetail.vue
  5. 6
      src/views/leger/dynamicledgerDetail.vue
  6. 2
      src/views/leger/equipmentledger.vue
  7. 5
      src/views/leger/toolinventoryrecord.vue
  8. 2
      src/views/smart/operationticket.vue
  9. 8
      src/views/smart/operationticketDetail.vue
  10. 12
      src/views/smart/workpermitDetail.vue
  11. 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
})
}

@ -165,6 +165,20 @@ export default [{
component: () => component: () =>
import( /* webpackChunkName: "views" */ '@/views/smart/workpermitDetail') import( /* webpackChunkName: "views" */ '@/views/smart/workpermitDetail')
}] }]
} },
{
path: '/smart',
component: Layout,
redirect: '/smart/index',
children: [{
path: 'operationticketDetail',
name: '操作票详情',
meta: {
menu: false
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/smart/operationticketDetail')
}]
},
] ]

@ -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");

@ -223,7 +223,7 @@ export default {
}, },
{ {
label: "工作负责人", label: "工作负责人",
prop: "workPrincipal", prop: "workChargePerson",
}, },
{ {
label: "许可人", label: "许可人",
@ -235,14 +235,14 @@ export default {
}, },
{ {
label: "许可时间", label: "许可时间",
prop: "permissionDate", prop: "planStartDate",
type: "datetime", type: "datetime",
format: 'yyyy/MM/dd HH:mm:ss', format: 'yyyy/MM/dd HH:mm:ss',
valueFormat: "yyyyMMdd HH:mm:ss", valueFormat: "yyyyMMdd HH:mm:ss",
}, },
{ {
label: "状态", label: "状态",
prop: "workStatus", prop: "workState",
type: "select", type: "select",
dicUrl: "/api/daf-system/dict/dictionary?code=work_status", dicUrl: "/api/daf-system/dict/dictionary?code=work_status",
props: { props: {

@ -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) {

@ -107,7 +107,7 @@ import {getList, getDetail, add, update, remove, closeticket} from "@/api/smart/
height: 'auto', height: 'auto',
calcHeight: 210, calcHeight: 210,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 22,
tip: false, tip: false,
border: true, border: true,
index: true, index: true,

@ -43,7 +43,7 @@
<el-button type="primary" <el-button type="primary"
size="small" size="small"
plain plain
@click="$refs.crud2.rowAdd()">新增</el-button> @click="addrow">新增</el-button>
</template> </template>
</avue-crud> </avue-crud>
@ -144,6 +144,7 @@ export default {
// value: undefined, // value: undefined,
// label: ' ' // label: ' '
// }], // }],
form:'', form:'',
closeTicketBox: false, closeTicketBox: false,
defaultOperationTicketNo: "", defaultOperationTicketNo: "",
@ -813,6 +814,11 @@ export default {
this.$refs.crud.toggleSelection() this.$refs.crud.toggleSelection()
}); });
}, },
addrow(){
this.item_form.operationTicketNo = this.tab1_form.operationTicketNo;
this.$refs.crud2.rowAdd()
},
// //
item_rowDel (form, index,done) { item_rowDel (form, index,done) {
this.$confirm("确定将选择数据删除?", { this.$confirm("确定将选择数据删除?", {

@ -34,6 +34,12 @@
@row-del="attachment_rowDel" @row-del="attachment_rowDel"
@row-update="attachment_rowUpdate" @row-update="attachment_rowUpdate"
@row-save="attachment_rowSave"> @row-save="attachment_rowSave">
<template slot="menuRight">
<el-button type="primary"
size="small"
plain
@click="addrow()">新增</el-button>
</template>
</avue-crud> </avue-crud>
</div> </div>
</span> </span>
@ -505,7 +511,7 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: true, addBtn: false,
viewBtn: false, viewBtn: false,
delBtn: true, delBtn: true,
editBtn: true editBtn: true
@ -634,6 +640,10 @@
this.readonlyForm=false; this.readonlyForm=false;
this.frame_class = null; this.frame_class = null;
}, },
addrow(){
this.attachment_form.ticketCode = this.tab1_form.workTicketNo;
this.$refs.crud.rowAdd()
},
updateToSearch () { updateToSearch () {
this.readonlyForm=true; this.readonlyForm=true;
this.shouldShowButton=true; this.shouldShowButton=true;

@ -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