Jelajahi Sumber

采购人管理

shish 2 tahun lalu
induk
melakukan
e5ed129e80

+ 4 - 4
ghsApp/src/admin/changePrice/changeCgStaff.vue

@@ -91,7 +91,7 @@ import AppSearchModule from "@/components/module/app-search";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import ItemComponent from "./components/changeCgStaffItem";
 import productMins from "@/mixins/product";
-import { batchModifyClass } from "@/api/product";
+import { batchModifyCgStaff } from "@/api/product";
 import { mapGetters } from "vuex";
 import ModalModule from "@/components/plugin/modal";
 import TuiListCell from "@/components/plugin/list-cell";
@@ -179,8 +179,8 @@ export default {
 				this.$msg('请选择分类')
 				return false
 			}
-			this.$util.confirmModal({content:'确认移动?'},() => {
-				batchModifyClass({ids:JSON.stringify(that.currentList),staffId:that.staffId}).then(res=>{
+			this.$util.confirmModal({content:'确认修改?'},() => {
+				batchModifyCgStaff({ids:JSON.stringify(that.currentList),staffId:that.staffId}).then(res=>{
 					if(res.code == 1){
 						that.cancelModifyClass()
 						that.$msg(res.msg)
@@ -217,7 +217,7 @@ export default {
 			this.$refs.selectFlowerNumRef.open('top')
 		},
 		initProduct(){
-			this.initData({ requestType:'itemList',status:0,delStatus:0})
+			this.initData({ requestType:'cgStaffList'})
 		}
 	}
 };

+ 2 - 2
ghsApp/src/admin/changePrice/components/changeCgStaffItem.vue

@@ -168,9 +168,9 @@ export default {
 			margin-left:8upx;
 		}
 		& .kc {
-			color:red;
+			color:#3385FF;
 			font-size: 31upx;
-			padding: 17upx 0 24upx;
+			padding: 22upx 0 24upx;
 			font-weight: 700;
 		}
 		& .num-open_bx {

+ 12 - 1
ghsApp/src/admin/order/statBook.vue

@@ -8,7 +8,8 @@
 		</view>
 		<view class="top-bar">
 			<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
-			<button class="admin-button-com mini-btn blue" style="margin-left:130upx;" @click="printOrder()">打印</button>
+			<button class="admin-button-com mini-btn blue" style="margin-left:30upx;" @click="printOrder()">打印</button>
+			<button class="admin-button-com mini-btn blue" style="margin-left:50upx;" @click="beginBook()">开启预订</button>
 		</view>
 		<scroll-view scroll-y scroll-with-animation class="main-view">
 			<view class="space-view ex-table">
@@ -34,6 +35,7 @@
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import SelectList from "@/components/plugin/selectList";
 import { getStatBookProfit,getStatBookPrint } from "@/api/stat";
+import { openBook } from "@/api/book"
 import { list } from "@/mixins";
 import ShopSelect from "@/components/module/shopSelect";
 import DateSelect from "@/components/module/dateSelect";
@@ -87,6 +89,15 @@ export default {
 	},
 	methods: {
 		...mapActions(['setUserShopAll']),
+		beginBook(){
+			this.$util.confirmModal({content:'确认开启?'},() => {
+				openBook().then(res=>{
+					if(res.code == 1){
+						this.$msg(res.msg)
+					}
+				})
+			})
+		},
 		printOrder(){
 			this.$util.confirmModal({content:'确认打印?'},() => {
 				uni.showLoading({mask:true})

+ 4 - 0
ghsApp/src/api/book/index.js

@@ -14,4 +14,8 @@ export const getBookDetail = data => {
 
 export const closeBook = data => {
 	return https.get('/book/close-book', data)
+}
+
+export const openBook = data => {
+	return https.get('/book/open-book', data)
 }

+ 4 - 0
ghsApp/src/api/product/index.js

@@ -12,6 +12,10 @@ export const batchModifyClass = data => {
 	return https.post("/product/batch-modify-class", data);
 };
 
+export const batchModifyCgStaff = data => {
+	return https.post("/product/batch-modify-cg-staff", data);
+};
+
 export const cancelPreSell = data => {
 	return https.get("/product/cancel-pre-sell", data);
 };