Browse Source

0823更新

master
ruanqi 4 years ago
parent
commit
2c380d8e27
  1. 1
      src/assets/scss/global.scss
  2. 36
      src/views/modules/base/calendar.vue
  3. 2
      src/views/modules/base/maintainProductRouting.vue
  4. 42
      src/views/modules/base/workCenter.vue
  5. 38
      src/views/modules/pallet/pallet.vue
  6. 62
      src/views/modules/production/dailyPlan.vue

1
src/assets/scss/global.scss

@ -353,6 +353,7 @@ a:hover{
.inputTable input.el-input__inner {
height: 14px !important;
border: 0px !important;
}
.inputTable .el-input--medium .el-input__icon {

36
src/views/modules/base/calendar.vue

@ -72,7 +72,7 @@
<el-input v-model="newCalendarData.site" :disabled="calendarModelDisableFlag" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'日历编号:'">
<el-input v-model="newCalendarData.calendarId" :disabled="calendarModelDisableFlag" style="width: 130px" onblur="this.value=this.value.toUpperCase()"></el-input>
<el-input v-model="newCalendarData.calendarId" :disabled="calendarModelDisableFlag" style="width: 130px" onkeyup="value=value.replace(/[^\w]/g,'')"></el-input>
</el-form-item>
<el-form-item :label="'日历描述:'">
<el-input v-model="newCalendarData.calendarDesc" style="width: 130px"></el-input>
@ -410,6 +410,7 @@
}from "@/api/base.js"
export default {
name: "calendar",
data () {
return {
newShiftData:{
@ -883,7 +884,7 @@
columnProp: "site",
headerAlign: "center",
align: "left",
columnLabel: "工厂编",
columnLabel: "工厂编",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -968,6 +969,18 @@
if(localStorage.getItem('calendar')!=undefined){
this.jump();
}
},
newCalendarData: {
deep: true,
handler: function (newV, oldV) {
this.newCalendarData.calendarId = this.newCalendarData.calendarId.toUpperCase()
}
},
searchData: {
deep: true,
handler: function (newV, oldV) {
this.searchData.calendarId = this.searchData.calendarId.toUpperCase()
}
}
},
methods: {
@ -1010,6 +1023,25 @@
this.calendarModelFlag=true;
},
calendarSave(){
if(this.newCalendarData.site==''||this.newCalendarData.site==null){
this.$alert("请输入工厂编号", '错误', {
confirmButtonText: '确定'
})
return false;
}
if(this.newCalendarData.calendarId==''||this.newCalendarData.calendarId==null){
this.$alert("请输入日历编号", '错误', {
confirmButtonText: '确定'
})
return false;
}
if(this.newCalendarData.calendarId.length>4){
this.$alert("日历编号最长4个字符!", '错误', {
confirmButtonText: '确定'
})
return false;
}
saveCalendar(this.newCalendarData).then(({data}) => {
if (data.code == 200) {
this.getData()

2
src/views/modules/base/maintainProductRouting.vue

@ -786,7 +786,7 @@
columnProp: "site",
headerAlign: "center",
align: "left",
columnLabel: "工厂编",
columnLabel: "工厂编",
columnHidden: false,
columnImage: false,
columnSortable: false,

42
src/views/modules/base/workCenter.vue

@ -40,7 +40,7 @@
:before-finish="finishDownload2"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ buttons.download }}
{{ buttons.download2 }}
</download-excel>
</el-form-item>
</el-form>
@ -108,7 +108,7 @@
<el-button @click="addResource()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'新增'}}</el-button>
<el-button @click="editResource()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'编辑'}}</el-button>
<el-button @click="deleteCalendar()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'删除'}}</el-button>
<el-button @click="setResource()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'设为虚拟/常规机台'}}</el-button>
<!-- <el-button @click="setResource()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'设为虚拟/常规机台'}}</el-button>-->
</el-form>
<el-table
:height="height"
@ -798,24 +798,24 @@
fixed: false,
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 6029,
serialNumber: '6029Table2VirturlFlag',
tableId: "6029Table2",
tableName: "加工中心涉及机台表",
columnProp: "virturlFlag",
headerAlign: "center",
align: "left",
columnLabel: "虚拟机台",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false,
columnWidth: 80
}
// {
// userId: this.$store.state.user.name,
// functionId: 6029,
// serialNumber: '6029Table2VirturlFlag',
// tableId: "6029Table2",
// tableName: "",
// columnProp: "virturlFlag",
// headerAlign: "center",
// align: "left",
// columnLabel: "",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: false,
// columnWidth: 80
// }
],
columnList3: [
{
@ -1229,7 +1229,7 @@
return false;
}
if(this.modelData2.site==''||this.modelData2.site==null){
this.$alert("请输入工厂编!",'错误',{
this.$alert("请输入工厂编!",'错误',{
confirmButtonText:'确定'
})
return false;

38
src/views/modules/pallet/pallet.vue

@ -4,6 +4,24 @@
<el-form-item label="栈板编码">
<el-input v-model="searchData.palletNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item label="录入日期">
<el-date-picker
style="width: 120px"
v-model="searchData.date1"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="至">
<el-date-picker
style="width: 120px"
v-model="searchData.date2"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="是否可用">
<el-select filterable v-model="searchData.status" style="width: 120px">
<el-option label="是" value="('空置','已装货')"></el-option>
@ -90,10 +108,11 @@
</el-form-item>
<el-form-item label="栈板状态">
<el-select filterable v-model="palletData.status" :disabled="palletSelectFlag" style="width: 120px">
<el-option label="空置" value="空置"></el-option>
<el-option label="已装货" value="已装货"></el-option>
<el-option label="已入库" value="已入库"></el-option>
<el-option label="已出库" value="已出库"></el-option>
<!-- <el-option label="空置" value="空置"></el-option>-->
<!-- <el-option label="已装货" value="已装货"></el-option>-->
<!-- <el-option label="已入库" value="已入库"></el-option>-->
<!-- <el-option label="已出库" value="已出库"></el-option>-->
<el-option label="报废" :value="addStatus"></el-option>
<el-option label="报废" value="报废"></el-option>
</el-select>
</el-form-item>
@ -135,7 +154,10 @@
searchData:{
palletNo:'',
status:"('空置','已装货')",
date1:'',
date2:'',
},
addStatus:'',
palletData:{
palletNo:'',
palletDesc:'',
@ -180,6 +202,7 @@
this.palletData.site=this.$store.state.user.site;
this.palletData.updateBy=this.$store.state.user.name;
this.palletData.area=row.area;
this.addStatus=row.status;
this.palletSelectFlag=false;
this.palletInputFlag=true;
this.palletModalFlag=true;
@ -227,6 +250,7 @@
})
return false
}
this.addQty='';
this.addsModalFlag=true;
},
@ -237,6 +261,12 @@
})
return false
}
if(this.addQty>200){
this.$alert('批量新增数量上限为200!', '错误', {
confirmButtonText: '确定'
})
return false
}
let inData={
qty:this.addQty,
area:this.palletData.area,

62
src/views/modules/production/dailyPlan.vue

@ -51,11 +51,12 @@
<fieldset class="customer-field" style="margin-left: 680px; margin-top: 0px; width: 135px;height: 108px" >
<legend>排序</legend><br>
<el-form :inline="true" style="margin-top: -10px; margin-bottom: 15px;" label-position="top" label-width="100px" >
<el-form-item :label="''" style="margin-bottom: 5px;margin-top: 8px">
<el-form-item :label="''" style="margin-bottom: 5px;margin-top: 0px">
<el-radio-group v-model="searchData.sortField">
<el-radio label="order by needDate">要求完工日期</el-radio>
<el-radio label="order by orderNo">订单号</el-radio>
<el-radio label="order by partNo">产品编码</el-radio>
<el-radio label="order by PartDesc">产品名称</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
@ -124,15 +125,15 @@
<el-table-column
prop="scheduleDate"
header-align="center"
align="left"
min-width="50"
align="center"
min-width="60"
label="日期">
</el-table-column>
<el-table-column
prop="info"
header-align="center"
align="left"
min-width="200"
min-width="180"
label="休息时间览表">
</el-table-column>
</el-table>
@ -172,7 +173,7 @@
<el-table-column
prop="itemNo"
header-align="center"
align="left"
align="right"
min-width="60"
label="工序号">
</el-table-column>
@ -341,7 +342,7 @@
<el-table-column
prop="timeRequired"
header-align="center"
align="left"
align="right"
min-width="100"
label="计划时间">
</el-table-column>
@ -575,7 +576,7 @@
<el-button type="primary" @click="scheduledModalFlag = false">关闭</el-button>
</el-form-item>
</el-form>
<div class="inputTable">
<div class="inputTable ">
<el-table
height="200"
:data="schedulingModalTableData"
@ -606,7 +607,7 @@
min-width="80"
label="排产数量">
<template slot-scope="scope">
<el-input v-model="scope.row.scheduleQty" type="number" @change="changeSum" style="width:98%"></el-input>
<el-input v-model="scope.row.scheduleQty" type="number" @change="changeSum" placeholder="请输入数量" style="width:98%"></el-input>
</template>
</el-table-column>
<el-table-column
@ -655,9 +656,9 @@
<!-- <el-button type="primary" :disabled="bannersBut" @click="saveBanners()">确定</el-button>-->
</el-footer>
</el-dialog>
<el-dialog title="查看负荷" :close-on-click-modal="false" v-drag :visible.sync="hasScheduledModalFlag" width="400px">
<el-dialog title="查看负荷" :close-on-click-modal="false" v-drag :visible.sync="hasScheduledModalFlag" width="650px">
<el-table
height="300"
height="260"
:data="hasScheduledData"
border
style="width: 100%">
@ -671,10 +672,24 @@
<el-table-column
prop="itemNo"
header-align="center"
align="left"
align="right"
min-width="80"
label="工序号">
</el-table-column>
<el-table-column
prop="operationDesc"
header-align="center"
align="left"
min-width="100"
label="工序名称">
</el-table-column>
<el-table-column
prop="timeRequired"
header-align="center"
align="left"
min-width="100"
label="计划时间">
</el-table-column>
<el-table-column
prop="qtyRequired"
header-align="center"
@ -690,6 +705,10 @@
label="班次编码">
</el-table-column>
</el-table>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: 0px" class="inputTable">
<label style="font-size: 11px">合计-计划时间:</label>
<el-input v-model="sumTime" readonly style="width: 100px;text-align: right;border: 0px"></el-input>
</el-form>
</el-dialog>
<el-dialog title="修改顺序" :close-on-click-modal="false" v-drag :visible.sync="changeModalFlag" width="700px">
<div class="inputTable">
@ -718,7 +737,7 @@
<el-table-column
prop="itemNo"
header-align="center"
align="left"
align="right"
min-width="80"
label="工序号">
</el-table-column>
@ -775,6 +794,7 @@
},
data () {
return {
sumTime:'',
shiftNoList: [],
tagNo:'',
tagNo2:'',
@ -786,7 +806,7 @@
partNo:'',
date3:'',
date4:'',
sortField:'',
sortField:'order by needDate',
scheduleDate:new Date(),
site:this.$store.state.user.site,
workCenterNo:'',
@ -836,6 +856,7 @@
getShiftData().then(({data}) => {
let list = data.rows
for (let i = 0; i < list.length; i++) {
this.allShiftNoList=[];
let resultData = {
value: list[i].shiftno,
label: list[i].shiftno+'('+list[i].shiftdesc+')'
@ -975,7 +996,7 @@
})
return false
}
this.schedulingModalTableData.push({ scheduleQty:0,
this.schedulingModalTableData.push({ scheduleQty:'',
resourceId:this.schedulingModalData.resourceId,
shiftNo:this.schedulingModalData.shiftNo,
scheduleDate:null,
@ -1053,13 +1074,22 @@
return false
}
let inData={
site:row.site,
site:this.schedulingModalData.site,
sResourceID:row.resourceId,
sScheduledDate:row.scheduleDate,
sShiftNo:row.shiftNo,
}
getHasScheduledData(inData).then(({data}) => {
this.hasScheduledData = data.rows
let number=0;
if(this.hasScheduledData.length>0){
for (let i = 0; i <this.hasScheduledData.length ; i++) {
if(this.hasScheduledData[i].timeRequired!=null&&this.hasScheduledData[i].timeRequired!=''){
number+=Number(this.hasScheduledData[i].timeRequired)
}
}
}
this.sumTime=number;
})
this.hasScheduledModalFlag=true;
},
@ -1122,6 +1152,7 @@
scheduleDate:this.searchData.scheduleDate,
scheduleTime:this.searchData.scheduleDate,
userId:this.$store.state.user.name,
shiftNo:this.searchData.shiftNo,
}
scheduleOne(inData).then(({data}) => {
if(data.code===0){
@ -1192,6 +1223,7 @@
qtyToSchedule:this.schedulingModalTableData[i].scheduleQty,
scheduleDate:this.schedulingModalTableData[i].scheduleDate,
userId:this.$store.state.user.name,
shiftNo:this.schedulingModalTableData[i].shiftNo,
}
inList.push(thisData);
}

Loading…
Cancel
Save