操作票(张同朕)

main
zhen 11 months ago
parent 084c8e1b8c
commit 8c7e3151c1
  1. 2
      src/views/smart/operationticket.vue
  2. 17
      src/views/smart/operationticketDetail.vue

@ -698,7 +698,7 @@ import {getList, getDetail, add, update, remove, closeticket} from "@/api/smart/
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
expUtil.excelExport(`/api/equipmentledger/export?daf-auth=${getToken()}`, this.search, ['station', 'userStatus']); expUtil.excelExport(`/api/smart/operationticket/export?daf-auth=${getToken()}`, this.search);
}); });
}, },
} }

@ -38,7 +38,14 @@
@row-update="item_rowUpdate" @row-update="item_rowUpdate"
@row-save="item_rowSave" @row-save="item_rowSave"
@row-del="item_rowDel"> @row-del="item_rowDel">
<template slot="menuRight">
<el-button type="primary"
size="small"
plain
@click="$refs.crud2.rowAdd()">新增</el-button>
</template>
</avue-crud> </avue-crud>
</span> </span>
<div class="container"> <div class="container">
<span > <span >
@ -525,7 +532,7 @@ export default {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: true, addBtn: false,
viewBtn: false, viewBtn: false,
delBtn: true, delBtn: true,
editBtn: true editBtn: true
@ -640,6 +647,14 @@ export default {
this.item_onLoad(); this.item_onLoad();
} }
} }
if(column.prop == 'operationItem'){
if(this.tab1_form.operationTicketNo ==="" || this.tab1_form.operationTicketNo ===null){
this.$message({
type: "error",
message: "请返回基本信息填写“操作票编号”!!!"
});
}
}
this.item_form.operationTicketNo = this.tab1_form.operationTicketNo; this.item_form.operationTicketNo = this.tab1_form.operationTicketNo;
}, },

Loading…
Cancel
Save