ea89ec47 by yangwei

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents a5ec779a e42974c7
1 /* 1 /*
2 * @Description: 材料信息 2 * @Description: 材料信息
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-08 13:41:46 4 * @LastEditTime: 2023-09-13 11:09:48
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'))
...@@ -49,9 +49,9 @@ export function saveClml (data) { ...@@ -49,9 +49,9 @@ export function saveClml (data) {
49 * @param {*} data 49 * @param {*} data
50 * @author: renchao 50 * @author: renchao
51 */ 51 */
52 export function updateClml (data) { 52 export function updateClml (data, bsmSldy) {
53 return request({ 53 return request({
54 url: SERVER.SERVERAPI + '/rest/ywbl/clxx/updateClml', 54 url: SERVER.SERVERAPI + '/rest/ywbl/clxx/updateClml/' + bsmSldy,
55 method: 'post', 55 method: 'post',
56 data 56 data
57 }) 57 })
......
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
278 } 278 }
279 uploadBatch(formData).then((res) => { 279 uploadBatch(formData).then((res) => {
280 if (res.code == 200) { 280 if (res.code == 200) {
281 this.$emit('updateList', res.result) 281 this.$emit('updateList', { children: res.result, bsmSj: this.previewImg.bsmSj })
282 this.$message({ 282 this.$message({
283 message: '上传成功!', 283 message: '上传成功!',
284 type: 'success' 284 type: 'success'
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-08 14:18:42 4 * @LastEditTime: 2023-09-13 11:26:39
5 --> 5 -->
6 <template> 6 <template>
7 <div class="clxx"> 7 <div class="clxx">
...@@ -173,7 +173,6 @@ ...@@ -173,7 +173,6 @@
173 formdata.append("bsmSldy", this.$parent.bsmRepair); 173 formdata.append("bsmSldy", this.$parent.bsmRepair);
174 formdata.append("clfl", 3); 174 formdata.append("clfl", 3);
175 } else { 175 } else {
176 //formdata.append("bsmSldy", this.unitData[0]?.bsmSldy);
177 formdata.append("bsmSldy", this.$parent.currentSelectProps.bsmSldy); 176 formdata.append("bsmSldy", this.$parent.currentSelectProps.bsmSldy);
178 formdata.append("clfl", 2); 177 formdata.append("clfl", 2);
179 } 178 }
...@@ -235,7 +234,7 @@ ...@@ -235,7 +234,7 @@
235 this.previewImg.imgList = []; 234 this.previewImg.imgList = [];
236 this.tableData.forEach((item, index) => { 235 this.tableData.forEach((item, index) => {
237 if (this.treeCheckId == item.bsmSj) { 236 if (this.treeCheckId == item.bsmSj) {
238 item.children = []; 237 item.ys = 0;
239 that.treeCheckIndex = index; 238 that.treeCheckIndex = index;
240 } 239 }
241 }); 240 });
...@@ -309,24 +308,6 @@ ...@@ -309,24 +308,6 @@
309 this.showImg = item; 308 this.showImg = item;
310 this.titleYs = index + 1; 309 this.titleYs = index + 1;
311 }, 310 },
312 /**
313 * @description: 字典
314 * @param {*} val
315 * @param {*} code
316 * @author: renchao
317 */
318 dicStatus (val, code) {
319 let data = this.$store.getters.dictData[code],
320 name = "暂无";
321 if (data) {
322 data.map((item) => {
323 if (item.dcode == val) {
324 name = item.dname;
325 }
326 });
327 return name;
328 }
329 },
330 //查看明细 311 //查看明细
331 viewDetail () { 312 viewDetail () {
332 this.$store.dispatch("user/reWorkFresh", false); 313 this.$store.dispatch("user/reWorkFresh", false);
...@@ -335,6 +316,7 @@ ...@@ -335,6 +316,7 @@
335 "workflow/components/dialog/clxxDetailDialog", 316 "workflow/components/dialog/clxxDetailDialog",
336 { 317 {
337 data: this.tableData, 318 data: this.tableData,
319 bsmSldy: this.$parent.currentSelectProps.bsmSldy,
338 unitData: this.$parent.unitData, 320 unitData: this.$parent.unitData,
339 ableOperation: this.$parent.ableOperation, 321 ableOperation: this.$parent.ableOperation,
340 bsmRepair: this.$parent.bsmRepair 322 bsmRepair: this.$parent.bsmRepair
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-13 10:33:50 4 * @LastEditTime: 2023-09-13 11:10:27
5 --> 5 -->
6 <template> 6 <template>
7 <div class="clmlmx-box"> 7 <div class="clmlmx-box">
8 <div style="text-align:right">
9 <el-button type="primary" icon="el-icon-top">上移</el-button>
10 <el-button type="primary" icon="el-icon-bottom">下移</el-button>
11 </div>
12 <lb-table :column="column" :key="key" row-key="bsmSj" ref="listTable" :heightNumSetting="true" :calcHeight="600" 8 <lb-table :column="column" :key="key" row-key="bsmSj" ref="listTable" :heightNumSetting="true" :calcHeight="600"
13 :pagination="false" :data="tableData"> 9 :pagination="false" :data="tableData">
14 </lb-table> 10 </lb-table>
...@@ -38,10 +34,6 @@ ...@@ -38,10 +34,6 @@
38 sortable: null, 34 sortable: null,
39 column: [ 35 column: [
40 { 36 {
41 label: "选择",
42 type: 'selection'
43 },
44 {
45 prop: "isrequired", 37 prop: "isrequired",
46 label: "是否必选", 38 label: "是否必选",
47 width: "80", 39 width: "80",
...@@ -132,6 +124,21 @@ ...@@ -132,6 +124,21 @@
132 }, 124 },
133 }, 125 },
134 { 126 {
127 label: "是否新建材料",
128 width: "80",
129 render: (h, scope) => {
130 if (scope.row.sfxjcl && scope.row.sfxjcl == '1') {
131 return (
132 <span></span>
133 );
134 } else {
135 return (
136 <span></span>
137 );
138 }
139 },
140 },
141 {
135 label: "操作", 142 label: "操作",
136 width: "100", 143 width: "100",
137 render: (h, scope) => { 144 render: (h, scope) => {
...@@ -140,7 +147,7 @@ ...@@ -140,7 +147,7 @@
140 <el-button 147 <el-button
141 type="text" 148 type="text"
142 icon="el-icon-delete" 149 icon="el-icon-delete"
143 disabled={scope.row.ys == 0 || !this.formData.ableOperation} 150 disabled={!(scope.row.ys == 0 && scope.row.sfxjcl == '1') || !this.formData.ableOperation}
144 onClick={() => { 151 onClick={() => {
145 this.handleDelete(scope.$index, scope.row); 152 this.handleDelete(scope.$index, scope.row);
146 }} 153 }}
...@@ -177,7 +184,8 @@ ...@@ -177,7 +184,8 @@
177 methods: { 184 methods: {
178 handleSubmit () { 185 handleSubmit () {
179 this.loading = true 186 this.loading = true
180 updateClml(this.tableData).then(res => { 187 store.dispatch('user/reWorkFresh', false)
188 updateClml(this.tableData, this.formData.bsmSldy).then(res => {
181 this.loading = false 189 this.loading = false
182 if (res.code == 200) { 190 if (res.code == 200) {
183 this.$message({ 191 this.$message({
...@@ -227,16 +235,13 @@ ...@@ -227,16 +235,13 @@
227 * @param {*} row 235 * @param {*} row
228 */ 236 */
229 handleDelete (index, row) { 237 handleDelete (index, row) {
230 if (row.children.length > 0) {
231 this.$message.error('页数存在不可删除');
232 return
233 }
234 let that = this 238 let that = this
235 this.$confirm('此操作将永久删除该 是否继续?', '提示', { 239 this.$confirm('此操作将永久删除该 是否继续?', '提示', {
236 confirmButtonText: '确定', 240 confirmButtonText: '确定',
237 cancelButtonText: '取消', 241 cancelButtonText: '取消',
238 type: 'warning' 242 type: 'warning'
239 }).then(() => { 243 }).then(() => {
244 this.tableData.splice(index, 1);
240 }).catch(() => { 245 }).catch(() => {
241 this.$message({ 246 this.$message({
242 type: 'info', 247 type: 'info',
......