|
@@ -67,14 +67,13 @@
|
|
|
>
|
|
|
</div>
|
|
|
<template slot-scope="{ row }" slot="set">
|
|
|
- <a
|
|
|
+ <!-- <a
|
|
|
v-if="$route.query.type == 4"
|
|
|
class="map-margin"
|
|
|
:disabled="row.order_in_no"
|
|
|
@click="confirmSuccess(row)"
|
|
|
>确认入库</a
|
|
|
>
|
|
|
- <!-- v-if="$route.query.type == 4&&row.in_out_value!=1" -->
|
|
|
<a
|
|
|
v-if="$route.query.type == 4"
|
|
|
class="map-margin"
|
|
@@ -93,6 +92,17 @@
|
|
|
class="map-margin"
|
|
|
@click="row.sub_state != 3 ? outShip(row, 2) : ''"
|
|
|
>{{ row.sub_state != 3 ? "运输" : "" }}</a
|
|
|
+ > -->
|
|
|
+ <a
|
|
|
+ class="map-margin"
|
|
|
+ v-if="row.in_out_value !== 1"
|
|
|
+ @click="outShip(row,3)"
|
|
|
+ >确认出库</a
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ class="map-margin"
|
|
|
+ @click="row.sub_state != 3 ? outShip(row, 2) : ''"
|
|
|
+ >{{ row.sub_state != 3 ? "运输" : "" }}</a
|
|
|
>
|
|
|
</template>
|
|
|
<Modal
|
|
@@ -569,6 +579,7 @@ export default {
|
|
|
.toLocaleDateString()
|
|
|
.replace(/\//g, "-");
|
|
|
}
|
|
|
+
|
|
|
this.axios.post("/api/orders_out", this.info).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$Message.success(res.msg);
|
|
@@ -580,6 +591,22 @@ export default {
|
|
|
|
|
|
outShip(row, type) {
|
|
|
//type 1出库 2运输
|
|
|
+ if(type == 3){
|
|
|
+ this.confirmDelete({
|
|
|
+ title: "确认出库" ,
|
|
|
+ content: "确认出库么?" ,
|
|
|
+ type: "primary",
|
|
|
+ then: (e) => {
|
|
|
+ this.axios.post('/api/orders_transport', {transport_no:row.transport_no}).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$Message.success(res.msg);
|
|
|
+ this.getData(this.proxyObj);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ cancel: (e) => {},
|
|
|
+ });
|
|
|
+ }else{
|
|
|
if (!row || row.length < 1) {
|
|
|
return this.$Message.error("请至少选择一项");
|
|
|
}
|
|
@@ -601,7 +628,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
cancel: (e) => {},
|
|
|
- });
|
|
|
+ });}
|
|
|
},
|
|
|
async exportData() {
|
|
|
const res = await this.axios("/api/orders_list_detail", {
|