|
@@ -11,15 +11,15 @@
|
|
<!-- </template>-->
|
|
<!-- </template>-->
|
|
<template #events>
|
|
<template #events>
|
|
<div v-if="details.status==1 || details.status==2">
|
|
<div v-if="details.status==1 || details.status==2">
|
|
- <el-button type="primary" size="mini" @click="handelSubmit">通知发货</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="handleInform(2)">通知发货</el-button>
|
|
<el-button size="mini">撤销发货</el-button>
|
|
<el-button size="mini">撤销发货</el-button>
|
|
</div>
|
|
</div>
|
|
<div v-if="details.status==3">
|
|
<div v-if="details.status==3">
|
|
- <el-button type="primary" size="mini" @click="handelSubmit">发货</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="handleInform(3)">发货</el-button>
|
|
<el-button size="mini">撤销发货</el-button>
|
|
<el-button size="mini">撤销发货</el-button>
|
|
</div>
|
|
</div>
|
|
<div v-if="details.status==4">
|
|
<div v-if="details.status==4">
|
|
- <el-button type="primary" size="mini" @click="handelSigning">签收</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="handleInform(4)">签收</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
@@ -35,43 +35,43 @@
|
|
<el-button slot="reference" type="text" size="mini">删除</el-button>
|
|
<el-button slot="reference" type="text" size="mini">删除</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
</template>
|
|
</template>
|
|
- <div>
|
|
|
|
- <h5>物流信息</h5>
|
|
|
|
- <div class="diy-table-1">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="6" class="item">
|
|
|
|
- <div class="label">销售政策编号</div>
|
|
|
|
- <div class="value">2222</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="6" class="item">
|
|
|
|
- <div class="label">销售政策编号</div>
|
|
|
|
- <div class="value">2222</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="6" class="item">
|
|
|
|
- <div class="label">销售政策编号</div>
|
|
|
|
- <div class="value">2222</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="6" class="item">
|
|
|
|
- <div class="label">销售政策编号</div>
|
|
|
|
- <div class="value">2222</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" class="item">
|
|
|
|
- <div class="label">销售政策编号</div>
|
|
|
|
- <div class="value">2222</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </div>
|
|
|
|
- <el-timeline :reverse="reverse">
|
|
|
|
- <el-timeline-item
|
|
|
|
- v-for="(activity, index) in activities"
|
|
|
|
- :key="index"
|
|
|
|
- :timestamp="activity.timestamp"
|
|
|
|
- :color="activity.color"
|
|
|
|
- >
|
|
|
|
- {{ activity.content }}
|
|
|
|
- </el-timeline-item>
|
|
|
|
- </el-timeline>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <!-- <div>-->
|
|
|
|
+ <!-- <h5>物流信息</h5>-->
|
|
|
|
+ <!-- <div class="diy-table-1">-->
|
|
|
|
+ <!-- <el-row>-->
|
|
|
|
+ <!-- <el-col :span="6" class="item">-->
|
|
|
|
+ <!-- <div class="label">销售政策编号</div>-->
|
|
|
|
+ <!-- <div class="value">2222</div>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <el-col :span="6" class="item">-->
|
|
|
|
+ <!-- <div class="label">销售政策编号</div>-->
|
|
|
|
+ <!-- <div class="value">2222</div>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <el-col :span="6" class="item">-->
|
|
|
|
+ <!-- <div class="label">销售政策编号</div>-->
|
|
|
|
+ <!-- <div class="value">2222</div>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <el-col :span="6" class="item">-->
|
|
|
|
+ <!-- <div class="label">销售政策编号</div>-->
|
|
|
|
+ <!-- <div class="value">2222</div>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <el-col :span="24" class="item">-->
|
|
|
|
+ <!-- <div class="label">销售政策编号</div>-->
|
|
|
|
+ <!-- <div class="value">2222</div>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- </el-row>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- <el-timeline :reverse="reverse">-->
|
|
|
|
+ <!-- <el-timeline-item-->
|
|
|
|
+ <!-- v-for="(activity, index) in activities"-->
|
|
|
|
+ <!-- :key="index"-->
|
|
|
|
+ <!-- :timestamp="activity.timestamp"-->
|
|
|
|
+ <!-- :color="activity.color"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- {{ activity.content }}-->
|
|
|
|
+ <!-- </el-timeline-item>-->
|
|
|
|
+ <!-- </el-timeline>-->
|
|
|
|
+ <!-- </div>-->
|
|
</sales-table>
|
|
</sales-table>
|
|
<sales-dialog :dialogVisible="dialogVisible" :customerNumber="customerNumber" :func="getDialogList"
|
|
<sales-dialog :dialogVisible="dialogVisible" :customerNumber="customerNumber" :func="getDialogList"
|
|
@confirm="confirm"
|
|
@confirm="confirm"
|
|
@@ -83,7 +83,7 @@
|
|
import SalesDialog from '@/components/SalesDialog/SalesDialog'
|
|
import SalesDialog from '@/components/SalesDialog/SalesDialog'
|
|
import SalesHeader from '@/components/SalesHeader/SalesHeader'
|
|
import SalesHeader from '@/components/SalesHeader/SalesHeader'
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
-import { addFrontOrder, getFrontOrderDetail } from '@/api/sales'
|
|
|
|
|
|
+import { addFrontOrder, getFrontOrderDetail, sbumitFrontOrder } from '@/api/sales'
|
|
import { getcustomerFrontList } from '@/api/stock'
|
|
import { getcustomerFrontList } from '@/api/stock'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -167,6 +167,12 @@ export default {
|
|
this.dataList = res.data.orders
|
|
this.dataList = res.data.orders
|
|
this.details = res.data
|
|
this.details = res.data
|
|
this.$refs.header.screenForm = res.data
|
|
this.$refs.header.screenForm = res.data
|
|
|
|
+ this.$refs.header.screenForm.provinceId = res.data.province
|
|
|
|
+ this.$refs.header.screenForm.cityId = res.data.city
|
|
|
|
+ this.$refs.header.screenForm.areaId = res.data.area
|
|
|
|
+ this.$refs.header.screenForm.streetId = res.data.street
|
|
|
|
+ this.$refs.header.screenForm.stockType = res.data.stockType == 1 ? '前置仓' : '商家仓'
|
|
|
|
+
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -224,6 +230,12 @@ export default {
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
|
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ handleInform(status = 2) {
|
|
|
|
+ console.log(33)
|
|
|
|
+ sbumitFrontOrder({ id: this.$refs.header.screenForm.id, status }).then(res => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|