|
@@ -138,7 +138,9 @@ export default {
|
|
|
selectData: [],
|
|
|
itemRecordSelected: [],
|
|
|
sonCustomerList: [],
|
|
|
- logisticsData: []
|
|
|
+ logisticsData: [],
|
|
|
+ sonCustomerNumberList: [],
|
|
|
+ sonCustomerNameList: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -152,13 +154,13 @@ export default {
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 6,
|
|
|
- attributes: { disabled: this.comDisabled, placeholder: '请输入' },
|
|
|
+ attributes: { disabled: true, placeholder: '请输入' },
|
|
|
formItemAttributes: { label: '商家编号', prop: 'customerNumber' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 6,
|
|
|
- attributes: { disabled: this.comDisabled, placeholder: '请输入' },
|
|
|
+ attributes: { disabled: true, placeholder: '请输入' },
|
|
|
formItemAttributes: { label: '商家名称', prop: 'customerName' }
|
|
|
},
|
|
|
{
|
|
@@ -179,29 +181,40 @@ export default {
|
|
|
attributes: { disabled: true, placeholder: '系统自动生成' },
|
|
|
formItemAttributes: { label: '制单人', prop: 'createBy' }
|
|
|
},
|
|
|
+ // {
|
|
|
+ // name: 'el-input',
|
|
|
+ // md: 6,
|
|
|
+ // attributes: { disabled: this.comDisabled, placeholder: '请输入' },
|
|
|
+ // formItemAttributes: { label: '商家编号', prop: 'transferCustomerNumber' }
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // name: 'el-input',
|
|
|
+ // md: 6,
|
|
|
+ // attributes: { disabled: this.comDisabled, placeholder: '请输入' },
|
|
|
+ // formItemAttributes: { label: '商家名称', prop: 'transferCustomerName' }
|
|
|
+ // },
|
|
|
{
|
|
|
- name: 'el-input',
|
|
|
+ name: 'el-select',
|
|
|
+ options: this.sonCustomerNumberList,
|
|
|
md: 6,
|
|
|
- attributes: { disabled: this.comDisabled, placeholder: '请输入' },
|
|
|
+ attributes: {
|
|
|
+ clearable: true,
|
|
|
+ filterable: true,
|
|
|
+ disabled: this.comDisabled
|
|
|
+ },
|
|
|
formItemAttributes: { label: '商家编号', prop: 'transferCustomerNumber' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'el-input',
|
|
|
+ name: 'el-select',
|
|
|
+ options: this.sonCustomerNameList,
|
|
|
md: 6,
|
|
|
- attributes: { disabled: this.comDisabled, placeholder: '请输入' },
|
|
|
+ attributes: {
|
|
|
+ clearable: true,
|
|
|
+ filterable: true,
|
|
|
+ disabled: this.comDisabled
|
|
|
+ },
|
|
|
formItemAttributes: { label: '商家名称', prop: 'transferCustomerName' }
|
|
|
},
|
|
|
- // {
|
|
|
- // name: 'el-select',
|
|
|
- // options: this.sonCustomerList,
|
|
|
- // md: 6,
|
|
|
- // attributes: {
|
|
|
- // clearable: true,
|
|
|
- // filterable: true,
|
|
|
- // disabled: this.comDisabled
|
|
|
- // },
|
|
|
- // formItemAttributes: { label: '商家名称', prop: 'transferCustomerName' }
|
|
|
- // },
|
|
|
{
|
|
|
name: 'el-select',
|
|
|
md: 6,
|
|
@@ -525,7 +538,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.getStagecustomerListV2()
|
|
|
+ this.getStagecustomerListV2()
|
|
|
if (this.detailsId) {
|
|
|
getCustomerTransferDetail({ id: this.detailsId }).then(res => {
|
|
|
this.formData = res.data
|
|
@@ -595,18 +608,24 @@ export default {
|
|
|
pageSize: -1,
|
|
|
params: [
|
|
|
{
|
|
|
- param: 'a.higher_prant_id',
|
|
|
- compare: 'like',
|
|
|
+ param: 'a.higher_prant_number',
|
|
|
+ compare: '=',
|
|
|
value: this.customerNumber || ''
|
|
|
}
|
|
|
]
|
|
|
}).then(res => {
|
|
|
- this.sonCustomerList = res.data.records.map(k => {
|
|
|
+ this.sonCustomerNameList = res.data.records.map(k => {
|
|
|
return {
|
|
|
label: k.name,
|
|
|
value: k.name
|
|
|
}
|
|
|
})
|
|
|
+ this.sonCustomerNumberList = res.data.records.map(k => {
|
|
|
+ return {
|
|
|
+ label: k.number,
|
|
|
+ value: k.number
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
handleAddData() {
|
|
@@ -674,6 +693,9 @@ export default {
|
|
|
this.$refs.pageRef &&
|
|
|
this.$refs.pageRef.$children[0].$children[0].$children[2].$children[0].$children[0].clearSelection()
|
|
|
},
|
|
|
+ handleChangeNumber(e){
|
|
|
+ console.log(e);
|
|
|
+ },
|
|
|
handlerefreshList() {
|
|
|
this.$emit('refresh')
|
|
|
this.onClose()
|