31c6464a by renchao@pashanhoo.com

style:权利人信息

1 parent f0f5c94e
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-07 16:01:19
* @LastEditTime: 2023-09-12 14:48:12
-->
<template>
<div class="clmlmx-box">
......@@ -334,7 +334,6 @@
})
})
},
// 字典
/**
* @description: 字典
* @param {*} val
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-11 13:35:33
* @LastEditTime: 2023-09-12 15:18:52
-->
<template>
<div class="clmlmx-box">
<lb-table :column="column" :key="key" :heightNumSetting="true" :calcHeight="600" :pagination="false" :data="tableData">
<lb-table :column="column" :key="key" :heightNumSetting="true" :calcHeight="500" :pagination="false" :data="tableData">
</lb-table>
<div class="text-center">
<el-button @click="handleCancel">取消</el-button>
<el-button type="primary" @click="handleSubmit" :loading="loading" v-if="formData.ableOperation && tableData.length>0">保存</el-button>
<el-button type="primary" @click="handleSubmit" :loading="loading">保存</el-button>
</div>
</div>
</template>
......@@ -32,37 +32,28 @@
loading: false,
column: [
{
width: "50",
label: '序号',
type: 'index'
},
{
prop: "isrequired",
label: "是否必选",
width: "80",
render: (h, scope) => {
if (scope.row.isrequired === "1") {
return (
<div>
<span>必选</span>
</div>
);
}
else {
return (
<div>
<span>可选</span>
</div>
)
width: '50',
renderHeader: (h, scope) => {
return <div> {
<i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }}></i>
}
</div>
},
render: (h, scope) => {
return (
<div>
{
<i class="el-icon-minus pointer" onClick={() => { this.handleDelete(scope.$index, scope.row) }}></i>
}
</div>
)
}
},
{
label: "材料名称",
render: (h, scope) => {
return (
(this.formData.ableOperation && scope.row.isrequired != '1') ?
<el-input value={scope.row.sjmc} onInput={(val) => { scope.row.sjmc = val }}></el-input> : <span>{scope.row.sjmc}</span>
<el-input value={scope.row.clmc} onInput={(val) => { scope.row.clmc = val }}></el-input>
)
}
},
......@@ -71,32 +62,25 @@
width: "110",
render: (h, scope) => {
return (
this.formData.ableOperation ?
<el-select value={scope.row.sjlx}
onChange={(val) => { scope.row.sjlx = val }}>
{
store.getters.dictData['A40'].map(option => {
return (
<el-option label={option.dname} value={option.dcode}></el-option>
)
})
}
</el-select> : <span>{this.dicStatus(scope.row.sjlx, "A40")}</span>
<el-select value={scope.row.cllx}
onChange={(val) => { scope.row.cllx = val }}>
{
store.getters.dictData['A40'].map(option => {
return (
<el-option label={option.dname} value={option.dcode}></el-option>
)
})
}
</el-select>
)
}
},
{
prop: "sjsl",
label: "份数",
width: "50",
render: (h, scope) => {
return (
<div>
{
scope.row.sjsl ?
<span>{scope.row.sjsl}</span> : 1
}
</div>
<el-input value={scope.row.sjsl} onInput={(val) => { scope.row.sjsl = val }}></el-input>
)
}
},
......@@ -147,7 +131,7 @@
<div>
<el-button
type="text"
disabled={scope.$index == 0 || !this.formData.ableOperation}
disabled={scope.$index == 0}
onClick={() => {
this.moveUpward(scope.$index, scope.row);
}}
......@@ -156,16 +140,13 @@
</el-button>
<el-button
type="text"
disabled={scope.$index + 1 == this.tableData.length || !this.formData.ableOperation}
disabled={scope.$index + 1 == this.tableData.length}
onClick={() => {
this.moveDown(scope.$index, scope.row);
}}
>
下移
</el-button>
<i v-show={scope.row.isrequired != '1' && this.formData.ableOperation} onClick={() => {
this.handleDelete(scope.$index, scope.row);
}} class="el-icon-delete pointer" style="color:#409EFF;margin-left:5px;position: relative;top: 1px;"></i>
</div >
)
}
......@@ -188,6 +169,15 @@
handleCancel () {
ywPopupCacel()
},
handleAdd () {
this.tableData.push({
clmc: '',
cllx: '1',
sjsl: '',
smzt: '',
count: 0
})
},
handleSubmit () {
this.loading = true
updateClml(this.tableData).then(res => {
......@@ -311,25 +301,6 @@
message: '已取消删除'
})
})
},
// 字典
/**
* @description: 字典
* @param {*} val
* @param {*} code
* @author: renchao
*/
dicStatus (val, code) {
let data = store.getters.dictData[code],
name = "暂无";
if (data) {
data.map((item) => {
if (item.dcode == val) {
name = item.dname;
}
});
return name;
}
}
}
}
......
......@@ -386,7 +386,7 @@
}
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
}).catch(() => {
......@@ -506,7 +506,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -281,7 +281,7 @@
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
this.czrOptions = this.ruleForm.qlrList;
......@@ -355,7 +355,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -436,7 +436,7 @@
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
this.czrOptions = this.ruleForm.qlrList;
......@@ -513,7 +513,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -295,7 +295,7 @@
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
this.czrOptions = this.ruleForm.qlrList;
......
......@@ -264,7 +264,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr);
}
});
......@@ -321,7 +321,7 @@
this.key++;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -340,7 +340,7 @@
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
//初始化发证方式,1:小证,2:大正
......@@ -422,7 +422,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -347,7 +347,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
this.$endLoading();
......@@ -458,7 +458,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -337,7 +337,7 @@
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
//初始化发证方式,1:小证,2:大正
......@@ -408,7 +408,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -375,7 +375,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
});
......@@ -431,7 +431,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -354,7 +354,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -225,7 +225,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc;
this.czr = item.zjh
}
});
}
......@@ -272,7 +272,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......
......@@ -321,7 +321,7 @@
that.czrOptions = this.ruleForm.qlrList;
that.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
that.czr = item.sqrmc;
that.czr = item.zjh;
}
});
setTimeout(() => {
......@@ -360,7 +360,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sqrmc == this.czr) {
if (item.zjh == this.czr) {
this.num++
}
})
......