소스 검색

预订客户优化

shish 2 년 전
부모
커밋
1045ec5934

+ 6 - 6
ghs/src/views/book/components/book-custom-cg-record.vue

@@ -2,7 +2,7 @@
 	<div>
 		<el-drawer :visible.sync="showArea" size="55vw" :before-close="closeFn" custom-class="drawer-class" direction="ltr">
 			<div>
-				<div style="margin-left:2px;font-weight:bold;">【{{ itemData.itemName?itemData.itemName:'' }}】待采变动记录</div>
+				<div style="margin-left:2px;font-weight:bold;">【{{ customData.customName?customData.customName:'' }}】待采变动记录</div>
                 <x-crud @load="onLoad">
 					<template #table-column-changeNum="{scope}">
 						{{ scope.row.io == 1 ? '+' : '-' }}<span>{{ scope.row.changeNum }}</span>
@@ -14,9 +14,9 @@
 </template>
 <script>
 export default {
-	name: 'total-book-record',
+	name: 'book-custom-cg-record',
 	props: {
-		itemData: {
+		customData: {
 			type: Object,
 			default: () => {}
 		}
@@ -30,7 +30,7 @@ export default {
 		init() {
 			this.showArea = true
 			if(this.app){
-				this.app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+				this.app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 			}
 		},
 		closeFn() {
@@ -38,7 +38,7 @@ export default {
 		},
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.bookCgChangeGlobal)
+			ctx.service(this.$service.bookCustomCgChange)
 			.set('table', {
 				columns: [
 					{
@@ -83,7 +83,7 @@ export default {
 				['flex1']
 			])
 			.done()
-			app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+			app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 		}
 	}
 };

+ 6 - 6
ghs/src/views/book/components/book-custom-on-record.vue

@@ -2,7 +2,7 @@
 	<div>
 		<el-drawer :visible.sync="showArea" size="55vw" :before-close="closeFn" custom-class="drawer-class" direction="ltr">
 			<div>
-				<div style="margin-left:2px;font-weight:bold;">【{{ itemData.itemName?itemData.itemName:'' }}】上下架记录</div>
+				<div style="margin-left:2px;font-weight:bold;">【{{ customData.customName?customData.customName:'' }}】上下架记录</div>
                 <x-crud @load="onLoad">
 					<template #table-column-changeNum="{scope}">
 						{{ scope.row.io == 1 ? '+' : '-' }}<span>{{ scope.row.changeNum }}</span>
@@ -14,9 +14,9 @@
 </template>
 <script>
 export default {
-	name: 'total-book-record',
+	name: 'book-custom-on-record',
 	props: {
-		itemData: {
+		customData: {
 			type: Object,
 			default: () => {}
 		}
@@ -30,7 +30,7 @@ export default {
 		init() {
 			this.showArea = true
 			if(this.app){
-				this.app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+				this.app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 			}
 		},
 		closeFn() {
@@ -38,7 +38,7 @@ export default {
 		},
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.bookOnChangeGlobal)
+			ctx.service(this.$service.bookCustomOnChange)
 			.set('table', {
 				columns: [
 					{
@@ -83,7 +83,7 @@ export default {
 				['flex1']
 			])
 			.done()
-			app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+			app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 		}
 	}
 };

+ 6 - 6
ghs/src/views/book/components/book-custom-record.vue

@@ -2,7 +2,7 @@
 	<div>
 		<el-drawer :visible.sync="showArea" size="55vw" :before-close="closeFn" custom-class="drawer-class" direction="ltr">
 			<div>
-				<div style="margin-left:2px;font-weight:bold;">【{{ itemData.itemName?itemData.itemName:'' }}】预订记录</div>
+				<div style="margin-left:2px;font-weight:bold;">【{{ customData.customName?customData.customName:'' }}】预订记录</div>
                 <x-crud @load="onLoad">
 					<template #table-column-changeNum="{scope}">
 						{{ scope.row.io == 1 ? '+' : '-' }}<span>{{ scope.row.changeNum }}</span>
@@ -14,9 +14,9 @@
 </template>
 <script>
 export default {
-	name: 'total-book-record',
+	name: 'book-custom-record',
 	props: {
-		itemData: {
+		customData: {
 			type: Object,
 			default: () => {}
 		}
@@ -30,7 +30,7 @@ export default {
 		init() {
 			this.showArea = true
 			if(this.app){
-				this.app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+				this.app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 			}
 		},
 		closeFn() {
@@ -38,7 +38,7 @@ export default {
 		},
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.bookChangeGlobal)
+			ctx.service(this.$service.bookCustomChange)
 			.set('table', {
 				columns: [
 					{
@@ -83,7 +83,7 @@ export default {
 				['flex1']
 			])
 			.done()
-			app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+			app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 		}
 	}
 };

+ 6 - 6
ghs/src/views/book/components/book-custom-road-record.vue

@@ -2,7 +2,7 @@
 	<div>
 		<el-drawer :visible.sync="showArea" size="55vw" :before-close="closeFn" custom-class="drawer-class" direction="ltr">
 			<div>
-				<div style="margin-left:2px;font-weight:bold;">【{{ itemData.itemName?itemData.itemName:'' }}】路上记录</div>
+				<div style="margin-left:2px;font-weight:bold;">【{{ customData.customName?customData.customName:'' }}】路上记录</div>
                 <x-crud @load="onLoad">
 					<template #table-column-changeNum="{scope}">
 						{{ scope.row.io == 1 ? '+' : '-' }}<span>{{ scope.row.changeNum }}</span>
@@ -14,9 +14,9 @@
 </template>
 <script>
 export default {
-	name: 'total-book-record',
+	name: 'book-custom-road-record',
 	props: {
-		itemData: {
+		customData: {
 			type: Object,
 			default: () => {}
 		}
@@ -30,7 +30,7 @@ export default {
 		init() {
 			this.showArea = true
 			if(this.app){
-				this.app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+				this.app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 			}
 		},
 		closeFn() {
@@ -38,7 +38,7 @@ export default {
 		},
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.bookRoadChangeGlobal)
+			ctx.service(this.$service.bookCustomRoadChange)
 			.set('table', {
 				columns: [
 					{
@@ -83,7 +83,7 @@ export default {
 				['flex1']
 			])
 			.done()
-			app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
+			app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
 		}
 	}
 };

+ 8 - 7
ghs/src/views/book/custom.vue

@@ -23,16 +23,16 @@
 			</template>
 
 			<template #slot-option-area-list>
-        		<el-input v-model="search" placeholder="搜索客户" size="big" clearable="true" style="width:300px;" ref="customSearchRef" @input="changeSearch()" @focus="search=''"></el-input>
+        		<el-input v-model="search" placeholder="搜索客户" size="big" :clearable="true" style="width:300px;" ref="customSearchRef" @input="changeSearch()" @focus="search=''"></el-input>
 			</template>
 
-			<book-custom-record ref="bookCustomRecord" :itemData="bookCustomRecordData" />
-			<book-custom-on-record ref="bookCustomOnRecord" :itemData="bookCustomOnRecordData" />
+		</x-crud>
 
-			<book-custom-road-record ref="bookCustomRoadRecord" :itemData="bookCustomRoadRecordData" />
-			<book-custom-cg-record ref="bookCustomCgRecord" :itemData="bookCustomCgRecordData" />
+		<book-custom-record ref="bookCustomRecord" :customData="bookCustomRecordData" />
+		<book-custom-on-record ref="bookCustomOnRecord" :customData="bookCustomOnRecordData" />
+		<book-custom-road-record ref="bookCustomRoadRecord" :customData="bookCustomRoadRecordData" />
+		<book-custom-cg-record ref="bookCustomCgRecord" :customData="bookCustomCgRecordData" />
 
-		</x-crud>
 	</div>
 </template>
 <script>
@@ -95,9 +95,10 @@ export default {
 			})
 		},
 		getBookRecord(info){
+			let that = this
 			this.bookCustomRecordData = {customId:info.customId,customName:info.name,id:info.id}
 			setTimeout(() => {
-				this.$refs.bookCustomRecord.init()
+				that.$refs.bookCustomRecord.init()
 			})
 		},
 		changeSearch(){

+ 1 - 1
ghs/src/views/order/book.vue

@@ -19,7 +19,7 @@
 			</template>
 
 			<template #slot-option-area-list>
-        <el-input v-model="search" placeholder="搜索花材" size="big" style="width:200px;" clearable="true" ref="itemSearchRef" @input="changeSearch()" @focus="search=''"></el-input>
+        <el-input v-model="search" placeholder="搜索花材" size="big" style="width:200px;" :clearable="true" ref="itemSearchRef" @input="changeSearch()" @focus="search=''"></el-input>
 
         <el-popover style="margin-left:40px;" placement="top" width="160" ref="openCloseBookRef">
           <p>确认{{ shop.bookSn==0?'开启':'结束' }}?</p>