|
@@ -7,6 +7,9 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn" v-if="showBut" size="small">
|
|
|
+ <el-button type="primary" size="small" class="el-button--small-yh "
|
|
|
+ @click.stop="exportOrderfun">导出订单
|
|
|
+ </el-button>
|
|
|
<el-button type="primary" size="small" v-if="detailData.status == 1" class="el-button--small-yh "
|
|
|
@click.stop="openEdit">编辑
|
|
|
</el-button>
|
|
@@ -220,13 +223,13 @@ import goodsOption from "./config/commodity.json";
|
|
|
import feeInfo from "@/components/fee-info/main";
|
|
|
import uploadFile from "@/components/upload-file/main";
|
|
|
import {
|
|
|
- detail,
|
|
|
- submit,
|
|
|
- delItem,
|
|
|
- getDeptLazyTree,
|
|
|
- getGoods,
|
|
|
- getSpecification,
|
|
|
- pleaseCheck, purchaseStatusUpdate, cancelPurchaseStatus
|
|
|
+ detail,
|
|
|
+ submit,
|
|
|
+ delItem,
|
|
|
+ getDeptLazyTree,
|
|
|
+ getGoods,
|
|
|
+ getSpecification,
|
|
|
+ pleaseCheck, purchaseStatusUpdate, cancelPurchaseStatus, orderExport
|
|
|
} from "@/api/exportTrade/purchaseContract";
|
|
|
import _ from "lodash";
|
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
@@ -242,6 +245,7 @@ import billApplication from "@/components/bill/billApplication";
|
|
|
import { dateFormat } from "@/util/date";
|
|
|
import check from "@/components/check/check.vue";
|
|
|
import checkSchedule from "@/components/check/checkSchedule.vue";
|
|
|
+import {getToken} from "@/util/auth";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPageEdit",
|
|
@@ -376,10 +380,17 @@ export default {
|
|
|
prop: "orderNo",
|
|
|
span: 8
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "销售单号",
|
|
|
+ prop: "srcOrderNo",
|
|
|
+ disabled: true,
|
|
|
+ span: 8
|
|
|
+ },
|
|
|
{
|
|
|
label: "币别",
|
|
|
prop: "currency",
|
|
|
- span: 8,
|
|
|
+
|
|
|
+ span: 4,
|
|
|
type: "select",
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
|
|
|
props: {
|
|
@@ -399,7 +410,8 @@ export default {
|
|
|
{
|
|
|
label: "汇率",
|
|
|
prop: "exchangeRate",
|
|
|
- span: 8,
|
|
|
+ labelWidth:'40',
|
|
|
+ span: 4,
|
|
|
slot: true,
|
|
|
row: true,
|
|
|
disabled: true
|
|
@@ -578,6 +590,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 导出订单
|
|
|
+ exportOrderfun(){
|
|
|
+ const routeData = this.$router.resolve({
|
|
|
+ path: '/api/blade-purchase-sales/order/export', //跳转目标窗口的地址
|
|
|
+ query: {
|
|
|
+ orderNo:this.form.srcOrderNo //括号内是要传递给新窗口的参数
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
|
|
|
+ },
|
|
|
//审核关闭
|
|
|
choceScheduleFun() {
|
|
|
this.checkScheduleDialog = false
|