傅豪杰 7 ay önce
ebeveyn
işleme
36934e7d19
1 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. 8 4
      src/pages/new/storage.vue

+ 8 - 4
src/pages/new/storage.vue

@@ -111,6 +111,7 @@ import wx from "weixin-jsapi";
 export default {
     data() {
         return {
+            printNo:'',// 打印面单号
             isPrint: false,//是否需要打印
             expressInfo: {},// 快件信息
             gfg: {},
@@ -187,6 +188,8 @@ export default {
             this.onGroupObject.mailRoomName = data.mailRoomName
             this.onGroupObject.seat_no = data.addressee_seat_no
             this.object.remark = data.express_remark
+            this.onGroupObject.USER_ID = data.addressee_user_id
+            this.onGroupObject.ROOM_ID = data.mainRoomId;
             this.object.radio = data.express_type == '1' ? '文件' : '物品'
         },
         // 手机号点击聚焦
@@ -270,12 +273,13 @@ export default {
                 value.senderNumber = this.expressInfo.send_phone
                 value.senderDepartmentId = this.expressInfo.send_dept_name
             }
-
-            const res = await appSaveExpressRecord({ ...params, ...value, departmentId: this.onGroupObject.departmentName }, { emulateJSON: true })
+            const _params = { ...params, ...value, departmentId: this.onGroupObject.departmentName }
+            const res = await appSaveExpressRecord(_params, { emulateJSON: true })
             this.value14 = this.object.value4
             if (res.msg == 'success') {
                 this.$toast('入库成功')
                 if (this.isPrint) {
+                    this.printNo = _params.expressNo
                     this.printerGo();
                 }
                 this.isPrint = false;
@@ -357,11 +361,11 @@ export default {
             this.printerId = e.id;
 
             // 开始走打印机面单
-            const formData = this.$refs.formRef.getValues();
             try {
-                const res = await storagePrintSmallTab({ expressNo: formData.expressNo, id: e.id })
+                const res = await storagePrintSmallTab({ expressNo: this.printNo, id: e.id })
                 if (res.msg == 'success') {
                     Toast('打印成功')
+                    this.printNo = ''
 
                 }
                 this.printerShow = false;