no message
							parent
							
								
									d4d2d76893
								
							
						
					
					
						commit
						7f0d11f407
					
				| 
						 | 
					@ -26,9 +26,9 @@
 | 
				
			||||||
              <el-select v-model="param.propC2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
					              <el-select v-model="param.propC2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
				
			||||||
                <el-option
 | 
					                <el-option
 | 
				
			||||||
                    v-for="item in LOCS"
 | 
					                    v-for="item in LOCS"
 | 
				
			||||||
                    :key="item.ID"
 | 
					                    :key="item.id"
 | 
				
			||||||
                    :label="item.PROP_C2"
 | 
					                    :label="item.code"
 | 
				
			||||||
                    :value="item.PROP_C2"
 | 
					                    :value="item.code"
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
                </el-option>
 | 
					                </el-option>
 | 
				
			||||||
              </el-select>
 | 
					              </el-select>
 | 
				
			||||||
| 
						 | 
					@ -757,7 +757,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    LOC(){
 | 
					    LOC(){
 | 
				
			||||||
      //LOC下拉列表数据加载
 | 
					      //LOC下拉列表数据加载
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,9 +48,9 @@
 | 
				
			||||||
              <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
					              <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
				
			||||||
                <el-option
 | 
					                <el-option
 | 
				
			||||||
                    v-for="item in LOCS"
 | 
					                    v-for="item in LOCS"
 | 
				
			||||||
                    :key="item.ID"
 | 
					                    :key="item.id"
 | 
				
			||||||
                    :label="item.PROP_C2"
 | 
					                    :label="item.code"
 | 
				
			||||||
                    :value="item.PROP_C2"
 | 
					                    :value="item.code"
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
                </el-option>
 | 
					                </el-option>
 | 
				
			||||||
              </el-select>
 | 
					              </el-select>
 | 
				
			||||||
| 
						 | 
					@ -69,8 +69,8 @@
 | 
				
			||||||
            <el-form-item label="工厂">
 | 
					            <el-form-item label="工厂">
 | 
				
			||||||
              <el-select v-model="param.PROP_C9"  multiple filterable placeholder="请选择工厂" style="width: 100%;">
 | 
					              <el-select v-model="param.PROP_C9"  multiple filterable placeholder="请选择工厂" style="width: 100%;">
 | 
				
			||||||
                <el-option
 | 
					                <el-option
 | 
				
			||||||
                    v-for="item in GcS"
 | 
					                    v-for="item in Plant"
 | 
				
			||||||
                    :key="item.index"
 | 
					                    :key="item.id"
 | 
				
			||||||
                    :label="item.code"
 | 
					                    :label="item.code"
 | 
				
			||||||
                    :value="item.code"
 | 
					                    :value="item.code"
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
| 
						 | 
					@ -371,6 +371,7 @@
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
import { downloadExcel } from '@/util/excelUtils';
 | 
					import { downloadExcel } from '@/util/excelUtils';
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
 | 
					  // eslint-disable-next-line vue/multi-word-component-names
 | 
				
			||||||
  name: "Kucunrizhi",
 | 
					  name: "Kucunrizhi",
 | 
				
			||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
| 
						 | 
					@ -431,7 +432,7 @@ export default {
 | 
				
			||||||
        LP: ''
 | 
					        LP: ''
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      LOCS: [],
 | 
					      LOCS: [],
 | 
				
			||||||
      GcS: [],
 | 
					      Plant: [],
 | 
				
			||||||
      Log: [],
 | 
					      Log: [],
 | 
				
			||||||
      checked: false,
 | 
					      checked: false,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					@ -471,7 +472,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    LOC(){
 | 
					    LOC(){
 | 
				
			||||||
      //LOC下拉列表数据加载
 | 
					      //LOC下拉列表数据加载
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
| 
						 | 
					@ -488,12 +489,12 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    Gc(){
 | 
					    Gc(){
 | 
				
			||||||
      //工厂
 | 
					      //工厂
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Enumerate/Gc', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
            if (res.code == 200) {
 | 
					            if (res.code == 200) {
 | 
				
			||||||
              this.GcS = res.data;
 | 
					              this.Plant = res.data;
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
              this.$message.error('获取数据失败');
 | 
					              this.$message.error('获取数据失败');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					@ -504,7 +505,7 @@ export default {
 | 
				
			||||||
          })
 | 
					          })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    JdbcLogType(){
 | 
					    JdbcLogType(){
 | 
				
			||||||
      //LOC下拉列表数据加载
 | 
					      //日志类型
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Enumerate/InventoryLogType', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/InventoryLogType', {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,9 +27,9 @@
 | 
				
			||||||
              <el-select v-model="param.PROP_C9"   multiple filterable  placeholder="请选择工厂" style="width: 100%;">
 | 
					              <el-select v-model="param.PROP_C9"   multiple filterable  placeholder="请选择工厂" style="width: 100%;">
 | 
				
			||||||
                <el-option
 | 
					                <el-option
 | 
				
			||||||
                    v-for="item in Plant"
 | 
					                    v-for="item in Plant"
 | 
				
			||||||
                    :key="item.ID"
 | 
					                    :key="item.id"
 | 
				
			||||||
                    :label="item.PROP_C9"
 | 
					                    :label="item.code"
 | 
				
			||||||
                    :value="item.PROP_C9"
 | 
					                    :value="item.code"
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
                </el-option>
 | 
					                </el-option>
 | 
				
			||||||
              </el-select>
 | 
					              </el-select>
 | 
				
			||||||
| 
						 | 
					@ -41,9 +41,9 @@
 | 
				
			||||||
              <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
					              <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
				
			||||||
                <el-option
 | 
					                <el-option
 | 
				
			||||||
                    v-for="item in LOCS"
 | 
					                    v-for="item in LOCS"
 | 
				
			||||||
                    :key="item.ID"
 | 
					                    :key="item.id"
 | 
				
			||||||
                    :label="item.PROP_C2"
 | 
					                    :label="item.code"
 | 
				
			||||||
                    :value="item.PROP_C2"
 | 
					                    :value="item.code"
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
                </el-option>
 | 
					                </el-option>
 | 
				
			||||||
              </el-select>
 | 
					              </el-select>
 | 
				
			||||||
| 
						 | 
					@ -499,7 +499,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    LOC(){
 | 
					    LOC(){
 | 
				
			||||||
      //LOC下拉列表数据加载
 | 
					      //LOC下拉列表数据加载
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
| 
						 | 
					@ -516,7 +516,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    PlantS(){
 | 
					    PlantS(){
 | 
				
			||||||
      //工厂下拉列表数据加载
 | 
					      //工厂下拉列表数据加载
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Rukuzhengli/Plant', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -66,9 +66,9 @@
 | 
				
			||||||
              <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
					              <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
				
			||||||
                <el-option
 | 
					                <el-option
 | 
				
			||||||
                    v-for="item in Loc"
 | 
					                    v-for="item in Loc"
 | 
				
			||||||
                    :key="item.ID"
 | 
					                    :key="item.id"
 | 
				
			||||||
                    :label="item.PROP_C2"
 | 
					                    :label="item.code"
 | 
				
			||||||
                    :value="item.PROP_C2"
 | 
					                    :value="item.code"
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
                </el-option>
 | 
					                </el-option>
 | 
				
			||||||
              </el-select>
 | 
					              </el-select>
 | 
				
			||||||
| 
						 | 
					@ -80,9 +80,9 @@
 | 
				
			||||||
              <el-select v-model="param.PROP_C9"  multiple filterable placeholder="请选择工厂" style="width: 100%;">
 | 
					              <el-select v-model="param.PROP_C9"  multiple filterable placeholder="请选择工厂" style="width: 100%;">
 | 
				
			||||||
                <el-option
 | 
					                <el-option
 | 
				
			||||||
                    v-for="item in Plant"
 | 
					                    v-for="item in Plant"
 | 
				
			||||||
                    :key="item.ID"
 | 
					                    :key="item.id"
 | 
				
			||||||
                    :label="item.PROP_C9"
 | 
					                    :label="item.code"
 | 
				
			||||||
                    :value="item.PROP_C9"
 | 
					                    :value="item.code"
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
                </el-option>
 | 
					                </el-option>
 | 
				
			||||||
              </el-select>
 | 
					              </el-select>
 | 
				
			||||||
| 
						 | 
					@ -522,7 +522,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    PlantS(){
 | 
					    PlantS(){
 | 
				
			||||||
      //下拉数据架子啊
 | 
					      //下拉数据架子啊
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZPlant', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
            if (res.code == 200) {
 | 
					            if (res.code == 200) {
 | 
				
			||||||
| 
						 | 
					@ -538,7 +538,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    LocS(){
 | 
					    LocS(){
 | 
				
			||||||
      //下拉数据架子啊
 | 
					      //下拉数据架子啊
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZLOC', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
            if (res.code == 200) {
 | 
					            if (res.code == 200) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,9 +60,9 @@
 | 
				
			||||||
                <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
					                <el-select v-model="param.PROP_C2"  multiple filterable placeholder="请选择LOC" style="width: 100%;">
 | 
				
			||||||
                  <el-option
 | 
					                  <el-option
 | 
				
			||||||
                      v-for="item in loc"
 | 
					                      v-for="item in loc"
 | 
				
			||||||
                      :key="item.ID"
 | 
					                      :key="item.id"
 | 
				
			||||||
                      :label="item.PROP_C2"
 | 
					                      :label="item.code"
 | 
				
			||||||
                      :value="item.PROP_C2"
 | 
					                      :value="item.code"
 | 
				
			||||||
                  >
 | 
					                  >
 | 
				
			||||||
                  </el-option>
 | 
					                  </el-option>
 | 
				
			||||||
                </el-select>
 | 
					                </el-select>
 | 
				
			||||||
| 
						 | 
					@ -80,9 +80,9 @@
 | 
				
			||||||
                <el-select v-model="param.PROP_C9"   multiple filterable  placeholder="请选择工厂" style="width: 100%;">
 | 
					                <el-select v-model="param.PROP_C9"   multiple filterable  placeholder="请选择工厂" style="width: 100%;">
 | 
				
			||||||
                  <el-option
 | 
					                  <el-option
 | 
				
			||||||
                      v-for="item in plant"
 | 
					                      v-for="item in plant"
 | 
				
			||||||
                      :key="item.ID"
 | 
					                      :key="item.id"
 | 
				
			||||||
                      :label="item.PROP_C9"
 | 
					                      :label="item.code"
 | 
				
			||||||
                      :value="item.PROP_C9"
 | 
					                      :value="item.code"
 | 
				
			||||||
                  >
 | 
					                  >
 | 
				
			||||||
                  </el-option>
 | 
					                  </el-option>
 | 
				
			||||||
                </el-select>
 | 
					                </el-select>
 | 
				
			||||||
| 
						 | 
					@ -650,7 +650,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    Plant(){
 | 
					    Plant(){
 | 
				
			||||||
      //下拉数据架子啊
 | 
					      //下拉数据架子啊
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZPlant', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
            if (res.code == 200) {
 | 
					            if (res.code == 200) {
 | 
				
			||||||
| 
						 | 
					@ -666,7 +666,7 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    Loc(){
 | 
					    Loc(){
 | 
				
			||||||
      //下拉数据架子啊
 | 
					      //下拉数据架子啊
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZLOC', {
 | 
					      this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
 | 
				
			||||||
      }).then(res => res.data)
 | 
					      }).then(res => res.data)
 | 
				
			||||||
          .then(res => {
 | 
					          .then(res => {
 | 
				
			||||||
            if (res.code == 200) {
 | 
					            if (res.code == 200) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,12 +20,16 @@ public class EnumerateController {
 | 
				
			||||||
    @Autowired
 | 
					    @Autowired
 | 
				
			||||||
    private JdbcQueryExample jdbcQueryExample;
 | 
					    private JdbcQueryExample jdbcQueryExample;
 | 
				
			||||||
    /* 工厂*/
 | 
					    /* 工厂*/
 | 
				
			||||||
    @PostMapping("/Gc")
 | 
					    @PostMapping("/queryGc")
 | 
				
			||||||
    public Result Gc() {
 | 
					    public Result Gc() {
 | 
				
			||||||
        String sql = " SELECT  "
 | 
					        String sql = "select id,code from Plant_Info;";
 | 
				
			||||||
                +"  commonCode.code, "
 | 
					        List<Map<String, Object>> mapList = jdbcQueryExample.sqlQuery(sql);
 | 
				
			||||||
                +"  commonCode.name From COMMON_CODE commonCode  "
 | 
					        return Result.success(mapList);
 | 
				
			||||||
                +"  where commonCode.code_Type = '工厂' ";
 | 
					    }
 | 
				
			||||||
 | 
					    /* Loc*/
 | 
				
			||||||
 | 
					    @PostMapping("/queryLoc")
 | 
				
			||||||
 | 
					    public Result Loc() {
 | 
				
			||||||
 | 
					        String sql = " select id,code from Plant_Location;";
 | 
				
			||||||
        List<Map<String, Object>> mapList = jdbcQueryExample.sqlQuery(sql);
 | 
					        List<Map<String, Object>> mapList = jdbcQueryExample.sqlQuery(sql);
 | 
				
			||||||
        return Result.success(mapList);
 | 
					        return Result.success(mapList);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -54,7 +54,7 @@ public class ZhengliqingdanController {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //库区填充
 | 
					    //库区填充
 | 
				
			||||||
    @PostMapping("ZZONE")
 | 
					    @PostMapping("/ZZONE")
 | 
				
			||||||
    public Result ZONE() {
 | 
					    public Result ZONE() {
 | 
				
			||||||
        return zhengliqingdan.ZONE();
 | 
					        return zhengliqingdan.ZONE();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue