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. 16
      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">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<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-form>
</div>

@ -4,6 +4,22 @@
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<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-form>
</div>

@ -10,6 +10,21 @@
v-model="styleId"></j-dict-select-tag>
</a-form-item>
</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">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
@ -312,6 +327,9 @@ export default {
//
loadRouteType: false,
styleId: "",
processCode:'',
processName:'',
enterpriseId:'',
dictOptions: {},
superFieldList: [],
}
@ -378,8 +396,18 @@ export default {
param.pageNo = this.ipagination.current;
param.pageSize = this.ipagination.pageSize;
param.styleId = this.styleId;
param.enterpriseId=this.enterpriseId;
param.processCode=this.processCode;
param.processName=this.processName;
return filterObj(param);
},
searchReset() {
this.styleId = ''
this.processCode = ''
this.processName = ''
this.enterpriseId = ''
this.loadData(1);
},
getSuperFieldList() {
let fieldList = [];
fieldList.push({type: 'string', value: 'processCode', text: '工序代码', dictCode: ''})

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

@ -5,7 +5,7 @@
<a-row>
<a-col :span="24">
<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-col>
@ -13,7 +13,7 @@
<a-col :span="24">
<a-form-model-item label="款式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="styleId">
<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>
<!-- 编码也是唯一的和id一样 -->
</a-col>
@ -90,6 +90,7 @@ export default {
model: {
nums:'',
},
dict:"zy_cloths_style,style_names,nums",
labelCol: {
xs: {span: 24},
sm: {span: 5},
@ -150,6 +151,9 @@ export default {
this.edit(this.modelDefault);
},
//
kuanshi(){
this.dict="zy_cloths_style,style_names,nums,enterprise_id="+"'"+this.model.userId+"'";
},
gaibian(){
var n=3;
console.log(this.model)

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

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

Loading…
Cancel
Save