Browse Source

no message

aXin-0810 2 năm trước cách đây
mục cha
commit
7dc3dab9b8

+ 34 - 30
src/views/sales_control/adjust_warehouse.vue

@@ -1,9 +1,8 @@
 <template>
-  <div>
+  <div style="width: 100%; height: 100%">
     <template-page
       v-if="!pageType"
-      style="width: 100%;
-      height: 100%;"
+      style="width: 100%; height: 100%"
       ref="pageRef"
       :getList="getList"
       :exportList="exportList"
@@ -12,15 +11,18 @@
       :optionsEvensGroup="optionsEvensGroup"
     >
     </template-page>
-    <warehouse-form v-else-if="pageType==1" />
-    <warehouse-examine v-else-if="pageType==2" :detailsId="detailsId" />
-    <warehouse-details v-else :detailsId="detailsId" />
+    <popu v-if="pageType">
+      <warehouse-form v-if="pageType == 1" />
+      <warehouse-examine v-else-if="pageType == 2" :detailsId="detailsId" />
+      <warehouse-details v-else :detailsId="detailsId" />
+    </popu>
   </div>
 </template>
 
 <script>
 import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
+import popu from '@/components/template/popu.vue'
 
 import { getFrontListCustomerAcc, exportCustomerStockOrderBean, deleteCustomerStockOrder } from '@/api/stock'
 import WarehouseForm from '@/views/sales_control/components/WarehouseForm'
@@ -28,7 +30,7 @@ import WarehouseExamine from '@/views/sales_control/components/WarehouseExamine'
 import WarehouseDetails from '@/views/sales_control/components/WarehouseDetails'
 
 export default {
-  components: { TemplatePage, WarehouseForm, WarehouseExamine, WarehouseDetails },
+  components: { TemplatePage, WarehouseForm, WarehouseExamine, WarehouseDetails, popu },
   mixins: [import_mixin],
   data() {
     return {
@@ -83,42 +85,44 @@ export default {
           <div class="operation-btns">
             <el-button
               size="mini"
-              type="text" onClick={() => {
-              this.detailsId = row.id
-              this.pageType = 3
-
-            }}
+              type="text"
+              onClick={() => {
+                this.detailsId = row.id
+                this.pageType = 3
+              }}
             >
               查看
             </el-button>
-            {row.examineStatus != 'OK'&& row.examineStatus != 'FAIL' ? (
+            {row.examineStatus != 'OK' && row.examineStatus != 'FAIL' ? (
               <el-button
                 size="mini"
-                type="text" onClick={() => {
-                this.detailsId = row.id
-                this.pageType = 2
-              }}
+                type="text"
+                onClick={() => {
+                  this.detailsId = row.id
+                  this.pageType = 2
+                }}
               >
                 审批
               </el-button>
             ) : null}
-            {row.examineStatus != 'OK'&&row.examineStatus != 'FAIL'  ? (
-            <el-popconfirm
-              onOnConfirm={() => {
-                deleteCustomerStockOrder({ id: row.id }).then(res => {
-                  this.$successMsg('删除成功')
-                  this.$refs.pageRef.refreshList()
-                })
-              }}
-              title="删除吗?"
-            >
-              <el-button slot="reference" size="mini" type="text">删除</el-button>
-            </el-popconfirm>
+            {row.examineStatus != 'OK' && row.examineStatus != 'FAIL' ? (
+              <el-popconfirm
+                onOnConfirm={() => {
+                  deleteCustomerStockOrder({ id: row.id }).then(res => {
+                    this.$successMsg('删除成功')
+                    this.$refs.pageRef.refreshList()
+                  })
+                }}
+                title="删除吗?"
+              >
+                <el-button slot="reference" size="mini" type="text">
+                  删除
+                </el-button>
+              </el-popconfirm>
             ) : null}
           </div>
         )
       }
-
     }
     // 批量删除
     // dels() {

+ 2 - 11
src/views/sales_control/customer_warehouse.vue

@@ -1,15 +1,6 @@
 <template>
-  <div>
-    <template-page
-      style="width: 100%;
-      height: 100%;"
-      ref="pageRef"
-      :getList="getList"
-      :exportList="exportList"
-      :columnParsing="columnParsing"
-    >
-    </template-page>
-  </div>
+  <template-page ref="pageRef" :getList="getList" :exportList="exportList" :columnParsing="columnParsing">
+  </template-page>
 </template>
 
 <script>

+ 48 - 46
src/views/sales_control/sales_management/customer_sales_list.vue

@@ -1,9 +1,8 @@
 <template>
-  <div>
+  <div style="width: 100%; height: 100%">
     <template-page
       v-if="!pageType"
-      style="width: 100%;
-      height: 100%;"
+      style="width: 100%; height: 100%"
       ref="pageRef"
       :getList="getList"
       :exportList="exportList"
@@ -12,12 +11,15 @@
       :optionsEvensGroup="optionsEvensGroup"
     >
     </template-page>
-    <customer_sales_form :detailsId="detailsId" v-else-if="pageType===1 || pageType ===2" />
-    <customer_sales_details :detailsId="detailsId" v-else />
+    <popu v-if="pageType">
+      <customer_sales_form :detailsId="detailsId" v-if="pageType === 1 || pageType === 2" />
+      <customer_sales_details :detailsId="detailsId" v-else />
+    </popu>
   </div>
 </template>
 
 <script>
+import popu from '@/components/template/popu.vue'
 import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 import { delFrontOrder, exportCustomerFrontOrder, getFrontOrderList } from '@/api/sales'
@@ -25,7 +27,7 @@ import customer_sales_form from '@/views/sales_control/sales_management/componen
 import customer_sales_details from '@/views/sales_control/sales_management/components/customer_sales_details'
 
 export default {
-  components: { TemplatePage, customer_sales_form, customer_sales_details },
+  components: { TemplatePage, customer_sales_form, customer_sales_details, popu },
   mixins: [import_mixin],
   data() {
     return {
@@ -73,8 +75,7 @@ export default {
         'selection-change': this.selectionChange
       },
       recordSelected: [],
-      isFront: JSON.parse(localStorage.getItem('supply_user')).isFront,
-
+      isFront: JSON.parse(localStorage.getItem('supply_user')).isFront
     }
   },
   methods: {
@@ -99,55 +100,56 @@ export default {
           <div class="operation-btns">
             <el-button
               size="mini"
-              type="text" onClick={() => {
-              this.detailsId = row.id
-              this.pageType = 3
-
-            }}
+              type="text"
+              onClick={() => {
+                this.detailsId = row.id
+                this.pageType = 3
+              }}
             >
               查看
             </el-button>
 
-            {
-              row.status == 1 ? (<el-button
+            {row.status == 1 ? (
+              <el-button
                 size="mini"
-                type="text" onClick={() => {
-                this.detailsId = row.id
-                this.pageType = 2
-              }}
+                type="text"
+                onClick={() => {
+                  this.detailsId = row.id
+                  this.pageType = 2
+                }}
               >
                 编辑
-              </el-button>) : null}
-            {
-              row.status == 1 ?
-                (<el-popconfirm
-                  onOnConfirm={() => {
-                    delFrontOrder({ id: row.id }).then(res => {
-                      this.$successMsg('删除成功')
-                      this.$refs.pageRef.refreshList()
-                    })
-                  }}
-                  title="删除吗?"
-                >
-                  <el-button slot="reference" size="mini" type="text">删除</el-button>
-                </el-popconfirm>)
-                : null
-            }
+              </el-button>
+            ) : null}
+            {row.status == 1 ? (
+              <el-popconfirm
+                onOnConfirm={() => {
+                  delFrontOrder({ id: row.id }).then(res => {
+                    this.$successMsg('删除成功')
+                    this.$refs.pageRef.refreshList()
+                  })
+                }}
+                title="删除吗?"
+              >
+                <el-button slot="reference" size="mini" type="text">
+                  删除
+                </el-button>
+              </el-popconfirm>
+            ) : null}
           </div>
         )
       }
-
     }
-// <el-popconfirm
-//   onOnConfirm = {()=>{
-//     deleteCustomerStockOrder({ id: row.id }).then(res => {
-//       this.$successMsg('删除成功')
-//       this.$refs.pageRef.getTableData()
-//     })              }}
-//   title="删除吗?"
-// >
-//   <el-button slot="reference" type="text">删除</el-button>
-// </el-popconfirm>
+    // <el-popconfirm
+    //   onOnConfirm = {()=>{
+    //     deleteCustomerStockOrder({ id: row.id }).then(res => {
+    //       this.$successMsg('删除成功')
+    //       this.$refs.pageRef.getTableData()
+    //     })              }}
+    //   title="删除吗?"
+    // >
+    //   <el-button slot="reference" type="text">删除</el-button>
+    // </el-popconfirm>
 
     // 批量删除
     // dels() {

+ 40 - 33
src/views/sales_control/sales_management/return_sales_list.vue

@@ -1,9 +1,7 @@
 <template>
-  <div>
+  <div style="width: 100%; height: 100%">
     <template-page
       v-if="!pageType"
-      style="width: 100%;
-      height: 100%;"
       ref="pageRef"
       :getList="getList"
       :exportList="exportList"
@@ -12,12 +10,15 @@
       :optionsEvensGroup="optionsEvensGroup"
     >
     </template-page>
-    <return_sales_form v-else-if="pageType===1 || pageType ===2" :details-id="detailsId" />
-    <return_sales_details v-else :details-id="detailsId" />
+    <popu v-if="pageType">
+      <return_sales_form v-if="pageType === 1 || pageType === 2" :details-id="detailsId" />
+      <return_sales_details v-else :details-id="detailsId" />
+    </popu>
   </div>
 </template>
 
 <script>
+import popu from '@/components/template/popu.vue'
 import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 import { delDeleteRefund, exportRefund, getFrontOrderListRefund } from '@/api/sales'
@@ -25,7 +26,7 @@ import return_sales_form from '@/views/sales_control/sales_management/components
 import return_sales_details from '@/views/sales_control/sales_management/components/return_sales_details'
 
 export default {
-  components: { TemplatePage, return_sales_form, return_sales_details },
+  components: { TemplatePage, return_sales_form, return_sales_details, popu },
   mixins: [import_mixin],
   data() {
     return {
@@ -43,7 +44,7 @@ export default {
               }
             }
           ]
-        ],
+        ]
       ],
       // 表格属性
       tableAttributes: {
@@ -79,39 +80,45 @@ export default {
           <div class="operation-btns">
             <el-button
               size="mini"
-              type="text" onClick={() => {
-              this.detailsId = row.id
-              this.pageType = 3
-
-            }}
+              type="text"
+              onClick={() => {
+                this.detailsId = row.id
+                this.pageType = 3
+              }}
             >
               查看
             </el-button>
 
-            {row.status == 1 ? (<el-button size="mini"
-                                           type="text" onClick={() => {
-              this.detailsId = row.id
-              this.pageType = 2
-            }}
-            >
-              编辑
-            </el-button>) : null}
-            {row.status == 1 ? (<el-popconfirm
-              onOnConfirm={() => {
-                delDeleteRefund({ id: row.id }).then(res => {
-                  this.$successMsg('删除成功')
-                  this.$refs.pageRef.refreshList()
-
-                })
-              }}
-              title="删除吗?"
-            >
-              <el-button slot="reference" size="mini" type="text">删除</el-button>
-            </el-popconfirm>) : null}
+            {row.status == 1 ? (
+              <el-button
+                size="mini"
+                type="text"
+                onClick={() => {
+                  this.detailsId = row.id
+                  this.pageType = 2
+                }}
+              >
+                编辑
+              </el-button>
+            ) : null}
+            {row.status == 1 ? (
+              <el-popconfirm
+                onOnConfirm={() => {
+                  delDeleteRefund({ id: row.id }).then(res => {
+                    this.$successMsg('删除成功')
+                    this.$refs.pageRef.refreshList()
+                  })
+                }}
+                title="删除吗?"
+              >
+                <el-button slot="reference" size="mini" type="text">
+                  删除
+                </el-button>
+              </el-popconfirm>
+            ) : null}
           </div>
         )
       }
-
     }
 
     // 批量删除

+ 2 - 11
src/views/sales_control/stock_three_level.vue

@@ -1,15 +1,6 @@
 <template>
-  <div>
-    <template-page
-      style="width: 100%;
-      height: 100%;"
-      ref="pageRef"
-      :getList="getList"
-      :exportList="exportList"
-      :columnParsing="columnParsing"
-    >
-    </template-page>
-  </div>
+  <template-page ref="pageRef" :getList="getList" :exportList="exportList" :columnParsing="columnParsing">
+  </template-page>
 </template>
 
 <script>