f96d4091 by renchao@pashanhoo.com

style:材料明细

1 parent b8917a94
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-31 13:59:45
* @LastEditTime: 2023-08-01 09:41:01
-->
<template>
<div class="clxx">
......@@ -68,6 +68,16 @@
created () {
this.clmlInitList(1)
},
computed: {
...mapGetters(['workFresh'])
},
watch: {
workFresh: {
handler (newVal, oldVal) {
if (newVal) this.clmlInitList(1)
}
}
},
mounted () {
this.ableOperation = this.$parent.ableOperation
},
......@@ -254,7 +264,8 @@
viewDetail () {
this.$popupDialog("查看明细", "workflow/components/dialog/clxxDetailDialog", {
data: this.tableData,
unitData: this.$parent.unitData
unitData: this.$parent.unitData,
ableOperation: this.$parent.ableOperation
}, "60%")
},
//设置tableData
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-31 14:27:07
* @LastEditTime: 2023-08-01 09:43:19
-->
<template>
<div class="clmlmx-box">
......@@ -10,6 +10,7 @@
</lb-table>
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="handleSubmit" v-if="formData.ableOperation">确定</el-button>
</div>
</div>
</template>
......@@ -58,16 +59,28 @@
{
prop: "sjmc",
label: "材料名称",
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
{
prop: "sjlx",
label: "材料类型",
width: "80",
width: "110",
render: (h, scope) => {
return (
<div>
<span>{this.dicStatus(scope.row.sjlx, "A40")}</span>
</div>
<el-select value={scope.row[scope.column.property]}
onChange={(val) => { scope.row[scope.column.property] = val }}>
{
store.getters.dictData['A40'].map(option => {
return (
<el-option label={option.dname} value={option.dcode}></el-option>
)
})
}
</el-select>
)
}
},
......@@ -127,7 +140,7 @@
},
{
label: "操作",
width: "80",
width: "100",
render: (h, scope) => {
return (
<div>
......@@ -149,10 +162,13 @@
>
下移
</el-button>
</div>
);
},
},
<i v-show={scope.row.isrequired != '1' && 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 >
)
}
}
],
key: 0,
tableData: []
......@@ -168,6 +184,12 @@
}
},
methods: {
handleSubmit () {
// saveClml(this.tableData).then(res => {
// console.log(res, '11111111111111');
// })
// store.dispatch('user/reWorkFresh', true)
},
/**
* @description: 材料目录明细初始化
* @author: renchao
......@@ -187,7 +209,6 @@
} else {
this.tableData = []
}
console.log(this.tableData, 'this.tableData');
} else {
this.$message.error(res.message)
}
......@@ -248,7 +269,6 @@
}
})
},
// 材料目录删除
/**
* @description: 材料目录删除
* @param {*} index
......@@ -268,7 +288,7 @@
if (res == 200) {
that.$message({
message: "删除成功",
type: "success",
type: "success"
})
}
}
......