|
@@ -51,29 +51,99 @@ |
|
@@ -51,29 +51,99 @@ |
|
51
|
<th scop="col" class="table_lable">已派发工时:</th>
|
51
|
<th scop="col" class="table_lable">已派发工时:</th>
|
|
52
|
<th scop="col">{{model.dispatchedWorkingHours}}</th>
|
52
|
<th scop="col">{{model.dispatchedWorkingHours}}</th>
|
|
53
|
</tr>
|
53
|
</tr>
|
|
54
|
- <tr v-if="model.files">
|
|
|
|
55
|
- <th scop="col" class="table_lable">文件:</th>
|
54
|
+ <tr v-if="model.files != null">
|
|
|
|
55
|
+ <th scop="col" class="table_lable">生产图文件:</th>
|
|
56
|
<th scop="col">
|
56
|
<th scop="col">
|
|
57
|
<div v-for="(item,index) in model.files.split(',')" :key="index">
|
57
|
<div v-for="(item,index) in model.files.split(',')" :key="index">
|
|
58
|
<a :href=httpUrl+item target="_blank">{{index+1}}. {{item.replace("temp/","")}}</a><br>
|
58
|
<a :href=httpUrl+item target="_blank">{{index+1}}. {{item.replace("temp/","")}}</a><br>
|
|
59
|
</div>
|
59
|
</div>
|
|
60
|
</th>
|
60
|
</th>
|
|
61
|
</tr>
|
61
|
</tr>
|
|
|
|
62
|
+ <tr v-if="model.designFile != null">
|
|
|
|
63
|
+ <th scop="col" class="table_lable">设计图文件:</th>
|
|
|
|
64
|
+ <th scop="col">
|
|
|
|
65
|
+ <div v-for="(item,index) in model.designFile.split(',')" :key="index">
|
|
|
|
66
|
+ <a :href=httpUrl+item target="_blank">{{index+1}}. {{item.replace("temp/","")}}</a><br>
|
|
|
|
67
|
+ </div>
|
|
|
|
68
|
+ </th>
|
|
|
|
69
|
+ </tr>
|
|
62
|
</table>
|
70
|
</table>
|
|
63
|
</div>
|
71
|
</div>
|
|
64
|
- <div style="display:inline-block;width:45%;" v-if="model.pics">
|
72
|
+ <!-- <div class="imgDiv" v-if="model.pics">
|
|
65
|
<div class="show" >
|
73
|
<div class="show" >
|
|
66
|
- <!-- <img :src="getImgView(show)" :preview="num" alt="" height="100px"> -->
|
|
|
|
67
|
- <img :src="httpUrl+show" :preview="num" alt="" height="100px">
|
74
|
+ <img :src="httpUrl+showPic" :preview="num" alt="" height="100px">
|
|
68
|
</div>
|
75
|
</div>
|
|
69
|
<div class="imgBox">
|
76
|
<div class="imgBox">
|
|
70
|
<div :class="[num == index?'borderShow':'']" v-for="(item,index) of picList" :key="index" @click="onImg(index)">
|
77
|
<div :class="[num == index?'borderShow':'']" v-for="(item,index) of picList" :key="index" @click="onImg(index)">
|
|
71
|
- <!-- <img :src="getImgView(item)" height="25px" alt="" style="margin-left: 20px;"> -->
|
|
|
|
72
|
<img :src="httpUrl +(item)" height="25px" alt="" style="margin-left: 20px;">
|
78
|
<img :src="httpUrl +(item)" height="25px" alt="" style="margin-left: 20px;">
|
|
73
|
</div>
|
79
|
</div>
|
|
74
|
</div>
|
80
|
</div>
|
|
75
|
- </div>
|
81
|
+ <div class="tipCss">生产图</div>
|
|
|
|
82
|
+ </div> -->
|
|
|
|
83
|
+ <!-- <div class="imgDiv" v-if="model.designPic">
|
|
|
|
84
|
+
|
|
|
|
85
|
+ <div class="show" >
|
|
|
|
86
|
+ <img :src="httpUrl+showDesignPic" :preview="numDesign" alt="" height="100px">
|
|
|
|
87
|
+ </div>
|
|
|
|
88
|
+ <div class="imgBox">
|
|
|
|
89
|
+ <div :class="[numDesign == index?'borderShow':'']" v-for="(item,index) of designPicList" :key="index" @click="onDesignImg(index)">
|
|
|
|
90
|
+ <img :src="httpUrl +(item)" height="25px" alt="" style="margin-left: 20px;">
|
|
|
|
91
|
+ </div>
|
|
|
|
92
|
+ </div>
|
|
|
|
93
|
+
|
|
|
|
94
|
+ <div class="tipCss">设计图</div>
|
|
|
|
95
|
+ </div> -->
|
|
|
|
96
|
+ <!-- <div class="imgDiv" v-if="model.designPic">
|
|
|
|
97
|
+ <div class="show" >
|
|
|
|
98
|
+ <img :src="httpUrl+showDesignPic" :preview="numDesign" alt="" height="100px">
|
|
|
|
99
|
+ </div>
|
|
|
|
100
|
+ <div class="imgBox">
|
|
|
|
101
|
+ <div :class="[numDesign == index?'borderShow':'']" v-for="(item,index) of designPicList" :key="index" @click="onDesignImg(index)">
|
|
|
|
102
|
+ <img :src="httpUrl +(item)" height="25px" alt="" style="margin-left: 20px;">
|
|
|
|
103
|
+ </div>
|
|
|
|
104
|
+ </div>
|
|
|
|
105
|
+ </div> -->
|
|
|
|
106
|
+ <div class="imgDiv">
|
|
|
|
107
|
+ <div v-if="model.pics">
|
|
|
|
108
|
+ <a-carousel arrows>
|
|
|
|
109
|
+ <div
|
|
|
|
110
|
+ slot="prevArrow"
|
|
|
|
111
|
+ slot-scope="props"
|
|
|
|
112
|
+ class="custom-slick-arrow"
|
|
|
|
113
|
+ style="left: 10px;zIndex: 1"
|
|
|
|
114
|
+ >
|
|
|
|
115
|
+ <a-icon type="left-circle" />
|
|
|
|
116
|
+ </div>
|
|
|
|
117
|
+ <div slot="nextArrow" slot-scope="props" class="custom-slick-arrow" style="right: 10px">
|
|
|
|
118
|
+ <a-icon type="right-circle" />
|
|
|
|
119
|
+ </div>
|
|
|
|
120
|
+ <div v-for="(item,index) in picList" :key="index" @click="onImg(index)">
|
|
|
|
121
|
+ <img :src="httpUrl +(item)" class="imgg" :preview="num" />
|
|
|
|
122
|
+ </div>
|
|
|
|
123
|
+ </a-carousel>
|
|
|
|
124
|
+ <div class="tipCss">生产图</div>
|
|
76
|
</div>
|
125
|
</div>
|
|
|
|
126
|
+ <div v-if="model.designPic != null" style="margin-top: 50px;">
|
|
|
|
127
|
+ <a-carousel arrows>
|
|
|
|
128
|
+ <div
|
|
|
|
129
|
+ slot="prevArrow"
|
|
|
|
130
|
+ slot-scope="props"
|
|
|
|
131
|
+ class="custom-slick-arrow"
|
|
|
|
132
|
+ style="left: 10px;zIndex: 1"
|
|
|
|
133
|
+ >
|
|
|
|
134
|
+ <a-icon type="left-circle" />
|
|
|
|
135
|
+ </div>
|
|
|
|
136
|
+ <div slot="nextArrow" slot-scope="props" class="custom-slick-arrow" style="right: 10px">
|
|
|
|
137
|
+ <a-icon type="right-circle" />
|
|
|
|
138
|
+ </div>
|
|
|
|
139
|
+ <div v-for="(item, index) in designPicList" :key="index" @click="onDesignImg(index)">
|
|
|
|
140
|
+ <img :src="httpUrl +(item)" class="imgg" :preview="numDesign" />
|
|
|
|
141
|
+ </div>
|
|
|
|
142
|
+ </a-carousel>
|
|
|
|
143
|
+ <div class="tipCss">设计图</div>
|
|
|
|
144
|
+ </div>
|
|
|
|
145
|
+ </div>
|
|
|
|
146
|
+ </div>
|
|
77
|
</a-spin>
|
147
|
</a-spin>
|
|
78
|
</j-modal>
|
148
|
</j-modal>
|
|
79
|
</template>
|
149
|
</template>
|
|
@@ -111,8 +181,11 @@ export default { |
|
@@ -111,8 +181,11 @@ export default { |
|
111
|
|
181
|
|
|
112
|
confirmLoading: false,
|
182
|
confirmLoading: false,
|
|
113
|
picList:"",
|
183
|
picList:"",
|
|
114
|
- show:"",
|
184
|
+ designPicList:"",
|
|
|
|
185
|
+ showPic:"",
|
|
|
|
186
|
+ showDesignPic:"",
|
|
115
|
num: 0,
|
187
|
num: 0,
|
|
|
|
188
|
+ numDesign:0,
|
|
116
|
// url: {
|
189
|
// url: {
|
|
117
|
// list: "/order_form/tblOrderForm/list",
|
190
|
// list: "/order_form/tblOrderForm/list",
|
|
118
|
// delete: "/order_form/tblOrderForm/delete",
|
191
|
// delete: "/order_form/tblOrderForm/delete",
|
|
@@ -135,15 +208,22 @@ export default { |
|
@@ -135,15 +208,22 @@ export default { |
|
135
|
},
|
208
|
},
|
|
136
|
edit(record) {
|
209
|
edit(record) {
|
|
137
|
this.picList = ""
|
210
|
this.picList = ""
|
|
|
|
211
|
+ this.designPicList=""
|
|
138
|
this.model = Object.assign({}, record);
|
212
|
this.model = Object.assign({}, record);
|
|
139
|
console.log('this.model',this.model)
|
213
|
console.log('this.model',this.model)
|
|
140
|
if(this.model.pics){
|
214
|
if(this.model.pics){
|
|
141
|
- var picList = this.model.pics.split(',')
|
|
|
|
142
|
- console.log('picList',picList)
|
|
|
|
143
|
- this.picList = picList
|
|
|
|
144
|
- this.show = this.picList[0];
|
215
|
+ var picTemp = this.model.pics.split(',')
|
|
|
|
216
|
+ // console.log('pics',picTemp)
|
|
|
|
217
|
+ this.picList = picTemp
|
|
|
|
218
|
+ this.showPic = this.picList[0];
|
|
145
|
}
|
219
|
}
|
|
146
|
-
|
220
|
+ if(this.model.designPic){
|
|
|
|
221
|
+ var designPicTemp = this.model.designPic.split(',')
|
|
|
|
222
|
+ // console.log('designPic',designPicTemp)
|
|
|
|
223
|
+ this.designPicList = designPicTemp
|
|
|
|
224
|
+ this.showDesignPic = this.designPicList[0];
|
|
|
|
225
|
+ }
|
|
|
|
226
|
+
|
|
147
|
this.visible = true;
|
227
|
this.visible = true;
|
|
148
|
this.loadTree()
|
228
|
this.loadTree()
|
|
149
|
},
|
229
|
},
|
|
@@ -151,15 +231,19 @@ export default { |
|
@@ -151,15 +231,19 @@ export default { |
|
151
|
var that = this;
|
231
|
var that = this;
|
|
152
|
listProductType().then((res)=>{
|
232
|
listProductType().then((res)=>{
|
|
153
|
if(res.success){
|
233
|
if(res.success){
|
|
154
|
- // that.treeData = [];
|
|
|
|
155
|
that.options = res.result
|
234
|
that.options = res.result
|
|
156
|
}
|
235
|
}
|
|
157
|
});
|
236
|
});
|
|
158
|
},
|
237
|
},
|
|
159
|
onImg(e){
|
238
|
onImg(e){
|
|
160
|
- this.show = this.picList[e];
|
239
|
+ console.log('e==',e)
|
|
|
|
240
|
+ this.showPic = this.picList[e];
|
|
161
|
this.num = e
|
241
|
this.num = e
|
|
162
|
},
|
242
|
},
|
|
|
|
243
|
+ onDesignImg(e){
|
|
|
|
244
|
+ this.showDesignPic = this.designPicList[e];
|
|
|
|
245
|
+ this.numDesign = e
|
|
|
|
246
|
+ },
|
|
163
|
close() {
|
247
|
close() {
|
|
164
|
this.$emit('close');
|
248
|
this.$emit('close');
|
|
165
|
this.visible = false;
|
249
|
this.visible = false;
|
|
@@ -194,6 +278,41 @@ export default { |
|
@@ -194,6 +278,41 @@ export default { |
|
194
|
}
|
278
|
}
|
|
195
|
</script>
|
279
|
</script>
|
|
196
|
<style scoped>
|
280
|
<style scoped>
|
|
|
|
281
|
+
|
|
|
|
282
|
+.ant-carousel >>> .slick-slide {
|
|
|
|
283
|
+ text-align: center;
|
|
|
|
284
|
+ height: 200px;
|
|
|
|
285
|
+ line-height: 160px;
|
|
|
|
286
|
+ /* background: #e7e7e8d2; */
|
|
|
|
287
|
+ overflow: hidden;
|
|
|
|
288
|
+}
|
|
|
|
289
|
+
|
|
|
|
290
|
+.ant-carousel >>> .custom-slick-arrow {
|
|
|
|
291
|
+ width: 25px;
|
|
|
|
292
|
+ height: 25px;
|
|
|
|
293
|
+ font-size: 25px;
|
|
|
|
294
|
+ color: #cbc9c9;
|
|
|
|
295
|
+ /* background-color: rgba(31, 45, 61, 0.11); */
|
|
|
|
296
|
+ opacity: 0.3;
|
|
|
|
297
|
+}
|
|
|
|
298
|
+.ant-carousel >>> .custom-slick-arrow:before {
|
|
|
|
299
|
+ display: none;
|
|
|
|
300
|
+}
|
|
|
|
301
|
+.ant-carousel >>> .custom-slick-arrow:hover {
|
|
|
|
302
|
+ opacity: 0.5;
|
|
|
|
303
|
+}
|
|
|
|
304
|
+
|
|
|
|
305
|
+.ant-carousel >>> .slick-slide h3 {
|
|
|
|
306
|
+ color: #cbc9c9;
|
|
|
|
307
|
+}
|
|
|
|
308
|
+.imgg{
|
|
|
|
309
|
+ /* width: 200px; */
|
|
|
|
310
|
+ height: 160px;
|
|
|
|
311
|
+ margin: auto
|
|
|
|
312
|
+}
|
|
|
|
313
|
+.imgg:hover{
|
|
|
|
314
|
+ cursor: pointer;
|
|
|
|
315
|
+ }
|
|
197
|
tr {
|
316
|
tr {
|
|
198
|
height: 30px; /* 设置行高为50px */
|
317
|
height: 30px; /* 设置行高为50px */
|
|
199
|
/* padding: 10px; 设置行内填充为10px */
|
318
|
/* padding: 10px; 设置行内填充为10px */
|
|
@@ -220,13 +339,23 @@ tr { |
|
@@ -220,13 +339,23 @@ tr { |
|
220
|
.borderShow{
|
339
|
.borderShow{
|
|
221
|
border: 2px solid rgb(141, 134, 134);
|
340
|
border: 2px solid rgb(141, 134, 134);
|
|
222
|
}
|
341
|
}
|
|
223
|
-
|
342
|
+.imgDiv{
|
|
|
|
343
|
+ display:inline-block;
|
|
|
|
344
|
+ width:40%;
|
|
|
|
345
|
+}
|
|
224
|
.show img{
|
346
|
.show img{
|
|
225
|
margin-bottom: 10px;
|
347
|
margin-bottom: 10px;
|
|
226
|
height: 200px;
|
348
|
height: 200px;
|
|
227
|
width: 200px;
|
349
|
width: 200px;
|
|
|
|
350
|
+ margin-left: 12%;
|
|
228
|
}
|
351
|
}
|
|
229
|
.show:hover{
|
352
|
.show:hover{
|
|
230
|
cursor: pointer;
|
353
|
cursor: pointer;
|
|
231
|
}
|
354
|
}
|
|
|
|
355
|
+.tipCss{
|
|
|
|
356
|
+ font-weight: bold;
|
|
|
|
357
|
+ /* padding-top: 13px; */
|
|
|
|
358
|
+ padding-left: 46%;
|
|
|
|
359
|
+ margin-top: -15px;
|
|
|
|
360
|
+ }
|
|
232
|
</style> |
361
|
</style> |