c4499985 by renchao@pashanhoo.com

style:申请业务规则

1 parent e305382e
......@@ -103,17 +103,6 @@ class data extends filter {
return [
{
width: '60',
renderHeader: (h, scope) => {
return <i class="el-icon-plus pointer" onClick={() => { vm.addDjqx() }} style="color:#409EFF"></i>
},
render: (h, scope) => {
return (
<i class="el-icon-minus pointer" onClick={() => { vm.removeDjqx(scope.$index, scope.row) }}></i>
)
}
},
{
width: '60',
label: '序号',
type: 'index'
},
......@@ -165,7 +154,7 @@ class data extends filter {
return (
<div>
<el-button type='text' disabled={scope.$index == 0} onClick={() => { vm.moveUpward(scope.$index, scope.row, 'djqx') }}>上移</el-button>
<el-button type='text' disabled={(scope.$index + 1) == vm.form.djqx.length} onClick={() => { vm.moveDown(scope.$index, scope.row, 'djqx') }}>下移</el-button >
<el-button type='text' disabled={(scope.$index + 1) == vm.form.djlx.length} onClick={() => { vm.moveDown(scope.$index, scope.row, 'djqx') }}>下移</el-button >
</div>
)
}
......@@ -260,7 +249,7 @@ class data extends filter {
},
{
prop: 'djqxbm',
label: '登记情形',
label: '登记情形名称',
width: '180',
render: (h, scope) => {
return (
......@@ -269,7 +258,126 @@ class data extends filter {
{
vm.form.djqx.map(option => {
return (
<el-option label={option.nodename} value={option.nodecode}></el-option>
<el-option label={option.nodename} value={option.bsmSqyw}></el-option>
)
})
}
</el-select>
)
}
},
{
label: '移动',
width: '90',
render: (h, scope) => {
return (
<div>
<el-button type='text' disabled={scope.$index == 0} onClick={() => { vm.moveUpward(scope.$index, scope.row, 'clxx') }}>上移</el-button>
<el-button type='text' disabled={(scope.$index + 1) == vm.form.clxx.length} onClick={() => { vm.moveDown(scope.$index, scope.row, 'clxx') }}>下移</el-button >
</div>
)
}
}
]
}
ybsqClxxCol () {
return [
{
width: '60',
renderHeader: (h, scope) => {
return <i class="el-icon-plus pointer" onClick={() => { vm.addClxx() }} style="color:#409EFF"></i>
},
render: (h, scope) => {
return (
<i class="el-icon-minus pointer" onClick={() => { vm.removeClxx(scope.$index, scope.row) }}></i>
)
}
},
{
width: '60',
label: '序号',
type: 'index'
},
{
label: '是否必填',
prop: 'isrequired',
width: '110',
render: (h, scope) => {
return (
<el-radio-group value={scope.row[scope.column.property]} onInput={(val) => {
scope.row[scope.column.property] = val
}}>
<el-radio label={'0'}></el-radio>
<el-radio label={'1'}></el-radio>
</el-radio-group>
)
}
},
{
prop: 'clbm',
label: '材料编码',
width: '100',
render: (h, scope) => {
return (
<el-input placeholder="材料编码" value={scope.row[scope.column.property]}
onInput={(val) => { scope.row[scope.column.property] = val; orderNoChange() }} maxlength="8"></el-input>
)
}
},
{
prop: 'clmc',
label: '材料名称',
render: (h, scope) => {
return (
<el-input placeholder="材料名称" value={scope.row[scope.column.property]}
onInput={(val) => { scope.row[scope.column.property] = val; orderNoChange() }}></el-input>
)
}
},
{
prop: 'cllx',
label: '材料类型',
width: '115',
render: (h, scope) => {
return (
<el-select value={scope.row[scope.column.property]}
onChange={(val) => { scope.row[scope.column.property] = val }} clearable>
{
store.getters.dictData['A40'].map(option => {
return (
<el-option label={option.dname} value={option.dcode}></el-option>
)
})
}
</el-select>
)
}
},
{
label: '是否公共材料',
prop: 'sfggcl',
width: '110',
render: (h, scope) => {
return (
<el-radio-group value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}>
<el-radio label={'1'}></el-radio>
<el-radio label={'0'}></el-radio>
</el-radio-group>
)
}
},
{
prop: 'djqxbm',
label: '业务名称',
width: '180',
render: (h, scope) => {
return (
<el-select disabled={scope.row.sfggcl == '1'} value={scope.row[scope.column.property]}
onChange={(val) => { scope.row[scope.column.property] = val }} clearable>
{
vm.form.ywmcList.map(option => {
return (
<el-option label={option.nodename} value={option.bsmSqyw}></el-option>
)
})
}
......@@ -291,7 +399,6 @@ class data extends filter {
}
]
}
}
let datas = new data()
export {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-13 09:30:24
* @LastEditTime: 2023-10-13 10:07:31
-->
<template>
<div>
......@@ -111,7 +111,7 @@
</lb-table>
</el-collapse-item>
<el-collapse-item title="材料信息设置" name="2">
<lb-table :column="clxxCol" :heightNumSetting="true" :minHeight="160"
<lb-table :column="clxxList" :heightNumSetting="true" :minHeight="160"
:pagination="false" :data="form.clxx">
</lb-table>
</el-collapse-item>
......@@ -188,7 +188,9 @@
// clxx: []
},
djqxCol: datas.djqxCol(),
clxxList: [],
clxxCol: datas.clxxCol(),
ybsqClxxCol: datas.ybsqClxxCol(),
qlxxCol: datas.qlxxCol(),
};
},
......@@ -206,7 +208,9 @@
this.tn = 0;
if (this.formData.sqfl == "2") {
this.getDetail(this.formData.bsmSqyw);
this.clxxList = this.ybsqClxxCol
} else {
this.clxxList = this.clxxCol
getDjlxInfo(this.formData.bsmSqyw).then((res) => {
let { result } = res;
this.djlxList = result ? result : [];
......@@ -273,8 +277,10 @@
getSqdjywDetail(bsmSqyw).then((res) => {
if (res.code === 200) {
this.form = res.result;
console.log(this.form.clxx);
if (that.formData.sqfl == "2") {
that.form.djqx = that.form.djlx.map(item => ({ nodename: item.djywmc + '+' + item.nodename, bsmSqyw: item.bsmSqyw }))
that.form.ywmcList = that.form.djlx.map(item => ({ nodename: item.djywmc + '+' + item.nodename, bsmSqyw: item.bsmSqyw }))
console.log(that.form.ywmcList, ' that.form.ywmcList');
}
// _this.form.bsmSqyw = res.result.bsmSqyw;
// _this.form.ywDetail = res.result.ywDetail;
......@@ -328,7 +334,7 @@
if (type == "clxx") {
upward(index, this.form.clxx);
} else {
upward(index, this.form.djqx);
upward(index, this.form.djlx);
}
},
/**
......@@ -342,7 +348,7 @@
if (type == "clxx") {
down(index, this.form.clxx);
} else {
down(index, this.form.djqx);
down(index, this.form.djlx);
}
},
/**
......