Commit 6fb76f6c authored by 徐来柯's avatar 徐来柯

update

parent 5d38899c
...@@ -123,8 +123,8 @@ export default { ...@@ -123,8 +123,8 @@ export default {
name: '' name: ''
}, },
{ {
id: '生产计划编号', id: '生产排程编号',
name: '生产计划编号' name: '生产排程编号'
}, },
{ {
id: '产品编号', id: '产品编号',
...@@ -138,17 +138,21 @@ export default { ...@@ -138,17 +138,21 @@ export default {
id: '产品描述', id: '产品描述',
name: '产品描述' name: '产品描述'
}, },
{
id: '单位',
name: '单位'
},
{ {
id: '计划交货日期', id: '计划交货日期',
name: '计划交货日期' name: '计划交货日期'
}, },
{ {
id: '实际工日期', id: '实际工日期',
name: '实际工日期' name: '实际工日期'
}, },
{ {
id: '生产计划状态', id: '实际完工日期',
name: '生产计划状态' name: '实际完工日期'
}, },
], ],
deletetext: '', deletetext: '',
...@@ -182,6 +186,7 @@ export default { ...@@ -182,6 +186,7 @@ export default {
this.AllTableData = res.data.data.map(item => ({ this.AllTableData = res.data.data.map(item => ({
...item, ...item,
DeliveryDt: item.DeliveryDt ? this.$moment(item.DeliveryDt).format('YYYY-MM-DD HH:mm:ss') : ' ', DeliveryDt: item.DeliveryDt ? this.$moment(item.DeliveryDt).format('YYYY-MM-DD HH:mm:ss') : ' ',
StartDt: item.StartDt ? this.$moment(item.StartDt).format('YYYY-MM-DD HH:mm:ss') : ' ',
EndDt: item.EndDt ? this.$moment(item.EndDt ).format('YYYY-MM-DD HH:mm:ss') : ' ' EndDt: item.EndDt ? this.$moment(item.EndDt ).format('YYYY-MM-DD HH:mm:ss') : ' '
})) }))
// 克隆一份tableData数据 // 克隆一份tableData数据
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
label="计划交货日期" label="计划交货日期"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
prop="DeliveryDt" prop="DeliveryDt"
width="140"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="排程数量" label="排程数量"
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
label="操作员" label="操作员"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
prop="UserName" prop="UserName"
width="80"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="生产排程状态" label="生产排程状态"
...@@ -268,12 +268,7 @@ export default { ...@@ -268,12 +268,7 @@ export default {
this.cancelFun() this.cancelFun()
} }
this.deletetext = res.data.msg this.deletetext = res.data.msg
var postData = { var postData = this.resetData()
argKeyWord: $this.$refs.head.input,
argWhere: $this.$refs.head.argWhere,
Stime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
}
$this.query(postData) $this.query(postData)
}).catch(function(err){ }).catch(function(err){
console.log('err',err) console.log('err',err)
...@@ -283,6 +278,12 @@ export default { ...@@ -283,6 +278,12 @@ export default {
//添加 //添加
addFun(value){ addFun(value){
let data = value let data = value
if (value.LinVar.trim() === '') {
this.typeV = '5'
this.deleteShow = true
this.deletetext = '请先关联变量'
return
}
this.$axios({ this.$axios({
method:"post", method:"post",
url:`/api/Schedule/Schedule_CheckWindowSave`,//检验是否可添加 url:`/api/Schedule/Schedule_CheckWindowSave`,//检验是否可添加
...@@ -319,17 +320,20 @@ export default { ...@@ -319,17 +320,20 @@ export default {
this.cancelFun() this.cancelFun()
} }
this.deletetext = res.data.msg this.deletetext = res.data.msg
var postData = { var postData = this.resetData()
argKeyWord: $this.$refs.head.input,
argWhere: $this.$refs.head.argWhere,
Stime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
}
$this.query(postData) $this.query(postData)
}).catch(function(err){ }).catch(function(err){
console.log('err',err) console.log('err',err)
}) })
},
resetData () {
return {
argKeyWord: this.$refs.head.input,
argWhere: this.$refs.head.argWhere,
Stime: this.$refs.head.dateValue ? this.$moment(this.$refs.head.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: this.$refs.head.dateValue ? this.$moment(this.$refs.head.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
}
}, },
//查询值 //查询值
textFun(text){ textFun(text){
...@@ -516,13 +520,8 @@ export default { ...@@ -516,13 +520,8 @@ export default {
method:"post", method:"post",
url:`/api/Schedule/Schedule_Stop?argID=${argID}`, url:`/api/Schedule/Schedule_Stop?argID=${argID}`,
}).then((res)=>{ }).then((res)=>{
var postData = { var postData = this.resetData()
argKeyWord: $this.$refs.head.input, $this.query(postData)
argWhere: $this.$refs.head.argWhere,
Stime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
}
$this.query(postData)
this.pageFun(this.PageIndex) this.pageFun(this.PageIndex)
}) })
}, },
...@@ -602,13 +601,8 @@ export default { ...@@ -602,13 +601,8 @@ export default {
method:"post", method:"post",
url:`/api/Schedule/Schedule_Download?argID=${argID}`, url:`/api/Schedule/Schedule_Download?argID=${argID}`,
}).then((res)=>{ }).then((res)=>{
var postData = { var postData = this.resetData()
argKeyWord: $this.$refs.head.input, $this.query(postData)
argWhere: $this.$refs.head.argWhere,
Stime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
}
$this.query(postData)
this.pageFun(this.PageIndex) this.pageFun(this.PageIndex)
}).catch(function(err){ }).catch(function(err){
console.log('err',err) console.log('err',err)
...@@ -673,12 +667,7 @@ export default { ...@@ -673,12 +667,7 @@ export default {
method:"post", method:"post",
url:`/api/Schedule/Schedule_Move?argID1=${id1}&&argID2=${id2}`, url:`/api/Schedule/Schedule_Move?argID1=${id1}&&argID2=${id2}`,
}).then((res)=>{ }).then((res)=>{
var postData = { var postData = this.resetData()
argKeyWord: $this.$refs.head.input,
argWhere: $this.$refs.head.argWhere,
Stime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: $this.$refs.head.dateValue ? $this.moment(this.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
}
$this.query(postData) $this.query(postData)
}).catch((err) =>{ }).catch((err) =>{
this.typeV = '7' this.typeV = '7'
......
...@@ -22,11 +22,27 @@ ...@@ -22,11 +22,27 @@
<span>{{name}}编号:</span> <span>{{name}}编号:</span>
<input v-model="DevNuber" class="nameipt" /> <input v-model="DevNuber" class="nameipt" />
</div> </div>
<div v-if="type === '2'" class="name" style="margin-top:10px">
<span>{{name}}编号:</span>
<input v-model="CellNuber" class="nameipt" />
</div>
<div v-if="type === '3'" class="name" style="margin-top: -15px">
<span>{{name}}编号:</span>
<input v-model="Nuber" class="nameipt" />
</div>
<div v-if="type != 6" class="name" style="margin-top:10px"> <div v-if="type != 6" class="name" style="margin-top:10px">
<span>{{name}}名称:</span> <span>{{name}}名称:</span>
<input v-model="nameV" class="nameipt" /> <input v-model="nameV" class="nameipt" />
</div> </div>
<div v-if="type ==='3'" class="name" style="margin-top:10px">
<span>{{name}}描述:</span>
<input v-model="Desc" class="nameipt" />
</div>
<div v-if="type == 6" class="name"> <div v-if="type == 6" class="name">
<span>生产计划编号:</span> <span>生产计划编号:</span>
<span @click="openRelate('VPID')" class="relateBtn plan_relateBtn" >选 择</span> <span @click="openRelate('VPID')" class="relateBtn plan_relateBtn" >选 择</span>
...@@ -208,6 +224,8 @@ export default { ...@@ -208,6 +224,8 @@ export default {
numberV2:'',//编号2 numberV2:'',//编号2
modelV:'',//型号 modelV:'',//型号
describeV:'',//描述 describeV:'',//描述
Nuber: '',
Desc: '',
prodescribe: '', //type === 5 产品描述 prodescribe: '', //type === 5 产品描述
prounit: '', //type ===5 单位 prounit: '', //type ===5 单位
// num:1, //数量 // num:1, //数量
...@@ -457,6 +475,8 @@ export default { ...@@ -457,6 +475,8 @@ export default {
this.DevNuber = this.data.DevNuber this.DevNuber = this.data.DevNuber
this.workValue = this.data.CellName this.workValue = this.data.CellName
this.CellNuber = this.data.CellNuber this.CellNuber = this.data.CellNuber
this.Nuber = this.data.Nuber
this.Desc = this.data.Desc
this.Company = this.data.Company this.Company = this.data.Company
this.lineValue = this.data.LineName this.lineValue = this.data.LineName
this.numberV = this.data.MID this.numberV = this.data.MID
...@@ -533,6 +553,8 @@ export default { ...@@ -533,6 +553,8 @@ export default {
}else if(this.type==3){ }else if(this.type==3){
this.valuedata={ this.valuedata={
Name:this.nameV, Name:this.nameV,
Nuber: this.Nuber,
Desc: this.Desc,
data:this.tableDataList data:this.tableDataList
} }
}else if(this.type==5){ }else if(this.type==5){
...@@ -892,8 +914,8 @@ export default { ...@@ -892,8 +914,8 @@ export default {
margin: auto; margin: auto;
line-height: 40px; line-height: 40px;
overflow: hidden; overflow: hidden;
margin-top:35px; margin-top: 18px;
margin-bottom:22px; margin-bottom:18px;
} }
.conterFool_middle{ .conterFool_middle{
width: 70%; width: 70%;
......
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
<el-table-column <el-table-column
label="操作" label="操作"
show-overflow-tooltip> show-overflow-tooltip
width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="table_edit" @click="editFun(scope.row)" > <div class="table_edit" @click="editFun(scope.row)" >
<div class="edit_img"></div> <div class="edit_img"></div>
...@@ -195,6 +196,8 @@ export default { ...@@ -195,6 +196,8 @@ export default {
ID:value.ID, ID:value.ID,
Name:value.Name, Name:value.Name,
CellList:'', CellList:'',
Nuber: value.Nuber,
Desc: value.Desc,
UpdateUserName:value.UpdateUserName, UpdateUserName:value.UpdateUserName,
UpdateTime:value.CreateTime, UpdateTime:value.CreateTime,
Cells:[], Cells:[],
...@@ -234,6 +237,8 @@ export default { ...@@ -234,6 +237,8 @@ export default {
ID:value.ID, ID:value.ID,
Name:value.Name, Name:value.Name,
CellList:'', CellList:'',
Nuber: value.Nuber,
Desc: value.Desc,
UpdateUserName:value.UpdateUserName, UpdateUserName:value.UpdateUserName,
UpdateTime:value.CreateTime, UpdateTime:value.CreateTime,
Cells:[], Cells:[],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment