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