From 30286c743c52cd2ebf1db43a430d04003b6ffceb Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 25 十月 2023 11:07:29 +0800
Subject: [PATCH] modified: src/views/basic/location/location-form.vue modified: src/views/basic/warehouse/warehouse-form.vue modified: src/views/basic/workstation/workstation-form.vue
---
src/views/basic/part/index.vue | 30 ++++++++++++++++++++++--------
1 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/src/views/basic/part/index.vue b/src/views/basic/part/index.vue
index d91a4be..3124b5a 100644
--- a/src/views/basic/part/index.vue
+++ b/src/views/basic/part/index.vue
@@ -11,11 +11,11 @@
</basic-container>
<el-dialog title="鍚屾IFS" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
<el-row>
- <el-col :span="6"">
+ <el-col :span="6" style="height: 40px;line-height: 30px;">
鍚屾鏃ユ湡锛�
</el-col>
<el-col :span="18">
- <el-date-picker style="width: 100%;" v-model="selectDate" type="date" placeholder="閫夋嫨鏃ユ湡">
+ <el-date-picker style="width: 100%;height: 100%;" v-model="selectDate" type="date" placeholder="閫夋嫨鏃ユ湡">
</el-date-picker>
</el-col>
</el-row>
@@ -634,20 +634,34 @@
// },
syncISDate() {
this.dialogVisible = true
+ this.selectDate=null
},
syncIfs() {
this.table.toolbar.find((e) => e.text === '鍚屾IFS').loading = true
- this.handleClose()
- let data=new FormData()
- data.append("date",this.selectDatethis.selectDate)
- console.log(data);
- syncPart(data)
+ this.dialogVisible = false
+ let datas=new FormData()
+ datas.set("date",this.selectDate)
+ // console.log(datas.get("date"));
+
+ // console.log(this.selectDate);
+ // return
+ syncPart(datas)
.then((res) => {
const data = res.data
+ console.log(data);
if (data.code === 0) {
- this.$message.success('寮�濮嬪悓姝�')
+ if(data.data>0){
+ this.$message.success('鍚屾鎴愬姛'+data.data+"鏉℃暟鎹�")
+ }
+ if(data.data<1){
+ this.$message.warning("璇ユ棩鏈熸病鏈夋柊鐨勯浂浠舵暟鎹�");
+ }
+ this.table.toolbar.find((e) => e.text === '鍚屾IFS').loading = false
+ this.getData()
} else {
this.$message.error('鍚屾IFS澶辫触')
+ this.table.toolbar.find((e) => e.text === '鍚屾IFS').loading = false
+ this.getData()
}
})
.catch((e) => {
--
Gitblit v1.9.3