修复设备台账
This commit is contained in:
parent
75a6b82af2
commit
bf8c8a6a38
@ -95,7 +95,6 @@
|
||||
"filemanager-webpack-plugin": "^3.0.0",
|
||||
"sass": "1.32.13",
|
||||
"sass-loader": "10.1.1",
|
||||
"terser-webpack-plugin": "^5.3.11",
|
||||
"ts-loader": "^8.2.0",
|
||||
"typescript": "^5.3.3",
|
||||
"vue-class-component": "^7.2.6",
|
||||
|
||||
@ -128,3 +128,12 @@ export function doImport(obj) {
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
//删除设备
|
||||
export function deleteResrce(obj) {
|
||||
return request({
|
||||
url: argosun('/resrceExt/deleteResrce'),
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
@ -35,6 +35,8 @@ import '@/util/number-control.js'
|
||||
import DictResolver from '@/components/DictResolver'
|
||||
// 字典标签组件
|
||||
import DictTag from '@/components/DictTag'
|
||||
// 全局引入
|
||||
import XLSX from 'xlsx'
|
||||
|
||||
import { codemirror } from 'vue-codemirror'
|
||||
import 'codemirror/lib/codemirror.css'
|
||||
@ -51,7 +53,6 @@ import CodeEditor from 'bin-code-editor';
|
||||
// Vant组件使用
|
||||
import Vant from 'vant';
|
||||
import 'vant/lib/index.css';
|
||||
Vue.use(Vant);
|
||||
|
||||
|
||||
/** work flow **/
|
||||
@ -73,6 +74,11 @@ import 'font-awesome/css/font-awesome.min.css' // font-awesome 图标库
|
||||
import 'element-ui/lib/theme-chalk/icon.css' // element-ui 图标库
|
||||
|
||||
|
||||
Vue.use(Vant);
|
||||
|
||||
// 将 XLSX 附加到 Vue 的原型上
|
||||
Vue.prototype.$xlsx = XLSX
|
||||
|
||||
Vue.component('Pagination', Pagination)
|
||||
Vue.component('Editor', Editor)
|
||||
Vue.component('RightToolbar', RightToolbar)
|
||||
|
||||
@ -275,7 +275,7 @@
|
||||
:on-success="handleUploadSuccess"
|
||||
:show-file-list="true"
|
||||
multiple>
|
||||
<el-button slot="trigger" type="text" @click="beforeUpload(formObj.handle)">
|
||||
<el-button slot="trigger" type="text" @click="beforeUpload(formObj.handle)" :disabled="onlyView">
|
||||
<i class="el-icon-upload"></i>上传附件
|
||||
</el-button>
|
||||
</el-upload>
|
||||
@ -499,17 +499,16 @@
|
||||
import {getEqpTypePage} from "@/api/mes/smd/eqp-type";
|
||||
import {
|
||||
addObj,
|
||||
fetchList,
|
||||
putObj
|
||||
} from "@/api/mes/pms/resrce";
|
||||
import {
|
||||
downloadFile,
|
||||
getDeptList,
|
||||
getPersonPage,
|
||||
getProcessPage,
|
||||
doImport,
|
||||
deleteResrce
|
||||
delObj,
|
||||
fetchList,
|
||||
putObj
|
||||
} from "@/api/mes/pms/resrceExt";
|
||||
import { getStore } from "@/util/store";
|
||||
// import {deleteResrce, fetchList as getPointList, pointSync} from "@/api/mes/argosun/resrce_point";
|
||||
import {hideLoading, showLoading} from "@/const/loading";
|
||||
import {mapGetters} from "vuex";
|
||||
@ -649,9 +648,12 @@
|
||||
},
|
||||
processDialogObj: {
|
||||
tableColumn: [
|
||||
{prop: "segmentNo", label: "所在工序"},
|
||||
{prop: "operation", label: "所在工序"},
|
||||
{prop: "description", label: "所在工序描述"},
|
||||
],
|
||||
queryParam: {
|
||||
site: getStore({name: 'tenantId'})
|
||||
}
|
||||
},
|
||||
personDialogObj: {
|
||||
title: '安全负责人',
|
||||
@ -737,7 +739,7 @@
|
||||
prop: "eqpTypeBo",
|
||||
span: 12,
|
||||
type: "input",
|
||||
label: "设备类别",//主鍵
|
||||
label: "设备类别主键",//主鍵
|
||||
display: true,
|
||||
width:'140',
|
||||
hide: true,
|
||||
@ -829,7 +831,7 @@
|
||||
span: 12,
|
||||
width:'160',
|
||||
type: "input",
|
||||
label: "所在工序",
|
||||
label: "所在工序描述",
|
||||
renderHeader: (h, {column, $index}) => {
|
||||
return renderSpecNameHeader(h, {column, $index}, {
|
||||
refresh: this.refresh,
|
||||
@ -1048,7 +1050,7 @@
|
||||
},
|
||||
})
|
||||
},
|
||||
dicUrl: '/admin/dict/type/USE_STATE'
|
||||
dicUrl: '/admin/dict/type/EQP_USE_STATE'
|
||||
},
|
||||
{
|
||||
prop: "safetyPerson",
|
||||
@ -1111,7 +1113,7 @@
|
||||
getDeptList().then(resp => {
|
||||
this.deptList = resp.data.data
|
||||
})
|
||||
fetchDictItemList("USE_STATE").then(response => {
|
||||
fetchDictItemList("EQP_USE_STATE").then(response => {
|
||||
this.useStateList = response.data.data;
|
||||
})
|
||||
},
|
||||
@ -1193,7 +1195,7 @@
|
||||
return false; // 取消默认的上传行为
|
||||
},
|
||||
downExcelTemp() {
|
||||
let fileName = "设备主数据导入模版.xlsx"
|
||||
let fileName = "EqpDataTemplate.xlsx"
|
||||
this.downBlobFile(mom_pms('/exportTemplate/export'), {fileName: fileName}, fileName)
|
||||
},
|
||||
// cellClick(row) {
|
||||
@ -1229,7 +1231,7 @@
|
||||
},
|
||||
processSelected(row) {
|
||||
let me = this;
|
||||
me.formObj.procedure = row.segmentNo;
|
||||
me.formObj.procedure = row.operation;
|
||||
},
|
||||
refresh(params) {
|
||||
this.params = Object.assign({}, this.params, params)
|
||||
@ -1297,6 +1299,11 @@
|
||||
this.isUpdate = false;
|
||||
setTimeout(function () {
|
||||
me.$refs["formObj"].clearValidate();
|
||||
me.useStateList.forEach(obj => {
|
||||
if(obj.value === row.useState) {
|
||||
row.useState = obj.label
|
||||
}
|
||||
})
|
||||
me.formObj = Object.assign({}, me.initData, row);
|
||||
me.initCustomFields(row.handle, me.tableName);
|
||||
}, 30);
|
||||
@ -1401,7 +1408,8 @@
|
||||
remark: row.remark,
|
||||
safetyPerson: row.safetyPerson,
|
||||
description: row.description,
|
||||
eqpTypeBo: row.eqpType,
|
||||
eqpType: row.eqpType,
|
||||
eqpTypeBo: row.eqpTypeBo,
|
||||
vendorNo: row.vendorNo,
|
||||
assetNo: row.assetNo,
|
||||
procedure: row.procedure,
|
||||
@ -1452,7 +1460,7 @@
|
||||
type: "warning",
|
||||
})
|
||||
.then(function () {
|
||||
return deleteResrce({resrceBo: row.handle});
|
||||
return delObj(row.handle);
|
||||
})
|
||||
.then((data) => {
|
||||
this.$message.success("删除成功");
|
||||
|
||||
@ -6,7 +6,6 @@ const url = 'http://mom-gateway:9999'
|
||||
// const url = 'http://192.168.110.148:11001/'
|
||||
// const url = 'http://192.168.100.8:11001'
|
||||
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
||||
const TerserPlugin = require('terser-webpack-plugin')
|
||||
const productionGzipExtensions = ['js', 'css']
|
||||
const path = require('path')
|
||||
const FileManagerPlugin = require('filemanager-webpack-plugin')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user