| | |
| | | } |
| | | }) |
| | | }, |
| | | getContactFilter({commit},newData){ |
| | | getContactFilter({ commit }, newData) { |
| | | commit("contactNameList", newData) |
| | | }, |
| | | geChance(context) { |
| | |
| | | }, |
| | | geProductList(context) { |
| | | getProductList({ productName: "", productNumber: "", page: 1, pageSize: 10 }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | console.log(res.data.data.data) |
| | | context.commit("productList", res.data.data.data) |
| | | if (res.code == 200) { |
| | | console.log(res.data.data) |
| | | context.commit("productList", res.data.data) |
| | | } else { |
| | | Message.error(res.msg) |
| | | } |
| | |
| | | this.codenumer = [] |
| | | this.sum = 0 |
| | | this.explain = "" |
| | | if (res.data.code == 200) { |
| | | const { |
| | | List = [], |
| | | ID, |
| | | AutoRule = {}, |
| | | Method |
| | | } = res.data.data && res.data.data.data ? res.data.data.data[0] : [] |
| | | this.codeRule = res.data.data && res.data.data.data ? res.data.data.data[0] : {} |
| | | if (res.code == 200) { |
| | | const { List = [], ID, AutoRule = {}, Method } = res.data && res.data.data ? res.data.data[0] : [] |
| | | this.codeRule = res.data && res.data.data ? res.data.data[0] : {} |
| | | let autoRule = AutoRule |
| | | let method = Method ? Method : 0 |
| | | this.method = method |
| | | let rules = List |
| | | this.editConfig.infomation.ID = ID |
| | | if (method == 0 && res.data.data.data.length > 0) { |
| | | if (method == 0 && res.data.data.length > 0) { |
| | | console.log("sss") |
| | | rules.forEach((item, index) => { |
| | | // setTimeout(() => { |
| | |
| | | this.codenumer = [] |
| | | this.sum = 0 |
| | | this.explain = "" |
| | | if (res.data.code == 200) { |
| | | const { |
| | | List = [], |
| | | ID, |
| | | AutoRule = {}, |
| | | Method |
| | | } = res.data.data && res.data.data.data ? res.data.data.data[0] : [] |
| | | this.codeRule = res.data.data && res.data.data.data ? res.data.data.data[0] : {} |
| | | if (res.code == 200) { |
| | | const { List = [], ID, AutoRule = {}, Method } = res.data && res.data.data ? res.data.data[0] : [] |
| | | this.codeRule = res.data && res.data.data ? res.data.data[0] : {} |
| | | let autoRule = AutoRule |
| | | let method = Method ? Method : 0 |
| | | this.method = method |
| | | let rules = List |
| | | this.editConfig.infomation.ID = ID |
| | | if (method == 0 && res.data.data.data.length > 0) { |
| | | if (method == 0 && res.data.data.length > 0) { |
| | | rules.forEach((item, index) => { |
| | | // setTimeout(() => { |
| | | // this.codenumer = item.length; |