-
diff --git a/wms/contract/contract-input.php b/wms/contract/contract-input.php
index a166b85d..24840398 100644
--- a/wms/contract/contract-input.php
+++ b/wms/contract/contract-input.php
@@ -21,242 +21,7 @@ $contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC);
-
+
@@ -272,11 +37,11 @@ $contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC);
合約號
-
+
-
+
@@ -419,7 +184,6 @@ $contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC);
附件
-
@@ -579,4 +343,9 @@ $contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC);
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/wms/contract/contract-newelevator-edit.php b/wms/contract/contract-newelevator-edit.php
index e046db71..3aef11fa 100644
--- a/wms/contract/contract-newelevator-edit.php
+++ b/wms/contract/contract-newelevator-edit.php
@@ -56,6 +56,7 @@ $persons = array_map(function($person){
deletefiles:[],
files_id: "",
},
+ fail_arr:[],
deleteFileFn(id){
if(!confirm("確定要刪除嗎?")) return
this.data.files = this.data.files.filter(file=> id != file.id)
@@ -87,12 +88,28 @@ $persons = array_map(function($person){
console.log(res.data)
if(res.status === 200){
alert("更新成功")
+ this.step = 1
+ this.data.contractno=""
+ this.data.customer=""
+ this.data.manager=""
+ this.data.vat=""
+ this.data.case_name=""
+ this.data.linkman=""
+ this.data.lm_tel=""
+ this.data.address=""
+ this.data.salesman=""
+ this.data.files=[]
+ this.customize = false
}
this.isLoading = false
}).catch(error=>{
let code = error.response.status;
if(code == 422){
this.fail_arr = error.response.data
+ this.errorFn()
+ }
+ if(code == 500){
+ alert("更新失敗!可能為以下錯誤:\n" + error.response.data)
}
this.isLoading = false
})
@@ -101,6 +118,13 @@ $persons = array_map(function($person){
uploadFiles(e){
this.data.newfiles = e.target.files
},
+ errorFn(){
+ let msg = ""
+ for(let i = 0; i < this.fail_arr.length; i++){
+ msg += this.fail_arr[i] + "、"
+ }
+ alert(msg)
+ },
}'>
未填寫
@@ -148,7 +172,7 @@ $persons = array_map(function($person){
-
@@ -165,7 +189,7 @@ $persons = array_map(function($person){
案件名稱
-
diff --git a/wms/contract/contract-newelevator-input.php b/wms/contract/contract-newelevator-input.php
index 325cfdd8..a3aeccd0 100644
--- a/wms/contract/contract-newelevator-input.php
+++ b/wms/contract/contract-newelevator-input.php
@@ -16,231 +16,139 @@ $persons = array_map(function($person){
}, $persons);
?>
-
+
-
未填寫
+未填寫
未填寫
+未填寫
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/wms/contract/contract-newelevator-management.php b/wms/contract/contract-newelevator-management.php
index dc982a6d..31eb6f70 100644
--- a/wms/contract/contract-newelevator-management.php
+++ b/wms/contract/contract-newelevator-management.php
@@ -13,9 +13,23 @@ $contracts= $stmt->fetchAll(PDO::FETCH_ASSOC);
- 合約入力(新梯)- |
- |||||||
合約號 | -- - | -- - | - -|||||
- 業務確認項- |
- - - - | -||||||
客戶名稱 | -
-
- 未填寫 - |
- 負責人 | -
-
- 未填寫 - |
- 統一編號/身分證 | -
-
- 未填寫 - |
- 營業員 | -
-
-
-
- 未填寫 - |
-
聯繫人 | -
-
- 未填寫 - |
- 聯繫人電話 | -
-
- 未填寫 - |
- 案件名稱 | -
-
- 未填寫 - |
- ||
地址 | -
-
- 未填寫 - |
- 附件上傳 | -
-
- 未填寫 - |
-
+
-
+
+
+
+
+
+
+
+
+
+ 合約入力(新梯)+ |
+ |||||||
合約號 | ++ + | ++ + | + +|||||
+ 業務確認項+ |
+ + + + | +||||||
客戶名稱 | +
+
+ 未填寫 + |
+ 負責人 | +
+
+ 未填寫 + |
+ 統一編號/身分證 | +
+
+ 未填寫 + |
+ 營業員 | +
+
+
+
+ 未填寫 + |
+
聯繫人 | +
+
+ 未填寫 + |
+ 聯繫人電話 | +
+
+ 未填寫 + |
+ 案件名稱 | +
+
+ 未填寫 + |
+ ||
地址 | +
+
+ 未填寫 + |
+ 附件上傳 | ++ + | +
-
+
+
+
+
+