|
@@ -58,6 +58,18 @@
|
|
|
<a-textarea v-model="form.transportRemark" placeholder="请输入备注" v-if="type==0"/>
|
|
|
<span v-else>{{ detail.transportRemark||'--' }}</span>
|
|
|
</div>
|
|
|
+ <div style="flex-basis:60%;display:flex;" v-if="detail.receiveFlag == 1 && type!=0">
|
|
|
+ 问题反馈:
|
|
|
+ <div style="padding:0 10px;">
|
|
|
+ <div v-if="showEditQus" style="width:400px;">
|
|
|
+ <a-textarea ref="issue" @blur="saveIssue" allowClear v-model="detail.issueRemark" placeholder="请输入问题反馈(最多100字符)" :maxLength="100" auto-size />
|
|
|
+ </div>
|
|
|
+ <div v-else>{{ detail.issueRemark||'--' }}</div>
|
|
|
+ </div>
|
|
|
+ <div v-if="!showEditQus">
|
|
|
+ <a-icon @click="editIssue" style="color:#00aaff;font-size:16px;cursor:pointer;" type="form" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div>
|
|
|
<a-table class="sTable" :columns="columns" :pagination="false" :data-source="tableData" bordered></a-table>
|
|
@@ -81,7 +93,7 @@ import moment from 'moment'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import printModel from './printModel.vue'
|
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
|
-import { updateTransportInfo, sendBillFindBySn } from '@/api/sendBill'
|
|
|
+import { updateTransportInfo, sendBillFindBySn, updateIssueRemark } from '@/api/sendBill'
|
|
|
export default {
|
|
|
name: 'SendOutDetailModal',
|
|
|
mixins: [commonMixin],
|
|
@@ -163,6 +175,19 @@ export default {
|
|
|
this.showTipModal = false
|
|
|
}
|
|
|
},
|
|
|
+ editIssue(){
|
|
|
+ this.showEditQus = !this.showEditQus
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$refs.issue.focus()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ saveIssue(){
|
|
|
+ updateIssueRemark({issueRemark: this.detail.issueRemark, sendBillSn: this.sendBillSn}).then(res => {
|
|
|
+ this.showEditQus = false
|
|
|
+ }).catch(res => {
|
|
|
+ this.$refs.issue.focus()
|
|
|
+ })
|
|
|
+ },
|
|
|
// 编辑
|
|
|
getDetail (data, type, title) {
|
|
|
this.type = type // 0 是物流跟踪,1是详情
|
|
@@ -176,6 +201,7 @@ export default {
|
|
|
if (res.data) {
|
|
|
this.detail = res.data
|
|
|
this.detail.receiveFlag = res.data.receiveFlag == 1
|
|
|
+ this.detail.issueRemark = this.detail.issueRemark || ''
|
|
|
this.form.receiveFlag = false
|
|
|
this.form.receiveDate = ''
|
|
|
this.form.transportState = res.data.transportState
|