Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
3 changed files
with
32 additions
and
11 deletions
1 | /* | 1 | /* |
2 | * @Description: 材料信息 | 2 | * @Description: 材料信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-28 14:31:00 | 4 | * @LastEditTime: 2023-08-01 15:20:21 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
... | @@ -44,6 +44,18 @@ export function saveClml (data) { | ... | @@ -44,6 +44,18 @@ export function saveClml (data) { |
44 | data | 44 | data |
45 | }) | 45 | }) |
46 | } | 46 | } |
47 | /** | ||
48 | * @description: 修改收件材料目录 | ||
49 | * @param {*} data | ||
50 | * @author: renchao | ||
51 | */ | ||
52 | export function updateClml (data) { | ||
53 | return request({ | ||
54 | url: SERVER.SERVERAPI + '/rest/ywbl/clxx/updateClml', | ||
55 | method: 'post', | ||
56 | data | ||
57 | }) | ||
58 | } | ||
47 | 59 | ||
48 | /** | 60 | /** |
49 | * @description: 材料目录批量删除 | 61 | * @description: 材料目录批量删除 | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-01 09:41:01 | 4 | * @LastEditTime: 2023-08-01 15:19:13 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="clxx"> | 7 | <div class="clxx"> |
... | @@ -262,11 +262,12 @@ | ... | @@ -262,11 +262,12 @@ |
262 | }, | 262 | }, |
263 | //查看明细 | 263 | //查看明细 |
264 | viewDetail () { | 264 | viewDetail () { |
265 | this.$store.dispatch('user/reWorkFresh', false) | ||
265 | this.$popupDialog("查看明细", "workflow/components/dialog/clxxDetailDialog", { | 266 | this.$popupDialog("查看明细", "workflow/components/dialog/clxxDetailDialog", { |
266 | data: this.tableData, | 267 | data: this.tableData, |
267 | unitData: this.$parent.unitData, | 268 | unitData: this.$parent.unitData, |
268 | ableOperation: this.$parent.ableOperation | 269 | ableOperation: this.$parent.ableOperation |
269 | }, "60%") | 270 | }, "60%", true) |
270 | }, | 271 | }, |
271 | //设置tableData | 272 | //设置tableData |
272 | setTableData (tableData) { | 273 | setTableData (tableData) { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-01 10:01:19 | 4 | * @LastEditTime: 2023-08-01 15:24:10 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="clmlmx-box"> | 7 | <div class="clmlmx-box"> |
... | @@ -10,14 +10,14 @@ | ... | @@ -10,14 +10,14 @@ |
10 | </lb-table> | 10 | </lb-table> |
11 | <div class="text-center"> | 11 | <div class="text-center"> |
12 | <el-button @click="$popupCacel">取消</el-button> | 12 | <el-button @click="$popupCacel">取消</el-button> |
13 | <el-button type="primary" @click="handleSubmit" v-if="formData.ableOperation">确定</el-button> | 13 | <el-button type="primary" @click="handleSubmit" :loading="loading" v-if="formData.ableOperation">保存</el-button> |
14 | </div> | 14 | </div> |
15 | </div> | 15 | </div> |
16 | </template> | 16 | </template> |
17 | <script> | 17 | <script> |
18 | import Vue from 'vue' | 18 | import Vue from 'vue' |
19 | import store from '@/store/index.js' | 19 | import store from '@/store/index.js' |
20 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; | 20 | import { InitClml, updateClml, deleteSjClml, moveClml } from "@/api/clxx.js"; |
21 | export default { | 21 | export default { |
22 | props: { | 22 | props: { |
23 | formData: { | 23 | formData: { |
... | @@ -29,6 +29,7 @@ | ... | @@ -29,6 +29,7 @@ |
29 | }, | 29 | }, |
30 | data () { | 30 | data () { |
31 | return { | 31 | return { |
32 | loading: false, | ||
32 | column: [ | 33 | column: [ |
33 | { | 34 | { |
34 | width: "50", | 35 | width: "50", |
... | @@ -177,7 +178,6 @@ | ... | @@ -177,7 +178,6 @@ |
177 | watch: { | 178 | watch: { |
178 | 'formData.data': { | 179 | 'formData.data': { |
179 | handler: function (val, oldVal) { | 180 | handler: function (val, oldVal) { |
180 | console.log(val, 'valvalval'); | ||
181 | this.tableData = _.cloneDeep(val) | 181 | this.tableData = _.cloneDeep(val) |
182 | }, | 182 | }, |
183 | immediate: true, | 183 | immediate: true, |
... | @@ -186,10 +186,18 @@ | ... | @@ -186,10 +186,18 @@ |
186 | }, | 186 | }, |
187 | methods: { | 187 | methods: { |
188 | handleSubmit () { | 188 | handleSubmit () { |
189 | // saveClml(this.tableData).then(res => { | 189 | this.loading = true |
190 | // console.log(res, '11111111111111'); | 190 | updateClml(this.tableData).then(res => { |
191 | // }) | 191 | this.loading = false |
192 | // store.dispatch('user/reWorkFresh', true) | 192 | if (res.code == 200) { |
193 | this.$message({ | ||
194 | message: '保存成功', | ||
195 | type: 'success' | ||
196 | }) | ||
197 | this.$popupCacel() | ||
198 | store.dispatch('user/reWorkFresh', true) | ||
199 | } | ||
200 | }) | ||
193 | }, | 201 | }, |
194 | /** | 202 | /** |
195 | * @description: 材料目录明细初始化 | 203 | * @description: 材料目录明细初始化 | ... | ... |
-
Please register or sign in to post a comment