Browse Source

Merge remote-tracking branch 'origin/master'

java8
yuejiayang 1 year ago
parent
commit
e471499f66
  1. 2
      src/api/factory/site.js
  2. 1
      src/api/orderIssure/soIssueNotify.js
  3. 11
      src/assets/scss/yzznb.scss
  4. 132
      src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue
  5. 201
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
  6. 185
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue
  7. 31
      src/views/modules/sys/user-add-or-update.vue
  8. 6
      src/views/modules/sys/user.vue

2
src/api/factory/site.js

@ -51,3 +51,5 @@ export const searchBusinessInfo7 = data => createAPI(`/site/searchBusinessInfo7`
export const getResponsibleDepartment = data => createAPI(`/site/getResponsibleDepartment`,'post',data)
export const getEamWorkShop = data => createAPI(`/site/getEamWorkShop`,'post',data)

1
src/api/orderIssure/soIssueNotify.js

@ -39,3 +39,4 @@ export const saveOtherPart= data => createAPI(`/orderIssure/issureNotify/saveOth
export const getNoControlPartList= data => createAPI(`/orderIssure/issureNotify/getNoControlPartList`,'post',data)
export const searchOtherPart= data => createAPI(`/orderIssure/issureNotify/searchOtherPart`,'post',data)
export const searchNotifyLog= data => createAPI(`/orderIssure/issureNotify/searchNotifyLog`,'post',data)
export const deleteNotifyMaterialWithOutLog= data => createAPI(`/orderIssure/issureNotify/deleteNotifyMaterialWithOutLog`,'post',data)

11
src/assets/scss/yzznb.scss

@ -19,3 +19,14 @@
width: 100%; /* 让 el-input 铺满容器宽度 */
}
.el-table .error-row {
background: #f80d0d;
color: white;
}
.yzz .el-table__body tr:hover > td {
background-color: transparent !important; /* 设置为你需要的颜色,透明色表示无背景色 */
}

132
src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue

@ -1,5 +1,5 @@
<template>
<div class="mod-config yzzInput">
<div class="mod-config yzzInput yzz">
<el-form :inline="true" label-position="top" style="margin-top: -0px">
<el-row :gutter="20">
<el-col :span="20">
@ -123,6 +123,16 @@
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="80"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="deleteNotifyMaterial(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="不管控物料" name="noControl">
@ -148,6 +158,16 @@
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="80"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="deleteNotifyMaterial(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
@ -358,7 +378,7 @@
<el-button type="primary" @click="changeBuFlag=false">关闭</el-button>
</el-footer>
</el-dialog>
<el-dialog title="申请明细" :close-on-click-modal="false" v-drag :visible.sync="materialModalFlag" width="800px">
<el-dialog title="申请明细" :close-on-click-modal="false" v-drag :visible.sync="materialModalFlag" width="900px">
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-row :gutter="20">
<el-col :span="6">
@ -396,12 +416,16 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<div v-if="item.columnProp !== 'qtyToIssue'">
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
<div v-if="item.columnProp === 'qtyToIssue'">
<el-input-number v-model="scope.row.qtyToIssue" style="padding: 0;width: 100%" :step="0" :min="0" :controls="false"></el-input-number>
</div>
<div v-else-if="item.columnProp === 'remark'">
<el-input v-model="scope.row.remark" style="padding: 0;width: 100%" ></el-input>
</div>
<div v-else>
<el-input-number v-model="scope.row.qtyToIssue" style="padding: 0;width: 100%" :step="0" :min="0" :controls="false"></el-input-number>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</div>
</template>
@ -536,6 +560,7 @@
border
@row-dblclick="chooseNoControlPartNo"
style="width: 100%;">
<el-table-column
prop="partNo"
header-align="center"
@ -665,6 +690,13 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item :label="'备注'" >
<el-input v-model="otherPartData.remark" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="saveOtherPart()">保存</el-button>
@ -703,6 +735,7 @@
saveOtherPart,
getNoControlPartList,
searchOtherPart,
deleteNotifyMaterialWithOutLog,
}from "@/api/orderIssure/soIssueNotify.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
export default {
@ -858,6 +891,23 @@
status: true,
fixed: '',
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 701001,
serialNumber: '701001Table4Remark',
tableId: "701001Table4",
tableName: "申请单材料明细表",
columnProp: "remark",
headerAlign: "center",
align: "left",
columnLabel: "备注",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
],
modalData:{
@ -1273,7 +1323,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50,
columnWidth: 80,
},
{
userId: this.$store.state.user.name,
@ -1291,7 +1341,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 220,
columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@ -1320,7 +1370,25 @@
columnProp: 'qtyOnHand',
headerAlign: "center",
align: "right",
columnLabel: '现场库存数量',
columnLabel: '现场库存',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50,
},
{
userId: this.$store.state.user.name,
functionId: 701001002,
serialNumber: '701001002Table3StockQty',
tableId: "701001002Table3",
tableName: "领料申请BOM子表",
columnProp: 'stockQty',
headerAlign: "center",
align: "right",
columnLabel: 'ERP库存',
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -1347,6 +1415,24 @@
fixed: '',
columnWidth: 60,
},
{
userId: this.$store.state.user.name,
functionId: 701001002,
serialNumber: '701001002Table3Remark',
tableId: "701001002Table3",
tableName: "领料申请BOM子表",
columnProp: 'remark',
headerAlign: "center",
align: "left",
columnLabel: '备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150,
},
],
rules:{
groupIdType:[
@ -1403,6 +1489,7 @@
issueType:'',
partDesc:'',
umid:'',
remark:'',
},
}
},
@ -1411,6 +1498,7 @@
this.$nextTick(() => {
this.height = window.innerHeight - 300
})
},
created () {
@ -1431,6 +1519,30 @@
},
methods: {
deleteNotifyMaterial(row){
this.$confirm('确认删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteNotifyMaterialWithOutLog(row).then(({data}) => {
if (data && data.code === 0) {
this.searchOtherPart('非BOM物料')
this.searchOtherPart('不管控物料')
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
})
},
getBaseList (val,type) {
this.tagNo = val
let conSql=''
@ -1465,6 +1577,7 @@
issueType:'非BOM物料',
partDesc:row.partDesc,
umid:row.umid,
remark:'',
}
this.saveOtherPartModalFlag=true
},
@ -1479,6 +1592,7 @@
issueType:'不管控物料',
partDesc:row.partDesc,
umid:row.umid,
remark:'',
}
this.saveOtherPartModalFlag=true
},

201
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -1,5 +1,5 @@
<template>
<div class="mod-config">
<div class="mod-config yzz">
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<el-form-item :label="'申请单号'">
@ -29,6 +29,13 @@
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="状态" >
<el-select v-model="searchData.status" placeholder="请选择" style="width: 120px">
<el-option label="全部" value=""></el-option>
<el-option label="已下达" value="已下达"></el-option>
<el-option label="已关闭" value="已关闭"></el-option>
</el-select>
</el-form-item>
<el-form-item label="是否领料" >
<el-select v-model="searchData.issueFlag" placeholder="请选择" style="width: 120px">
<el-option label="全部" value=""></el-option>
@ -43,6 +50,16 @@
<el-option label="全部发料" value="全部发料"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="'车间'">
<el-select v-model="searchData.workShopList" multiple style="width: 360px">
<el-option
v-for = "i in workShopList"
:key = "i.workShopId"
:label = "i.workShopName"
:value = "i.workShopId">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" @click="searchTable()">查询</el-button>
<download-excel
@ -91,11 +108,10 @@
header-align="center"
align="center"
width="80"
fixed="left"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.status==='已下达'" @click="closeNotify(scope.row)">结束</a>
<a type="text" size="small" v-if="scope.row.status==='已关闭'" @click="openNotify(scope.row)"></a>
<a type="text" size="small" v-if="scope.row.status==='已下达'" @click="closeNotify(scope.row)">关闭</a>
<a type="text" size="small" v-if="scope.row.status==='已关闭'" @click="openNotify(scope.row)"></a>
</template>
</el-table-column>
</el-table>
@ -152,6 +168,7 @@
:data="dataList3"
:height="height"
border
:row-class-name="tableRowClassName"
v-loading="dataListLoading"
style="width: 100%; ">
<!-- <el-table-column-->
@ -281,6 +298,7 @@
,searchNotifyLog
}from "@/api/orderIssure/soIssueNotify.js"
import Chooselist from '@/views/modules/common/Chooselist'
import {getEamWorkShop} from "@/api/factory/site.js";
export default {
components: {
Chooselist
@ -302,12 +320,15 @@
site:this.$store.state.user.site,
userName: '',
notifyNo: '',
status: '',
issueFlag: '',
issueResult: '',
workShopList: [],
startDate: this.dayjs().format("YYYY-MM-DD"),
endDate: this.dayjs().format("YYYY-MM-DD"),
sql: " and a.status!='已计划' ",
},
workShopList: [],
exportList:[],
pageIndex: 1,
pageSize: 100,
@ -333,6 +354,23 @@
status: true,
fixed: '',
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table1WorkShopName',
tableId: "701002Table1",
tableName: "领料申请主表",
columnProp: "workShopName",
headerAlign: "center",
align: "center",
columnLabel: "车间",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 701002,
@ -506,6 +544,24 @@
status: true,
fixed: '',
columnWidth: 40
},
{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table2NeedDate',
tableId: "701002Table2",
tableName: "领料申请派工单子表",
columnProp: 'needDate',
headerAlign: "center",
align: "left",
columnLabel: '要求发料时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80,
},{
userId: this.$store.state.user.name,
functionId: 701002,
@ -627,25 +683,6 @@
fixed: '',
columnWidth: 80,
},
{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table2NeedDate',
tableId: "701002Table2",
tableName: "领料申请派工单子表",
columnProp: 'needDate',
headerAlign: "center",
align: "left",
columnLabel: '要求发料时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80,
},
{
userId: this.$store.state.user.name,
@ -687,81 +724,81 @@
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3IssueType',
serialNumber: '701002Table3ComponentPartNo',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "issueType",
columnProp: "componentPartNo",
headerAlign: "center",
align: "right",
columnLabel: "类型",
align: "center",
columnLabel: "材料编码",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3SOOrderNo',
serialNumber: '701002Table3PartDesc',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "orderNo",
columnProp: "partDesc",
headerAlign: "center",
align: "left",
columnLabel: "生产订单",
columnLabel: "材料名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
columnWidth: 130
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3OpsItemNo',
serialNumber: '701002Table3NeedDate',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "opsItemNo",
columnProp: "needDate",
headerAlign: "center",
align: "right",
columnLabel: "工序",
align: "center",
columnLabel: "需求时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
columnWidth: 110
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3SeqNo',
serialNumber: '701002Table3QtyToIssue',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "seqNo",
columnProp: "qtyToIssue",
headerAlign: "center",
align: "left",
columnLabel: "派工单号",
align: "right",
columnLabel: "申请数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3LocationNo',
serialNumber: '701002Table3QtyToIssueOriginal',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "locationNo",
columnProp: "qtyToIssueOriginal",
headerAlign: "center",
align: "left",
columnLabel: "机台",
align: "right",
columnLabel: "已发数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -772,13 +809,13 @@
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3BOMItemNo',
serialNumber: '701002Table3IssueType',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "bOMItemNo",
columnProp: "issueType",
headerAlign: "center",
align: "right",
columnLabel: "BOM序号",
columnLabel: "类型",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -789,47 +826,64 @@
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3ComponentPartNo',
serialNumber: '701002Table3SOOrderNo',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "componentPartNo",
columnProp: "orderNo",
headerAlign: "center",
align: "center",
columnLabel: "材料编码",
align: "left",
columnLabel: "生产订单",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
columnWidth: 120
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3PartDesc',
serialNumber: '701002Table3OpsItemNo',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "partDesc",
columnProp: "opsItemNo",
headerAlign: "center",
align: "right",
columnLabel: "工序",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3SeqNo',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "seqNo",
headerAlign: "center",
align: "left",
columnLabel: "材料名称",
columnLabel: "派工单号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 130
columnWidth: 150
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3QtyToIssue',
serialNumber: '701002Table3LocationNo',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "qtyToIssue",
columnProp: "locationNo",
headerAlign: "center",
align: "right",
columnLabel: "申请数量",
align: "left",
columnLabel: "机台",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -840,13 +894,13 @@
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3QtyToIssueOriginal',
serialNumber: '701002Table3BOMItemNo',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "qtyToIssueOriginal",
columnProp: "bOMItemNo",
headerAlign: "center",
align: "right",
columnLabel: "已发数量",
columnLabel: "BOM序号",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -854,6 +908,7 @@
status: true,
fixed: '',
columnWidth: 80
},
],
columnList4:[
@ -1136,7 +1191,11 @@
mounted () {
this.$nextTick(() => {
this.height = (window.innerHeight- 250) / 2
getEamWorkShop({}).then(({data}) => {
if (data && data.code === 0) {
this.workShopList=data.rows
}
})
})
},
@ -1392,10 +1451,18 @@
return s
},
tableRowClassName ({row, rowIndex}) {
if (row.qtyToIssueOriginal<row.qtyToIssue&&new Date(row.needDate)<new Date(this.dayjs().format("YYYY-MM-DD HH:mm"))) {
return 'error-row'
}
return ''
},
},
}
</script>
<style scoped>
</style>

185
src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue

@ -1,5 +1,5 @@
<template>
<div class="mod-config">
<div class="mod-config yzz">
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<el-form-item :label="'申请单号'">
@ -29,6 +29,16 @@
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item :label="'车间'">
<el-select v-model="searchData.workShopList" multiple style="width: 360px">
<el-option
v-for = "i in workShopList"
:key = "i.workShopId"
:label = "i.workShopName"
:value = "i.workShopId">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" @click="searchTable()">查询</el-button>
<download-excel
@ -139,6 +149,7 @@
:data="dataList3"
:height="height"
border
:row-class-name="tableRowClassName"
v-loading="dataListLoading"
style="width: 100%; ">
<!-- <el-table-column-->
@ -233,6 +244,7 @@
,deleteNotifyMaterial
}from "@/api/orderIssure/soIssueNotify.js"
import Chooselist from '@/views/modules/common/Chooselist'
import {getEamWorkShop} from "@/api/factory/site.js";
export default {
components: {
Chooselist
@ -255,10 +267,12 @@
notifyNo: '',
issueFlag: '',
issueResult: '',
workShopList: [],
startDate: this.dayjs().format("YYYY-MM-DD"),
endDate: this.dayjs().format("YYYY-MM-DD"),
sql: " and a.status='已下达' and (issueFlag='N' or issueResult='部分发料' ) ",
},
workShopList: [],
exportList:[],
pageIndex: 1,
pageSize: 100,
@ -284,6 +298,23 @@
status: true,
fixed: '',
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table1WorkShopName',
tableId: "701002Table1",
tableName: "领料申请主表",
columnProp: "workShopName",
headerAlign: "center",
align: "center",
columnLabel: "车间",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 701003,
@ -457,6 +488,24 @@
status: true,
fixed: '',
columnWidth: 40
},
{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table2NeedDate',
tableId: "701003Table2",
tableName: "领料申请派工单子表",
columnProp: 'needDate',
headerAlign: "center",
align: "left",
columnLabel: '要求发料时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80,
},{
userId: this.$store.state.user.name,
functionId: 701003,
@ -578,24 +627,6 @@
fixed: '',
columnWidth: 80,
},
{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table2NeedDate',
tableId: "701003Table2",
tableName: "领料申请派工单子表",
columnProp: 'needDate',
headerAlign: "center",
align: "left",
columnLabel: '要求发料时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80,
},
{
@ -638,81 +669,81 @@
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3IssueType',
serialNumber: '701003Table3NeedDate',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "issueType",
columnProp: "needDate",
headerAlign: "center",
align: "right",
columnLabel: "类型",
align: "center",
columnLabel: "需求时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 110
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3SOOrderNo',
serialNumber: '701003Table3ComponentPartNo',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "orderNo",
columnProp: "componentPartNo",
headerAlign: "center",
align: "left",
columnLabel: "生产订单",
align: "center",
columnLabel: "材料编码",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3OpsItemNo',
serialNumber: '701003Table3PartDesc',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "opsItemNo",
columnProp: "partDesc",
headerAlign: "center",
align: "right",
columnLabel: "工序",
align: "left",
columnLabel: "材料名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
columnWidth: 130
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3SeqNo',
serialNumber: '701003Table3QtyToIssue',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "seqNo",
columnProp: "qtyToIssue",
headerAlign: "center",
align: "left",
columnLabel: "派工单号",
align: "right",
columnLabel: "申请数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3LocationNo',
serialNumber: '701003Table3QtyToIssueOriginal',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "locationNo",
columnProp: "qtyToIssueOriginal",
headerAlign: "center",
align: "left",
columnLabel: "机台",
align: "right",
columnLabel: "已发数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -723,13 +754,13 @@
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3BOMItemNo',
serialNumber: '701003Table3IssueType',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "bOMItemNo",
columnProp: "issueType",
headerAlign: "center",
align: "right",
columnLabel: "BOM序号",
columnLabel: "类型",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -740,47 +771,64 @@
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3ComponentPartNo',
serialNumber: '701003Table3SOOrderNo',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "componentPartNo",
columnProp: "orderNo",
headerAlign: "center",
align: "center",
columnLabel: "材料编码",
align: "left",
columnLabel: "生产订单",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
columnWidth: 120
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3PartDesc',
serialNumber: '701003Table3OpsItemNo',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "partDesc",
columnProp: "opsItemNo",
headerAlign: "center",
align: "right",
columnLabel: "工序",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3SeqNo',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "seqNo",
headerAlign: "center",
align: "left",
columnLabel: "材料名称",
columnLabel: "派工单号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 130
columnWidth: 150
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3QtyToIssue',
serialNumber: '701003Table3LocationNo',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "qtyToIssue",
columnProp: "locationNo",
headerAlign: "center",
align: "right",
columnLabel: "申请数量",
align: "left",
columnLabel: "机台",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -791,13 +839,13 @@
},{
userId: this.$store.state.user.name,
functionId: 701003,
serialNumber: '701003Table3QtyToIssueOriginal',
serialNumber: '701003Table3BOMItemNo',
tableId: "701003Table3",
tableName: "申请单材料明细表",
columnProp: "qtyToIssueOriginal",
columnProp: "bOMItemNo",
headerAlign: "center",
align: "right",
columnLabel: "已发数量",
columnLabel: "BOM序号",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -924,6 +972,11 @@
this.$nextTick(() => {
this.height = (window.innerHeight- 260) / 2
this.searchTable()
getEamWorkShop({}).then(({data}) => {
if (data && data.code === 0) {
this.workShopList=data.rows
}
})
})
},
@ -1169,6 +1222,14 @@
return s
},
tableRowClassName ({row, rowIndex}) {
if (row.qtyToIssueOriginal<row.qtyToIssue&&new Date(row.needDate)<new Date(this.dayjs().format("YYYY-MM-DD HH:mm"))) {
return 'error-row'
}
return ''
},
},
}
</script>

31
src/views/modules/sys/user-add-or-update.vue

@ -35,6 +35,16 @@
<span slot="label" style="" @click="getBaseList(93)"><a herf="#">{{buttons.site||'工厂'}}</a></span>
<el-input v-model="dataForm.site" style="width: 150px;" placeholder="工厂"></el-input>
</el-form-item>
<el-form-item label="车间">
<el-select v-model="dataForm.workShopId" placeholder="请选择" >
<el-option
v-for = "i in workShopList"
:key = "i.workShopId"
:label = "i.workShopName"
:value = "i.workShopId">
</el-option>
</el-select>
</el-form-item>
</el-form>
<el-form>
<el-form-item label="角色" size="mini" prop="roleIdList">
@ -69,7 +79,7 @@
<script>
import Chooselist from '@/views/modules/common/Chooselist'
import {getFactory} from "@/api/factory";
import {getEamWorkShop} from "@/api/factory/site.js";
import {searchSysLanguage} from "@/api/sysLanguage.js"
import {
searchFunctionButtonList,
@ -97,7 +107,8 @@ export default {
roleIdList: [],
status: 1,
site: '',
userDisplay: ''
userDisplay: '',
workShopId:'',
},
buttons: {
add: '添加',
@ -116,6 +127,7 @@ export default {
site: '工厂',
language: '语言',
},
workShopList:[],
}
},
methods: {
@ -188,17 +200,23 @@ export default {
this.dataForm.languageDefault = data.user.languageDefault
this.dataForm.site = data.user.site.toString()
this.dataForm.userDisplay = data.user.userDisplay
this.dataForm.workShopId = data.user.workShopId
}
})
}
})
getEamWorkShop({}).then(({data}) => {
if (data && data.code === 0) {
this.workShopList=data.rows
}
})
},
//
dataFormSubmit() {
// if(this.dataForm.site == null || this.dataForm.site == ''){
// this.$message.success("!");
// return false;
// }
if(this.dataForm.workShopId == null || this.dataForm.workShopId == ''){
this.$message.error("车间不能为空!");
return false;
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
@ -216,6 +234,7 @@ export default {
'languageDefault': this.dataForm.languageDefault,
'site': this.dataForm.site,
'userDisplay': this.dataForm.userDisplay,
'workShopId': this.dataForm.workShopId,
})
}).then(({data}) => {
if (data && data.code === 0) {

6
src/views/modules/sys/user.vue

@ -76,6 +76,12 @@
width="180"
:label="buttons.createTime||'创建时间'">
</el-table-column>
<el-table-column
prop="workShopName"
header-align="center"
align="center"
:label="'车间'">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"

Loading…
Cancel
Save