代码更新

This commit is contained in:
2022-12-01 10:23:48 +08:00
parent b4f1ee22c2
commit 0781e71d48
8 changed files with 25 additions and 12 deletions

View File

@@ -62,8 +62,8 @@ public class UserStorController {
@PostMapping("/getSect") @PostMapping("/getSect")
@Log("获取人员对应下拉框-多级下拉框") @Log("获取人员对应下拉框-多级下拉框")
@ApiOperation("获取人员对应下拉框-多级下拉框") @ApiOperation("获取人员对应下拉框-多级下拉框")
public ResponseEntity<Object> getSect() { public ResponseEntity<Object> getSect(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(userStorService.getSect(),HttpStatus.OK); return new ResponseEntity<>(userStorService.getSect(whereJson),HttpStatus.OK);
} }
} }

View File

@@ -42,5 +42,5 @@ public interface UserStorService {
/** /**
* 获取人员对应下拉框 多级下拉框 * 获取人员对应下拉框 多级下拉框
*/ */
JSONObject getSect(); JSONObject getSect(JSONObject whereJson);
} }

View File

@@ -122,13 +122,14 @@ public class UserStorServiceImpl implements UserStorService {
} }
@Override @Override
public JSONObject getSect() { public JSONObject getSect(JSONObject whereJson) {
/* /*
* 获取人员对应仓库下拉框公共方法 多级下拉框 * 获取人员对应仓库下拉框公共方法 多级下拉框
*/ */
JSONArray new_ja = new JSONArray(); JSONArray new_ja = new JSONArray();
HashMap<String, String> stor_map = new HashMap<>(); HashMap<String, String> stor_map = new HashMap<>();
stor_map.put("flag", "2"); stor_map.put("flag", "2");
stor_map.put("stor_id", whereJson.getString("stor_id"));
//获取人员对应的仓库 //获取人员对应的仓库
String in_stor_id = this.getInStor(); String in_stor_id = this.getInStor();

View File

@@ -23,6 +23,7 @@
输入.is_reversed TYPEAS s_string 输入.is_reversed TYPEAS s_string
输入.blurry TYPEAS s_string 输入.blurry TYPEAS s_string
输入.in_stor_id TYPEAS f_string 输入.in_stor_id TYPEAS f_string
输入.stor_id TYPEAS s_string
[临时表] [临时表]
@@ -100,6 +101,9 @@
ENDOPTION ENDOPTION
OPTION 输入.in_stor_id <> "" OPTION 输入.in_stor_id <> ""
stor.stor_id in 输入.in_stor_id stor.stor_id in 输入.in_stor_id
ENDOPTION
OPTION 输入.stor_id <> ""
stor.stor_id = 输入.stor_id
ENDOPTION ENDOPTION
ENDSELECT ENDSELECT
ENDQUERY ENDQUERY

View File

@@ -385,7 +385,7 @@ export default {
} }
}, },
created() { created() {
crudUserStor.getSect().then(res => { crudUserStor.getSect({ 'stor_id': '' }).then(res => {
this.sects = res.content this.sects = res.content
}) })
}, },

View File

@@ -32,10 +32,11 @@ export function getUserStor(data) {
}) })
} }
export function getSect() { export function getSect(data) {
return request({ return request({
url: '/api/userStor/getSect', url: '/api/userStor/getSect',
method: 'post' method: 'post',
data
}) })
} }

View File

@@ -115,7 +115,7 @@
<span class="role-span">载具物料明细</span> <span class="role-span">载具物料明细</span>
<div class="crud-opts-form"> <div class="crud-opts-form">
<el-form ref="form" :inline="true" :model="form" size="mini"> <el-form ref="form" :inline="true" :model="form" size="mini">
<el-form-item label="区" prop="gender5"> <el-form-item label="区" prop="gender5">
<el-cascader <el-cascader
placeholder="请选择" placeholder="请选择"
:options="sects" :options="sects"
@@ -228,6 +228,7 @@ import crudSectattr from '@/views/wms/basedata/st/sect/sectattr'
import StructDiv from '@/views/wms/pub/StructDialog' import StructDiv from '@/views/wms/pub/StructDialog'
import crudRawAssist from '@/views/wms/st/inbill/rawassist' import crudRawAssist from '@/views/wms/st/inbill/rawassist'
import crudPoint from '@/views/wms/sch/point/point' import crudPoint from '@/views/wms/sch/point/point'
import crudUserStor, { getSect } from '@/views/wms/basedata/st/userStor/userStor'
export default { export default {
name: 'DivDialog', name: 'DivDialog',
@@ -251,6 +252,10 @@ export default {
billType: { billType: {
type: String, type: String,
default: null default: null
},
storId: {
type: String,
default: null
} }
}, },
data() { data() {
@@ -288,10 +293,10 @@ export default {
}, },
methods: { methods: {
open() { open() {
debugger crudUserStor.getSect({ 'stor_id': this.storId}).then(res => {
crudSectattr.getSect({ 'is_virtualstore': '1' }).then(res => {
this.sects = res.content this.sects = res.content
}) })
const area_type = '1585164789083148288' const area_type = '1585164789083148288'
crudPoint.getPoint({ 'area_type': area_type }).then(res => { crudPoint.getPoint({ 'area_type': area_type }).then(res => {

View File

@@ -213,7 +213,7 @@
</div> </div>
<AddDialog @AddChanged="querytable" /> <AddDialog @AddChanged="querytable" />
<ViewDialog :dialog-show.sync="viewShow" :rowmst="mstrow" @AddChanged="querytable" /> <ViewDialog :dialog-show.sync="viewShow" :rowmst="mstrow" @AddChanged="querytable" />
<DivDialog :dialog-show.sync="divShow" :open-param="openParam" :bill-type="billType" :buss-config="bussConfig" @AddChanged="querytable" /> <DivDialog :dialog-show.sync="divShow" :stor-id="storId" :open-param="openParam" :bill-type="billType" :buss-config="bussConfig" @AddChanged="querytable" />
<TaskDialog :dialog-show.sync="taskShow" :open-param="openParam" :buss-config="bussConfig" @AddChanged="querytable" /> <TaskDialog :dialog-show.sync="taskShow" :open-param="openParam" :buss-config="bussConfig" @AddChanged="querytable" />
</div> </div>
</template> </template>
@@ -272,7 +272,8 @@ export default {
currentRow: null, currentRow: null,
storlist: [], storlist: [],
createtypelist: [], createtypelist: [],
statuslist: [] statuslist: [],
storId: null
} }
}, },
computed: { computed: {
@@ -361,6 +362,7 @@ export default {
divOpen() { divOpen() {
crudRawAssist.getIODtl({ 'bill_code': this.currentRow.bill_code, 'open_flag': '1' }).then(res => { crudRawAssist.getIODtl({ 'bill_code': this.currentRow.bill_code, 'open_flag': '1' }).then(res => {
this.openParam = res this.openParam = res
this.storId = this.currentRow.stor_id
this.billType = this.currentRow.bill_type this.billType = this.currentRow.bill_type
this.divShow = true this.divShow = true
}) })