问题修改

dev-scheduling
zhangdi 2 days ago
parent 32b7fe6a67
commit f01d982cc8
  1. 19
      src/views/authority/role.vue
  2. 34
      src/views/oem/oemOrder/turnFacInner.vue
  3. 5
      src/views/productionManagement/components/outsourceDialog.vue
  4. 2
      src/views/system/menu.vue

@ -1,17 +1,17 @@
<template>
<basic-container>
<basic-container >
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="form"
:permission="permissionList" :before-open="beforeOpen" @row-del="rowDel" @row-update="rowUpdate"
@row-save="rowSave" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" >
<template #menu-left>
<el-button type="danger" v-if="permission.role_delete" plain @click="handleDelete">
<el-button type="danger" v-if="permission.role_delete" plain @click="handleDelete">
</el-button>
<el-button @click="handleRole" v-if="userInfo.authority.includes('admin')" plain>权限设置
<el-button @click="handleRole" v-if="userInfo.authority.includes('admin')" plain>权限设置
</el-button>
</template>
<template #menu="{ row }">
<el-button type="primary" text v-if="userInfo.authority.includes('admin')" plain
<el-button type="primary" text v-if="userInfo.authority.includes('admin')" plain
style="border: 0; background-color: transparent !important" @click.stop="handleRowRole(row)">权限设置
</el-button>
</template>
@ -85,7 +85,7 @@ export default {
total: 0,
},
option: {
height:'auto',
height: window.innerHeight - 250,
tip: false,
simplePage: true,
searchShow: true,
@ -96,7 +96,7 @@ export default {
selection: true,
viewBtn: true,
labelWidth: 120,
searchLabelWidth: 120,
searchLabelWidth: 'auto',
menuWidth: 350,
dialogWidth: 600,
dialogClickModal: false,
@ -111,7 +111,7 @@ export default {
viewBtnIcon: ' ',
delBtnIcon: ' ',
editBtnIcon: ' ',
searchShowBtn:false,
searchShowBtn: false,
align: 'center',
column: [
{
@ -121,6 +121,7 @@ export default {
type: 'tree',
hide: true,
span: 24,
align: 'left',
props: {
label: 'title',
},
@ -137,6 +138,7 @@ export default {
prop: 'roleName',
search: true,
span: 24,
align: 'left',
rules: [
{
required: true,
@ -174,6 +176,7 @@ export default {
prop: 'roleAlias',
search: true,
span: 24,
align: 'left',
rules: [
{
required: true,

@ -15,7 +15,7 @@
</el-dialog>
</template>
<script>
import {getInProcess,turnIn} from "@/api/outsourcingManagement/oemOrder"
import { getInProcess, turnIn } from "@/api/outsourcingManagement/oemOrder"
export default {
props: {
turnFacInnerOpen: {
@ -44,7 +44,7 @@ export default {
dialogWidth: '60%',
border: true,
index: false,
selection:true,
selection: true,
menuWidth: 240,
dialogClickModal: false,
excelBtn: true,
@ -101,7 +101,7 @@ export default {
{
label: '工艺能力',
prop: 'processAbilityName',
bind:"processAbility.name",
bind: "processAbility.name",
search: false,
sortable: true,
overHidden: true,
@ -144,7 +144,7 @@ export default {
]
},
selectionList:[]
selectionList: []
};
},
mounted() {
@ -152,15 +152,18 @@ export default {
this.getData()
},
methods: {
getData(){
getData() {
getInProcess({
woIds:[this.rowItem.woId],
runType:2
}).then(res =>{
woIds: [this.rowItem.woId],
runType: 2
}).then(res => {
this.data = res.data.data
})
},
selectionChange(list){
selectionChange(list) {
list.forEach(item => {
item.handle = true
});
this.selectionList = list
},
takeBack() {
@ -194,29 +197,30 @@ export default {
this.$emit('cancel', typeof isRefresh === 'boolean' && isRefresh);
},
submit(){
submit() {
if (this.data.length == 0) {
this.$message.error('当前数据列表为空');
return;
}
this.$refs.form.validate((valid) => {
if (valid) {
if(this.selectionList.length == 0){
if (this.selectionList.length == 0) {
this.$message.error('请选择要转厂内的工序')
return
}
let query = {
workOrderRuns: [
{
runType:2,
woId:this.rowItem.woId
runType: 2,
woId: this.rowItem.woId
}
],
workPlanRuns: this.selectionList,
};
turnIn(query).then(res =>{
if(res.data.code == 200){
turnIn(query).then(res => {
if (res.data.code == 200) {
this.$message.success('转厂内成功');
this.cancel(true);
}

@ -7,6 +7,7 @@
width="60%"
@close="closeDialog"
>
<el-form :model="outsourceForm" :rules="outsourceRules" label-width="70px">
<el-form-item label="备注:" prop="memo">
<el-input
@ -119,6 +120,10 @@ export default {
this.$message.error('请选择需要转外协的数据');
return;
}
if(this.outsourceForm.memo==''){
this.$message.error('请填写备注!');
return;
}
this.loading = true
let orderData = [];
this.itemData.forEach(item => {

@ -81,7 +81,7 @@ export default {
searchShow: true,
searchMenuSpan: 6,
dialogWidth: '60%',
height:'auto',
height: window.innerHeight - 250,
tree: true,
border: true,
index: true,

Loading…
Cancel
Save