|
@@ -258,24 +258,28 @@
|
258
|
258
|
<el-row>
|
259
|
259
|
<el-col :span="9">
|
260
|
260
|
<el-form-item label="材料编号">
|
261
|
|
- <el-input v-model.number="store.plateNo"></el-input>
|
|
261
|
+ <el-input v-model="store.plateNo"></el-input>
|
262
|
262
|
</el-form-item>
|
263
|
263
|
</el-col>
|
264
|
264
|
<el-col :span="9">
|
265
|
265
|
<el-form-item label="规格型号">
|
266
|
|
- <el-input v-model.number="store.model"></el-input>
|
|
266
|
+ <el-input v-model="store.model"></el-input>
|
267
|
267
|
</el-form-item>
|
268
|
268
|
</el-col>
|
269
|
269
|
</el-row>
|
270
|
270
|
<el-row>
|
271
|
271
|
<el-col :span="9">
|
272
|
272
|
<el-form-item label="品名">
|
273
|
|
- <el-input v-model.number="store.material.name"></el-input>
|
|
273
|
+ <!-- <el-input v-model.number="store.material.name"></el-input> -->
|
|
274
|
+ <el-select v-model="store.material.name" filterable placeholder="请选择客户名称" clearable @change="changematerial">
|
|
275
|
+ <el-option v-for="item in optionsMaterial" :key="item.id" :label="item.name+'-'+item.standard" :value="item" >
|
|
276
|
+ </el-option>
|
|
277
|
+ </el-select>
|
274
|
278
|
</el-form-item>
|
275
|
279
|
</el-col>
|
276
|
280
|
<el-col :span="9">
|
277
|
281
|
<el-form-item label="钢种">
|
278
|
|
- <el-input v-model.number="store.material.standard"></el-input>
|
|
282
|
+ <el-input v-model="store.material.standard" :disabled="true"></el-input>
|
279
|
283
|
</el-form-item>
|
280
|
284
|
</el-col>
|
281
|
285
|
</el-row>
|
|
@@ -294,24 +298,24 @@
|
294
|
298
|
<el-row>
|
295
|
299
|
<el-col :span="9">
|
296
|
300
|
<el-form-item label="订单号">
|
297
|
|
- <el-input v-model.number="store.ordNo"></el-input>
|
|
301
|
+ <el-input v-model="store.ordNo"></el-input>
|
298
|
302
|
</el-form-item>
|
299
|
303
|
</el-col>
|
300
|
304
|
<el-col :span="9">
|
301
|
305
|
<el-form-item label="合约号">
|
302
|
|
- <el-input v-model.number="store.contractNo"></el-input>
|
|
306
|
+ <el-input v-model="store.contractNo"></el-input>
|
303
|
307
|
</el-form-item>
|
304
|
308
|
</el-col>
|
305
|
309
|
</el-row>
|
306
|
310
|
<el-row>
|
307
|
311
|
<el-col :span="9">
|
308
|
312
|
<el-form-item label="捆包号">
|
309
|
|
- <el-input v-model.number="store.packNo"></el-input>
|
|
313
|
+ <el-input v-model="store.packNo"></el-input>
|
310
|
314
|
</el-form-item>
|
311
|
315
|
</el-col>
|
312
|
316
|
<el-col :span="9">
|
313
|
317
|
<el-form-item label="产地">
|
314
|
|
- <el-input v-model.number="store.productionPlace"></el-input>
|
|
318
|
+ <el-input v-model="store.productionPlace"></el-input>
|
315
|
319
|
</el-form-item>
|
316
|
320
|
</el-col>
|
317
|
321
|
</el-row>
|
|
@@ -401,6 +405,7 @@
|
401
|
405
|
},
|
402
|
406
|
optionsWare: [], //库房下拉框
|
403
|
407
|
optionsCust: [], //客户名称下拉框
|
|
408
|
+ optionsMaterial: [], //客户名称下拉框
|
404
|
409
|
optionsOutFlag: [{ //物料状态下拉框
|
405
|
410
|
value: '0',
|
406
|
411
|
label: '在库'
|
|
@@ -498,6 +503,7 @@
|
498
|
503
|
mounted() {
|
499
|
504
|
this.getWare() //初始化-库房下拉框-数据载入
|
500
|
505
|
this.getAllCustomer() //初始化-客户下拉框-数据载入
|
|
506
|
+ this.getAllMaterial() //初始化-物料下拉框-数据载入
|
501
|
507
|
},
|
502
|
508
|
methods: {
|
503
|
509
|
//获取--库房下拉框--数据
|
|
@@ -520,6 +526,20 @@
|
520
|
526
|
this.optionsCust = response.data.data
|
521
|
527
|
});
|
522
|
528
|
},
|
|
529
|
+ //获取--物料下拉框--数据
|
|
530
|
+ getAllMaterial() {
|
|
531
|
+ var url = 'MaintMaterial/query.do'
|
|
532
|
+ var param = {
|
|
533
|
+ page: -1,
|
|
534
|
+ rows: -1,
|
|
535
|
+ material: '',
|
|
536
|
+ standard: '',
|
|
537
|
+ }
|
|
538
|
+ axios.get(url, param).then(response => {
|
|
539
|
+ console.log(response.data.data)
|
|
540
|
+ this.optionsMaterial = response.data.data
|
|
541
|
+ });
|
|
542
|
+ },
|
523
|
543
|
// “捆包号”查询框进行批量查询时用到的函数
|
524
|
544
|
getPackList(){
|
525
|
545
|
const replaceResult = this.query.packNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
|
|
@@ -656,7 +676,8 @@
|
656
|
676
|
},
|
657
|
677
|
|
658
|
678
|
//货权转移按钮对应的操作函数
|
659
|
|
- showChangeCustomer() { //判断数据条件并打开弹窗
|
|
679
|
+ showChangeCustomer(val) { //判断数据条件并打开弹窗
|
|
680
|
+ this.multipleSelection = this.selectRows;
|
660
|
681
|
if (this.multipleSelection.length < 1) {
|
661
|
682
|
this.$message({
|
662
|
683
|
type: 'error',
|
|
@@ -1089,6 +1110,43 @@
|
1089
|
1110
|
}).catch(() => {});
|
1090
|
1111
|
},
|
1091
|
1112
|
|
|
1113
|
+ // 数据展示区域进行单条数据修改操作
|
|
1114
|
+ handleEdit(row) { //按钮点击时打开弹窗
|
|
1115
|
+ this.store = row
|
|
1116
|
+ this.storedialogVisible = true
|
|
1117
|
+ },
|
|
1118
|
+ handleChangeStore(formName){
|
|
1119
|
+ var url = 'WareStore/modify.do'
|
|
1120
|
+ var json = JSON.stringify(this.store)
|
|
1121
|
+ var param = {
|
|
1122
|
+ json: json,
|
|
1123
|
+ }
|
|
1124
|
+ axios.post(url, param).then(response => {
|
|
1125
|
+ if (response.data.code == '0') {
|
|
1126
|
+ this.$message({
|
|
1127
|
+ type: 'success',
|
|
1128
|
+ message: '保存修改成功!',
|
|
1129
|
+ });
|
|
1130
|
+ this.storedialogVisible = false
|
|
1131
|
+ this.getTableData()
|
|
1132
|
+ } else {
|
|
1133
|
+ this.$message({
|
|
1134
|
+ type: 'error',
|
|
1135
|
+ message: '保存修改失败!' + response.data.msg,
|
|
1136
|
+ });
|
|
1137
|
+ }
|
|
1138
|
+ });
|
|
1139
|
+ },
|
|
1140
|
+ handleChangeStoreCancelSave(){
|
|
1141
|
+ this.storedialogVisible = false
|
|
1142
|
+ this.getTableData()
|
|
1143
|
+ },
|
|
1144
|
+ changematerial(item){
|
|
1145
|
+ this.store.material.id = item.id
|
|
1146
|
+ this.store.material.name = item.name
|
|
1147
|
+ this.store.material.standard = item.standard
|
|
1148
|
+ }
|
|
1149
|
+
|
1092
|
1150
|
}
|
1093
|
1151
|
}
|
1094
|
1152
|
</script>
|