|
|
@@ -237,7 +237,7 @@
|
|
|
<!-- 上传附件 -->
|
|
|
<el-upload
|
|
|
class="upload-demo"
|
|
|
- :action="baseURL + `/cms/goods/upload/${affixVal}/${affixVal+'mulu'}`"
|
|
|
+ :action="baseURL + `/cms/goods/upload/${affixVal}/${this.dirCode}`"
|
|
|
:headers="{
|
|
|
token,
|
|
|
}"
|
|
|
@@ -307,6 +307,9 @@ export default {
|
|
|
},
|
|
|
fujianId: {
|
|
|
type: Number
|
|
|
+ },
|
|
|
+ dirCode: {
|
|
|
+ type: Number
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
|
@@ -320,7 +323,7 @@ export default {
|
|
|
amountType: 0, // 数量类型, 0:单件, 1:一套多件
|
|
|
checkInScope: '2001至今', // 入藏时间范围
|
|
|
checkInYear: '', // 入藏年底
|
|
|
- dirCode: 'daliCK', // 目录码
|
|
|
+ dirCode: '', // 目录码
|
|
|
fileIds: '', // 图片类型使用,文件id, 多个以逗号分隔
|
|
|
goodsTypeId: 1, // 文物类型Id
|
|
|
height: '', // 高
|
|
|
@@ -482,11 +485,14 @@ export default {
|
|
|
},
|
|
|
// 点击确定
|
|
|
async btnOK () {
|
|
|
+ // 清空表格数据
|
|
|
+ this.tableData = this.tempData = []
|
|
|
this.ruleForm.registerId = this.registerId
|
|
|
try {
|
|
|
await this.$refs.ruleForm.validate()
|
|
|
// console.log(this.ruleForm)
|
|
|
this.ruleForm.amount = Number(this.ruleForm.amount)
|
|
|
+ this.ruleForm.dirCode = this.dirCode
|
|
|
await holdingAdd(this.ruleForm)
|
|
|
// console.log(6666, res)
|
|
|
// 清空表单
|
|
|
@@ -496,7 +502,7 @@ export default {
|
|
|
amountType: 0, // 数量类型, 0:单件, 1:一套多件
|
|
|
checkInScope: '2001至今', // 入藏时间范围
|
|
|
checkInYear: '', // 入藏年底
|
|
|
- dirCode: 'daliCK', // 目录码
|
|
|
+ dirCode: '', // 目录码
|
|
|
fileIds: '', // 图片类型使用,文件id, 多个以逗号分隔
|
|
|
goodsTypeId: 1, // 文物类型Id
|
|
|
height: '', // 高
|