Commit b8d5afd5 authored by 徐来柯's avatar 徐来柯

update

parent fb397017
This diff is collapsed.
...@@ -199,7 +199,6 @@ export default { ...@@ -199,7 +199,6 @@ export default {
}, },
// 保存变量 // 保存变量
saveData (data, type) { saveData (data, type) {
debugger
this.$refs.linePop[type] = data.Name this.$refs.linePop[type] = data.Name
this.relateShow = false this.relateShow = false
}, },
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<div class="centen_row"> <div class="centen_row">
<span class="centen_row_text">生产计划编号:</span> <span class="centen_row_text">生产计划编号:</span>
<div class="centen_row_select"> <div class="centen_row_select">
<el-select @change="orderFun()" v-model="value" placeholder="请选择"> <el-select @change="orderFun()" v-model="PlanID" placeholder="请选择">
<el-option <el-option
v-for="item in planArr" v-for="item in planArr"
:key="item.PlanType" :key="item.ID"
:label="item.PlanType" :label="item.ProductName"
:value="item.PlanType"> :value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
<div class="centen_row" style="margin-top: 10px" > <div class="centen_row" style="margin-top: 10px" >
<span class="centen_row_text" style="margin-left: 30px" >线体编号:</span> <span class="centen_row_text" style="margin-left: 30px" >线体编号:</span>
<div class="centen_row_select"> <div class="centen_row_select">
<el-select @change="orderFun()" v-model="value" placeholder="请选择"> <el-select @change="orderFun()" v-model="LineID" placeholder="请选择">
<el-option <el-option
v-for="item in planArr" v-for="item in lineList"
:key="item.PlanType" :key="item.Name"
:label="item.PlanType" :label="item.Name"
:value="item.PlanType"> :value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
<div class="centen_row" style="margin-top:10px"> <div class="centen_row" style="margin-top:10px">
<span class="centen_row_text" style="margin-left: 30px" >操作员:</span> <span class="centen_row_text" style="margin-left: 30px" >操作员:</span>
<div class="centen_row_select"> <div class="centen_row_select">
<el-select v-model="value1" placeholder="请选择"> <el-select v-model="UserName" placeholder="请选择">
<el-option <el-option
v-for="item in LineArr" v-for="item in renArr"
:key="item.LineName" :key="item"
:label="item.LineName" :label="item"
:value="item.LineName"> :value="item">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
...@@ -55,20 +55,14 @@ ...@@ -55,20 +55,14 @@
<div class="centen_row" style="margin-top:10px"> <div class="centen_row" style="margin-top:10px">
<span class="centen_row_text" style="margin-left: 30px" >排程数量:</span> <span class="centen_row_text" style="margin-left: 30px" >排程数量:</span>
<div class="centen_row_select"> <div class="centen_row_select">
<el-select v-model="value3" placeholder="请选择"> <input v-model="Quantity" class="schedule_input"/>
<el-option
v-for="item in renArr"
:key="item.UserName"
:label="item.UserName"
:value="item.UserName">
</el-option>
</el-select>
</div> </div>
</div> </div>
<div class="centen_row" style="margin-top:10px"> <div class="centen_row" style="margin-top:10px">
<span class="centen_row_text" >线体状态信号:</span> <span class="centen_row_text" >线体状态信号:</span>
<span @click="openRelate" class="relateBtn" >。 。 。</span> <input v-model="LinVar" disabled class="line_input"/>
<span @click="openRelate('LinVar')" class="relateBtn" >选 择</span>
</div> </div>
</div> </div>
...@@ -84,18 +78,22 @@ ...@@ -84,18 +78,22 @@
export default { export default {
data() { data() {
return { return {
value: '', value: '',
value1:'', value1:'',
value3:'', value3:'',
num:'', num:'',
titleText:'', titleText:'',
lineList: [],
planArr:[], planArr:[],
LineArr:[], LineArr:[],
renArr:[], renArr:[],
valuedata:[], valuedata:[],
editDataArr:[] editDataArr:[],
LinVar: '',
PlanID: '',
LineID: '',
UserName: '',
Quantity: '',
} }
}, },
props:['typePop','data'], props:['typePop','data'],
...@@ -110,10 +108,11 @@ export default { ...@@ -110,10 +108,11 @@ export default {
url:`/api/Schedule/Schedule_WindowQuery?argID=${id}`, url:`/api/Schedule/Schedule_WindowQuery?argID=${id}`,
}).then((res)=>{ }).then((res)=>{
this.editDataArr = res.data.data this.editDataArr = res.data.data
this.value = res.data.data.PlanType this.PlanID = res.data.data.PlanID
this.value1 = res.data.data.LineName this.LineID = res.data.data.LineID
this.value3 = res.data.data.UserName this.UserName = res.data.data.UserName
this.num = res.data.data.Quantity this.Quantity = res.data.data.Quantity
this.LinVar = res.data.data.LinVar
}).catch(function(err){ }).catch(function(err){
console.log('err',err) console.log('err',err)
...@@ -124,6 +123,7 @@ export default { ...@@ -124,6 +123,7 @@ export default {
this.queryPlan() this.queryPlan()
this.queryLine() this.queryLine()
this.queryRen() this.queryRen()
this.getLines()
}, },
directives: { directives: {
drag: function(el) { drag: function(el) {
...@@ -152,31 +152,25 @@ export default { ...@@ -152,31 +152,25 @@ export default {
methods:{ methods:{
//查询生产订单 //查询生产订单
queryPlan(){ queryPlan(){
var value = ''
var id = '00000000-0000-0000-0000-000000000000'
this.$axios({ this.$axios({
method:"post", method:"post",
url:`/api/Plan/Plan_Query?argKeyWord=${value}&&argID=${id}`, url:`/api/Plan/Plan_Query?argKeyWord&argWhere&Stime&Etime`,
}).then((res)=>{ }).then((res)=>{
this.planArr = [] this.planArr = res.data.data
for(let i=0;i<res.data.data.length;i++){
var value = {
ProductID:res.data.data[i].ProductID,//产品id
ProductName:res.data.data[i].ProductName,//产品名称
ProductType:res.data.data[i].ProductType,//产品型号
PlanID:res.data.data[i].ID,//计划id
PlanType:res.data.data[i].PID,//订单编号
Status:res.data.data[i].Status
}
this.planArr.push(value)
}
}).catch(function(err){ }).catch(function(err){
console.log('err',err) console.log('err',err)
}) })
}, },
getLines () {
openRelate () { this.$axios({
this.$emit('openRelate') method:"post",
url:`/api/MaterialDelivery/MaterialDelivery_LinesData`,
}).then((res)=>{
this.lineList = res.data.data
})
},
openRelate (type) {
this.$emit('openRelate', type)
}, },
//订单选择 //订单选择
orderFun(){ orderFun(){
...@@ -232,14 +226,7 @@ export default { ...@@ -232,14 +226,7 @@ export default {
method:"post", method:"post",
url:`/api/Schedule/Schedule_WindowUserQuery`, url:`/api/Schedule/Schedule_WindowUserQuery`,
}).then((res)=>{ }).then((res)=>{
this.renArr = [] this.renArr = res.data.data
for(let i=0;i<res.data.data.length;i++){
var value = {
ID:res.data.data[i],
UserName:res.data.data[i],
}
this.renArr.push(value)
}
}).catch(function(err){ }).catch(function(err){
console.log('err',err) console.log('err',err)
}) })
...@@ -286,10 +273,13 @@ export default { ...@@ -286,10 +273,13 @@ export default {
NO:'1', NO:'1',
ID:id, ID:id,
SID:timeid, SID:timeid,
UserName:this.value3, Quantity:this.Quantity,
UserName:this.UserName,
LineID: this.LineID,
PlanID: this.PlanID,
LinVar: this.LinVar,
StartDt:'', StartDt:'',
EndDt:'', EndDt:'',
Quantity:this.num
} }
for(let i=0;i<this.planArr.length;i++){ for(let i=0;i<this.planArr.length;i++){
if(this.value == this.planArr[i].PlanType){ if(this.value == this.planArr[i].PlanType){
...@@ -330,6 +320,15 @@ export default { ...@@ -330,6 +320,15 @@ export default {
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.line_input {
height: 40px;
width: 214px;
margin-left: 32px;
}
.schedule_input {
height: 40px;
width: 310px
}
.scPopBox{ .scPopBox{
width:820px; width:820px;
height:550px; height:550px;
...@@ -373,7 +372,7 @@ export default { ...@@ -373,7 +372,7 @@ export default {
width: 75px; width: 75px;
height: 40px; height: 40px;
display: inline-block; display: inline-block;
margin-left: 32px; margin-left: 20px;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
cursor: pointer; cursor: pointer;
...@@ -386,7 +385,6 @@ export default { ...@@ -386,7 +385,6 @@ export default {
font-family:Microsoft YaHei; font-family:Microsoft YaHei;
font-weight:400; font-weight:400;
color:rgba(51,51,51,1); color:rgba(51,51,51,1);
margin-right: 20px;
} }
.popCenten{ .popCenten{
width:737px; width:737px;
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<el-input type="text" @input="inputchargeFun()" v-model="input" :placeholder="placeText"></el-input> <el-input type="text" @input="inputchargeFun()" v-model="input" :placeholder="placeText"></el-input>
</div> </div>
<div> <div>
<div v-if="type=== '10'" class="bottom" @click="searchQuery" >查询</div> <div v-if="type=== '10' || type === '8'" class="bottom" @click="searchQuery" >查询</div>
<div class="bottom" v-else @click="query()">查询</div> <div class="bottom" v-else @click="query()">查询</div>
</div> </div>
<div v-if="type == 9" class="add xy"> <div v-if="type == 9" class="add xy">
...@@ -90,14 +90,14 @@ export default { ...@@ -90,14 +90,14 @@ export default {
}, },
props:['type'], props:['type'],
created(){ created(){
if(this.type=='6' || this.type=='8'){ if(this.type=='6'){
this.placeText = '请输入关键字' this.placeText = '请输入关键字'
this.headText='产品名称' this.headText='产品名称'
this.queryProduct() this.queryProduct()
}else if(this.type==9){ }else if(this.type==9){
this.placeText = '请输入关键字' this.placeText = '请输入关键字'
this.headText='设备名称' this.headText='设备名称'
}else if(this.type==='10' || this.type ==='11' || this.type === '12'){ }else if(this.type==='10' || this.type ==='11' || this.type === '12' || this.type=='8'){
this.placeText = '请输入关键字' this.placeText = '请输入关键字'
if (this.type==='10') { if (this.type==='10') {
this.productNameArr = [ this.productNameArr = [
...@@ -149,6 +149,41 @@ export default { ...@@ -149,6 +149,41 @@ export default {
name: '线体名称' name: '线体名称'
} }
] ]
} else if (this.type === '8') {
this.productNameArr = [
{
id: '不限',
name: ' '
},
{
id: '生产排程编号',
name: '生产排程编号'
},
{
id: '产品编号',
name: '产品编号'
},
{
id: '产品名称',
name: '产品名称'
},
{
id: '产品描述',
name: '产品描述'
},
{
id: '计划交货日期',
name: '计划交货日期'
},
{
id: '操作员',
name: '操作员'
},
{
id: '生产排程状态',
name: '生产排程状态'
}
]
} }
}else{ }else{
this.placeText = '请输入名称' this.placeText = '请输入名称'
......
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
return return
} }
} }
if (this.relateType === 'VStatus') { if (this.relateType === 'VStatus' || this.relateType === 'LinVar' ) {
if (this.currentRow.DateType.indexOf('二进制') !== -1) { if (this.currentRow.DateType.indexOf('二进制') !== -1) {
return this.$emit('conserve', this.currentRow, this.relateType) return this.$emit('conserve', this.currentRow, this.relateType)
} else { } else {
......
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