diff --git a/src/api/emis/emisCommon.js b/src/api/emis/emisCommon.js index 0fce5060..4e041cca 100644 --- a/src/api/emis/emisCommon.js +++ b/src/api/emis/emisCommon.js @@ -1,8 +1,10 @@ -import {listEmisCountry} from '@/api/emis/emisCountry' - -// 获取国家名称 -export function getEmisCountryByCode(code) { - return new Promise((resolve, reject) => { +import request from '@/utils/request' +// 智能地址解析 +export function parseAddress(content) { + return request({ + url: '/emis/common/parseAddress', + method: 'get', + params: {content:content} }) } diff --git a/src/views/emis/emisCustomerAddress/emisCustomerAddressForm.vue b/src/views/emis/emisCustomerAddress/emisCustomerAddressForm.vue deleted file mode 100644 index d57effa9..00000000 --- a/src/views/emis/emisCustomerAddress/emisCustomerAddressForm.vue +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 确 定 - 取 消 - - - - - - diff --git a/src/views/emis/emisCustomerAddress/recipientAddress.vue b/src/views/emis/emisCustomerAddress/recipientAddress.vue index 5679022d..2696e641 100644 --- a/src/views/emis/emisCustomerAddress/recipientAddress.vue +++ b/src/views/emis/emisCustomerAddress/recipientAddress.vue @@ -1,24 +1,44 @@ - - + + + + + + + + + + + + @@ -255,52 +261,41 @@ - - - - 未结算 - - - 待确认 - - - 已确认 - - - 待打款 - - - 已打款 - - - 已拒绝 - - - + --> - - - - - - - - - - - - - - + + + + {{scope.row.name}} + + + + + + + + + + + {{scope.row.provinceName}} {{scope.row.cityName}} {{scope.row.countyName}} + + + + + + + - - - - - - - + + + + + + + + + - + - - @@ -340,11 +329,12 @@ import { listEmisCustomerAddress, getEmisCustomerAddress, delEmisCustomerAddress, addEmisCustomerAddress, updateEmisCustomerAddress } from "@/api/emis/emisCustomerAddress"; import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker'; // import emisCustomerAddressView from '@/views/emis/emisCustomerAddress/emisCustomerAddressView'; -import emisCustomerAddressForm from '@/views/emis/emisCustomerAddress/emisCustomerAddressForm'; +import recipientAddressForm from '@/views/emis/emisCustomerAddress/recipientAddressForm'; +import CountryPicker from '@/views/emis/EmisBaseTools/CountryPicker.vue'; export default { - name: "emisCustomerAddress", - components: { elDateSimplePicker,emisCustomerAddressForm }, + name: "RecipientAddress", + components: { elDateSimplePicker,recipientAddressForm,CountryPicker }, dicts: [ ], data() { @@ -385,7 +375,7 @@ export default { customerCode: null, shortName: null, alias: null, - addressType: null, + addressType: 2, country: null, name: null, phone: null, diff --git a/src/views/emis/emisCustomerUser/moneyUserForm.vue b/src/views/emis/emisCustomerUser/moneyUserForm.vue index cdb7750e..a5ca1e18 100644 --- a/src/views/emis/emisCustomerUser/moneyUserForm.vue +++ b/src/views/emis/emisCustomerUser/moneyUserForm.vue @@ -146,32 +146,6 @@ - - diff --git a/src/views/emis/emisCustomerUser/monthUserList.vue b/src/views/emis/emisCustomerUser/monthUserList.vue index 6a0202a7..4e141f71 100644 --- a/src/views/emis/emisCustomerUser/monthUserList.vue +++ b/src/views/emis/emisCustomerUser/monthUserList.vue @@ -63,7 +63,7 @@ plain icon="el-icon-edit" size="mini" - :disabled="single" + :disabled="multiple" @click="handleBatchUpdate" v-hasPermi="['emis:emisCustomerUser:edit']" >批量修改 @@ -189,6 +189,9 @@ + + + @@ -198,10 +201,12 @@ import { listEmisCustomerUser, getEmisCustomerUser, delEmisCustomerUser, addEmis import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker'; // import emisCustomerUserView from '@/views/emis/emisCustomerUser/emisCustomerUserView'; import monthUserForm from '@/views/emis/emisCustomerUser/monthUserForm'; +import batchUpdateForm from '@/views/emis/emisCustomerUser/batchUpdateForm'; + export default { name: "monthUserList", - components: { elDateSimplePicker,monthUserForm }, + components: { elDateSimplePicker,monthUserForm,batchUpdateForm }, dicts: [ ], data() { @@ -225,6 +230,7 @@ export default { currentId:null, openForm: false, + openBatchUpdateForm:false, titleForm: "", customerType:1, @@ -301,11 +307,19 @@ export default { this.moreInputVisible = !this.moreInputVisible; }, /** 修改按钮操作 */ + handleBatchUpdate(row) { + this.currentId= row.id; + this.openBatchUpdateForm = true; + this.titleForm = "批量修改"; + }, + handleUpdate(row) { this.currentId= row.id; this.openForm = true; this.titleForm = "修改月结客户"; }, + + handleView(row) { this.id=row.id; this.titleView="查看"; @@ -314,9 +328,11 @@ export default { }, handleFormChanged(){ this.openForm = false; + this.openBatchUpdateForm = false; this.getList(); }, cancelForm(){ + this.openBatchUpdateForm = false; this.openForm = false; }, /** 删除按钮操作 */