|
@@ -941,21 +941,26 @@ export default {
|
|
|
this.oldList[this.isEdit].qty = e.oldQty
|
|
|
},
|
|
|
add() {
|
|
|
- this.oldList.push({
|
|
|
- orderId: '',
|
|
|
- orderBrand: '',
|
|
|
- name: '',
|
|
|
- phone: '',
|
|
|
- partsName: '',
|
|
|
- unit: '',
|
|
|
- qty: '',
|
|
|
- partsCode: '',
|
|
|
- goodsList: [],
|
|
|
- goods: {},
|
|
|
- goodsId: '',
|
|
|
- goodsName: ''
|
|
|
+ getAttachmentList({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: [{ param: 'a.websit_id', compare: '=', value: this.formData.websitId }]
|
|
|
+ }).then(res => {
|
|
|
+ this.oldList.push({
|
|
|
+ orderId: '',
|
|
|
+ orderBrand: '',
|
|
|
+ name: '',
|
|
|
+ phone: '',
|
|
|
+ partsName: '',
|
|
|
+ unit: '',
|
|
|
+ qty: '',
|
|
|
+ partsCode: '',
|
|
|
+ goodsList: res.data.records,
|
|
|
+ goods: {},
|
|
|
+ goodsId: '',
|
|
|
+ goodsName: ''
|
|
|
+ })
|
|
|
})
|
|
|
- this.getAttachmentList()
|
|
|
},
|
|
|
async getAttachmentList(websit_id) {
|
|
|
const that = this
|