2022-12-13查询页

zhc4dev
lenovo 2 years ago
parent f6482afcd2
commit 212c4d41ca
  1. 16
      ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue
  2. 20
      ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesTypeList.vue
  3. 28
      ant-design-vue-jeecg/src/views/process/ZyProcessList.vue
  4. 10
      ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue
  5. 8
      ant-design-vue-jeecg/src/views/zyclothsample/modules/ZyClothSampleForm.vue
  6. 4
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/accessories/controller/ZyAccessoriesController.java
  7. 4
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/accessories/controller/ZyAccessoriesTypeController.java

@ -4,6 +4,22 @@
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="编号">
<a-input placeholder="编号" v-model="queryParam.nums"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="名称">
<a-input placeholder="名称" v-model="queryParam.contents"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
</span>
</a-col>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>

@ -3,8 +3,24 @@
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
</a-row> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="编号">
<a-input placeholder="请输入编号" v-model="queryParam.nums"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="名称">
<a-input placeholder="请输入名称" v-model="queryParam.contents"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
</span>
</a-col>
</a-row>
</a-form> </a-form>
</div> </div>
<!-- 查询区域-END --> <!-- 查询区域-END -->

@ -10,6 +10,21 @@
v-model="styleId"></j-dict-select-tag> v-model="styleId"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="工序代码">
<a-input placeholder="工序代码" v-model="processCode"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="工序名称">
<a-input placeholder="工序名称" v-model="processName"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId">
<j-select-depart v-model="enterpriseId" placeholder="请输入企业名称" />
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
@ -312,6 +327,9 @@ export default {
// //
loadRouteType: false, loadRouteType: false,
styleId: "", styleId: "",
processCode:'',
processName:'',
enterpriseId:'',
dictOptions: {}, dictOptions: {},
superFieldList: [], superFieldList: [],
} }
@ -378,8 +396,18 @@ export default {
param.pageNo = this.ipagination.current; param.pageNo = this.ipagination.current;
param.pageSize = this.ipagination.pageSize; param.pageSize = this.ipagination.pageSize;
param.styleId = this.styleId; param.styleId = this.styleId;
param.enterpriseId=this.enterpriseId;
param.processCode=this.processCode;
param.processName=this.processName;
return filterObj(param); return filterObj(param);
}, },
searchReset() {
this.styleId = ''
this.processCode = ''
this.processName = ''
this.enterpriseId = ''
this.loadData(1);
},
getSuperFieldList() { getSuperFieldList() {
let fieldList = []; let fieldList = [];
fieldList.push({type: 'string', value: 'processCode', text: '工序代码', dictCode: ''}) fieldList.push({type: 'string', value: 'processCode', text: '工序代码', dictCode: ''})

@ -107,11 +107,11 @@
<a-input-number v-model="model.machineTime" placeholder="请输入机器时间" style="width: 100%" /> <a-input-number v-model="model.machineTime" placeholder="请输入机器时间" style="width: 100%" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <!-- <a-col :span="24">-->
<a-form-model-item label="机器浮于" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="machineFloat"> <!-- <a-form-model-item label="机器浮于" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="machineFloat">-->
<a-input v-model="model.machineFloat" placeholder="请输入机器浮于" ></a-input> <!-- <a-input v-model="model.machineFloat" placeholder="请输入机器浮于" ></a-input>-->
</a-form-model-item> <!-- </a-form-model-item>-->
</a-col> <!-- </a-col>-->
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="绑包宽放" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bundleWide"> <a-form-model-item label="绑包宽放" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bundleWide">
<a-input v-model="model.bundleWide" placeholder="请输入绑包宽放" ></a-input> <a-input v-model="model.bundleWide" placeholder="请输入绑包宽放" ></a-input>

@ -5,7 +5,7 @@
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId"> <a-form-model-item label="企业" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterpriseId">
<j-select-depart v-model="model.userId" /> <j-select-depart v-model="model.userId" @change="kuanshi" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
@ -13,7 +13,7 @@
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleId"> <a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleId">
<j-dict-select-tag v-model="model.styleId" placeholder="请输入款式" <j-dict-select-tag v-model="model.styleId" placeholder="请输入款式"
dict-code="zy_cloths_style,style_names,nums"></j-dict-select-tag> :dict-code="dict"></j-dict-select-tag>
</a-form-model-item> </a-form-model-item>
<!-- 编码也是唯一的和id一样 --> <!-- 编码也是唯一的和id一样 -->
</a-col> </a-col>
@ -90,6 +90,7 @@ export default {
model: { model: {
nums:'', nums:'',
}, },
dict:"zy_cloths_style,style_names,nums",
labelCol: { labelCol: {
xs: {span: 24}, xs: {span: 24},
sm: {span: 5}, sm: {span: 5},
@ -150,6 +151,9 @@ export default {
this.edit(this.modelDefault); this.edit(this.modelDefault);
}, },
// //
kuanshi(){
this.dict="zy_cloths_style,style_names,nums,enterprise_id="+"'"+this.model.userId+"'";
},
gaibian(){ gaibian(){
var n=3; var n=3;
console.log(this.model) console.log(this.model)

@ -67,8 +67,8 @@ public class ZyAccessoriesController extends JeecgController<ZyAccessories, IZyA
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) { HttpServletRequest req) {
//QueryWrapper<ZyAccessories> queryWrapper = QueryGenerator.initQueryWrapper(zyAccessories, req.getParameterMap()); QueryWrapper<ZyAccessories> queryWrapper = QueryGenerator.initQueryWrapper(zyAccessories, req.getParameterMap());
QueryWrapper queryWrapper = new QueryWrapper(); // QueryWrapper queryWrapper = new QueryWrapper();
Page<ZyAccessories> page = new Page<ZyAccessories>(pageNo, pageSize); Page<ZyAccessories> page = new Page<ZyAccessories>(pageNo, pageSize);
IPage<ZyAccessories> pageList = zyAccessoriesService.page(page, queryWrapper); IPage<ZyAccessories> pageList = zyAccessoriesService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);

@ -66,8 +66,8 @@ public class ZyAccessoriesTypeController extends JeecgController<ZyAccessoriesTy
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) { HttpServletRequest req) {
//QueryWrapper<ZyAccessoriesType> queryWrapper = QueryGenerator.initQueryWrapper(zyAccessoriesType, req.getParameterMap()); QueryWrapper<ZyAccessoriesType> queryWrapper = QueryGenerator.initQueryWrapper(zyAccessoriesType, req.getParameterMap());
QueryWrapper queryWrapper = new QueryWrapper(); // QueryWrapper queryWrapper = new QueryWrapper();
Page<ZyAccessoriesType> page = new Page<ZyAccessoriesType>(pageNo, pageSize); Page<ZyAccessoriesType> page = new Page<ZyAccessoriesType>(pageNo, pageSize);
IPage<ZyAccessoriesType> pageList = zyAccessoriesTypeService.page(page, queryWrapper); IPage<ZyAccessoriesType> pageList = zyAccessoriesTypeService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);

Loading…
Cancel
Save