rev:合同在途修改为下拉框

This commit is contained in:
zhangzhiqiang
2023-04-13 16:38:03 +08:00
parent 1e30a0441f
commit e7e55249af
6 changed files with 62 additions and 11 deletions

View File

@@ -177,5 +177,18 @@
ENDQUERY ENDQUERY
ENDIF ENDIF
IF 输入.flag = "7"
QUERY
SELECT
DISTINCT PURCHASE.NAME
FROM
PURCHASE_CONTRACT_VIEW PURCHASE
where
PURCHASE.STATUSFLAG = '1'
AND PURCHASE.DEL_FLAG = '0'
ENDSELECT
ENDQUERY
ENDIF

View File

@@ -109,6 +109,13 @@ public class StatisticalReportController {
return new ResponseEntity<>(statisticalReportService. return new ResponseEntity<>(statisticalReportService.
query3(whereJson),HttpStatus.OK); query3(whereJson),HttpStatus.OK);
} }
@GetMapping("/supplier")
@Log("查询erp供应商")
@ApiOperation("查询erp供应商")
public ResponseEntity<Object> supplier(){
return new ResponseEntity<>(statisticalReportService.
getSupplier(),HttpStatus.OK);
}
@GetMapping("/query4") @GetMapping("/query4")
@Log("查询月生产计划") @Log("查询月生产计划")
@ApiOperation("查询月生产计划") @ApiOperation("查询月生产计划")

View File

@@ -48,6 +48,8 @@ public interface StatisticalReportService {
JSONArray query3(Map whereJson); JSONArray query3(Map whereJson);
JSONArray getSupplier();
JSONArray query4(Map whereJson); JSONArray query4(Map whereJson);

View File

@@ -347,10 +347,10 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
JSONObject map = new JSONObject(); JSONObject map = new JSONObject();
map.put("flag", "4"); map.put("flag", "4");
map.put("ext_id", jsonMater.getString("ext_id")); map.put("ext_id", jsonMater.getString("ext_id"));
// JSONObject num_jo = null; JSONObject num_jo = null;
JSONObject num_jo = WQL.getWO("QL_ERP").addParamMap(map).setDbname("dataSource1").process().uniqueResult(0); // JSONObject num_jo = WQL.getWO("QL_ERP").addParamMap(map).setDbname("dataSource1").process().uniqueResult(0);
@@ -586,6 +586,15 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
return ja; return ja;
} }
@Override
public JSONArray getSupplier() {
JSONArray ja = WQL.getWO("QL_ERP")
.setDbname("dataSource1")
.addParam("flag", "7")
.process().getResultJSONArray(0);
return ja;
}
@Override @Override
public JSONArray query4(Map whereJson) { public JSONArray query4(Map whereJson) {
HashMap<String, String> map = new HashMap<>(whereJson); HashMap<String, String> map = new HashMap<>(whereJson);

View File

@@ -46,6 +46,13 @@ export function query3(params) {
}) })
} }
export function supplier() {
return request({
url: 'api/statistical/supplier',
method: 'get'
})
}
export function query4(params) { export function query4(params) {
return request({ return request({
url: 'api/statistical/query4', url: 'api/statistical/query4',
@@ -62,4 +69,4 @@ export function confirmOutStore(data) {
}) })
} }
export default { getHeader, getHeader2, materPlanDtlQuery, query1, query2, query3, query4, confirmOutStore } export default { getHeader, getHeader2, materPlanDtlQuery, query1, query2, query3, query4, supplier, confirmOutStore }

View File

@@ -28,14 +28,22 @@
:value="item.material_id" :value="item.material_id"
/> />
</el-select> </el-select>
供应商:<el-input 供应商:<el-select
v-model="queryrow.source_name" v-model="queryrow.source_name"
size="mini" clearable
style="width: 200px" size="mini"
clearable placeholder="供应商"
placeholder="模糊查询" class="filter-item"
@change="MyQuery3" @change="MyQuery3"
/> >
<el-option
v-for="item in Depts"
:key="item.index"
:label="item"
:value="item"
>
</el-option>
</el-select>
<el-checkbox <el-checkbox
v-model="queryrow.hide" v-model="queryrow.hide"
style="color: red" style="color: red"
@@ -115,6 +123,7 @@ export default {
fullscreenLoading: false, fullscreenLoading: false,
queryrow: { material_id: '', source_name: '', hide: true }, queryrow: { material_id: '', source_name: '', hide: true },
sortable: null, sortable: null,
Depts: [],
rows: [] rows: []
} }
}, },
@@ -147,6 +156,10 @@ export default {
this.XLList = res this.XLList = res
}) })
this.MyQuery2() this.MyQuery2()
report.supplier().then(res => {
debugger
this.Depts = res
})
}, },
/** /**
* 接受父组件传值 * 接受父组件传值