|
@@ -79,6 +79,10 @@ export default {
|
|
|
params: {
|
|
|
type: Object,
|
|
|
default: null
|
|
|
+ },
|
|
|
+ goodFlag: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -91,7 +95,7 @@ export default {
|
|
|
savePathType: 'local',
|
|
|
salesReturnBillSn: this.params.salesReturnBillSn
|
|
|
},
|
|
|
- filePath: location.protocol + '//' + location.host + '/templ/收货产品导入模板.xlsx'
|
|
|
+ filePath: ''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -140,6 +144,8 @@ export default {
|
|
|
if (!newValue) {
|
|
|
this.$emit('close')
|
|
|
this.resetSearchForm()
|
|
|
+ } else {
|
|
|
+ this.filePath = location.protocol + '//' + location.host + (this.goodFlag == 1 ? '/templ/收货产品(良品)模板.xlsx' : '/templ/收货产品(不良品)模板.xlsx')
|
|
|
}
|
|
|
}
|
|
|
}
|