YL2767 2 місяці тому
джерело
коміт
b3c9a88125

+ 2
- 2
config/dev.env.js Переглянути файл

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

+ 13
- 1
src/components/PopupDistribution.vue Переглянути файл

@@ -158,6 +158,7 @@
158 158
 								response.data.data.listDetail = []
159 159
 							}
160 160
 						}
161
+						console.log(this.trucks)
161 162
 						this.trucks = response.data.data
162 163
 						//	console.log(JSON.stringify(this.trucks))
163 164
 
@@ -271,7 +272,18 @@
271 272
 					if (response.data.code == 0) {
272 273
 
273 274
 					//	this.dialogVisible = false   //modify by liuc 2025/04/16  10:14
274
-						this.selectRows    = []
275
+						this.selectRows    = [];
276
+						this.$message({
277
+							message: '配车成功',
278
+							type: 'success'
279
+							});
280
+						this.getTrucks();
281
+						console.log(this.truckNo)
282
+						const item = this.trucks.find(item1=> item.truckNo === this.truckNo)
283
+						console.log(item)
284
+						this.distribution.id = item.id
285
+
286
+
275 287
 					} else {
276 288
 						this.$message({
277 289
 							type: 'error',

+ 24
- 3
src/components/PopupOut.vue Переглянути файл

@@ -26,7 +26,13 @@
26 26
 				</el-form-item>
27 27
 				<el-form-item label="理货人员">
28 28
 					<el-select v-model="distribution.tallyPeople" size="small" style="margin-left: 10px" clearable placeholder="理货人员">
29
-						<el-option v-for="item in tallyPeopleOption" :key="item.id" :label="item.dicName" :value="item.dicCode">
29
+						<el-option v-for="item in tallyPeopleOption" :key="item.dicName" :label="item.dicName" :value="item.dicName">
30
+						</el-option>
31
+					</el-select>
32
+				</el-form-item>
33
+				<el-form-item label="承运单位">
34
+					<el-select v-model="distribution.transportName" size="small" style="margin-left: 10px" clearable placeholder="承运单位">
35
+						<el-option v-for="item in transports" :key="item.name" :label="item.name" :value="item.name">
30 36
 						</el-option>
31 37
 					</el-select>
32 38
 				</el-form-item>
@@ -111,6 +117,7 @@
111 117
 		},
112 118
 		mounted() {
113 119
 			this.getSearchItem();
120
+			this.gettransportItem();
114 121
 		},
115 122
 		data() {
116 123
 			return {
@@ -134,13 +141,25 @@
134 141
 					sumCount: '',
135 142
 					suttle: 0,
136 143
 					tallyPeople:'',
137
-					listDetail: []
144
+					listDetail: [],
145
+					transportName:''
138 146
 				},
139 147
 				time: '',
140
-				tallyPeopleOption:[]
148
+				tallyPeopleOption:[],
149
+				transports: []
141 150
 			};
142 151
 		},
143 152
 		methods: {
153
+			gettransportItem(){
154
+				var url = 'MaintTransport/query.do'
155
+				var param = {page: -1,
156
+					rows: -1,
157
+					query: ''}
158
+				axios.get(url, param).then(response => {
159
+					this.transports = response.data.data
160
+				});
161
+			},
162
+
144 163
 			getTrucks() {
145 164
 				var url = 'WareDistribution/queryWaitTrucks.do'
146 165
 				var param = {}
@@ -165,7 +184,9 @@
165 184
 				var param = {
166 185
 					type: 'TALLY_PEOPLE',
167 186
 				}
187
+				
168 188
 				axios.get(url, param).then(response => {
189
+					console.log(response);
169 190
 					// alert(JSON.stringify(response))
170 191
 					this.tallyPeopleOption = response.data.data;
171 192
 				});

+ 4
- 0
src/view/record/outrecord.vue Переглянути файл

@@ -134,6 +134,8 @@
134 134
 				</el-table-column>
135 135
 				<el-table-column prop="tallyPeople" label="出库理货人员" width="180px" show-overflow-tooltip align="left">
136 136
 				</el-table-column>
137
+				<el-table-column prop="transportName" label="承运单位" width="180px" show-overflow-tooltip align="left">
138
+				</el-table-column>
137 139
 				<el-table-column prop="addId" label="出库操作人" width="120px" show-overflow-tooltip align="left">
138 140
 				</el-table-column>
139 141
 				<el-table-column prop="addTime" label="出库时间" width="200px" show-overflow-tooltip align="left">
@@ -718,6 +720,7 @@
718 720
 								,"产地"
719 721
 								,"出库车号"
720 722
 								,"出库理货人员"
723
+								,"承运单位"
721 724
 								,"出库操作人"
722 725
 								,"出库时间"
723 726
 								,"备注"
@@ -749,6 +752,7 @@
749 752
 						,"productionPlace"
750 753
 						,"outCarNo"
751 754
 						,"tallyPeople"
755
+						,"transportName"
752 756
 						,"addId"
753 757
 						,"addTime"
754 758
 						,"remark"

Завантаження…
Відмінити
Зберегти