Compare commits

..

No commits in common. "6ef90a8eba4857f948bfb86258b175ab9bf55de6" and "010e51c0f6b378541b01162ca8e1dd95034a3c79" have entirely different histories.

32 changed files with 168 additions and 237 deletions

View File

@ -21,10 +21,6 @@ VUE_APP_BASE_API = 'http://100.64.0.26:48082'
# VUE_APP_BASE_API = 'http://192.168.4.159:48080' # VUE_APP_BASE_API = 'http://192.168.4.159:48080'
# VUE_APP_BASE_API = 'http://192.168.1.56:48080' # VUE_APP_BASE_API = 'http://192.168.1.56:48080'
# VUE_APP_BASE_API = 'http://192.168.4.159:48080' # VUE_APP_BASE_API = 'http://192.168.4.159:48080'
# 积木报表指向地址
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -1,10 +1,3 @@
###
# @Author: zhp
# @Date: 2023-11-07 19:11:40
# @LastEditTime: 2023-11-16 16:40:59
# @LastEditors: zhp
# @Description:
###
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'
@ -14,10 +7,6 @@ VUE_APP_TITLE = MES系统
# 芋道管理系统/生产环境 # 芋道管理系统/生产环境
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
# 积木报表指向地址
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
# 根据服务器或域名修改 # 根据服务器或域名修改
# PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' # PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/'
PUBLIC_PATH = 'http://192.168.0.33:8889/' PUBLIC_PATH = 'http://192.168.0.33:8889/'

View File

@ -1,7 +1,7 @@
/* /*
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-11-08 15:56:52 * @Date: 2023-11-08 15:56:52
* @LastEditTime: 2023-11-16 20:15:02 * @LastEditTime: 2023-11-13 09:15:17
* @LastEditors: DY * @LastEditors: DY
* @Description: * @Description:
*/ */
@ -60,11 +60,3 @@ export function getcheckConfigByEqList(query) {
params: query params: query
}) })
} }
// 删除设备巡检记录
export function deleteEqCheckLog(id) {
return request({
url: '/base/equipment-check-log/delete?id=' + id,
method: 'delete'
})
}

View File

@ -1,16 +0,0 @@
/*
* @Author: Do not edit
* @Date: 2023-11-08 15:56:52
* @LastEditTime: 2023-11-16 20:22:12
* @LastEditors: DY
* @Description:
*/
import request from '@/utils/request'
// 删除设备保养记录
export function deleteEqMaintainLog(id) {
return request({
url: '/base/equipment-maintain-log/delete?id=' + id,
method: 'delete'
})
}

View File

@ -1,7 +1,7 @@
/* /*
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-11-10 16:09:33 * @Date: 2023-11-10 16:09:33
* @LastEditTime: 2023-11-16 18:57:08 * @LastEditTime: 2023-11-10 16:50:08
* @LastEditors: DY * @LastEditors: DY
* @Description: * @Description:
*/ */
@ -22,12 +22,4 @@ export function updateEqRepair(data) {
method: 'put', method: 'put',
data: data data: data
}) })
} }
// 删除维修记录
export function deleteRepair(id) {
return request({
url: '/base/equipment-repair-log/delete?id=' + id,
method: 'delete'
})
}

View File

@ -1,7 +1,7 @@
/* /*
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-11-11 16:18:57 * @Date: 2023-11-11 16:18:57
* @LastEditTime: 2023-11-16 20:52:06 * @LastEditTime: 2023-11-11 17:28:54
* @LastEditors: DY * @LastEditors: DY
* @Description: * @Description:
*/ */
@ -48,21 +48,4 @@ export function getSparePartList(query) {
method: 'get', method: 'get',
params: query params: query
}) })
} }
// 删除设备备品备件配置
export function deleteConfig(id) {
return request({
url: '/base/equipment-spare-part-config/delete?id=' + id,
method: 'delete'
})
}
// 获得备品备件分页
export function getSparePartPage(query) {
return request({
url: '/base/equipment-spare-part/page',
method: 'get',
params: query
})
}

View File

@ -1,7 +1,7 @@
/* /*
* @Author: zhp * @Author: zhp
* @Date: 2023-11-07 19:47:48 * @Date: 2023-11-07 19:47:48
* @LastEditTime: 2023-11-16 17:49:23 * @LastEditTime: 2023-11-08 16:59:32
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
*/ */
@ -12,7 +12,7 @@ export function processEquMaterialBomPage(data) {
return request({ return request({
url: '/extend/process-equ-material-bom/page', url: '/extend/process-equ-material-bom/page',
method: 'get', method: 'get',
params: data data: data
}) })
} }

View File

@ -1,18 +1,18 @@
/* /*
* @Author: zhp * @Author: zhp
* @Date: 2023-11-09 09:37:14 * @Date: 2023-11-09 09:37:14
* @LastEditTime: 2023-11-16 17:47:21 * @LastEditTime: 2023-11-09 14:20:02
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
// 获得能耗统计查询分页
export function processEquValueBomPage(data) { export function processEquValueBomPage(data) {
return request({ return request({
url: '/extend/process-equ-value-bom/page', url: '/extend/process-equ-value-bom/page',
method: 'get', method: 'get',
params: data data: data
}) })
} }

View File

@ -1,7 +1,7 @@
/* /*
* @Author: zhp * @Author: zhp
* @Date: 2023-11-07 14:10:18 * @Date: 2023-11-07 14:10:18
* @LastEditTime: 2023-11-16 17:49:52 * @LastEditTime: 2023-11-14 14:46:04
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
*/ */
@ -12,7 +12,7 @@ export function getStatisticalDataPage(query) {
return request({ return request({
url: '/base/statistical-data/getStatisticData', url: '/base/statistical-data/getStatisticData',
method: 'get', method: 'get',
params: query data: query
}) })
} }

View File

@ -17,7 +17,7 @@
<!-- 对话框(添加) --> <!-- 对话框(添加) -->
<base-dialog :dialogTitle="title" :dialogVisible="open" @close="cancel" @cancel="cancel" width="60%" <base-dialog :dialogTitle="title" :dialogVisible="open" @close="cancel" @cancel="cancel" width="60%"
@confirm="submitForm"> @confirm="submitForm">
<DialogForm v-if="open" key="index-dialog-form" ref="form" label-position="top" size="small" v-model="form" <DialogForm v-if="open" key="index-dialog-form" ref="form" label-position="top" size="small" :dataForm="form"
:rows="computedRows" /> :rows="computedRows" />
</base-dialog> </base-dialog>

View File

@ -202,7 +202,7 @@ export default {
} }
}, },
created() { created() {
// this.init() this.init()
// console.log('aaaaaa') // console.log('aaaaaa')
// this.otherPaper() // this.otherPaper()
}, },
@ -227,67 +227,64 @@ export default {
changeMode() { changeMode() {
// hiprintTemplate.clear() // hiprintTemplate.clear()
// console.log(this.modelData) // console.log(this.modelData)
this.$nextTick(() => { const { mode } = this
const { mode } = this const provider = providers[mode]
const provider = providers[mode] hiprint.init({
hiprint.init({ providers: [provider.f]
providers: [provider.f]
})
// $('#hiprint-printTemplate').empty()
// console.log(JSON.parse(this.modelData))
hiprint.setConfig()
//
hiprint.setConfig({
movingDistance: 2.5,
text: {
supportOptions: [
{
name: 'styler',
hidden: true
},
{
name: 'formatter',
hidden: true
}
]
}
})
// console.log(this.modelData)
// console.log($('#hiprint-printTemplate').empty())
if (this.modelData != {}) {
console.log(this.modelData);
$('.hiprintEpContainer').empty()
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
$('.hiprint-printTemplate').empty()
hiprintTemplate = new hiprint.PrintTemplate({
template: JSON.parse(this.modelData),
settingContainer: '#PrintElementOptionSetting',
paginationContainer: '.hiprint-printPagination'
})
} else {
$('.hiprintEpContainer').empty()
console.log(this.modelData);
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
$('.hiprint-printTemplate').empty()
// const templates = this.$ls.get('KEY_TEMPLATES', {})
const template = provider.value
// console.log(template)
hiprintTemplate = new hiprint.PrintTemplate({
template: template,
settingContainer: '#PrintElementOptionSetting',
paginationContainer: '.hiprint-printPagination'
})
}
hiprintTemplate.design('#hiprint-printTemplate')
// console.log(hiprintTemplate)
console.log(hiprintTemplate);
// hiprintTemplate.design('#hiprint-printTemplate', { grid: true })
// , zoomtrue
this.scaleValue = hiprintTemplate.editingPanel.scale || 1
// this.scaleValue = hiprintTemplate.editingPanel.scale || 1
}) })
// $('#hiprint-printTemplate').empty()
// console.log(JSON.parse(this.modelData))
hiprint.setConfig()
//
hiprint.setConfig({
movingDistance: 2.5,
text: {
supportOptions: [
{
name: 'styler',
hidden: true
},
{
name: 'formatter',
hidden: true
}
]
}
})
// console.log(this.modelData)
// console.log($('#hiprint-printTemplate').empty())
if (this.modelData) {
// console.log(this.modelData);
$('.hiprintEpContainer').empty()
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
$('.hiprint-printTemplate').empty()
hiprintTemplate = new hiprint.PrintTemplate({
template: JSON.parse(this.modelData),
settingContainer: '#PrintElementOptionSetting',
paginationContainer: '.hiprint-printPagination'
})
} else {
$('.hiprintEpContainer').empty()
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
$('.hiprint-printTemplate').empty()
// const templates = this.$ls.get('KEY_TEMPLATES', {})
const template = provider.value
// console.log(template)
hiprintTemplate = new hiprint.PrintTemplate({
template: template,
settingContainer: '#PrintElementOptionSetting',
paginationContainer: '.hiprint-printPagination'
})
}
// hiprintTemplate.design('#hiprint-printTemplate')
// console.log(hiprintTemplate)
console.log(hiprintTemplate);
hiprintTemplate.design('#hiprint-printTemplate', { grid: true })
// , zoomtrue
this.scaleValue = hiprintTemplate.editingPanel.scale || 1
// this.scaleValue = hiprintTemplate.editingPanel.scale || 1
}, },
/** /**
* 设置纸张大小 * 设置纸张大小

View File

@ -38,7 +38,7 @@
@close="cancel" @close="cancel"
@cancel="cancel" @cancel="cancel"
@confirm="submitForm"> @confirm="submitForm">
<DialogForm v-if="open" ref="form" v-model="form" :rows="rows" /> <DialogForm v-if="open" ref="form" :dataForm="form" :rows="rows" />
</base-dialog> </base-dialog>
<!-- 抽屉 详情 --> <!-- 抽屉 详情 -->

View File

@ -38,7 +38,7 @@
@close="cancel" @close="cancel"
@cancel="cancel" @cancel="cancel"
@confirm="submitForm"> @confirm="submitForm">
<DialogForm v-if="open" ref="form" v-model="form" :rows="rows" /> <DialogForm v-if="open" ref="form" :dataForm="form" :rows="rows" />
</base-dialog> </base-dialog>
<!-- 抽屉 详情 --> <!-- 抽屉 详情 -->

View File

@ -49,8 +49,7 @@
filterable filterable
:disabled="isdetail" :disabled="isdetail"
style="width: 100%" style="width: 100%"
placeholder="请选择巡检配置" placeholder="请选择巡检配置">
@change="setInspectionContet">
<el-option <el-option
v-for="dict in configList" v-for="dict in configList"
:key="dict.id" :key="dict.id"
@ -108,15 +107,20 @@
</el-button> </el-button>
<el-button v-else type="primary" @click="dataFormSubmit()">确定</el-button> <el-button v-else type="primary" @click="dataFormSubmit()">确定</el-button>
</div> </div>
<!-- <attr-add
v-if="addOrUpdateVisible"
ref="addOrUpdate"
:config-id="dataForm.id"
@refreshDataList="getList" /> -->
</el-drawer> </el-drawer>
</template> </template>
<script> <script>
import SmallTitle from '../../../base/alarm/Record/SmallTitle.vue'; import SmallTitle from '../../../base/alarm/Record/SmallTitle.vue';
import { createCheckLog, updateCheckLog, getcheckConfigByEqList, getEqCheckLog } from '@/api/equipment/base/inspection/record' import { createCheckLog, updateCheckLog, getcheckAllList, getcheckConfigByEqList, getEqCheckLog } from '@/api/equipment/base/inspection/record'
import { getEquipmentAll } from '@/api/base/equipment' import { getEquipmentAll } from '@/api/base/equipment'
import Editor from "@/components/Editor"; import Editor from "@/components/Editor";
import { getCheckDetPage } from "@/api/equipment/base/inspection/settings";
// import FileUpload from "@/components/FileUpload"; // import FileUpload from "@/components/FileUpload";
// import { parseTime } from '../../../../core/mixins/code-filter'; // import { parseTime } from '../../../../core/mixins/code-filter';
// import attrAdd from './attr-add'; // import attrAdd from './attr-add';
@ -172,8 +176,7 @@ export default {
equipmentId: undefined, equipmentId: undefined,
actualTime: undefined, actualTime: undefined,
responsible: undefined, responsible: undefined,
description: undefined, description: undefined
files: []
}, },
list: [], list: [],
eqList: [], eqList: [],
@ -221,20 +224,8 @@ export default {
resetFields(args) { resetFields(args) {
return this.$refs.dataForm.resetFields(args); return this.$refs.dataForm.resetFields(args);
}, },
initData() {
this.dataForm = {
id: undefined,
configId: undefined,
equipmentId: undefined,
actualTime: undefined,
responsible: undefined,
description: undefined,
files: []
}
this.list = []
},
init(id, isdetail) { init(id, isdetail) {
this.initData(); // this.initData();
this.isdetail = isdetail || false; this.isdetail = isdetail || false;
this.dataForm.id = id || undefined; this.dataForm.id = id || undefined;
this.visible = true; this.visible = true;
@ -256,12 +247,39 @@ export default {
}); });
this.formLoading = false this.formLoading = false
}, },
setInspectionContet() { handleClick(raw) {
// if (raw.type === 'delete') {
getCheckDetPage({ this.$confirm(
pageNo: 1, `确定要删除名称为${raw.data.sparePartName}的数据?`,
pageSize: 99, '提示',
configId: this.dataForm.configId, {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
.then(() => {
deleteConfigDet(raw.data.id).then(({ data }) => {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getList();
},
});
});
})
.catch(() => {});
} else {
this.addNew(raw.data.id);
}
},
getList() {
//
getcheckAllList({
...this.listQuery,
configId: this.dataForm.id,
}).then((response) => { }).then((response) => {
this.list = response.data.list; this.list = response.data.list;
this.listQuery.total = response.data.total; this.listQuery.total = response.data.total;
@ -290,8 +308,6 @@ export default {
}) })
}) })
this.dataForm.files = arry this.dataForm.files = arry
} else {
this.dataForm.files = []
} }
// //

View File

@ -57,7 +57,7 @@
import moment from 'moment'; import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin'; import basicPageMixin from '@/mixins/lb/basicPageMixin';
import addRecord from './addRecord.vue'; import addRecord from './addRecord.vue';
import { exportCheckLogExcel, deleteEqCheckLog } from '@/api/equipment/base/inspection/record' import { exportCheckLogExcel } from '@/api/equipment/base/inspection/record'
import { parseTime } from '../../../../core/mixins/code-filter'; import { parseTime } from '../../../../core/mixins/code-filter';
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@ -349,9 +349,9 @@ export default {
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;
this.$modal this.$modal
.confirm('是否删除设备巡检记录配置名称为"' + row.configName + '"的数据项?') .confirm('是否确认删除记录"' + row.name + '"?')
.then(function () { .then(function () {
return deleteEqCheckLog(id); return this.delete({ id });
}) })
.then(() => { .then(() => {
this.getList(); this.getList();

View File

@ -42,7 +42,7 @@
v-if="open" v-if="open"
ref="form" ref="form"
v-model="form" v-model="form"
:disabled="mode == 'detail'" :disabled="mode == 'detail'"
:has-files="true" :has-files="true"
:rows="rows" /> :rows="rows" />
</base-dialog> </base-dialog>
@ -53,7 +53,6 @@
import moment from 'moment'; import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin'; import basicPageMixin from '@/mixins/lb/basicPageMixin';
import Editor from '@/components/Editor'; import Editor from '@/components/Editor';
import { deleteEqMaintainLog } from '@/api/equipment/base/maintain/record'
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@ -132,7 +131,7 @@ export default {
label: '时间段', label: '时间段',
dateType: 'daterange', // datetimerange dateType: 'daterange', // datetimerange
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd HH:mm:ss', valueFormat: 'timestamp',
rangeSeparator: '-', rangeSeparator: '-',
startPlaceholder: '开始日期', startPlaceholder: '开始日期',
endPlaceholder: '结束日期', endPlaceholder: '结束日期',
@ -431,9 +430,9 @@ export default {
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;
this.$modal this.$modal
.confirm('是否删除设备保养单号为"' + row.maintainOrderNumber + '"的数据项?') .confirm('是否确认删除记录"' + row.name + '"?')
.then(function () { .then(function () {
return deleteEqMaintainLog(id); return this.delete({ id });
}) })
.then(() => { .then(() => {
this.getList(); this.getList();

View File

@ -56,7 +56,6 @@
import moment from 'moment'; import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin'; import basicPageMixin from '@/mixins/lb/basicPageMixin';
import CustomDialogForm from './CustomDialogForm.vue'; import CustomDialogForm from './CustomDialogForm.vue';
import { deleteRepair } from '@/api/equipment/base/repair'
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@ -240,7 +239,7 @@ export default {
// //
form: {}, form: {},
basePath: '/base/equipment-repair-log', basePath: '/base/equipment-repair-log',
mode: null mode: null,
}; };
}, },
created() { created() {
@ -376,9 +375,9 @@ export default {
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;
this.$modal this.$modal
.confirm('是否确认删除维修单号为"' + row.repairOrderNumber + '"的数据?') .confirm('是否确认删除记录"' + row.name + '"?')
.then(() => { .then(function () {
return deleteRepair(id); return this.delete({ id });
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
@ -412,7 +411,6 @@ export default {
}, },
// //
handleTableBtnClick({ data, type }) { handleTableBtnClick({ data, type }) {
console.log('nihc', data, type)
switch (type) { switch (type) {
case 'edit': case 'edit':
this.handleUpdate(data); this.handleUpdate(data);

View File

@ -188,7 +188,6 @@ export default {
getSparePartConfig(this.dataForm.id).then(response => { getSparePartConfig(this.dataForm.id).then(response => {
this.formLoading = false this.formLoading = false
this.dataForm = response.data; this.dataForm = response.data;
this.getList()
}); });
} else { } else {
// if (this.urlOptions.isGetCode) { // if (this.urlOptions.isGetCode) {
@ -258,9 +257,7 @@ export default {
padding: 18px; padding: 18px;
} }
.action_btn { .action_btn {
/* float: right; */ float: right;
display: flex;
justify-content: right;
margin: 5px 15px; margin: 5px 15px;
font-size: 14px; font-size: 14px;
} }

View File

@ -44,7 +44,7 @@
<script> <script>
import { import {
createConfigDet, createConfigDet,
getSparePartPage getSparePartList
} from '@/api/equipment/base/spare-parts/config'; } from '@/api/equipment/base/spare-parts/config';
export default { export default {
@ -72,12 +72,8 @@ export default {
}, },
methods: { methods: {
async getDict() { async getDict() {
await getSparePartPage({ const res = await getSparePartList()
pageNo: 1, this.partList = res.data
pageSize: 99
}).then(res => {
this.partList = res.data.list;
})
}, },
init(id) { init(id) {
this.dataForm.id = id || ''; this.dataForm.id = id || '';

View File

@ -59,7 +59,6 @@ import basicPageMixin from '@/mixins/lb/basicPageMixin';
import { publicFormatter } from '@/utils/dict'; import { publicFormatter } from '@/utils/dict';
import Editor from '@/components/Editor'; import Editor from '@/components/Editor';
import addSparts from './addSparts.vue'; import addSparts from './addSparts.vue';
import { deleteConfig } from '@/api/equipment/base/spare-parts/config'
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@ -283,7 +282,7 @@ export default {
const id = row.id; const id = row.id;
this.info({ id }).then((response) => { this.info({ id }).then((response) => {
this.form = response.data; this.form = response.data;
this.form.responsible = this.form.responsible ? this.form.responsible.split(',') : undefined this.form.responsible = this.form.responsible.split(',')
this.open = true; this.open = true;
this.title = '修改备品备件配置'; this.title = '修改备品备件配置';
}); });
@ -316,9 +315,9 @@ export default {
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;
this.$modal this.$modal
.confirm('是否确认删除配置名为"' + row.name + '"的数据?') .confirm('是否确认删除记录"' + row.name + '"?')
.then(function () { .then(function () {
return deleteConfig(id); return this.delete({ id });
}) })
.then(() => { .then(() => {
this.getList(); this.getList();

View File

@ -328,7 +328,7 @@ export default {
this.initState(); this.initState();
const { code, data } = await this.$axios({ const { code, data } = await this.$axios({
url: '/monitoring/equipment-monitor/quantity-series', url: '/analysis/equipment-analysis/quantity',
method: 'get', method: 'get',
params: this.queryParams, params: this.queryParams,
}); });

View File

@ -210,7 +210,7 @@ export default {
async getList() { async getList() {
const { code, data } = await this.$axios({ const { code, data } = await this.$axios({
url: '/monitoring/equipment-monitor/status-series', url: '/analysis/equipment-analysis/status',
method: 'get', method: 'get',
params: this.queryParams, params: this.queryParams,
}); });

View File

@ -174,7 +174,7 @@ export default {
this.listQuery.pageSize = 10; this.listQuery.pageSize = 10;
this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined; this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined;
this.listQuery.name = val.name ? val.name : undefined; this.listQuery.name = val.name ? val.name : undefined;
this.listQuery.code = val.code ? val.code : undefined; this.listQuery.name = val.name ? val.name : undefined;
this.getDataList(); this.getDataList();
break; break;
case 'reset': case 'reset':

View File

@ -96,7 +96,7 @@ export default {
}, },
{ {
type: 'input', type: 'input',
label: '参数配方名称', label: '物料配方名称',
// selectOptions: [], // selectOptions: [],
// labelField: 'name', // labelField: 'name',
// valueField: 'id', // valueField: 'id',
@ -104,7 +104,7 @@ export default {
}, },
{ {
type: 'input', type: 'input',
label: '参数配方编码', label: '物料配方编码',
// selectOptions: [], // selectOptions: [],
// labelField: 'name', // labelField: 'name',
// valueField: 'id', // valueField: 'id',
@ -174,7 +174,7 @@ export default {
this.listQuery.pageSize = 10; this.listQuery.pageSize = 10;
this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined; this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined;
this.listQuery.name = val.name ? val.name : undefined; this.listQuery.name = val.name ? val.name : undefined;
this.listQuery.code = val.code ? val.code : undefined; this.listQuery.name = val.name ? val.name : undefined;
this.getDataList(); this.getDataList();
break; break;
case 'reset': case 'reset':

View File

@ -94,6 +94,13 @@ export default {
choosedEquipments: [], choosedEquipments: [],
searchBarFormConfig: [{ label: '工序下设备' }], searchBarFormConfig: [{ label: '工序下设备' }],
tableProps: [ tableProps: [
// {
// prop: 'createTime',
// label: '',
// fixed: true,
// width: 180,
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
// },
{ prop: 'equipmentId', label: '设备名称' }, { prop: 'equipmentId', label: '设备名称' },
{ prop: 'materialName', label: '物料BOM' }, { prop: 'materialName', label: '物料BOM' },
{ prop: 'valueName', label: '参数BOM' }, { prop: 'valueName', label: '参数BOM' },
@ -105,7 +112,7 @@ export default {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
}, },
searchText: '' searchText: '',
}; };
}, },
watch: { watch: {

View File

@ -223,12 +223,12 @@ export default {
node.attrs; node.attrs;
console.log('node clicked!', node) console.log('node clicked!', node)
this.currentDet = {}; this.currentDet = {};
this.$set(this.currentDet, 'detId', detId?.text); this.$set(this.currentDet, 'detId', detId.text);
this.$set(this.currentDet, 'sectionId', sectionId?.text); this.$set(this.currentDet, 'sectionId', sectionId.text);
this.$set(this.currentDet, 'detName', detName?.text); this.$set(this.currentDet, 'detName', detName.text);
this.$set(this.currentDet, 'detDesc', detDesc?.text); this.$set(this.currentDet, 'detDesc', detDesc.text);
this.$set(this.currentDet, 'flowId', processId?.text); this.$set(this.currentDet, 'flowId', processId.text);
this.$set(this.currentDet, 'sectionName', sectionName?.text); this.$set(this.currentDet, 'sectionName', sectionName.text);
this.currentNode = node; this.currentNode = node;
}); });
this.graph.on('edge:click', ({ e, x, y, edge, view }) => { this.graph.on('edge:click', ({ e, x, y, edge, view }) => {
@ -257,8 +257,6 @@ export default {
const status = await this.handleDelete(id); const status = await this.handleDelete(id);
if (status) { if (status) {
view.cell.remove(); view.cell.remove();
//
this.handleUpdateLayout();
} }
}) })
.catch((err) => { .catch((err) => {

View File

@ -42,7 +42,7 @@
<DialogForm <DialogForm
v-if="open" v-if="open"
ref="form" ref="form"
v-model="form" :dataForm="form"
:rows="[ :rows="[
[ [
{ {

View File

@ -40,7 +40,7 @@
<DialogForm <DialogForm
v-if="open" v-if="open"
ref="form" ref="form"
v-model="form" :dataForm="form"
:rows="[ :rows="[
[ [
{ {
@ -208,11 +208,7 @@ export default {
name: null, name: null,
}, },
// //
form: { form: {},
name: null,
code: undefined,
remark:undefined
},
}; };
}, },
// watch: { // watch: {

View File

@ -246,7 +246,7 @@ export default {
// //
async getWorksectionList(plId) { async getWorksectionList(plId) {
const response = await this.$axios( const response = await this.$axios(
'/base/core-workshop-section/listByParentId', '/base/workshop-section/listByParentId',
{ {
params: { params: {
id: plId, id: plId,

View File

@ -13,8 +13,9 @@
<!-- <pre><code v-html="jsondemo"></code></pre> --> <!-- <pre><code v-html="jsondemo"></code></pre> -->
<el-skeleton v-if="initing" :rows="6" animated /> <el-skeleton v-if="initing" :rows="6" animated />
<div v-else > <div v-else :class="{ 'no-data-bg': !list || list.length == 0 }">
<base-table <base-table
v-if="list && list.length > 0"
:table-props="tableProps" :table-props="tableProps"
:page="queryParams.pageNo" :page="queryParams.pageNo"
:limit="queryParams.pageSize" :limit="queryParams.pageSize"

View File

@ -71,10 +71,7 @@ export default {
placeholder: '请选择工单号', placeholder: '请选择工单号',
param: 'workOrderIdList', param: 'workOrderIdList',
selectOptions: [], selectOptions: [],
multiple: true, multiple:true,
labelField: 'name',
valueField: 'id',
defaultSelect: []
}, },
{ {
type: 'select', type: 'select',
@ -94,8 +91,8 @@ export default {
label: '时间段', label: '时间段',
dateType: 'daterange', // datetimerange dateType: 'daterange', // datetimerange
// format: 'yyyy-MM-dd HH:mm:ss', // format: 'yyyy-MM-dd HH:mm:ss',
format: 'yyyy-MM-dd HH:mm:ss', format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd HH:mm:ss', valueFormat: 'timestamp',
rangeSeparator: '-', rangeSeparator: '-',
startPlaceholder: '开始日期', startPlaceholder: '开始日期',
endPlaceholder: '结束日期', endPlaceholder: '结束日期',
@ -249,11 +246,7 @@ export default {
}, },
mounted() { mounted() {
if (this.$route.query.woIdString) { if (this.$route.query.woIdString) {
console.log(this.$route.query.woIdString); this.queryParams.workOrderIdList = this.$route.query.woIdString
this.queryParams.workOrderIdList = [this.$route.query.woIdString]
// let arr =[]
this.searchBarFormConfig[0].defaultSelect = [this.$route.query.woIdString]
console.log(this.searchBarFormConfig[0].defaultSelect);
} }
// if (this.$route.params.startTime && this.$route.params.endTime) { // if (this.$route.params.startTime && this.$route.params.endTime) {
// this.searchBarFormConfig[0].defaultSelect = [ // this.searchBarFormConfig[0].defaultSelect = [
@ -308,8 +301,7 @@ export default {
this.getDict() this.getDict()
}, },
/** 查询列表 */ /** 查询列表 */
async getDataList() { async getDataList() {
console.log(this.queryParams);
this.loading = true; this.loading = true;
// //
const { const {

View File

@ -1,13 +1,13 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2023-10-17 09:26:38 * @Date: 2023-10-17 09:26:38
* @LastEditTime: 2023-11-16 18:52:00 * @LastEditTime: 2023-10-30 14:53:34
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
<template> <template>
<div> <div>
<!-- <doc-alert title="报表设计器" url="https://doc.iocoder.cn/report/" /> --> <doc-alert title="报表设计器" url="https://doc.iocoder.cn/report/" />
<i-frame :src="url" /> <i-frame :src="url" />
</div> </div>
</template> </template>
@ -17,10 +17,9 @@ import {getAccessToken} from "@/utils/auth";
export default { export default {
name: "JimuReport", name: "JimuReport",
components: { iFrame }, components: { iFrame },
data() { data() {
return { return {
url: process.env.VUE_APP_JIMU_API + "/jmreport/list?token=" + getAccessToken(), url: process.env.VUE_APP_BASE_API + "/jmreport/list?token=" + getAccessToken(),
}; };
}, },
}; };