1.资金流水增加型号

This commit is contained in:
邱贞招 2024-08-29 16:23:44 +08:00
parent dd6be18b7b
commit 8bc6a04bbe
2 changed files with 24 additions and 5 deletions

View File

@ -463,7 +463,7 @@ export default {
showSearch: true, showSearch: true,
// //
deptList: [], deptList: [],
appUserId: null, // appUserId: null,
// //
total: 0, total: 0,
// //
@ -718,10 +718,10 @@ export default {
// this.form.isProfitSharing = this.form.isProfitSharing === 'true'; // this.form.isProfitSharing = this.form.isProfitSharing === 'true';
this.form.isUsePlatformApp = this.form.isUsePlatformApp === 'true'; this.form.isUsePlatformApp = this.form.isUsePlatformApp === 'true';
console.log("userName==========="+response.data.userName) console.log("userName==========="+response.data.userName)
this.appUserId = this.form.appUserId; // this.appUserId = this.form.appUserId;
if(response.data.userName){ // if(response.data.userName){
this.form.appUserId = response.data.userName; // this.form.appUserId = response.data.userName;
} // }
listArea({ pageNum: 1, pageSize: 999}).then(response => { listArea({ pageNum: 1, pageSize: 999}).then(response => {
this.areaOptions = response.rows; this.areaOptions = response.rows;
}); });

View File

@ -68,6 +68,16 @@
end-placeholder="结束日期" end-placeholder="结束日期"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="型号" prop="modelId" >
<el-select v-model="queryParams.modelId" filterable placeholder="请选择型号" clearable>
<el-option
v-for="item in modelOptions"
:key="item.modelId"
:label="item.model"
:value="item.modelId"
></el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -205,6 +215,7 @@
<script> <script>
import { listFlow, getFlow, delFlow, addFlow, updateFlow } from "@/api/system/flow"; import { listFlow, getFlow, delFlow, addFlow, updateFlow } from "@/api/system/flow";
import { optionselect as getAreaOptionselect } from '@/api/system/area' import { optionselect as getAreaOptionselect } from '@/api/system/area'
import { listModel } from '@/api/system/model'
export default { export default {
name: "Flow", name: "Flow",
@ -222,6 +233,7 @@ export default {
// //
showSearch: true, showSearch: true,
areaOptions: [], areaOptions: [],
modelOptions: [],
// //
userName: undefined, userName: undefined,
// //
@ -239,6 +251,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 20,
areaId: null, areaId: null,
modelId: null,
orderNo: null, orderNo: null,
outTradeNo: null, outTradeNo: null,
type: null, type: null,
@ -262,8 +275,14 @@ export default {
this.userName = this.$store.state.user.name; this.userName = this.$store.state.user.name;
this.getList(); this.getList();
this.getAreaList(); this.getAreaList();
this.getModelList();
}, },
methods: { methods: {
getModelList() { // getAreaOptionselect()
listModel(this.queryParams).then(response => {
this.modelOptions = response.rows;
});
},
/** 查询字典类型列表 */ /** 查询字典类型列表 */
getAreaList() { getAreaList() {
getAreaOptionselect().then(response => { getAreaOptionselect().then(response => {