|
|
|
@ -65,13 +65,10 @@
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options[item.dataFuc]"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:label="item.code"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.label }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
|
|
item.code
|
|
|
|
|
}}</span>
|
|
|
|
|
<span style="float: left">{{ item.code }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -87,18 +84,6 @@
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType =='datetime'" :rules="item.checkRulesObj" :prop="item.columnName">
|
|
|
|
|
<span slot="label">
|
|
|
|
|
{{item.columnDesc}}
|
|
|
|
|
</span>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="inputQuery[item.columnName]"
|
|
|
|
|
:style="item.style"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
type="datetime"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName">
|
|
|
|
|
<span slot="label">
|
|
|
|
|
{{item.columnDesc}}
|
|
|
|
@ -127,6 +112,8 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {savegg} from "@/api/anno/anncmntProduct";
|
|
|
|
|
import {getManuList} from "@/api/anno/anncmntManu";
|
|
|
|
|
import {getYlqxzczhList} from "@/api/anno/anncmntYlqxzczh";
|
|
|
|
|
import {
|
|
|
|
|
getHead,executeFuc
|
|
|
|
|
} from "@/utils/customConfig";
|
|
|
|
@ -155,7 +142,8 @@ export default {
|
|
|
|
|
tableObj:[],
|
|
|
|
|
invList:[],
|
|
|
|
|
options: {
|
|
|
|
|
|
|
|
|
|
getYlqxzczh:[],
|
|
|
|
|
getManu:[],
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -187,6 +175,40 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getYlqxzczh(_this,query) {
|
|
|
|
|
getYlqxzczhList()
|
|
|
|
|
.then((response) => {
|
|
|
|
|
_this.options.getYlqxzczh = response.data || []
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
_this.options.getYlqxzczh = []
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
changeYlqxzczh(_this,val) {
|
|
|
|
|
let obj = {};
|
|
|
|
|
obj = _this.options.getYlqxzczh.find((item)=>{ // 这里的userList就是上面遍历的数据源
|
|
|
|
|
return item.code === val; // 筛选出匹配数据
|
|
|
|
|
});
|
|
|
|
|
_this.inputQuery.ylqxzcrbarmc = obj.regCompanyName;
|
|
|
|
|
_this.inputQuery.regCreditCode = obj.code;
|
|
|
|
|
},
|
|
|
|
|
getManu(_this,query) {
|
|
|
|
|
getManuList()
|
|
|
|
|
.then((response) => {
|
|
|
|
|
_this.options.getManu = response.data || []
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
_this.options.getManu = []
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
changeManu(_this,val) {
|
|
|
|
|
let obj = {};
|
|
|
|
|
obj = _this.options.getManu.find((item)=>{ // 这里的userList就是上面遍历的数据源
|
|
|
|
|
return item.code === val; // 筛选出匹配数据
|
|
|
|
|
});
|
|
|
|
|
_this.inputQuery.manuCreditCode = obj.code;
|
|
|
|
|
_this.inputQuery.manuName = obj.label;
|
|
|
|
|
},
|
|
|
|
|
executeFuc(row,type,clickFuc,value){
|
|
|
|
|
return executeFuc(this,row,type,clickFuc,value);
|
|
|
|
|
},
|
|
|
|
@ -218,7 +240,8 @@ export default {
|
|
|
|
|
this.queryList = re.data.queryList;
|
|
|
|
|
this.fromList = re.data.fromList;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.getYlqxzczh(this);
|
|
|
|
|
this.getManu(this);
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|