shish 2 vuotta sitten
vanhempi
commit
1ee7f5973a
2 muutettua tiedostoa jossa 34 lisäystä ja 4 poistoa
  1. 7 0
      ghs/src/service/purchase-order/index.js
  2. 27 4
      ghs/src/views/in/list.vue

+ 7 - 0
ghs/src/service/purchase-order/index.js

@@ -2,6 +2,13 @@ import { BaseService, Service } from '@/cool';
 @Service('purchase-order')
 export class PurchaseOrderService extends BaseService {
 
+	modifySeatSn(data) {
+		return this.request({
+			url: '/modify-seat-sn',
+			params: data
+		});
+	}
+
     createOrder(data) {
 		return this.request({
 			url: '/create-order',

+ 27 - 4
ghs/src/views/in/list.vue

@@ -17,6 +17,15 @@
         <el-link :underline="true" style="font-size:12px;display:inline-block;" >{{ scope.row.orderSn }}</el-link>
       </template>
 
+			<template #table-column-seatSn="{scope}">
+				<span @click="changeSeatSn(scope.row)" v-if="scope.row.seatSn!=''" style="font-size:15px;cursor: pointer;">
+					{{ scope.row.seatSn}}
+				</span>
+        <span v-else @click="changeSeatSn(scope.row)">
+					<i class="el-icon-edit" style="font-size:15px;cursor: pointer;"></i>
+        </span>
+			</template>
+
       <template #table-column-customName="{scope}">
         <div>
           {{ scope.row.customName }}
@@ -172,6 +181,14 @@ export default {
 		}
 	},
   methods: {
+		changeSeatSn(info){
+			this.$prompt('请输入货位号','提示',{confirmButtonText:'确定',cancelButtonText:'取消'}).then(({value}) => {
+				this.$service.purchaseOrder.modifySeatSn({ seatSn: value,id:info.id}).then(data => {
+					this.$notify({ title: '成功', message: '操作成功', type: 'success'})
+					this.app.refresh({ status: this.tabIndex})
+				})
+			})
+		},
     confirmAdd(){
 
     },
@@ -256,25 +273,25 @@ export default {
                 prop: 'orderSn',
                 label: '单号',
                 align: 'center',
-                width: '130'
+                width: '120'
               },
               {
                 prop: 'supplierName',
                 label: '供货商',
                 align: 'center',
-                width: '200'
+                width: '150'
               },
               {
                 prop: 'cgStaffName',
                 label: '采购人',
                 align: 'center',
-                width: 100
+                width: 80
               },
               {
                 prop: 'adminName',
                 label: '录单人',
                 align: 'center',
-                width: 100
+                width: 80
               },
               {
                 prop: 'itemList',
@@ -288,6 +305,12 @@ export default {
                 align: 'center',
                 width: '80'
               },
+              {
+                prop: 'seatSn',
+                label: '货位号',
+                align: 'center',
+                width: '80'
+              },
               {
                 prop: 'prePrice',
                 label: '总金额',