|
@@ -210,7 +210,17 @@ export default {
|
|
删除
|
|
删除
|
|
</el-button>
|
|
</el-button>
|
|
) : !!~['SAVE'].indexOf(this.formData.status) ? (
|
|
) : !!~['SAVE'].indexOf(this.formData.status) ? (
|
|
- this.importButton(goodsPurchaseRetItemImportCode, '导入条码', { purchaseRetItemId: row.id })
|
|
|
|
|
|
+ this.importButton(goodsPurchaseRetItemImportCode, '导入条码', { purchaseRetItemId: row.id }, ()=>{}, ()=>{
|
|
|
|
+ if (this.formData.id) {
|
|
|
|
+ // 更新表单信息
|
|
|
|
+ goodsPurchaseRetDetail({ id: this.formData.id }).then(res => {
|
|
|
|
+ Object.assign(this.formData, res.data, {
|
|
|
|
+ fileUrl: res.data.fileUrl ? [{ url: res.data.fileUrl }] : [],
|
|
|
|
+ items: res.data.items.map(item => ({ ...item, details: {} }))
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
) : null}
|
|
) : null}
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|