|
@@ -806,7 +806,7 @@ export default {
|
|
|
userId: Cookies.get('userName')
|
|
|
}
|
|
|
let y = moment(Date.parse(new Date())).format('YYYY-MM-DD')
|
|
|
- this.$set(this.formDataList,'timeInterval',[ y + ' 00:00:00', y + ' 23:59:59'])
|
|
|
+ // this.$set(this.formDataList,'timeInterval',[ y + ' 00:00:00', y + ' 23:59:59'])
|
|
|
this.getRow(data)
|
|
|
this.query(this.formDataList)
|
|
|
productName().then(res => {
|
|
@@ -1066,7 +1066,11 @@ export default {
|
|
|
this.isItHidden = true
|
|
|
this.inDex = 4
|
|
|
let y = moment(Date.parse(new Date())).format('YYYY-MM-DD')
|
|
|
- this.$set(this.formDataList,'timeInterval',[ y + ' 00:00:00', y + ' 23:59:59'])
|
|
|
+ if (this.formDataList.timeInterval === undefined){
|
|
|
+ this.$set(this.formDataList,'timeInterval',[ y + ' 00:00:00', y + ' 23:59:59'])
|
|
|
+ }else {
|
|
|
+ this.$set(this.formDataList,'timeInterval',this.formDataList.timeInterval)
|
|
|
+ }
|
|
|
this.$refs.avatar.assignmentTime(this.formDataList)
|
|
|
}
|
|
|
if (list){
|
|
@@ -1263,9 +1267,9 @@ export default {
|
|
|
}else {
|
|
|
submit(formData).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- // if(res){
|
|
|
- // this.$refs.avatar.form = res.data.warehouseBills
|
|
|
- // }
|
|
|
+ if(res){
|
|
|
+ this.$refs.avatar.form = res.data.warehouseBills
|
|
|
+ }
|
|
|
this.contentList = res.data.tWarehousebillsCntrs
|
|
|
this.$message.success('保存成功')
|
|
|
}
|