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

update

parent 2cfb4e4a
......@@ -16,7 +16,7 @@
<div class="centen_row">
<span class="centen_row_text">生产计划编号:</span>
<div class="centen_row_select">
<el-select @change="orderFun()" v-model="PlanID" placeholder="请选择">
<el-select @change="orderFun(PlanID)" v-model="PlanID" placeholder="请选择">
<el-option
v-for="item in planArr"
:key="item.ID"
......@@ -29,7 +29,7 @@
<div class="centen_row" style="margin-top: 10px" >
<span class="centen_row_text" style="margin-left: 30px" >线体编号:</span>
<div class="centen_row_select">
<el-select @change="orderFun()" v-model="LineID" placeholder="请选择">
<el-select v-model="LineID" placeholder="请选择">
<el-option
v-for="item in lineList"
:key="item.Nuber"
......@@ -173,33 +173,44 @@ export default {
this.$emit('openRelate', type)
},
//订单选择
orderFun(){
this.num = 0
this.dataFun()
if(this.typePop == 'add'){
this.dataFun()
orderFun(PlanID){
// this.num = 0
// this.dataFun()
// if(this.typePop == 'add'){
// this.dataFun()
}else{
//编辑
this.dataFun()
this.valuedata.StartDt = this.editDataArr.StartDt
this.valuedata.EndDt = this.editDataArr.EndDt
this.valuedata.Status =this.editDataArr.Status
this.valuedata.SID = this.editDataArr.SID
this.valuedata.ID = this.editDataArr.ID
this.valuedata.NO = this.editDataArr.NO
}
// }else{
// //编辑
// this.dataFun()
// this.valuedata.StartDt = this.editDataArr.StartDt
// this.valuedata.EndDt = this.editDataArr.EndDt
// this.valuedata.Status =this.editDataArr.Status
// this.valuedata.SID = this.editDataArr.SID
// this.valuedata.ID = this.editDataArr.ID
// this.valuedata.NO = this.editDataArr.NO
// }
// this.$axios({
// method:"post",
// url:`/api/Schedule/Schedule_WindowGetScheduleQuantity`,
// data:this.valuedata
// }).then((res)=>{
// console.log('aa==>',res)
// this.num = res.data.data
// }).catch(function(err){
// console.log('err',err)
// })
// console.log('aaww==>',this.valuedata)
this.$axios({
method:"post",
url:`/api/Schedule/Schedule_WindowGetScheduleQuantity`,
data:this.valuedata
}).then((res)=>{
console.log('aa==>',res)
this.num = res.data.data
}).catch(function(err){
console.log('err',err)
})
console.log('aaww==>',this.valuedata)
method: 'post',
url: `/api/Schedule/Schedule_WindowGetScheduleQuantity`,
data: { PlanID }
}).then(res => {
if (res.data.code === 0) {
this.Quantity = res.data.data
} else {
this.Quantity = ''
}
})
},
//线体
queryLine(){
......
......@@ -34,7 +34,7 @@ module.exports = {
'/api': {
//这里最好有一个 /
// 192.168.1.237 192.168.1.125
target: 'http://192.168.1.125:8802', // 后台接口域名
target: 'http://192.168.1.125:8803', // 后台接口域名
ws: true, //如果要代理 websockets,配置这个参数
secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true, //是否跨域
......
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