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

update

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