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

update

parent 22da3240
......@@ -8,7 +8,7 @@
<template>
<div class="lineBox">
<div class="LineCenten">
<Head type="10"></Head>
<Head type="10" ref="head" @searchQuery="query"></Head>
<div class="conterFool_middle" style="width:98%;margin:auto">
<el-table
border
......@@ -33,13 +33,13 @@
label="生产计划编号"
:show-overflow-tooltip="true"
width="185"
prop="PlanNO">
prop="PID">
</el-table-column>
<el-table-column
label="产品编号"
:show-overflow-tooltip="true"
width="185"
prop="Num">
prop="ProNumber">
</el-table-column>
<el-table-column
label="产品名称"
......@@ -50,13 +50,13 @@
<el-table-column
label="产品描述"
:show-overflow-tooltip="true"
prop="describe"
prop="Prodescribe"
width="200">
</el-table-column>
<el-table-column
label="单位"
:show-overflow-tooltip="true"
prop="Unit"
prop="Prounit"
width="200">
</el-table-column>
<el-table-column
......@@ -159,14 +159,20 @@ export default {
props:[],
watch:{},
created(){
this.query()
var postData = {
argKeyWord: '',
argWhere: '',
Stime: this.$moment().format('YYYY-MM-DD 00:00:00'),
Etime: this.$moment().format('YYYY-MM-DD 23:59:59')
}
this.query(postData)
},
methods:{
//查询
query(){
query(keyWord){
this.$axios({
method:"post",
url:`/api/Plan/Plan_Query?argKeyWord=${this.argKeyWord}&argID=${this.argID}`,
url:`/api/Plan/Plan_Query?argKeyWord=${keyWord.argKeyWord}&argWhere=${keyWord.argWhere}&Stime=${keyWord.Stime}&Etime=${keyWord.Etime}`,
}).then((res)=>{
if(res.data.data.length != 0 ){
for(let i=0;i<res.data.data.length;i++){
......@@ -224,6 +230,7 @@ export default {
},
//添加
addFun(value){
var $this = this
let data = value
console.log('value',value)
if(data.DeliveryDt == 'Invalid date' || data.DeliveryDt == ''){
......@@ -244,13 +251,20 @@ export default {
this.cancelFun()
}
this.deletetext = res.data.msg
this.query()
var postData = {
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)
}).catch(function(err){
console.log('err',err)
})
},
//编辑
A_editFun(value){
var $this = this
let data = value
console.log('编辑',value)
this.$axios({
......@@ -267,7 +281,13 @@ export default {
this.cancelFun()
}
this.deletetext = res.data.msg
this.query()
var postData = {
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)
}).catch(function(err){
console.log('err',err)
})
......
......@@ -227,7 +227,7 @@ export default {
VStatus: '',
VDeliveryDt: '',
VPlanQuantity: '',
DeliveryDt: '',
DeliveryDt: this.$moment().format('YYYY-MM-DD HH:mm:ss'),
Quantity: '',
ProductID: '',
proList: []
......@@ -462,6 +462,13 @@ export default {
this.numberV = this.data.MID
this.modelV = this.data.PID
this.applyValue = this.data.ProcessName
this.ProductID = this.data.ProductID
this.Quantity = this.data.Quantity
this.DeliveryDt = this.data.DeliveryDt
this.VPID = this.data.VPID
this.VStatus = this.data.VStatus
this.VDeliveryDt = this.data.VDeliveryDt
this.VPlanQuantity = this.data.VPlanQuantity
this.dNum = this.data.Quantity
this.numberV2 = this.data.PID
......
......@@ -173,7 +173,6 @@ export default {
methods:{
//查询
query(keyWord){
var a = keyWord
this.$axios({
method:"post",
url:`/api/Product/Product_Query?argKeyWord=${ keyWord.argKeyWord }&argWhere=${ keyWord.argWhere }&Stime=${ keyWord.Stime }&Etime=${ keyWord.Etime }`,
......@@ -254,10 +253,10 @@ export default {
}
$this.deletetext = res.data.msg
var postData = {
argKeyWord: $this.$refs.input,
argWhere: $this.$refs.argWhere,
Stime: $this.$refs.dateValue ? $this.moment(this.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : '',
Etime: $this.$refs.dateValue ? $this.moment(this.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ''
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)
}).catch(function(err){
......@@ -283,10 +282,10 @@ export default {
}
$this.deletetext = res.data.msg
var postData = {
argKeyWord: $this.$refs.input,
argWhere: $this.$refs.argWhere,
Stime: $this.$refs.dateValue ? $this.$moment(this.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : '',
Etime: $this.$refs.dateValue ? $this.$moment(this.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ''
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)
}).catch(function(err){
......
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