snow 2 years ago
parent
commit
1ec4d7211f

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


+ 9 - 4
src/views/stock/allot/index.vue

@@ -234,6 +234,11 @@ export default {
       return action ?? [];
     },
   },
+  watch:{
+    sselect(){
+      this.searchList();
+    }
+  },
   data() {
     return {
       supplierNo: "",
@@ -406,14 +411,14 @@ export default {
       }
       this.loading = true;
       let model = JSON.parse(JSON.stringify(this.parmValue));
-      let supplierNo = model.supplierNo.length == 1 ? model.supplierNo[0] : "",
-        stockNo = model.stockNo.length == 1 ? model.stockNo[0] : "";
+      // let supplierNo = model.supplierNo.length == 1 ? model.supplierNo[0] : "",
+      let stockNo = model.stockNo.length == 1 ? model.stockNo[0] : "";
       delete model["supplierNo"];
       delete model["stockNo"];
       model.wsm_out = this.sselect == "按出库方筛选" ? stockNo : "";
       model.wsm_in = this.sselect != "按出库方筛选" ? stockNo : "";
-      model.wsm_out_supplierNo = this.sselect == "按出库方筛选" ? supplierNo : "";
-      model.wsm_in_supplierNo = this.sselect != "按出库方筛选" ? supplierNo : "";
+      // model.wsm_out_supplierNo = this.sselect == "按出库方筛选" ? supplierNo : "";
+      // model.wsm_in_supplierNo = this.sselect != "按出库方筛选" ? supplierNo : "";
       const res = await asyncRequest.list(model);
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;

+ 10 - 4
src/views/stock/stockCount/components/dataWeido/index.vue

@@ -25,7 +25,7 @@
           <div style="width: 100%">
             <el-row style="padding: 0 0 0 80px">
               <el-col :span="24">
-                <el-col :span="12" style="width: 240px">
+                <!-- <el-col :span="12" style="width: 240px">
                   <search-work-company
                     :value="parmValue.companyNo"
                     :names="''"
@@ -34,7 +34,7 @@
                     :placeholder="'业务公司'"
                     @searchChange="supplierChange"
                   />
-                </el-col>
+                </el-col> -->
                 <!-- <el-col :span="12" style="width: 300px; padding: 0 0 0 10px">
                   <search-supplier
                     :size="searchSize"
@@ -185,12 +185,13 @@
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
 import asyncRequest from "@/apis/service/stock/dataWeido";
+import companyHelper from "@/mixins/companyHelper"
 import columns from "./columns";
 import { mapGetters } from "vuex";
 
 export default {
   name: "dataWeido",
-  mixins: [mixinPage, resToken],
+  mixins: [mixinPage, resToken, companyHelper],
 
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
@@ -294,7 +295,12 @@ export default {
       model.wsm_code = model.stock_code.toString() || "";
       delete model["supplier_code"];
       delete model["stock_code"];
-      const res = await asyncRequest.list(model);
+      
+      const res = await asyncRequest.list({
+        ...model,
+        needRela: true
+      });
+
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;
         this.pageInfo.total = Number(res.data.count);

+ 3 - 1
src/views/stock/stockCount/components/productWeido/index.vue

@@ -174,11 +174,12 @@
    <script>
 import mixinPage from "@/mixins/elPaginationHandle"; 
 import resToken from "@/mixins/resToken";
-import companyHelper from "@/mixins/companyHelper"
 import { statusList } from "@/assets/js/statusList";
 import asyncRequest from "@/apis/service/stock/productWeido";
+import companyHelper from "@/mixins/companyHelper"
 import { mapGetters } from "vuex";
 import columns from "./columns";
+
 export default {
   name: "productWeido",
   mixins: [mixinPage, resToken, companyHelper],
@@ -251,6 +252,7 @@ export default {
       this.loading = true;
       const res = await asyncRequest.list({
         ...this.parmValue,
+        companyNo: this.currentCompany,
         needRela: true
       });
 

+ 44 - 24
src/views/stock/stockCount/components/spaceCount/index.vue

@@ -24,7 +24,7 @@
         <template #table-header="{}">
           <div style="width: 100%" class="min">
             <el-row style="padding: 0 0 0 80px">
-              <el-col :span="12" style="width: 300px">
+              <!-- <el-col :span="12" style="width: 300px">
                 <search-work-company
                   :value="parmValue.companyNo"
                   :names="''"
@@ -33,7 +33,7 @@
                   :placeholder="'业务公司'"
                   @searchChange="supplierChange"
                 />
-              </el-col>
+              </el-col> -->
               <el-col :span="10" style="width: 330px; padding: 0 0 0 10px">
                 <el-input
                   v-model="parmValue.type_code"
@@ -43,6 +43,20 @@
                 />
               </el-col>
 
+              <el-col :span="12" style="width: 330px; padding: 0 0 0 10px">
+                <search-stock
+                  :isDetail="true"
+                  :size="searchSize"
+                  :value="parmValue.stock_code"
+                  :disabled="parmValue.companyNo === ''"
+                  :placeholder="'出库仓库'"
+                  :isRelation="true"
+                  :companyNo="parmValue.companyNo"
+                  :names="''"
+                  @searchChange="selectStock"
+                />
+              </el-col>
+
               <!-- 重置 -->
               <el-col :span="4" style="width: 66px" class="fr">
                 <el-button
@@ -53,6 +67,12 @@
                   >重置</el-button
                 >
               </el-col>
+
+              <el-col :span="4" style="width: 66px" class="fr">
+                <el-button :size="searchSize" type="primary" label="" @click="searchList"
+                  >刷新</el-button
+                >
+              </el-col>
             </el-row>
             <el-row style="padding: 10px 0 0 0">
               <!-- <el-col :span="12" style="width: 380px">
@@ -64,25 +84,9 @@
                   @searchChange="selectSupplier"
                 />
               </el-col> -->
-              <el-col :span="12" style="width: 330px; padding: 0 0 0 10px">
-                <search-stock
-                  :isDetail="true"
-                  :size="searchSize"
-                  :value="parmValue.stock_code"
-                  :disabled="parmValue.companyNo === ''"
-                  :placeholder="'出库仓库'"
-                  :isRelation="true"
-                  :companyNo="parmValue.companyNo"
-                  :names="''"
-                  @searchChange="selectStock"
-                />
-              </el-col>
+
               <!-- 刷新 -->
-              <el-col :span="4" style="width: 66px" class="fr">
-                <el-button :size="searchSize" type="primary" label="" @click="searchList"
-                  >刷新</el-button
-                >
-              </el-col>
+    
             </el-row>
           </div>
         </template>
@@ -107,11 +111,12 @@
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
 import asyncRequest from "@/apis/service/stock/spaceCount";
+import companyHelper from "@/mixins/companyHelper"
 import columns from "./columns";
 import { mapGetters } from "vuex";
 export default {
   name: "spaceCount",
-  mixins: [mixinPage, resToken],
+  mixins: [mixinPage, resToken, companyHelper],
   components: {},
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
@@ -156,10 +161,21 @@ export default {
     };
   },
   mounted() {
+    // this.onCompanyChange()
     this.searchList();
   },
-
+  watch:{
+    currentCompany:{
+      handler(newVal){
+       this.parmValue.companyNo = newVal 
+      },
+      immediate:true
+    }
+  },
   methods: {
+    // onCompanyChange(){
+    //   this.parmValue.companyNo = this.currentCompany
+    // },
     //业务公司选择
     async supplierChange(e) {
       const { code } = e;
@@ -212,7 +228,7 @@ export default {
       this.parmValue = {
         start: "",
         end: "",
-        companyNo: "",
+        companyNo: this.currentCompany,
         type_code: "", //商品编码
         supplier_code: [],
         stock_code: [], //仓库编码
@@ -229,7 +245,11 @@ export default {
       model.wsm_code = model.stock_code.toString() || "";
       delete model["supplier_code"];
       delete model["stock_code"];
-      const res = await asyncRequest.list(model);
+      const res = await asyncRequest.list({
+        ...model,
+        needRela: true,
+        companyNo: this.currentCompany
+      });
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;
         this.tableData.forEach((e) => {

Some files were not shown because too many files changed in this diff