Commit 972c2998 authored by zhengke's avatar zhengke

修改

parent d00862de
...@@ -172,6 +172,7 @@ export default { ...@@ -172,6 +172,7 @@ export default {
}; };
GetCustomer(msg).then(res => { GetCustomer(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
console.log(res,'res');
let tempData = res.Data; let tempData = res.Data;
this.detailData.CustomerId = tempData.CustomerId; this.detailData.CustomerId = tempData.CustomerId;
this.detailData.ApproveState = tempData.ApproveState; this.detailData.ApproveState = tempData.ApproveState;
...@@ -217,8 +218,6 @@ export default { ...@@ -217,8 +218,6 @@ export default {
} }
}, },
saveBaseInfo(obj) { saveBaseInfo(obj) {
// console.log(obj,'obj');
// return
this.detailData[obj.field] = obj.val; this.detailData[obj.field] = obj.val;
SetCustomer(this.detailData).then(res => { SetCustomer(this.detailData).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -231,6 +230,8 @@ export default { ...@@ -231,6 +230,8 @@ export default {
}); });
this.$emit("success"); this.$emit("success");
} }
}).catch(()=>{
this.initObj();
}); });
}, },
//同业转交 //同业转交
......
...@@ -68,9 +68,10 @@ ...@@ -68,9 +68,10 @@
</template> </template>
<script> <script>
import { import {
GetCustomerPage_v2, getAllCustomer,
RemoveCustomer RemoveCustomer
} from "../../api/sale/peemanagement"; } from "../../api/sale/peemanagement";
import { import {
queryCustomerCategoryPage queryCustomerCategoryPage
} from "../../api/users/user"; } from "../../api/users/user";
...@@ -167,7 +168,7 @@ ...@@ -167,7 +168,7 @@
this.loading = true; this.loading = true;
this.dataList = []; this.dataList = [];
if (this.tabCheck == 1) { if (this.tabCheck == 1) {
GetCustomerPage_v2(this.msg) getAllCustomer(this.msg)
.then(res => { .then(res => {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.loading = false; this.loading = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment