-
+
-
+
-
+
+
+
+
+
+
+ 运单号
+
+
+
+
@@ -50,7 +60,11 @@
-
+
+
+
+
+
@@ -124,45 +138,46 @@ export default {
getList(){
},
- async handleInput(item, size){
- if(item.trim() == ""){
+ async handleInput() {
+ if (this.form.billCode == "" || this.form.billCode == null) {
+ this.$modal.msgError("请先输入单号!");
return;
}
- let scList = item.trim().split(/[;\;\,\,\n]/)||[];
- this.form.picUrl =[];
- for(let s = 0; s -1){
- record.fileSiez = parseFloat((size[name]/1024).toFixed(2));
- break;
- }
- }
- let indexBillCode=billCode;
- this.dataMap[indexBillCode]=record;
+ let billCode = this.form.billCode + '';
+ let response = await getWaybillDetail(billCode)
+ if (!response || response.code != 200) {
+ this.$modal.msgError(response && response.msg || "未知错误");
+ this.form.picUrl = [];
+ return;
+ }
+ if (response.data.blFormalWaybill === "0") {
+ this.$modal.msgError("运单号无效");
+ this.form.picUrl = [];
+ return;
+ }
+ let record = {};
+ record.billCode = billCode;
+ record.fileUrl=this.form.picUrl+'';
+ record.createSite = this.$store.getters.ownerSiteName;
+ record.createBy = this.$store.getters.empName;
+ record.signManCode = this.$store.getters.empCode;
+ record.createTime = getDateTimeToString(new Date());
+ record.remark = "";
+ record.fileName = "签收底单";
+ record.attachType = "2";
+ record.dataFrom = "pc";
+ record.fileSiez=-1;
+ let indexBillCode = billCode;
+ this.dataMap[indexBillCode] = record;
this.emisTmsScanRecordList.push(record);
- };
},
/** 上传按钮操作 */
handleScanUpload(){
+ if(!this.selection){
+ this.$modal.msgError("请先上传图片!");
+ return;
+ }
+
var selData = this.selection;
selData.forEach(item=>{
addEmisWaybillAttachment(item).then(response => {
From 1400f6aa8dfc95debd6e75a57ebb1f5bb39f65d0 Mon Sep 17 00:00:00 2001
From: wuteng <419274783@qq.com>
Date: Fri, 10 Apr 2026 16:27:44 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E9=94=80=E5=94=AE=E6=94=AF=E6=8C=81=20?=
=?UTF-8?q?=E5=88=A0=E6=8E=89=E5=90=8E=20=E4=BF=9D=E5=AD=98=E4=BB=8D?=
=?UTF-8?q?=E7=84=B6=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/emis/emisCustomerUser/monthUserForm.vue | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/views/emis/emisCustomerUser/monthUserForm.vue b/src/views/emis/emisCustomerUser/monthUserForm.vue
index b36d678e..449849ab 100644
--- a/src/views/emis/emisCustomerUser/monthUserForm.vue
+++ b/src/views/emis/emisCustomerUser/monthUserForm.vue
@@ -479,6 +479,10 @@ export default {
if (valid) {
if (this.form.id != null) {
this.form.company=this.form.customerName;
+ //salesSupport 数据转换
+ if(this.form.salesSupport==""){
+ this.form.salesSupport=" ";
+ }
editMonthUser(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.$emit("on-changed");