Commit f01a6664 by 乔延琦

Merge branch 'develop-yuancheng' into 'develop'

Develop yuancheng

See merge request GFP/RBC/rbc-frontend!63
parents 9a221604 280eb4b3
......@@ -67,14 +67,18 @@ export default {
}else{
if(msg[0]== 1 ){
GAMS.Common.messagePrompt(msg[1]);
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
}else{
GMS.$hideContainer.$Modal.confirm({
title: '信息提示',
content: msg[1],
onOk: () => {
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
GMS.vbus.$emit('cacheEcho', buidData);//正常情况回去给子表赋值
},
onCancel: () => {}
onCancel: () => {
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
}
});
}
}
......@@ -82,7 +86,8 @@ export default {
}).catch(resp=>{
// bill.setControlsSate(param["_control_name_"], 'enable',true);
console.error("cacheSaveAction:接口调用失败 resp:"+ resp)
GAMS.Common.messagePrompt('单据保存失败..');
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
GAMS.Common.messagePrompt('单据保存失败。');
})
}
}
......@@ -7,7 +7,6 @@
<Icon type="ios-more" class="more-select" slot="suffix" @click="handleInputSelect" />
</Input>
</div>
<!-- <div class="api" slot="content"> -->
<ul ref="searchList" class="acct-search-list" :class="{'is-focus': hasFocus}" @mouseleave="onResultList = false" @mouseenter="onResultList = true">
<li :class="['acct-search-item',selectIndex === index ? 'selected' : '',{active: activeName == item.name}]" v-for="(item,index) in baseDataList" :key="item.code" :value="item.code" @click="handleMainSearchSelectClick(item)">
<span class="acct-search-label">{{ item.code + ' ' + item.name }}</span>
......@@ -16,7 +15,6 @@
<span class="list-empty">无匹配数据</span>
</li>
</ul>
<!-- </div> -->
</el-popover>
<!-- 弹框 -->
<EditModal v-if="showModal" v-model="showModal" :title="title" :selection="selection" :table-name="tableName" :multiple="multiple" :tableKey="tableKey" :treeKey="treeKey" :tableColumns="tableColumns" :searchPlaceholder="searchPlaceholder" :authType="authType" :versionDate="versionDate" :modalWidth="modalWidth" :isLeaf="isLeaf" :hideSelected="hideSelected" :structtype="structtype" :groupTableName="groupTableName" :treeTableName="treeTableName" :filterFormular="filterFormular" :filterFormularSP="filterFormularSP" :billdefineName="billdefineName" :billId="billId" :bill="bill" :isFilter="isFilter" :rowIndex="rowIndex" @on-ok="onSelectOk" />
......@@ -26,7 +24,7 @@
import EditModal from './edit-modal.vue'
import baseDataMixin from './baseDataMixin'
import indexMixin from './indexMixin'
import { addResizeListener, removeResizeListener } from 'element-ui/src/utils/resize-event'
import { addResizeListener } from 'element-ui/src/utils/resize-event'
export default {
mixins: [indexMixin, baseDataMixin],
......
......@@ -178,7 +178,7 @@ export default {
GMS.$http
.post('/org/data/list', param)
.then((res) => {
const { rows, rs, total } = res.data
const { rows, total } = res.data
this.pageTotal = total
let _tabledatas = rows
this.refreshRowsCheckStatus(this.selection, _tabledatas)
......@@ -190,7 +190,6 @@ export default {
console.log('error', err)
})
} else {
let that = this
this.loading = true
// 更新右侧table
let postData = {}
......@@ -248,7 +247,7 @@ export default {
this.tableDatas = []
return
}
const { rows, rs, total } = response.data
const { rows, total } = response.data
this.pageTotal = total
let _tabledatas = rows
......
......@@ -106,6 +106,7 @@ export default {
layout: {},
name: 'ButtonControl_1',
title: '关闭',
except: true
},
billStateDisable: false
}
......
<template>
<div>
<Input v-model="value" type='number' :disabled="state=='readOnly'" @on-blur="onBlur" />
</div>
</template>
<script>
import Input from './util/bc_input'
export default {
mixins: [Input],
data() {
return {}
},
methods: {}
}
</script>
<style lang='less' scoped>
</style>
\ No newline at end of file
<template>
<div>
<Select
v-model="value"
clearable
:disabled="state=='readOnly'"
@on-change="onBlur"
>
<Option
v-for="item in userList"
:value="item.id"
:key="item.id"
:disabled="!item.enabled"
>{{item.fullname}}</Option>
</Select>
</div>
</template>
<script>
import input from './util/bc_input'
export default {
mixins: [input],
data() {
return {
userList: []
}
},
mounted() {
this.getUserList()
},
methods: {
getUserList() {
// 获取当前单位下的用户
let orgCode = ''
try {
orgCode = nros.userContext.userInfo.loginUnit
} catch (error) {
this.$Message.error(error)
}
GMS.$http.get(`/nvwa-user/v1/user/orgCode/${orgCode}`)
.then((res) => {
const { data } = res
this.userList = data
})
.catch((err) => {
console.log('error', err)
})
}
}
}
</script>
<style lang='less' scoped>
</style>
\ No newline at end of file
......@@ -200,7 +200,7 @@ export default {
if(config.formulas[key] === "false"){
this[`setControl${key}`]&&this[`setControl${key}`]();
}else{
this.context.bill.getControlState(key,this.define.name);
this.context.bill.getControlState(key,this.define.name,this.define.config.field);
}
}
}
......@@ -260,17 +260,24 @@ export default {
this.addControlStateListener();
}
if(!this.context.bill.getGlobalParam('_old_action_status')){
if(this.context.controlState === 'readOnly'){
this.state = 'readOnly';
}else if(!this.context.bill.getGlobalParam('_old_action_status')){
this.getControlState(this.define.config);
}
}
}.bind(this));
if(this.define.config.field == 'gams_inspectionentry.inspector'){
console.log(this.define,'this.define')
}
},
created(){
if(this.define.config.formulas){
let _fieldNameRelation = this.context.bill.getGlobalParam('_field_name_relation_')||{};
_fieldNameRelation[this.define.config.field] = {name:this.define.name,editable:this.define.config.formulas.editable};
this.context.bill.setGlobalParam('_field_name_relation_',_fieldNameRelation);
}else{
let _fieldNameRelation = this.context.bill.getGlobalParam('_field_name_relation_')||{};
_fieldNameRelation[this.define.config.field] = {name:this.define.name,editable:true};
this.context.bill.setGlobalParam('_field_name_relation_',_fieldNameRelation);
}
this.getContentStatus();
},
props: {
......
......@@ -46,6 +46,60 @@ export default {
"path": "单据/通用"
},
{
"title": "用户选择",
"description": "",
"discard": false,
"dynamicComponent": 'billForm',
"extends": {
"config": [
{
"key": "formulas.editable",
"type": "formula",
"title": "是否可编辑",
"configFormula": true,
"disableSwitch": false,
"formulas.editable": true
},
{
"key": "field",
"type": "field",
"ref": "BillClassVO.attributes",
"disableReload": false,
"title": "关联字段"
},
]
},
"value": "userSelectControl",
"path": "资产/通用"
},
{
"title": "整数输入",
"description": "",
"discard": false,
"dynamicComponent": 'billForm',
"extends": {
"config": [
{
"key": "formulas.editable",
"type": "formula",
"title": "是否可编辑",
"configFormula": true,
"disableSwitch": false,
"formulas.editable": true
},
{
"key": "field",
"type": "field",
"ref": "BillClassVO.attributes",
"disableReload": false,
"title": "关联字段"
},
]
},
"value": "integerControl",
"path": "资产/通用"
},
{
"value": "ButtonControl",
"discard": false,
"path": "资产/通用",
......@@ -1299,7 +1353,6 @@ export default {
"description": "",
"title": "财务_查询草稿[CW_draftSearchAction]",
"value": "draftSearchAction",
"btnDisable": "false",
"btnDisable": "billReadOnly;1;90;91;92"
}, {
"discard": false,
......
......@@ -69,6 +69,8 @@ import buttonGroupControl from './control/buttonGrouop'
import rbcBasedataTree from './control/baseDataSelect/index.vue'
import newsDetail from './components-control/news-detail.vue'
import queryDate from './control/query-date.vue'
import userSelectControl from './control/userSelect.vue'
import integerControl from './control/integerControl.vue'
//formula
import GetMdByFormerCode from './formula/GetMdByFormerCode'
import GetBrowserVersion from './formula/GetBrowserVersion'
......@@ -257,7 +259,9 @@ export default {
buttonGroupControl,
ApprovalUserControl,
WorkflowTrack,
rbcBasedataTree
rbcBasedataTree,
userSelectControl,
integerControl
},
formula: {
SubTableSetBaseData,
......
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