Browse Source

Merge pull request '客户主数据优化' (#183) from wangxy into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_AdvancedPlanner_Front/pulls/183
pull/191/head
wangxy 3 years ago
parent
commit
d1495ac37f
2 changed files with 40 additions and 23 deletions
  1. +3
    -4
      src/views/factoryModel/customer/addOrEdit.vue
  2. +37
    -19
      src/views/factoryModel/customer/index.vue

+ 3
- 4
src/views/factoryModel/customer/addOrEdit.vue View File

@ -186,6 +186,9 @@ export default {
props: {
item: {
default: null,
},
getStatusArray: {
default: []
}
},
data() {
@ -194,7 +197,6 @@ export default {
formData: {
selectedOptions: [],
},
getStatusArray: [],
options: regionData,
//
rules: {
@ -224,9 +226,6 @@ export default {
}
},
created() {
this.getStanderOne({ statid: 'wm_clientstatus' }).then((res) => {
this.getStatusArray = res.data
})
get('/admin/ap/custdemandmodel/selectlist').then(({code, data=[]}) => {
if (code === 200) {
this.demandModelArray = data


+ 37
- 19
src/views/factoryModel/customer/index.vue View File

@ -21,12 +21,19 @@
</SearchTemplate>
<ContentContainer>
<el-table v-if="tableHeight" :height="tableHeight" :data="tableData" v-loading="loading" size="mini" style="width: 100%" border>
<el-table-column v-for="(item, index) in headers" :key="index" :label="getColumnName(item)" :show-overflow-tooltip="true" width="180px">
<el-table-column
v-for="(item, index) in headers"
:key="index"
:label="getColumnName(item)"
:show-overflow-tooltip="true"
width="120px">
<template #default="scope">
<span v-if="item === 'Customer-PlantNr'">{{ getWorkshopName(scope.row['Customer-PlantNr']) }}</span>
<el-switch v-else-if="item === 'Customer-EnableDemandLockToggle'"
disabled v-model="scope.row[item]" active-color="#35B0A6" inactive-color="#FF3B31"/>
<span v-else-if="item === 'Customer-Status'">{{
mappingText(getStatusArray, scope.row["Customer-Status"], 'Stdef-StdefTyp', 'Stdef-Bez')
}}</span>
<span v-else>{{ scope.row[item] }}</span>
</template>
</el-table-column>
@ -42,7 +49,12 @@
<!-- 分页 -->
<Pagination v-show="pagination.total>0" v-model:pagination="pagination" @change="getList" />
</ContentContainer>
<AddOrEdit v-if="isShowDialog === 'edit' || isShowDialog === 'add'" :item="item" v-model:isShowDialog="isShowDialog" @editCallBack="completeCallBack" />
<AddOrEdit
v-if="isShowDialog === 'edit' || isShowDialog === 'add'"
:item="item"
:getStatusArray="getStatusArray"
v-model:isShowDialog="isShowDialog"
@editCallBack="completeCallBack" />
<AssociateUser v-if="isShowDialog === 'user'" :item="item" v-model:isShowDialog="isShowDialog" @editCallBack="completeCallBack" />
<AssociatePart v-if="isShowDialog === 'part'" :item="item" v-model:isShowDialog="isShowDialog" @editCallBack="completeCallBack" />
</div>
@ -67,34 +79,40 @@ export default {
"Customer-PlantNr",
"Customer-CustomerId",
"Customer-Name1",
"Customer-Name2",
// "Customer-Name2",
"Customer-ValidStartDate",
"Customer-Country",
// "Customer-Country",
"Customer-Province",
"Customer-City",
"Customer-District",
"Customer-Street",
"Customer-Location",
"Customer-PostCode",
"Customer-Phone",
"Customer-Mobile",
"Customer-Fax",
"Customer-Email1",
"Customer-Email2",
"Customer-ContactPerson",
"Customer-PersonTitle",
"Customer-ContactAddress",
"Customer-Account",
"Customer-TaxRate",
// "Customer-Street",
// "Customer-Location",
// "Customer-PostCode",
// "Customer-Phone",
// "Customer-Mobile",
// "Customer-Fax",
// "Customer-Email1",
// "Customer-Email2",
// "Customer-ContactPerson",
// "Customer-PersonTitle",
// "Customer-ContactAddress",
// "Customer-Account",
// "Customer-TaxRate",
"Customer-Status",
"Customer-LastModify",
"Customer-LastUser",
"Customer-CreateTime",
"Customer-LockWeeks"
],
tableHeight:0
tableHeight:0,
getStatusArray: [],
};
},
created() {
this.getStanderOne({ statid: 'wm_clientstatus' }).then((res) => {
this.getStatusArray = res.data
})
},
methods: {
//
handleQuery() {


Loading…
Cancel
Save