|
@@ -305,9 +305,9 @@ export default {
|
|
|
},
|
|
|
render: (h, { column, row, index }) => {
|
|
|
return (
|
|
|
- <div style="margin:0 20px">
|
|
|
+ <div style='margin:0 20px'>
|
|
|
<el-input
|
|
|
- type="number"
|
|
|
+ type='number'
|
|
|
disabled={this.comDisabled}
|
|
|
value={row.qty}
|
|
|
// onInput={e => (row.qty = e)}
|
|
@@ -315,8 +315,8 @@ export default {
|
|
|
row.qty = value
|
|
|
this.debounceChange(value, index)
|
|
|
}}
|
|
|
- placeholder="调拨数量"
|
|
|
- size="mini"
|
|
|
+ placeholder='调拨数量'
|
|
|
+ size='mini'
|
|
|
></el-input>
|
|
|
</div>
|
|
|
)
|
|
@@ -330,12 +330,12 @@ export default {
|
|
|
render: (h, { column, row, index }) => {
|
|
|
return (
|
|
|
<el-input
|
|
|
- type="text"
|
|
|
+ type='text'
|
|
|
value={row.notes}
|
|
|
disabled={this.comDisabled}
|
|
|
onInput={e => (row.notes = e)}
|
|
|
- placeholder="备注"
|
|
|
- size="mini"
|
|
|
+ placeholder='备注'
|
|
|
+ size='mini'
|
|
|
></el-input>
|
|
|
)
|
|
|
}
|
|
@@ -356,8 +356,8 @@ export default {
|
|
|
<div>
|
|
|
{!this.comDisabled ? (
|
|
|
<el-button
|
|
|
- type="text"
|
|
|
- size="default"
|
|
|
+ type='text'
|
|
|
+ size='default'
|
|
|
onClick={() => {
|
|
|
this.handleDel(index)
|
|
|
}}
|
|
@@ -376,29 +376,29 @@ export default {
|
|
|
...[
|
|
|
!this.comDisabled
|
|
|
? {
|
|
|
- name: 'slot-component',
|
|
|
- md: 24,
|
|
|
- attributes: { disabled: false },
|
|
|
- formItemAttributes: { label: '', prop: '' },
|
|
|
- render: (h, { props, onInput }) => {
|
|
|
- return (
|
|
|
- <div>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- onClick={() => {
|
|
|
- this.visible = true
|
|
|
- this.recordSelected = []
|
|
|
- }}
|
|
|
- >
|
|
|
+ name: 'slot-component',
|
|
|
+ md: 24,
|
|
|
+ attributes: { disabled: false },
|
|
|
+ formItemAttributes: { label: '', prop: '' },
|
|
|
+ render: (h, { props, onInput }) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ size='mini'
|
|
|
+ onClick={() => {
|
|
|
+ this.visible = true
|
|
|
+ this.recordSelected = []
|
|
|
+ }}
|
|
|
+ >
|
|
|
添加
|
|
|
- </el-button>
|
|
|
- <el-button size="mini" onClick={() => this.handleAllDel()}>
|
|
|
+ </el-button>
|
|
|
+ <el-button size='mini' onClick={() => this.handleAllDel()}>
|
|
|
删除
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- )
|
|
|
- }
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
}
|
|
|
+ }
|
|
|
: {}
|
|
|
],
|
|
|
{
|
|
@@ -858,7 +858,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- debounceChange: debounce(function (val, index) {
|
|
|
+ debounceChange: debounce(function(val, index) {
|
|
|
if (val <= 0) {
|
|
|
this.selectData[index].qty = 1
|
|
|
} else {
|
|
@@ -910,6 +910,7 @@ export default {
|
|
|
]
|
|
|
}).then(res => {
|
|
|
this.sonCustomerList = res.data.records
|
|
|
+
|
|
|
this.sonCustomerNameList = res.data.records.map(k => {
|
|
|
return {
|
|
|
label: k.name,
|
|
@@ -922,6 +923,11 @@ export default {
|
|
|
value: k.id
|
|
|
}
|
|
|
})
|
|
|
+ if (this.detailsId && this.sonCustomerList.length) {
|
|
|
+ const transfer = this.sonCustomerList.find(k => k.number === this.formData.transferCustomerNumber)
|
|
|
+ this.formData.transferCustomerNumber = transfer.id
|
|
|
+ this.formData.transferCustomerName = transfer.id
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
handleAddData() {
|
|
@@ -1023,10 +1029,15 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ const transfer = this.sonCustomerList.find(k => k.id === this.formData.transferCustomerNumber)
|
|
|
+
|
|
|
if (valid) {
|
|
|
const params = {
|
|
|
...this.formData,
|
|
|
- orders: this.selectData
|
|
|
+ orders: this.selectData,
|
|
|
+ transferCustomerNumber: transfer.number,
|
|
|
+ transferCustomerName: transfer.name
|
|
|
+
|
|
|
}
|
|
|
if (this.moduleType === 1) {
|
|
|
params.status = type
|