cf1156df by renchao@pashanhoo.com

style:材料目录修改完成

1 parent dd9c3579
/*
* @Description: 材料信息
* @Autor: renchao
* @LastEditTime: 2023-07-28 14:31:00
* @LastEditTime: 2023-08-01 15:20:21
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
......@@ -44,6 +44,18 @@ export function saveClml (data) {
data
})
}
/**
* @description: 修改收件材料目录
* @param {*} data
* @author: renchao
*/
export function updateClml (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/clxx/updateClml',
method: 'post',
data
})
}
/**
* @description: 材料目录批量删除
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-01 09:41:01
* @LastEditTime: 2023-08-01 15:19:13
-->
<template>
<div class="clxx">
......@@ -262,11 +262,12 @@
},
//查看明细
viewDetail () {
this.$store.dispatch('user/reWorkFresh', false)
this.$popupDialog("查看明细", "workflow/components/dialog/clxxDetailDialog", {
data: this.tableData,
unitData: this.$parent.unitData,
ableOperation: this.$parent.ableOperation
}, "60%")
}, "60%", true)
},
//设置tableData
setTableData (tableData) {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-01 10:01:19
* @LastEditTime: 2023-08-01 15:24:10
-->
<template>
<div class="clmlmx-box">
......@@ -10,14 +10,14 @@
</lb-table>
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="handleSubmit" v-if="formData.ableOperation">确定</el-button>
<el-button type="primary" @click="handleSubmit" :loading="loading" v-if="formData.ableOperation">保存</el-button>
</div>
</div>
</template>
<script>
import Vue from 'vue'
import store from '@/store/index.js'
import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js";
import { InitClml, updateClml, deleteSjClml, moveClml } from "@/api/clxx.js";
export default {
props: {
formData: {
......@@ -29,6 +29,7 @@
},
data () {
return {
loading: false,
column: [
{
width: "50",
......@@ -177,7 +178,6 @@
watch: {
'formData.data': {
handler: function (val, oldVal) {
console.log(val, 'valvalval');
this.tableData = _.cloneDeep(val)
},
immediate: true,
......@@ -186,10 +186,18 @@
},
methods: {
handleSubmit () {
// saveClml(this.tableData).then(res => {
// console.log(res, '11111111111111');
// })
// store.dispatch('user/reWorkFresh', true)
this.loading = true
updateClml(this.tableData).then(res => {
this.loading = false
if (res.code == 200) {
this.$message({
message: '保存成功',
type: 'success'
})
this.$popupCacel()
store.dispatch('user/reWorkFresh', true)
}
})
},
/**
* @description: 材料目录明细初始化
......