YL2767 3 weeks ago
parent
commit
d4ca875885
4 changed files with 46 additions and 42 deletions
  1. 2
    1
      config/dev.env.js
  2. 21
    1
      src/components/PopupOut.vue
  3. 0
    37
      src/view/customer/storequery.vue
  4. 23
    3
      src/view/record/outrecord.vue

+ 2
- 1
config/dev.env.js View File

@@ -4,6 +4,7 @@ const prodEnv = require('./prod.env')
4 4
 
5 5
 module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7
-	BASE_API: '"http://localhost:8080/thware/"'
7
+	 BASE_API: '"http://localhost:8080/thware/"'
8 8
 	// BASE_API: '"http://47.104.245.159:8081/thware/"'
9
+	// BASE_API: '"http://120.224.213.150/thware_zg/"'
9 10
 })

+ 21
- 1
src/components/PopupOut.vue View File

@@ -33,6 +33,12 @@
33 33
 				<el-form-item label="">
34 34
 					<el-button style="margin-left: 25px" size="medium" type="success" @click="handleOut">出库</el-button>
35 35
 				</el-form-item>
36
+				<el-form-item label="是否打印地址">
37
+					<el-switch v-model="addressYN" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
38
+				</el-form-item>
39
+				<el-form-item label="是否打印备注">
40
+					<el-switch v-model="teleYN" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
41
+				</el-form-item>
36 42
 			</el-form>
37 43
 			<el-table :data="customerTableData" border style="width: 99%;" v-if="customerTableVisible">
38 44
 				<el-table-column prop="customerName" label="客户" show-overflow-tooltip header-align="center">
@@ -136,6 +142,8 @@
136 142
 					tallyPeople:'',
137 143
 					listDetail: []
138 144
 				},
145
+				addressYN: true,
146
+				teleYN:true,
139 147
 				time: '',
140 148
 				tallyPeopleOption:[]
141 149
 			};
@@ -285,8 +293,20 @@
285 293
 					return
286 294
 				}
287 295
 				this.getTime()
296
+				var addressYN1 = 'N';
297
+				var teleYN1 = 'N';
298
+				if(this.addressYN == true){
299
+					addressYN1 = 'Y' 
300
+				}else{
301
+					addressYN1 = 'N'
302
+				}
303
+				if(this.teleYN == true){
304
+					teleYN1 = 'Y'
305
+				}else{
306
+					teleYN1 = 'N'
307
+				}
288 308
 				window.open(this.serverName + 'ureport/preview?_u=file:out.ureport.xml&id=' + this.distribution.id +
289
-					'&customerName=' + row.customerName + '&time=' + this.time)
309
+					'&customerName=' + row.customerName + '&time=' + this.time+ '&addressYN=' + addressYN1 + '&teleYN=' + teleYN1)
290 310
 			},
291 311
 			getTime() {
292 312
 				var date = new Date();

+ 0
- 37
src/view/customer/storequery.vue View File

@@ -1,42 +1,5 @@
1 1
 <template>
2 2
 	<div style="height:100%;">
3
-		<!-- <el-form :model="query" label-width="60px" inline="">
4
-			<el-row >
5
-				<el-form-item label="仓库" style="margin-left: -1px"> 
6
-					<el-select v-model="query.wareName" size="small" style="width:120px;margin-left: -8px">
7
-						<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id"></el-option>
8
-					</el-select>
9
-				</el-form-item>
10
-				<el-form-item label="垛位" style="margin-left: -25px">
11
-					<el-input v-model="query.stackName" size="small" style="width:120px;margin-left: -8px"></el-input>
12
-				</el-form-item>
13
-				<el-form-item label="物料" style="margin-left: -25px">
14
-					<el-input v-model="query.materialName" size="small" style="width:120px;margin-left: -8px">
15
-						<el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
16
-					</el-input>
17
-				</el-form-item>
18
-				<el-form-item label="钢种" style="margin-left: -25px">
19
-					<el-input v-model="query.standard" size="small" style="width:120px;margin-left: -8px">
20
-						<el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
21
-					</el-input>
22
-				</el-form-item>
23
-				<el-form-item label="规格" style="margin-left: -15px;">
24
-					<el-input v-model="query.model" size="small" style="width:150px;margin-left: -8px"></el-input>
25
-				</el-form-item>
26
-				<el-form-item label="钢板号" style="margin-left: -15px;">
27
-					<el-input v-model="query.plateNo" size="small" style="width:150px;margin-left: -8px"></el-input>
28
-				</el-form-item>
29
-				<el-form-item label="客户" style="margin-left: -15px;margin-top: 4px;">
30
-					<el-input  v-model="query.customerName" clearable size = "small" :readonly="true"><el-button @click="clearCustomer" slot="append" icon="el-icon-delete"></el-button><el-button  size="small" @click="popCust" slot="append" icon="el-icon-search"></el-button></el-input>
31
-				</el-form-item>
32
-				<el-form-item label="订单号" style="margin-left:13px;margin-top: -18px">
33
-					<el-input v-model="query.ordNo" size="small" style="width:150px;margin-left: -8px"></el-input>
34
-				</el-form-item>
35
-				<el-form-item label="" style="margin-top: -20px">
36
-					<el-button @click="handleSearch" size="small" type="primary">查询</el-button>
37
-				</el-form-item>
38
-			</el-row>
39
-		</el-form> -->
40 3
 		<div class="searchForm-header">	
41 4
 			<el-form  :model="query" label-width="60px" inline="">
42 5
 				<el-row >

+ 23
- 3
src/view/record/outrecord.vue View File

@@ -93,7 +93,13 @@
93 93
 							</el-dropdown-menu>
94 94
 						</el-dropdown>
95 95
 						
96
-					</el-form-item>						
96
+					</el-form-item>
97
+					<el-form-item label="是否打印地址">
98
+						<el-switch v-model="addressYN" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
99
+					</el-form-item>
100
+					<el-form-item label="是否打印备注">
101
+						<el-switch v-model="teleYN" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
102
+					</el-form-item>
97 103
 					</el-row>
98 104
 				</el-form>
99 105
 			</el-row>
@@ -345,7 +351,9 @@
345 351
 				truckNo:"",
346 352
 				driverName:"",
347 353
 				driverPhone:"",
348
-				optionsCust:[]
354
+				optionsCust:[],
355
+				addressYN: true,
356
+				teleYN:true,
349 357
 			};
350 358
 		},
351 359
 		//页面加载完成渲染
@@ -681,8 +689,20 @@
681 689
 					});
682 690
 					return;
683 691
 				}
692
+				var addressYN1 = 'N';
693
+				var teleYN1 = 'N';
694
+				if(this.addressYN == true){
695
+					addressYN1 = 'Y' 
696
+				}else{
697
+					addressYN1 = 'N'
698
+				}
699
+				if(this.teleYN == true){
700
+					teleYN1 = 'Y'
701
+				}else{
702
+					teleYN1 = 'N'
703
+				}
684 704
 				window.open(this.serverName + 'ureport/preview?_u=file:out.ureport.xml&id=' + distId +
685
-					'&time=' + this.time)
705
+					'&time=' + this.time + '&addressYN=' + addressYN1 + '&teleYN=' + teleYN1)
686 706
 
687 707
 			},
688 708
 			getTime() {

Loading…
Cancel
Save