|
@@ -1,39 +1,39 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <basicDetails
|
|
|
- ref="details"
|
|
|
- :titleText="`${mainData.billno}`"
|
|
|
- :oldFormPath="{edit:'HDrpManagement/dispatch/modules'}"
|
|
|
- :editData="mainData"
|
|
|
- :mainAreaData="mainAreaData"
|
|
|
- delApiId="20221114135503"
|
|
|
- turnPageId="20221114135403"
|
|
|
- idname="sa_dispatchid"
|
|
|
- ownertable="sa_dispatch"
|
|
|
- tags=""
|
|
|
- :tabs="['基础信息','发货明细']"
|
|
|
- @pageChange="pageChange"
|
|
|
- @onEditSuccess="queryMainData($route.query.id)">
|
|
|
- <div slot="tags">
|
|
|
- </div>
|
|
|
- <div slot="customOperation">
|
|
|
- <el-button type="primary" size="mini" v-if="tool.checkAuth($route.name,'check')" :disabled="mainData.STATUS !== '新建' && mainData.STATUS !== '审核'" @click="onCheck">{{mainData.STATUS === '审核'?'反审':mainData.STATUS === '复核'?'反审':'审核'}}</el-button>
|
|
|
- <el-button class="inline-16" type="primary" size="mini" v-if="tool.checkAuth($route.name,'recheck')" :disabled="mainData.STATUS !== '审核' && mainData.STATUS !== '复核'" @click="onReCheck">{{mainData.STATUS === '复核'?'反复核':'复核'}}</el-button>
|
|
|
- </div>
|
|
|
- <div slot="slot0" >
|
|
|
- <default-info :mainData="mainData"></default-info>
|
|
|
- </div>
|
|
|
- <div slot="slot1" >
|
|
|
- <product-list :mainData="mainData"></product-list>
|
|
|
- </div>
|
|
|
- </basicDetails>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
-
|
|
|
- <script>
|
|
|
- import productList from '../modules/productlist.vue'
|
|
|
- import defaultInfo from '../modules/defaultInfo.vue'
|
|
|
-import { log } from '@antv/g2plot/lib/utils'
|
|
|
+ <basicDetails
|
|
|
+ ref="details"
|
|
|
+ :titleText="`${mainData.billno}`"
|
|
|
+ :oldFormPath="{edit:'HDrpManagement/dispatch/modules'}"
|
|
|
+ :editData="mainData"
|
|
|
+ :mainAreaData="mainAreaData"
|
|
|
+ delApiId="20221114135503"
|
|
|
+ turnPageId="20221114135403"
|
|
|
+ idname="sa_dispatchid"
|
|
|
+ ownertable="sa_dispatch"
|
|
|
+ tags=""
|
|
|
+ :tabs="['基础信息','发货明细']"
|
|
|
+ @pageChange="pageChange"
|
|
|
+ @onEditSuccess="queryMainData($route.query.id)">
|
|
|
+ <div slot="tags">
|
|
|
+ </div>
|
|
|
+ <div slot="customOperation">
|
|
|
+ <el-button type="primary" size="mini" v-if="tool.checkAuth($route.name,'check')" :disabled="mainData.STATUS !== '复核'" @click="addLogistics">生成物流单</el-button>
|
|
|
+ <el-button type="primary" size="mini" v-if="tool.checkAuth($route.name,'check')" :disabled="mainData.STATUS !== '新建' && mainData.STATUS !== '审核'" @click="onCheck">{{mainData.STATUS === '审核'?'反审':mainData.STATUS === '复核'?'反审':'审核'}}</el-button>
|
|
|
+ <el-button class="inline-16" type="primary" size="mini" v-if="tool.checkAuth($route.name,'recheck')" :disabled="mainData.STATUS !== '审核' && mainData.STATUS !== '复核'" @click="onReCheck">{{mainData.STATUS === '复核'?'反复核':'复核'}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div slot="slot0" >
|
|
|
+ <default-info :mainData="mainData"></default-info>
|
|
|
+ </div>
|
|
|
+ <div slot="slot1" >
|
|
|
+ <product-list :mainData="mainData"></product-list>
|
|
|
+ </div>
|
|
|
+ </basicDetails>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import productList from '../modules/productlist.vue'
|
|
|
+import defaultInfo from '../modules/defaultInfo.vue'
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
data() {
|
|
@@ -182,6 +182,21 @@ import { log } from '@antv/g2plot/lib/utils'
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ async addLogistics () {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": "20230216185104",
|
|
|
+ "content": {
|
|
|
+ "sa_dispatchid":this.mainData.sa_dispatchid
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ this.tool.showMessage(()=>{
|
|
|
+ let route = this.$route
|
|
|
+ this.oldRoute = {path:route.path,query:route.query}
|
|
|
+ this.$store.dispatch('setHistoryRouter',this.oldRoute)
|
|
|
+ this.$router.replace({path:'/logisticsdetail',query:{id:res.data.sa_logisticsid,rowindex:res.data.rowindex}})
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
mounted () {
|
|
|
this.queryMainData(this.$route.query.id)
|