Commit b3d76cf7 by fukai

完善ditsel查询。明天继续优化

parent 5829de52
...@@ -146,48 +146,28 @@ export default { ...@@ -146,48 +146,28 @@ export default {
this.resultDisplay = false; this.resultDisplay = false;
// TODO // TODO
let link = "";
switch(row.OBJTYP.trim()){ let trns = {
case "DID": did:"ditsel",
link = "ditsel" lid:"litsel",
break cpd:"cptsel",
case "LID": ded:"detsel",
link = "litsel" led:"letsel",
break; bpd:"bptsel",
case "CPD": ccd:"cctsel",
link = "cptsel" ged:"getsel",
break; gid:"gitsel",
case "DED": mcd:"mctsel",
link = "detsel" trd:"trtsel"
break;
case "LED":
link = "letsel"
break;
case "BPD":
link = "bptsel"
break;
case "CCD":
link = "cctsel"
break;
case "GED":
link = "getsel"
break;
case "GID":
link = "gitsel"
break;
case "MCD":
link = "mctsel"
break;
case "TRD":
link = "trtsel"
break;
} }
let objtyp = row.OBJTYP.trim().toLowerCase()
let link = trns[objtyp];
console.log("go to ..."+link); console.log("go to ..."+link);
if(!link){ if(!link){
this.$notify.error({title: '错误',message: '未知的objtyp:'+row.OBJTYP+"!"}) this.$notify.error({title: '错误',message: '未知的objtyp:'+row.OBJTYP+"!"})
return return
} }
this.$router.push({name:link.toUpperCase().substring(0,1)+link.substring(1),query:{ownref:row.OWNREF.trim()}}) this.$router.push({name:link.toUpperCase().substring(0,1)+link.substring(1),query:{ownref:row.OWNREF.trim(),objtyp}})
}, },
focusInput() { focusInput() {
if (this.searchResult.length > 0) { if (this.searchResult.length > 0) {
......
...@@ -21,8 +21,8 @@ export default { ...@@ -21,8 +21,8 @@ export default {
executeDefault(rulePath, params) { executeDefault(rulePath, params) {
return Api.post(this.declareParams.trnName + "/executeDefault/" + rulePath, this.wrapper(params)) return Api.post(this.declareParams.trnName + "/executeDefault/" + rulePath, this.wrapper(params))
}, },
executeRule(rulePath, params) { executeRule(rulePath, params,delayCb) {
return Api.post(this.declareParams.trnName + "/executeRule/" + rulePath, this.wrapper(params)) return Api.post(this.declareParams.trnName + "/executeRule/" + rulePath, this.wrapper(params,delayCb))
}, },
async checkAll(params) { async checkAll(params) {
const res = await Api.post(this.declareParams.trnName + "/checkAll", this.wrapper(params)) const res = await Api.post(this.declareParams.trnName + "/checkAll", this.wrapper(params))
......
import commonDeclare from "./commonDeclare" import commonDeclare from "./commonDeclare"
import commonApi from "./commonApi" import commonApi from "./commonApi"
import commonGlobalSearch from "./commonGlobalSearch";
import Utils from "~/utils" import Utils from "~/utils"
import _ from "~/utils/Lodash.js"; import _ from "~/utils/Lodash.js";
export default { export default {
mixins: [commonApi, commonDeclare], mixins: [commonApi, commonDeclare,commonGlobalSearch],
data: function () { data: function () {
return { return {
// 弹框回填 // 弹框回填
...@@ -130,15 +131,17 @@ export default { ...@@ -130,15 +131,17 @@ export default {
/** /**
* 以函数形式获取model(请求参数),保证取到的是最新赋值的 * 以函数形式获取model(请求参数),保证取到的是最新赋值的
* @param {any} params 参数 * @param {any} params 参数
* @param {any} selfCb 允许延时组数 参数
* @returns * @returns
*/ */
wrapper(params) { wrapper(params,delayCb) {
params = params || {} params = params || {}
const fn = async () => { const fn = async () => {
const that = this; const that = this;
const data = await new Promise(resolve => { const data = await new Promise(resolve => {
// 保证前一次请求结果赋值VO完成 // 保证前一次请求结果赋值VO完成
setTimeout(() => { setTimeout(() => {
delayCb && delayCb()
const d = Utils.flatObject(that.model) const d = Utils.flatObject(that.model)
resolve(d) resolve(d)
}, 0) }, 0)
......
...@@ -1035,7 +1035,7 @@ ...@@ -1035,7 +1035,7 @@
<el-divider /> <el-divider />
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :offset="12" :span="10"> <!-- <c-col :offset="12" :span="10">
<el-tabs tab-position="right" @tab-click="change"> <el-tabs tab-position="right" @tab-click="change">
<el-tab-pane label="信用证"> <el-tab-pane label="信用证">
<sel-mune :data="items.item1" /> <sel-mune :data="items.item1" />
...@@ -1062,7 +1062,7 @@ ...@@ -1062,7 +1062,7 @@
<sel-mune :data="items.item8" <sel-mune :data="items.item8"
/></el-tab-pane> /></el-tab-pane>
</el-tabs> </el-tabs>
</c-col> </c-col> -->
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<c-checkbox v-model="model.bddget.clsflg" <c-checkbox v-model="model.bddget.clsflg"
>which contracts to show</c-checkbox >which contracts to show</c-checkbox
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment