|
@@ -112,7 +112,7 @@ export default {
|
|
this.formData.items = []
|
|
this.formData.items = []
|
|
if (val) {
|
|
if (val) {
|
|
goodsPurchaseDetail({ id: val, isQuery: true }).then(res => {
|
|
goodsPurchaseDetail({ id: val, isQuery: true }).then(res => {
|
|
- this.joinCode = res.data.joinCode
|
|
|
|
|
|
+ this.joinCode = res.data.joinCode === "CODE"
|
|
this.formData.items = res.data.items.map(item => ({
|
|
this.formData.items = res.data.items.map(item => ({
|
|
brandId: item.brandId,
|
|
brandId: item.brandId,
|
|
brandName: item.brandName,
|
|
brandName: item.brandName,
|
|
@@ -261,7 +261,7 @@ export default {
|
|
this.cgrkOrder = res.data.records
|
|
this.cgrkOrder = res.data.records
|
|
if (this.formData.goodsPurchaseId) {
|
|
if (this.formData.goodsPurchaseId) {
|
|
goodsPurchaseDetail({ id: this.formData.goodsPurchaseId, isQuery: true }).then(res => {
|
|
goodsPurchaseDetail({ id: this.formData.goodsPurchaseId, isQuery: true }).then(res => {
|
|
- this.joinCode = res.data.joinCode
|
|
|
|
|
|
+ this.joinCode = res.data.joinCode === "CODE"
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|