|
@@ -3,18 +3,25 @@
|
|
|
<el-page-header @back="$parent.pageType=0" content="详情" style=" padding: 20px 20px 0 20px;"></el-page-header>
|
|
|
<sales-header ref="header" />
|
|
|
<sales-table :dataList="dataList" :column="column" isOperation isSelection @handleSelection="handleSelection">
|
|
|
- <template #bts>
|
|
|
- <div>
|
|
|
- <el-button type="primary" size="mini" @click="dialogVisible=true">添加</el-button>
|
|
|
- <el-button type="danger" size="mini" @click="delChange">删除</el-button>
|
|
|
+ <!-- <template #bts>-->
|
|
|
+ <!-- <div>-->
|
|
|
+ <!-- <el-button type="primary" size="mini" @click="dialogVisible=true">添加</el-button>-->
|
|
|
+ <!-- <el-button type="danger" size="mini" @click="delChange">删除</el-button>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </template>-->
|
|
|
+ <template #events>
|
|
|
+ <div v-if="details.status==1 || details.status==2">
|
|
|
+ <el-button type="primary" size="mini" @click="handelSubmit">通知发货</el-button>
|
|
|
+ <el-button size="mini">撤销发货</el-button>
|
|
|
+ </div>
|
|
|
+ <div v-if="details.status==3">
|
|
|
+ <el-button type="primary" size="mini" @click="handelSubmit">发货</el-button>
|
|
|
+ <el-button size="mini">撤销发货</el-button>
|
|
|
+ </div>
|
|
|
+ <div v-if="details.status==4">
|
|
|
+ <el-button type="primary" size="mini" @click="handelSigning">签收</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
-<!-- <template #events>-->
|
|
|
-<!-- <div>-->
|
|
|
-<!-- <el-button type="primary" size="mini" @click="handelSubmit">提交</el-button>-->
|
|
|
-<!-- <el-button size="mini">重置</el-button>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </template>-->
|
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
|
<el-radio label="1" v-model="row.flag">增加</el-radio>
|
|
|
<el-radio label="-1" v-model="row.flag">减少</el-radio>
|
|
@@ -28,8 +35,47 @@
|
|
|
<el-button slot="reference" type="text" size="mini">删除</el-button>
|
|
|
</el-popconfirm>
|
|
|
</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>
|
|
|
</sales-table>
|
|
|
- <sales-dialog :dialogVisible="dialogVisible" :customerNumber="customerNumber" :func="getDialogList" @confirm="confirm" />
|
|
|
+ <sales-dialog :dialogVisible="dialogVisible" :customerNumber="customerNumber" :func="getDialogList"
|
|
|
+ @confirm="confirm"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -37,8 +83,8 @@
|
|
|
import SalesDialog from '@/components/SalesDialog/SalesDialog'
|
|
|
import SalesHeader from '@/components/SalesHeader/SalesHeader'
|
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
|
-import { addFrontOrder } from '@/api/sales'
|
|
|
-import { getcustomerFrontList } from '@/api/stock'
|
|
|
+import { addFrontOrder, getFrontOrderDetail } from '@/api/sales'
|
|
|
+import { getcustomerFrontList } from '@/api/stock'
|
|
|
|
|
|
export default {
|
|
|
name: 'WarehouseForm',
|
|
@@ -47,13 +93,15 @@ export default {
|
|
|
SalesTable,
|
|
|
SalesDialog
|
|
|
},
|
|
|
+ props: ['detailsId'],
|
|
|
data() {
|
|
|
return {
|
|
|
dialogVisible: false,
|
|
|
- customerNumber:'',
|
|
|
+ customerNumber: '',
|
|
|
dataList: [],
|
|
|
+ details: {},
|
|
|
selection: [],
|
|
|
- flag:1,
|
|
|
+ flag: 1,
|
|
|
column: [
|
|
|
{
|
|
|
prop: 'materialName',
|
|
@@ -72,30 +120,54 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
prop: 'stockLockQty',
|
|
|
- label: '库存',
|
|
|
+ label: '库存数量',
|
|
|
width: '180'
|
|
|
},
|
|
|
{
|
|
|
- prop: 'directFlag',
|
|
|
- label: '发生方向',
|
|
|
- width: '180',
|
|
|
- isCustom: true
|
|
|
-
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'stockChangeQty',
|
|
|
+ prop: 'qty',
|
|
|
label: '数量',
|
|
|
width: '180',
|
|
|
isInput: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'remark',
|
|
|
+ prop: 'volume',
|
|
|
+ label: '体积',
|
|
|
+ width: '180'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'totalVolume',
|
|
|
+ label: '总体积',
|
|
|
+ width: '180'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'notes',
|
|
|
label: '备注',
|
|
|
width: '180',
|
|
|
isInput: true
|
|
|
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ activities: [{
|
|
|
+ content: '活动按期开始',
|
|
|
+ color: '#0bbd87',
|
|
|
+ timestamp: '2018-04-15'
|
|
|
+ }, {
|
|
|
+ content: '通过审核',
|
|
|
+ timestamp: '2018-04-13'
|
|
|
+ }, {
|
|
|
+ content: '创建成功',
|
|
|
+ timestamp: '2018-04-11'
|
|
|
+ }]
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ if (this.detailsId) {
|
|
|
+ getFrontOrderDetail({ id: this.detailsId }).then(res => {
|
|
|
+ this.dataList = res.data.orders
|
|
|
+ this.details = res.data
|
|
|
+ this.$refs.header.screenForm = res.data
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -142,6 +214,17 @@ export default {
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
|
},
|
|
|
+ handelSigning() {
|
|
|
+ this.$confirm('请确定,订单产品客户已完成签收,一旦签收则不能撤销', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(res => {
|
|
|
+
|
|
|
+ }).catch(err => {
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|