|
@@ -36,6 +36,7 @@
|
|
|
<el-form-item label="沟通编码" prop="coCode">
|
|
|
<el-select
|
|
|
v-model="dataForm.coCode"
|
|
|
+ ref="coSelectRef"
|
|
|
:disabled="display"
|
|
|
remote
|
|
|
placeholder="请选择"
|
|
@@ -44,7 +45,7 @@
|
|
|
v-for="item in options1"
|
|
|
:key="item.value"
|
|
|
:label="item.coCode + ' (' + item.customerName + ')'"
|
|
|
- :value="item.coCode">
|
|
|
+ :value="item">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -185,6 +186,10 @@
|
|
|
<el-row class="my-row">
|
|
|
<upload-component :display="display" :title="'合同评审表'" :accept="'*'" :file-obj-list="fileList" @uploadSuccess="uploadSuccess" templateCode="contract_review_htpsyjb"/>
|
|
|
</el-row>
|
|
|
+ <div style="margin-top: 20px" v-if="isCommVisible">
|
|
|
+ <h3>合同沟通信息:</h3>
|
|
|
+ <communicate-detail ref="commDetail"/>
|
|
|
+ </div>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="onChose">取消</el-button>
|
|
@@ -199,9 +204,10 @@
|
|
|
import { getDictList } from '@/api/dict'
|
|
|
import { dealStepData, dealStepLogs } from '@/api/util'
|
|
|
import UploadComponent from '../common/upload-component'
|
|
|
- export default {
|
|
|
+ import CommunicateDetail from '@/views/modules/cus/communicate-detail'
|
|
|
+export default {
|
|
|
name: 'stock-order-inbound',
|
|
|
- components: {UploadComponent},
|
|
|
+ components: {CommunicateDetail, UploadComponent},
|
|
|
computed: {
|
|
|
orgId: {
|
|
|
get () { return this.$store.state.user.orgId }
|
|
@@ -210,6 +216,7 @@
|
|
|
data () {
|
|
|
return {
|
|
|
visible: false,
|
|
|
+ isCommVisible: false,
|
|
|
dictType: 'material_type',
|
|
|
options: [],
|
|
|
options1: [],
|
|
@@ -344,8 +351,15 @@
|
|
|
this.$refs.dataForm.validateField(type)
|
|
|
},
|
|
|
coListSelected (item) {
|
|
|
- // todo
|
|
|
- // console.log('item = ' + JSON.stringify(item))
|
|
|
+ this.dataForm.coCode = item.coCode
|
|
|
+ this.dataForm.coId = item.coId
|
|
|
+ this.showComm(item.coId)
|
|
|
+ },
|
|
|
+ showComm (id) {
|
|
|
+ this.isCommVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.commDetail.init(id, null, true)
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|