Commit df0c6701 authored by zhengke's avatar zhengke

修改

parent 4b74660f
...@@ -508,7 +508,7 @@ ...@@ -508,7 +508,7 @@
let that = this let that = this
let newArr = [] let newArr = []
newArr.push(file.file) newArr.push(file.file)
let path = '/Upload/Temporary/' let path = '/Upload/DMC/Hotel'
this.$message.info('上传中...') this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.list[this.checkedIndex].HotelOrderList[this.checkedsubIndex].ContractUrl = this.domainManager() this.list[this.checkedIndex].HotelOrderList[this.checkedsubIndex].ContractUrl = this.domainManager()
......
...@@ -161,6 +161,17 @@ ...@@ -161,6 +161,17 @@
<span v-if="subItem.IsHaveShouPeiFee==1" style="color:red;">{{$t('ground.shoupeifei')}}:{{subItem.ShouPeiMoney}}</span> <span v-if="subItem.IsHaveShouPeiFee==1" style="color:red;">{{$t('ground.shoupeifei')}}:{{subItem.ShouPeiMoney}}</span>
</td> </td>
</tr> </tr>
<tr>
<td colspan="2">
<p style="padding-top: 5px;">
<a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a>
</p>
<el-upload :http-request="uploadFileBtnS" :multiple="false" :show-file-list="false" action=''>
<el-button size="small" type="danger" @click='getItem(index, subIndex)'>
{{!subItem.ContractUrl ? '上传手配书' : '重新上传手配书'}}</el-button>
</el-upload>
</td>
</tr>
</table> </table>
</td> </td>
<!-- 房间类型 --> <!-- 房间类型 -->
...@@ -423,8 +434,13 @@ ...@@ -423,8 +434,13 @@
</el-select> </el-select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" style="height:5px;"></td> <td colspan="2" style="height:5px;">
</td>
</tr> </tr>
<tr> <tr>
<td width="70" style="text-align:right;">{{$t('ground.duigysbz')}}:</td> <td width="70" style="text-align:right;">{{$t('ground.duigysbz')}}:</td>
...@@ -534,6 +550,8 @@ ...@@ -534,6 +550,8 @@
IsEditHotelPeople: 1, //是否有修改人数权限[0-不能修改,1-可以修改] IsEditHotelPeople: 1, //是否有修改人数权限[0-不能修改,1-可以修改]
IsCombine: false, //是否是合团,true-是合团,false-不是合团 IsCombine: false, //是否是合团,true-是合团,false-不是合团
allCurrencyList: [], //币种列表 allCurrencyList: [], //币种列表
checkedIndex: '',
checkedsubIndex: '',
} }
}, },
components: { components: {
...@@ -677,6 +695,25 @@ ...@@ -677,6 +695,25 @@
} }
}); });
}, },
getItem(index, subIndex) {
this.checkedIndex = index
this.checkedsubIndex = subIndex
},
uploadFileBtnS(file) { //手配书上传
let that = this
let newArr = []
newArr.push(file.file)
let path = '/Upload/DMC/Hotel'
this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => {
this.list[this.checkedIndex].HotelOrderList[this.checkedsubIndex].ContractUrl = this.domainManager()
.ViittoFileUrl + x.data.FilePath
this.$message.success(x.data.Message)
let newlist = JSON.parse(JSON.stringify(this.list))
this.list = newlist
this.$forceUpdate()
})
},
goUrl(path, obj, name) { goUrl(path, obj, name) {
this.$router.push({ this.$router.push({
path: path, path: path,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment