فهرست منبع

采购单售后记录

shish 1 سال پیش
والد
کامیت
9c51c659cf
3فایلهای تغییر یافته به همراه35 افزوده شده و 4 حذف شده
  1. 1 1
      ghs/src/mock/userInfo.js
  2. 26 3
      ghs/src/views/in/refund-list.vue
  3. 8 0
      ghs/src/views/in/yj.vue

+ 1 - 1
ghs/src/mock/userInfo.js

@@ -172,7 +172,7 @@ let menu = {
 		{id: '1415',parentId: 1400,name: '采购',type: 1,icon: 'icondingdanguanli',orderNum: 3,router: '/in/add',viewPath: 'views/in/add.vue',keepAlive: 1},
 		{id: '1425',parentId: 1400,name: '确认采购',type: 1,icon: 'icondingdanguanli',orderNum: 3,router: '/in/confirm',viewPath: 'views/in/confirm.vue',keepAlive: 1},
 		{id: '1430',parentId: 1400,name: '售后记录',type: 1,icon: 'icondingdanguanli',orderNum: 3,router: '/in/refund-list',viewPath: 'views/in/refund-list.vue',keepAlive: 1},
-		{id: '1420',parentId: 1400,name: '改价入库',type: 1,icon: 'icondingdanguanli',orderNum: 3,router: '/in/change',viewPath: 'views/in/change.vue',keepAlive: 1},
+		{id: '1420',parentId: 1400,name: '入库改价',type: 1,icon: 'icondingdanguanli',orderNum: 3,router: '/in/change',viewPath: 'views/in/change.vue',keepAlive: 1},
 
 		{id: '4',parentId: null,name: '花材',type: 0,icon: 'iconshangpinguanli',orderNum: 4,router: '/item/list',viewPath: 'views/item/list.vue',keepAlive: 1},
 		{id: '405',	parentId: '4',name: '花材列表',type: 1,icon: 'icon-user',orderNum: 4,router: '/item/list',viewPath: 'views/item/list.vue',keepAlive: 1},

+ 26 - 3
ghs/src/views/in/refund-list.vue

@@ -48,7 +48,7 @@
 				<el-select size="mini" v-model="currentStaffName" placeholder="操作人" style="width:110px;margin-left:8px;" @change="getKdStaff" :clearable="true">
 					<el-option v-for="item in staffList" :key="item.id" :label="item.name" :value="item.id"></el-option>
 				</el-select>
-				<span style="margin-left:9px;font-size:16px;">采购日期:</span>
+				<span style="margin-left:9px;font-size:16px;">采购日期:</span>
 				<el-date-picker v-model="currentDateList" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" @change="getSearchDate" value-format="yyyy-MM-dd"
 					class="custom-date-picker" end-placeholder="结束日期" :picker-options="pickerOptions" size="mini" style="margin-right:8px;">
 				</el-date-picker>
@@ -220,6 +220,22 @@ export default {
 		},
 		onLoad({ ctx, app }) {
 			this.app = app;
+
+			if(this.$route.query.ghsId){
+				this.currentGhsId = this.$route.query.ghsId
+				this.currentGhsName = this.$route.query.ghsName?this.$route.query.ghsName:''
+				this.searchTime = this.$route.query.searchTime?this.$route.query.searchTime:''
+				this.startTime = this.$route.query.startTime?this.$route.query.startTime:''
+				this.endTime = this.$route.query.endTime?this.$route.query.endTime:''
+				if(this.startTime!='' && this.endTime !=''){
+					this.currentDateList =[this.startTime,this.endTime]
+				}
+				if(this.$route.query.status){
+					this.status = this.$route.query.status
+					this.tabIndex = this.status
+				}
+			}
+
 			ctx.service(this.$service.cgRefund)
 				.set('table', {
 					columns: [
@@ -237,7 +253,7 @@ export default {
 						},
 						{
 							prop: 'orderTime',
-							label: '采购日期',
+							label: '采购日期',
 							align: 'center',
 							width: 120
 						},
@@ -247,6 +263,12 @@ export default {
 							align: 'center',
 							width: 140
 						},
+						{
+							prop: 'ghsId',
+							label: '供货商ID',
+							align: 'center',
+							width: 90
+						},
 						{
 							prop: 'ghsName',
 							label: '供货商',
@@ -269,7 +291,7 @@ export default {
 							prop: 'refundType',
 							label: '售后类型',
 							align: 'center',
-							width: 120
+							width: 110
 						},
 						{
 							prop: 'shopAdminName',
@@ -315,6 +337,7 @@ export default {
 				])
 				.on('refresh', async (params, { next }) => {
 					let result = await next(params)
+					this.totalRefundPrice = result.totalRefundPrice?parseFloat(result.totalRefundPrice):0
 				})
 				.done();
                 this.refreshData()

+ 8 - 0
ghs/src/views/in/yj.vue

@@ -33,6 +33,10 @@
 				<el-button size="small" type="primary" @click="goChange(scope.row)">查看明细</el-button>
 			</template>
 
+			<template #table-column-tkPrice="{scope}">
+				<div style="cursor: pointer;" @click.stop="getTkDetail(scope.row)">{{ scope.row.tkPrice?parseFloat(scope.row.tkPrice):0 }}</div>
+			</template>
+
 		</x-crud>
 	</div>
 </template>
@@ -88,6 +92,10 @@ export default {
 		...mapGetters(['shopInfo']),
 	},
 	methods: {
+		getTkDetail(info){
+			let query = {ghsId:info.id,ghsName:info.name,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,status:1};
+			this.$router.push({ path: '/in/refund-list', query })
+		},
 		goChange(data){
 			let query = {};
 			query.ghsName = data.name