YL2767 2 个月前
父节点
当前提交
b3c9a88125
共有 4 个文件被更改,包括 43 次插入6 次删除
  1. 2
    2
      config/dev.env.js
  2. 13
    1
      src/components/PopupDistribution.vue
  3. 24
    3
      src/components/PopupOut.vue
  4. 4
    0
      src/view/record/outrecord.vue

+ 2
- 2
config/dev.env.js 查看文件

4
 
4
 
5
 module.exports = merge(prodEnv, {
5
 module.exports = merge(prodEnv, {
6
   NODE_ENV: '"development"',
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
 	// BASE_API: '"http://47.104.245.159:8081/thware/"'
9
 	// BASE_API: '"http://47.104.245.159:8081/thware/"'
10
 })
10
 })

+ 13
- 1
src/components/PopupDistribution.vue 查看文件

158
 								response.data.data.listDetail = []
158
 								response.data.data.listDetail = []
159
 							}
159
 							}
160
 						}
160
 						}
161
+						console.log(this.trucks)
161
 						this.trucks = response.data.data
162
 						this.trucks = response.data.data
162
 						//	console.log(JSON.stringify(this.trucks))
163
 						//	console.log(JSON.stringify(this.trucks))
163
 
164
 
271
 					if (response.data.code == 0) {
272
 					if (response.data.code == 0) {
272
 
273
 
273
 					//	this.dialogVisible = false   //modify by liuc 2025/04/16  10:14
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
 					} else {
287
 					} else {
276
 						this.$message({
288
 						this.$message({
277
 							type: 'error',
289
 							type: 'error',

+ 24
- 3
src/components/PopupOut.vue 查看文件

26
 				</el-form-item>
26
 				</el-form-item>
27
 				<el-form-item label="理货人员">
27
 				<el-form-item label="理货人员">
28
 					<el-select v-model="distribution.tallyPeople" size="small" style="margin-left: 10px" clearable placeholder="理货人员">
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
 						</el-option>
36
 						</el-option>
31
 					</el-select>
37
 					</el-select>
32
 				</el-form-item>
38
 				</el-form-item>
111
 		},
117
 		},
112
 		mounted() {
118
 		mounted() {
113
 			this.getSearchItem();
119
 			this.getSearchItem();
120
+			this.gettransportItem();
114
 		},
121
 		},
115
 		data() {
122
 		data() {
116
 			return {
123
 			return {
134
 					sumCount: '',
141
 					sumCount: '',
135
 					suttle: 0,
142
 					suttle: 0,
136
 					tallyPeople:'',
143
 					tallyPeople:'',
137
-					listDetail: []
144
+					listDetail: [],
145
+					transportName:''
138
 				},
146
 				},
139
 				time: '',
147
 				time: '',
140
-				tallyPeopleOption:[]
148
+				tallyPeopleOption:[],
149
+				transports: []
141
 			};
150
 			};
142
 		},
151
 		},
143
 		methods: {
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
 			getTrucks() {
163
 			getTrucks() {
145
 				var url = 'WareDistribution/queryWaitTrucks.do'
164
 				var url = 'WareDistribution/queryWaitTrucks.do'
146
 				var param = {}
165
 				var param = {}
165
 				var param = {
184
 				var param = {
166
 					type: 'TALLY_PEOPLE',
185
 					type: 'TALLY_PEOPLE',
167
 				}
186
 				}
187
+				
168
 				axios.get(url, param).then(response => {
188
 				axios.get(url, param).then(response => {
189
+					console.log(response);
169
 					// alert(JSON.stringify(response))
190
 					// alert(JSON.stringify(response))
170
 					this.tallyPeopleOption = response.data.data;
191
 					this.tallyPeopleOption = response.data.data;
171
 				});
192
 				});

+ 4
- 0
src/view/record/outrecord.vue 查看文件

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

正在加载...
取消
保存