|
@@ -159,6 +159,14 @@
|
|
|
:show-overflow-tooltip="true"
|
|
|
label="备注">
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ label="附件">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button :disabled="!scope.row.attachList || scope.row.attachList.length === 0" type="text" size="small" @click="attachDetails(scope.row)">查看</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
header-align="center"
|
|
@@ -189,6 +197,8 @@
|
|
|
<dispatch-arrived v-if="arrivedVisible" ref="arrived" @refreshDataList="getDataList" @onChose="onChose"></dispatch-arrived>
|
|
|
<notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose"/>
|
|
|
<amount-mask-setting v-if="amountMaskSettingVisible" ref="amountMaskSetting" @onChose="onChose"/>
|
|
|
+ <!-- 文件预览 -->
|
|
|
+ <attach-detail v-if="attachVisible" ref="attachDetail" @onChose="onChose"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -200,9 +210,11 @@
|
|
|
import DispatchArrived from './dispatch-arrived'
|
|
|
import NoticeChangeSetting from './order-notice-change-setting'
|
|
|
import AmountMaskSetting from './order-amount-mask-setting'
|
|
|
- export default {
|
|
|
+ import AttachDetail from '@/views/modules/common/attach-detail.vue'
|
|
|
+export default {
|
|
|
name: 'order',
|
|
|
components: {
|
|
|
+ AttachDetail,
|
|
|
DispatchArrived,
|
|
|
CusComponent,
|
|
|
AddOrUpdate,
|
|
@@ -252,7 +264,8 @@
|
|
|
code: '6', value: '技术待确定'
|
|
|
}
|
|
|
],
|
|
|
- optionsCustomer: []
|
|
|
+ optionsCustomer: [],
|
|
|
+ attachVisible: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -406,6 +419,13 @@
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.amountMaskSetting.init()
|
|
|
})
|
|
|
+ },
|
|
|
+ // 附件
|
|
|
+ attachDetails (row) {
|
|
|
+ this.attachVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.attachDetail.init(row.attachList)
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|