|
@@ -1,8 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <el-page-header @back="handleBack" content="详情" style=" padding: 20px 20px 0 20px;"></el-page-header>
|
|
|
|
|
|
+ <el-page-header content="详情" style=" padding: 20px 20px 0 20px;" @back="handleBack" />
|
|
<sales-header ref="header" />
|
|
<sales-header ref="header" />
|
|
- <sales-table :dataList="dataList" :column="column" @handleSelection="handleSelection">
|
|
|
|
|
|
+ <sales-table :data-list="dataList" :column="column" @handleSelection="handleSelection">
|
|
<!-- <template #bts>-->
|
|
<!-- <template #bts>-->
|
|
<!-- <div>-->
|
|
<!-- <div>-->
|
|
<!-- <el-button type="primary" size="mini" @click="dialogVisible=true">添加</el-button>-->
|
|
<!-- <el-button type="primary" size="mini" @click="dialogVisible=true">添加</el-button>-->
|
|
@@ -23,8 +23,8 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
<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>
|
|
|
|
|
|
+ <el-radio v-model="row.flag" label="1">增加</el-radio>
|
|
|
|
+ <el-radio v-model="row.flag" label="-1">减少</el-radio>
|
|
</template>
|
|
</template>
|
|
<template v-slot:operation="{item:{row,$index}}">
|
|
<template v-slot:operation="{item:{row,$index}}">
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
@@ -35,46 +35,13 @@
|
|
<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>-->
|
|
|
|
</sales-table>
|
|
</sales-table>
|
|
- <sales-dialog :dialogVisible="dialogVisible" :customerNumber="customerNumber" :func="getDialogList"
|
|
|
|
- @confirm="confirm"
|
|
|
|
|
|
+ <LogisticsTabs />
|
|
|
|
+ <sales-dialog
|
|
|
|
+ :dialog-visible="dialogVisible"
|
|
|
|
+ :customer-number="customerNumber"
|
|
|
|
+ :func="getDialogList"
|
|
|
|
+ @confirm="confirm"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -85,15 +52,17 @@ import SalesHeader from '@/components/SalesHeader/SalesHeader'
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
import { addFrontOrder, getFrontOrderDetail, sbumitFrontOrder } from '@/api/sales'
|
|
import { addFrontOrder, getFrontOrderDetail, sbumitFrontOrder } from '@/api/sales'
|
|
import { getcustomerFrontList } from '@/api/stock'
|
|
import { getcustomerFrontList } from '@/api/stock'
|
|
|
|
+import LogisticsTabs from '@/components/LogisticsTabs'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'WarehouseForm',
|
|
name: 'WarehouseForm',
|
|
components: {
|
|
components: {
|
|
SalesHeader,
|
|
SalesHeader,
|
|
SalesTable,
|
|
SalesTable,
|
|
- SalesDialog
|
|
|
|
|
|
+ SalesDialog,
|
|
|
|
+ LogisticsTabs
|
|
},
|
|
},
|
|
- props: ['detailsId','pageType'],
|
|
|
|
|
|
+ props: ['detailsId', 'pageType'],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
@@ -126,7 +95,7 @@ export default {
|
|
{
|
|
{
|
|
prop: 'qty',
|
|
prop: 'qty',
|
|
label: '数量',
|
|
label: '数量',
|
|
- width: '180',
|
|
|
|
|
|
+ width: '180'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: 'volume',
|
|
prop: 'volume',
|
|
@@ -141,7 +110,7 @@ export default {
|
|
{
|
|
{
|
|
prop: 'notes',
|
|
prop: 'notes',
|
|
label: '备注',
|
|
label: '备注',
|
|
- width: '180',
|
|
|
|
|
|
+ width: '180'
|
|
|
|
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -172,7 +141,6 @@ export default {
|
|
this.$refs.header.screenForm.areaId = res.data.area
|
|
this.$refs.header.screenForm.areaId = res.data.area
|
|
this.$refs.header.screenForm.streetId = res.data.street
|
|
this.$refs.header.screenForm.streetId = res.data.street
|
|
this.$refs.header.screenForm.stockType = res.data.stockType == 1 ? '前置仓' : '商家仓'
|
|
this.$refs.header.screenForm.stockType = res.data.stockType == 1 ? '前置仓' : '商家仓'
|
|
-
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -187,7 +155,6 @@ export default {
|
|
this.$refs.header.screenForm.customerNumber = this.dataList[0].customerNumber
|
|
this.$refs.header.screenForm.customerNumber = this.dataList[0].customerNumber
|
|
this.customerNumber = this.dataList[0].customerNumber
|
|
this.customerNumber = this.dataList[0].customerNumber
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
-
|
|
|
|
},
|
|
},
|
|
handleDel(item, index) {
|
|
handleDel(item, index) {
|
|
this.dataList.splice(index, 1)
|
|
this.dataList.splice(index, 1)
|
|
@@ -236,11 +203,10 @@ export default {
|
|
this.$successMsg('退货通知')
|
|
this.$successMsg('退货通知')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleBack() {
|
|
|
|
|
|
+ handleBack() {
|
|
this.$emit('close')
|
|
this.$emit('close')
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|