计划管理缺陷修复

dev-scheduling
jinna 3 days ago
parent 0329d6a130
commit ace33ea508
  1. 46
      src/views/equiptManagement/equipmentLedger/index.vue
  2. 27
      src/views/equiptManagement/measurementRecords/index.vue
  3. 40
      src/views/orderManagement/sinTerPlanOrder.vue

@ -128,6 +128,7 @@ export default {
search: true, search: true,
sortable: true, sortable: true,
overHidden: true, overHidden: true,
width: 100,
rules: [ rules: [
{ {
required: true, required: true,
@ -157,6 +158,7 @@ export default {
search: true, search: true,
addDisplay:false, addDisplay:false,
editDisplay:false, editDisplay:false,
width: 100,
// rules: [ // rules: [
// { // {
// required: true, // required: true,
@ -200,6 +202,7 @@ export default {
value: 3, value: 3,
}, },
], ],
width: 100,
rules: [ rules: [
{ {
required: true, required: true,
@ -227,6 +230,35 @@ export default {
prop: "macSpec", prop: "macSpec",
sortable: true, sortable: true,
search: false, search: false,
width: 100,
},
{
label: "作业中心",
prop: "workCenterName",
sortable: true,
search: false,
width: 150,
display:false
// type: "select",
// dicUrl:"/api/blade-desk/BA/WorkCenter/listForSelect",
// props:{
// label:"wcName",
// value:"id"
// }
},
{
label: "作业中心",
prop: "workCenterId",
sortable: true,
search: false,
width: 150,
hide: true,
type: "select",
dicUrl:"/api/blade-desk/BA/WorkCenter/listForSelect",
props:{
label:"wcName",
value:"id"
}
}, },
{ {
label: "设备IP", label: "设备IP",
@ -235,6 +267,7 @@ export default {
search: false, search: false,
addDisplay:false, addDisplay:false,
editDisplay:false, editDisplay:false,
width: 150,
rules: [ rules: [
{ {
required: true, required: true,
@ -250,6 +283,7 @@ export default {
span: 24, span: 24,
search: true, search: true,
type: "select", type: "select",
width: 100,
dicData: [ dicData: [
{ {
label: "是", label: "是",
@ -270,6 +304,7 @@ export default {
type: "textarea", type: "textarea",
maxlength: 100, maxlength: 100,
showWordLimit: true, showWordLimit: true,
width: 100,
minRows: 3, minRows: 3,
}, },
{ {
@ -351,7 +386,8 @@ export default {
typeName: row.typeName, typeName: row.typeName,
used: row.used, used: row.used,
virtualMac: row.virtualMac ? 1 : 0, virtualMac: row.virtualMac ? 1 : 0,
attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '' attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '',
workCenterId:row.workCenterId
} }
addDevice(params).then(res => { addDevice(params).then(res => {
if(res.data.code == 200){ if(res.data.code == 200){
@ -375,7 +411,8 @@ export default {
typeName: row.typeName, typeName: row.typeName,
used: row.used, used: row.used,
virtualMac: row.virtualMac ? 1 : 0, virtualMac: row.virtualMac ? 1 : 0,
attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '' attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '',
workCenterId:row.workCenterId
} }
console.log('link----------',row.attachLink && row.attachLink != '' && typeof(row.attachLink) == String ? row.attachLink : row.attachLink.length > 0 ? row.attachLink[0] : '') console.log('link----------',row.attachLink && row.attachLink != '' && typeof(row.attachLink) == String ? row.attachLink : row.attachLink.length > 0 ? row.attachLink[0] : '')
console.log('row------------',row) console.log('row------------',row)
@ -438,9 +475,12 @@ export default {
this.form = res.data.data this.form = res.data.data
this.form.attachLink = [this.form.attachLink] this.form.attachLink = [this.form.attachLink]
this.form.virtualMac = this.form.virtualMac == 1 ? true : false this.form.virtualMac = this.form.virtualMac == 1 ? true : false
this.form.workCenterId = this.form.workCenterId == '-1' ? '' : this.form.workCenterId + ''
done();
}) })
} }else{
done(); done();
}
}, },
uploadAfter(res, done, loading, column){ uploadAfter(res, done, loading, column){
console.log('res-----------------',res) console.log('res-----------------',res)

@ -9,7 +9,7 @@
</template> </template>
<template #menu-right="{ size }"> <template #menu-right="{ size }">
<el-button type="primary" @click="handleImport">导入</el-button>
</template> </template>
<!-- <template #menu="scope"> <!-- <template #menu="scope">
<el-button type="primary" link @click="setCrew(scope.row.bcId)">设置人员</el-button> <el-button type="primary" link @click="setCrew(scope.row.bcId)">设置人员</el-button>
@ -36,6 +36,17 @@
<!-- 提醒配置 --> <!-- 提醒配置 -->
<reminder-configuration v-if="isConfigOpen" :showDialog="isConfigOpen" @closeDialog="setCrewOpeSancel"></reminder-configuration> <reminder-configuration v-if="isConfigOpen" :showDialog="isConfigOpen" @closeDialog="setCrewOpeSancel"></reminder-configuration>
<!-- <alertConfigDialog v-if="isConfigOpen" :showDialog="isConfigOpen" @closeDialog="setCrewOpeSancel"></alertConfigDialog> --> <!-- <alertConfigDialog v-if="isConfigOpen" :showDialog="isConfigOpen" @closeDialog="setCrewOpeSancel"></alertConfigDialog> -->
<!-- 导入 -->
<basic-import
v-if="isShowImport"
title="导入"
:isShow="isShowImport"
templateUrl="/blade-desk/measurementRecords/importTemplate"
templateName="计量模板.xls"
importUrl="/blade-desk/measurementRecords/import"
@closeDialog="closeDialog"
></basic-import>
</basic-container> </basic-container>
</template> </template>
<script> <script>
@ -45,6 +56,7 @@ import { getLazyList, remove, update, add, getMenu } from '@/api/system/menu';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import {getRecorderList,addRecorder,updateRecorder,deleteRecorder} from "@/api/equiptManagement/measurementRecords" import {getRecorderList,addRecorder,updateRecorder,deleteRecorder} from "@/api/equiptManagement/measurementRecords"
import basicImport from '@/components/basic-import/main.vue'
import setPersonnel from "@/components/dialogCom/setPersonnel.vue" import setPersonnel from "@/components/dialogCom/setPersonnel.vue"
import alertConfigDialog from './alertConfigDialog.vue' import alertConfigDialog from './alertConfigDialog.vue'
import reminderConfiguration from './reminderConfiguration.vue' import reminderConfiguration from './reminderConfiguration.vue'
@ -52,12 +64,14 @@ export default {
components: { components: {
setPersonnel, setPersonnel,
alertConfigDialog, alertConfigDialog,
reminderConfiguration reminderConfiguration,
basicImport
}, },
data() { data() {
return { return {
bcId: null, bcId: null,
setCrewOpen: false, setCrewOpen: false,
isShowImport:false,
form: {}, form: {},
query: {}, query: {},
loading: true, loading: true,
@ -301,6 +315,15 @@ export default {
handleConfig(){ handleConfig(){
this.isConfigOpen = true this.isConfigOpen = true
}, },
handleImport(){
this.isShowImport = true
},
closeDialog(val){
this.isShowImport = false
if(val){
this.onLoad()
}
},
// //
setCrew(bcId) { setCrew(bcId) {
console.log(9999, bcId) console.log(9999, bcId)

@ -493,26 +493,26 @@ export default {
}, },
], ],
}, },
{ // {
label: '已交付数量', // label: '',
prop: 'deliveryQty', // prop: 'deliveryQty',
search: false, // search: false,
sortable: true, // sortable: true,
span: 12, // span: 12,
headerAlign: 'center', // headerAlign: 'center',
align: 'center', // align: 'center',
width: 170, // width: 170,
}, // },
{ // {
label: '未交付数量', // label: '',
prop: 'undeliveredQty', // prop: 'undeliveredQty',
search: false, // search: false,
sortable: true, // sortable: true,
span: 12, // span: 12,
headerAlign: 'center', // headerAlign: 'center',
align: 'center', // align: 'center',
width: 170, // width: 170,
}, // },
// { // {
// label: '', // label: '',
// prop: 'createName', // prop: 'createName',

Loading…
Cancel
Save