|
@@ -109,8 +109,6 @@
|
109
|
109
|
<el-button size="small" type="primary" @click="toExport"
|
110
|
110
|
>导出</el-button
|
111
|
111
|
>
|
112
|
|
- <!-- <span> </span>
|
113
|
|
- <el-button size="small" type="primary" @click="toExport">导出</el-button>
|
114
|
112
|
<span> </span>
|
115
|
113
|
<label class="title"><span class="name">出库方式</span> :</label>
|
116
|
114
|
<el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
|
|
@@ -120,17 +118,25 @@
|
120
|
118
|
:label="option.name"
|
121
|
119
|
:value="option.id">
|
122
|
120
|
</el-option>
|
123
|
|
- </el-select>
|
124
|
|
- <span> </span>
|
125
|
|
- <label class="title"><span class="name">审核状态</span> :</label>
|
126
|
|
- <el-select size="small" v-model="check_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeCheckType">
|
127
|
|
- <el-option
|
128
|
|
- v-for="(option, index) in checkList"
|
129
|
|
- :key="index"
|
130
|
|
- :label="option.name"
|
131
|
|
- :value="option.id">
|
132
|
|
- </el-option>
|
|
121
|
+ </el-select>
|
|
122
|
+
|
|
123
|
+ <div style="margin-left: 10px">
|
|
124
|
+ <span>审核状态:</span>
|
|
125
|
+ <el-select
|
|
126
|
+ v-model="check_type"
|
|
127
|
+ style="width: 140px; margin-right: 10px"
|
|
128
|
+ placeholder="请选择"
|
|
129
|
+ @change="changeCheckList"
|
|
130
|
+ >
|
|
131
|
+ <el-option
|
|
132
|
+ v-for="item in checkList"
|
|
133
|
+ :key="item.id"
|
|
134
|
+ :label="item.name"
|
|
135
|
+ :value="item.id"
|
|
136
|
+ >
|
|
137
|
+ </el-option>
|
133
|
138
|
</el-select>
|
|
139
|
+ </div>
|
134
|
140
|
</div>
|
135
|
141
|
|
136
|
142
|
<el-table
|
|
@@ -183,14 +189,13 @@
|
183
|
189
|
</template>
|
184
|
190
|
</el-table-column>
|
185
|
191
|
|
186
|
|
- <el-table-column label="审核状态" align="center">
|
|
192
|
+ <el-table-column label="审核状态" align="center">
|
187
|
193
|
<template slot-scope="scope">
|
188
|
194
|
<span v-if="scope.row.is_check == 1">已审核</span>
|
189
|
195
|
<span v-if="scope.row.is_check == 2">未审核</span>
|
190
|
196
|
</template>
|
191
|
197
|
</el-table-column>
|
192
|
198
|
|
193
|
|
-
|
194
|
199
|
<el-table-column label="操作" align="center" width="300px">
|
195
|
200
|
<template slot-scope="scope">
|
196
|
201
|
<el-tooltip
|
|
@@ -1017,36 +1022,13 @@ export default {
|
1017
|
1022
|
{ id: 2, name: "自动出库" },
|
1018
|
1023
|
{ id: 3, name: "调拨出库" },
|
1019
|
1024
|
],
|
1020
|
|
- good_type_id:"",
|
1021
|
|
- tableShow:false,
|
1022
|
|
- tableList:[],
|
1023
|
|
- dialogVisibleTwo:false,
|
1024
|
|
- userList:[],
|
1025
|
|
- editdialogVisibleTwo:false,
|
1026
|
|
- editdialogVisibleThree:false,
|
1027
|
|
- order_id:"",
|
1028
|
|
- warehouse_out_time:"",
|
1029
|
|
- exportList:[],
|
1030
|
|
- is_sys:0,
|
1031
|
|
- infoList:[],
|
1032
|
|
- stockFlowList:[],
|
1033
|
|
- list:[],
|
1034
|
|
- houselist:[],
|
1035
|
|
- storehouse_id:0,
|
1036
|
|
- is_sys:0,
|
1037
|
|
- way_type:0,
|
1038
|
|
- wayList:[
|
1039
|
|
- { id:0,name:"全部"},
|
1040
|
|
- { id:1,name:"手动出库"},
|
1041
|
|
- { id:2,name:"自动出库"},
|
1042
|
|
- { id:3,name:"调拨出库"}
|
1043
|
|
- ],
|
1044
|
1025
|
check_type:0,
|
1045
|
1026
|
checkList:[
|
1046
|
1027
|
{id:0,name:"全部"},
|
1047
|
1028
|
{id:1,name:"已审核"},
|
1048
|
1029
|
{id:2,name:"未审核"},
|
1049
|
|
- ]
|
|
1030
|
+ ],
|
|
1031
|
+ check_id: 0,
|
1050
|
1032
|
};
|
1051
|
1033
|
},
|
1052
|
1034
|
methods: {
|
|
@@ -1061,6 +1043,7 @@ export default {
|
1061
|
1043
|
keyword: this.keywords,
|
1062
|
1044
|
page: this.page,
|
1063
|
1045
|
limit: this.limit,
|
|
1046
|
+ check_type:this.check_type,
|
1064
|
1047
|
};
|
1065
|
1048
|
getAllSecondOrderList(params).then((response) => {
|
1066
|
1049
|
if (response.data.state == 1) {
|
|
@@ -1081,11 +1064,9 @@ export default {
|
1081
|
1064
|
end_time: this.end_time,
|
1082
|
1065
|
type: this.type,
|
1083
|
1066
|
keywords: this.searchKey,
|
1084
|
|
- storehouse_id:this.storehouse_id,
|
1085
|
|
- way_type:this.way_type,
|
1086
|
|
- check_type:this.check_type,
|
1087
|
1067
|
storehouse_id: this.storehouse_id,
|
1088
|
1068
|
way_type: this.way_type,
|
|
1069
|
+ check_type:this.check_type,
|
1089
|
1070
|
};
|
1090
|
1071
|
this.warehouseOutDate = [];
|
1091
|
1072
|
getWarehouseOutList(Params).then((response) => {
|
|
@@ -1115,8 +1096,6 @@ export default {
|
1115
|
1096
|
type: this.type,
|
1116
|
1097
|
storehouse_id: this.storehouse_id,
|
1117
|
1098
|
way_type: this.way_type,
|
1118
|
|
- storehouse_id:this.storehouse_id,
|
1119
|
|
- way_type:this.way_type,
|
1120
|
1099
|
check_type:this.check_type,
|
1121
|
1100
|
};
|
1122
|
1101
|
this.warehouseOutDate = [];
|
|
@@ -1251,11 +1230,9 @@ export default {
|
1251
|
1230
|
"&is_sys=" +
|
1252
|
1231
|
row.is_sys +
|
1253
|
1232
|
"&supply_cancel_out_id=" +
|
1254
|
|
- row.supply_cancel_out_id,
|
|
1233
|
+ row.supply_cancel_out_id+
|
|
1234
|
+ "&is_check="+row.is_check+"&type="+row.type,
|
1255
|
1235
|
});
|
1256
|
|
- handleEdit: function(index, row) {
|
1257
|
|
- this.$router.push({path:'/stock/stockoutorderedit?id='+row.id+"&is_sys="+row.is_sys+"&supply_cancel_out_id="+row.supply_cancel_out_id+"&is_check="+row.is_check+"&type="+row.type})
|
1258
|
|
-
|
1259
|
1236
|
},
|
1260
|
1237
|
handleDelete: function (index, row) {
|
1261
|
1238
|
if (row.is_sys == 12) {
|
|
@@ -1266,6 +1243,10 @@ export default {
|
1266
|
1243
|
this.$message.error("采购出库数据不能删除!");
|
1267
|
1244
|
return false;
|
1268
|
1245
|
}
|
|
1246
|
+ if(row.is_check == 1){
|
|
1247
|
+ this.$message.error("已审核的单据不能删除!")
|
|
1248
|
+ return false
|
|
1249
|
+ }
|
1269
|
1250
|
const ids = [];
|
1270
|
1251
|
ids.push(row.id);
|
1271
|
1252
|
const idStr = ids.join(",");
|
|
@@ -1330,16 +1311,13 @@ export default {
|
1330
|
1311
|
const ids = [];
|
1331
|
1312
|
const idOne = [];
|
1332
|
1313
|
for (let i = 0; i < this.selectedTableData.length; i++) {
|
1333
|
|
- if (this.selectedTableData[i].is_sys == 1) {
|
1334
|
|
- this.$message.error("自动出库数据不能删除!");
|
1335
|
|
- return false;
|
1336
|
1314
|
if(this.selectedTableData[i].is_check == 1){
|
1337
|
|
- this.$message.error("已审核单据不能删除")
|
|
1315
|
+ this.$message.error("已审核单据不能删除!")
|
1338
|
1316
|
return false
|
1339
|
1317
|
}
|
1340
|
|
- if(this.selectedTableData[i].is_sys == 1){
|
1341
|
|
- this.$message.error("自动出库数据不能删除!")
|
1342
|
|
- return false
|
|
1318
|
+ if (this.selectedTableData[i].is_sys == 1) {
|
|
1319
|
+ this.$message.error("自动出库数据不能删除!");
|
|
1320
|
+ return false;
|
1343
|
1321
|
}
|
1344
|
1322
|
if (this.selectedTableData[i].is_sys == 12) {
|
1345
|
1323
|
this.$message.error("调拨出库数据不能删除!");
|
|
@@ -1347,15 +1325,11 @@ export default {
|
1347
|
1325
|
}
|
1348
|
1326
|
if (this.selectedTableData[i].is_sys == 0) {
|
1349
|
1327
|
ids.push(this.selectedTableData[i].id);
|
1350
|
|
- idOne.push(this.selectedTableData[i].supply_cancel_out_id);
|
|
1328
|
+ if(this.selectedTableData[i].supply_cancel_out_id > 0){
|
|
1329
|
+ idOne.push(this.selectedTableData[i].supply_cancel_out_id);
|
|
1330
|
+ }
|
|
1331
|
+
|
1351
|
1332
|
}
|
1352
|
|
- if(this.selectedTableData[i].is_sys == 0){
|
1353
|
|
- ids.push(this.selectedTableData[i].id);
|
1354
|
|
- if(this.selectedTableData[i].supply_cancel_out_id > 0){
|
1355
|
|
- idOne.push(this.selectedTableData[i].supply_cancel_out_id)
|
1356
|
|
- }
|
1357
|
|
-
|
1358
|
|
- }
|
1359
|
1333
|
}
|
1360
|
1334
|
if (idOne.length > 0) {
|
1361
|
1335
|
this.$message.error("采购出库数据不能删除!");
|
|
@@ -2062,25 +2036,10 @@ export default {
|
2062
|
2036
|
changeWay() {
|
2063
|
2037
|
this.GetWarehouseOut();
|
2064
|
2038
|
},
|
2065
|
|
- },
|
2066
|
|
- }
|
2067
|
|
- if(storehouse_name == "全部"){
|
2068
|
|
- return ""
|
2069
|
|
- }else{
|
2070
|
|
- return storehouse_name
|
|
2039
|
+ changeCheckList(){
|
|
2040
|
+ this.GetWarehouseOut();
|
2071
|
2041
|
}
|
2072
|
|
-
|
2073
|
|
- },
|
2074
|
|
- changeStoreHouse(){
|
2075
|
|
- this.GetWarehouseOut()
|
2076
|
|
- },
|
2077
|
|
- changeWay(){
|
2078
|
|
- this.GetWarehouseOut()
|
2079
|
|
- },
|
2080
|
|
- changeCheckType(){
|
2081
|
|
- this.GetWarehouseOut()
|
2082
|
|
- }
|
2083
|
|
- }
|
|
2042
|
+ },
|
2084
|
2043
|
};
|
2085
|
2044
|
</script>
|
2086
|
2045
|
|