mxx 4 rokov pred
rodič
commit
eaabfecf33

+ 14 - 3
src/views/warehouse/warehouseManagementList.vue

@@ -40,6 +40,15 @@
           >删除</ws-button
           >删除</ws-button
         >
         >
       </template>
       </template>
+      <template slot="left">
+        <div style="margin-top: 20px">
+    <el-radio-group v-model="warehouseType" @change="changeradio"  size="small">
+      <el-radio-button label="1" >自有库</el-radio-button>
+      <el-radio-button label="2" >临时库</el-radio-button>
+      
+    </el-radio-group>
+  </div>
+      </template>
       <template slot="right">
       <template slot="right">
         <ws-input
         <ws-input
           v-model="warehouseName"
           v-model="warehouseName"
@@ -217,7 +226,7 @@ export default {
       searchTypeText: '未完成',
       searchTypeText: '未完成',
       searchKeyWord: '',
       searchKeyWord: '',
       contractType: 2,
       contractType: 2,
-      warehouseType: 1,
+      warehouseType: "1",
       // 提交类型
       // 提交类型
       submitType: true,
       submitType: true,
       size: 10,
       size: 10,
@@ -347,6 +356,9 @@ export default {
         },
         },
       })
       })
     },
     },
+    changeradio(e){
+    this.getList()
+    },
     //查看
     //查看
     handleLook() {
     handleLook() {
       this.$router.push({ path: 'warehouseManagementLook' })
       this.$router.push({ path: 'warehouseManagementLook' })
@@ -398,14 +410,13 @@ export default {
       this.getList()
       this.getList()
     },
     },
     getList() {
     getList() {
-      getList({
+        getList({
         compId: sessionStorage.getItem('ws-pf_compId'),
         compId: sessionStorage.getItem('ws-pf_compId'),
         warehouseName: this.warehouseName,
         warehouseName: this.warehouseName,
         warehouseType: this.warehouseType,
         warehouseType: this.warehouseType,
       })
       })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
-          console.log(1111)
           this.warehouseList = response
           this.warehouseList = response
         })
         })
     },
     },

+ 1 - 1
vue.config.js

@@ -144,7 +144,7 @@ module.exports = {
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
         // target: 'http://localhost:8090/',
         // target: 'http://192.168.1.121:8090/',
         // target: 'http://192.168.1.121:8090/',
-        target: 'http://192.168.1.124:8090/',
+        target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.24.5:8098',//目标地址
         // target: 'http://192.168.24.5:8098',//目标地址
         // target: 'http://product-server.winsea.com/',
         // target: 'http://product-server.winsea.com/',