|
|
@@ -26,13 +26,19 @@
|
|
|
</el-card>
|
|
|
|
|
|
<el-dialog title="基建类业务列表" :visible.sync="goodsDialog" top="5vh">
|
|
|
- <el-row :gutter="20" style="height: calc(100vh - 545px); overflow: auto;">
|
|
|
+ <el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto;">
|
|
|
<el-col :span="20">
|
|
|
<el-tree highlight-current :expand-on-click-node="true" node-key="CodeName" :data="orgtreelist"
|
|
|
:props="orgtreeprops" ref="orgmanagetree" show-checkbox lazy @node-click="getChildrens">
|
|
|
</el-tree>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row style="margin-top: 30px">
|
|
|
+ 备注信息:
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-input v-model="Remark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button size="mini" @click="visible = false">取 消</el-button>
|
|
|
<el-button type="primary" size="mini" @click="getChecklist()">确 定</el-button>
|
|
|
@@ -79,6 +85,7 @@
|
|
|
children: 'children'
|
|
|
},
|
|
|
checkList: [],
|
|
|
+ Remark: '',
|
|
|
|
|
|
// BusinessForm: {
|
|
|
// Id: '',
|
|
|
@@ -126,23 +133,23 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getChecklist() {
|
|
|
+ getChecklist() {
|
|
|
let val = this.$refs.orgmanagetree.getCheckedNodes()
|
|
|
this.checkList = []
|
|
|
- for(var i = 0; i < val.length; i ++){
|
|
|
- if(val[i].Code.length == 8){
|
|
|
+ for (var i = 0; i < val.length; i++) {
|
|
|
+ if (val[i].Code.length == 8) {
|
|
|
this.checkList.push(val[i])
|
|
|
}
|
|
|
}
|
|
|
this.addBusiness()
|
|
|
},
|
|
|
addBusiness() {
|
|
|
- console.log("-211111111111",this.SupplierId)
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
SupplierId: parseInt(_this.SupplierId),
|
|
|
SupplierCertId: parseInt(_this.SupplierCertId),
|
|
|
SupplierTypeCode: '01',
|
|
|
+ Remark: _this.Remark
|
|
|
}
|
|
|
if (_this.checkList.length > 0) {
|
|
|
params = Object.assign(params, {
|
|
|
@@ -154,10 +161,9 @@
|
|
|
message: '名称不能为空,请选择分类!'
|
|
|
})
|
|
|
return
|
|
|
- }
|
|
|
+ }
|
|
|
_this.$axios.post('/suppliercertsub/addgoodsbus/', params)
|
|
|
.then(res => {
|
|
|
- console.log("------------------", res.data.code)
|
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
|
type: 'success',
|