|
@@ -76,7 +76,7 @@
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
<el-button type="text" size="small" v-debounce @click="saveSell(scope.row)"
|
|
|
- :disabled="scope.row.status < 3 || scope.row.createPurchase == 1">生成采购</el-button>
|
|
|
+ :disabled="scope.row.status < 3 || scope.row.createPurchase == 1" v-if="isProcurements">生成采购</el-button>
|
|
|
<el-button type="text" size="small" v-debounce @click="customerReceipt(scope.row)" :disabled="
|
|
|
!scope.row.status ||
|
|
|
scope.row.status < 3 ||
|
|
@@ -89,7 +89,7 @@
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
|
|
|
- <detail-page ref="detail" @goBack="goBack" :detailData="detailData" v-if="!isShow"></detail-page>
|
|
|
+ <detail-page ref="detail" :isProcurements = "isProcurements" @goBack="goBack" :detailData="detailData" v-if="!isShow"></detail-page>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -103,7 +103,8 @@ import {
|
|
|
detail,
|
|
|
generateShipment,
|
|
|
genClient,
|
|
|
- warehouseList
|
|
|
+ warehouseList,
|
|
|
+ isProcurement
|
|
|
} from "@/api/basicData/configuration";
|
|
|
import detailPage from "./detailsPageEdit";
|
|
|
import search from "../../../page/index/search";
|
|
@@ -133,6 +134,7 @@ export default {
|
|
|
parentId: 0,
|
|
|
search: {},
|
|
|
dataList: [],
|
|
|
+ isProcurements:true,
|
|
|
page: {
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
@@ -478,6 +480,11 @@ export default {
|
|
|
.finally(() => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
+
|
|
|
+ isProcurement({"param":"synchronous"})
|
|
|
+ .then(res=>{
|
|
|
+ this.isProcurements = res.data.data
|
|
|
+ })
|
|
|
},
|
|
|
//树桩列点击展开触发
|
|
|
treeLoad(tree, treeNode, resolve) {
|