From 1f631433ad4d54484b1d956ae05b8c36e5d4e95f Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期二, 24 十月 2023 09:13:49 +0800
Subject: [PATCH] 	modified:   src/api/basic/part.js 	modified:   src/page/index/index.vue 	modified:   src/page/index/layout.vue 	modified:   src/page/index/logo.vue 	modified:   src/page/index/sidebar/sidebarItem.vue 	modified:   src/page/index/tags.vue 	modified:   src/views/basic/location/location-form.vue 	modified:   src/views/basic/part/index.vue 	modified:   src/views/basic/warehouse/warehouse-form.vue 	modified:   src/views/basic/workstation/workstation-form.vue 	modified:   src/views/plan/schedulelookover/index.vue

---
 src/views/basic/part/index.vue |   63 +++++++++++++++++++------------
 1 files changed, 38 insertions(+), 25 deletions(-)

diff --git a/src/views/basic/part/index.vue b/src/views/basic/part/index.vue
index 576a443..d91a4be 100644
--- a/src/views/basic/part/index.vue
+++ b/src/views/basic/part/index.vue
@@ -1,30 +1,29 @@
 <template>
   <div class="mod-config">
     <basic-container>
-      <ttable
-        :table="table"
-        @handleSelectionChange="handleSelectionChange"
-        :uploadInfo="uploadInfo"
-        :isShowHide="true"
-        :prelang="prelang"
-        :options="options"
-        :bottomOffset="125"
-        :ajaxFun="ajaxFun"
-        ref="partTable"
-      >
+      <ttable :table="table" @handleSelectionChange="handleSelectionChange" :uploadInfo="uploadInfo" :isShowHide="true"
+        :prelang="prelang" :options="options" :bottomOffset="125" :ajaxFun="ajaxFun" ref="partTable">
         <template #toolbar></template>
       </ttable>
       <!-- 寮圭獥, 鏂板 / 淇敼 -->
-      <table-form
-        v-if="addOrUpdateVisible"
-        ref="addOrUpdate"
-        @refreshDataList="getData"
-      ></table-form>
-      <PrintLabelForm
-        :currshowlist.sync="showPrintLabelForm"
-        :printLabelInfo="printLabelInfo"
-      />
+      <table-form v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getData"></table-form>
+      <PrintLabelForm :currshowlist.sync="showPrintLabelForm" :printLabelInfo="printLabelInfo" />
     </basic-container>
+    <el-dialog title="鍚屾IFS" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
+      <el-row>
+        <el-col :span="6"">
+          鍚屾鏃ユ湡锛�
+        </el-col>
+        <el-col :span="18">
+          <el-date-picker style="width: 100%;" v-model="selectDate" type="date" placeholder="閫夋嫨鏃ユ湡">
+      </el-date-picker>
+        </el-col>
+      </el-row>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="handleClose">鍙� 娑�</el-button>
+        <el-button type="primary" @click="syncIfs">纭� 瀹�</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -40,6 +39,8 @@
 export default {
   data() {
     return {
+      selectDate: null,
+      dialogVisible: false,
       ajaxFun: fetchList,
       addOrUpdateVisible: false,
       multipleSelection: [],
@@ -363,9 +364,9 @@
             fun: this.addOrUpdateHandle
           },
           {
-            text: '鍚屾ERP',
+            text: '鍚屾IFS',
             type: 'primary',
-            fun: this.syncIfs,
+            fun: this.syncISDate,
             loading: false
           },
           {
@@ -427,6 +428,10 @@
     ...mapGetters(['permissions'])
   },
   methods: {
+    handleClose() { 
+      this.selectDate=null;
+      this.dialogVisible = false
+    },
     // 鑾峰彇鏁版嵁鍒楄〃
     getData() {
       this.$refs.partTable.getDataList()
@@ -446,7 +451,7 @@
         closeOnClickModal: false,
         type: 'warning'
       })
-        .then(function() {
+        .then(function () {
           return delObj(row.id)
         })
         .then((data) => {
@@ -627,14 +632,22 @@
     //     this.$message.warning('璇峰厛閫夋嫨闆朵欢锛屽啀杩涜鍚屾锛�')
     //   }
     // },
+    syncISDate() {
+      this.dialogVisible = true
+    },
     syncIfs() {
-      syncPart({})
+      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)
         .then((res) => {
           const data = res.data
           if (data.code === 0) {
             this.$message.success('寮�濮嬪悓姝�')
           } else {
-            this.$message.error('鍚屾ERP澶辫触')
+            this.$message.error('鍚屾IFS澶辫触')
           }
         })
         .catch((e) => {

--
Gitblit v1.9.3