doctor-admin-components 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/packages/index.js +9 -3
- package/packages/src/api/biz/bizClaim.js +40 -0
- package/packages/src/index.js +10 -2
- package/packages/src/utils/auth.js +2 -2
- package/packages/src/views/biz/claim/Claim.vue +335 -0
- package/packages/src/views/biz/contractTracing/contract.vue +39 -19
- package/packages/src/views/biz/contractTracing/contractPdf.vue +21 -6
- package/packages/src/views/biz/contractTracing/contractSummary.vue +0 -1
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doctor-admin-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"version1": "1.0.6-beta.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main1": "lib/index.umd.min.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"lib": "vue-cli-service build --target lib --name index --dest lib packages/index.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ali-oss": "^6.
|
|
15
|
+
"ali-oss": "^6.18.0",
|
|
16
16
|
"axios": "^1.4.0",
|
|
17
17
|
"core-js": "^3.31.1",
|
|
18
18
|
"element-ui": "^2.15.13",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"jspdf": "^2.5.1",
|
|
23
23
|
"jszip": "^3.10.1",
|
|
24
24
|
"moment": "^2.29.4",
|
|
25
|
+
"uuid": "^9.0.0",
|
|
25
26
|
"vue": "^2.6.14",
|
|
26
27
|
"vue-i18n": "8.25.0",
|
|
27
28
|
"vue-router": "^3.5.1",
|
package/packages/index.js
CHANGED
|
@@ -43,17 +43,22 @@ import DictTag from './src/components/DictTag'
|
|
|
43
43
|
import { download } from './src/utils/request'
|
|
44
44
|
import moment from 'moment';
|
|
45
45
|
import ImagePreview from "./src/components/ImagePreview"
|
|
46
|
+
import ImageUpload from "./src/components/ImageUpload/aliyun"
|
|
46
47
|
|
|
47
48
|
import DictData from './src/components/DictData'
|
|
48
49
|
|
|
49
50
|
// 导入button组件
|
|
50
51
|
import XButton from './Button'
|
|
51
|
-
import
|
|
52
|
+
import {
|
|
53
|
+
Claim,
|
|
54
|
+
ContractTracingDetail
|
|
55
|
+
} from "./src";
|
|
52
56
|
import locale from 'element-ui/src/locale';
|
|
53
57
|
|
|
54
58
|
// 组件列表
|
|
55
59
|
const components = [
|
|
56
60
|
XButton,
|
|
61
|
+
Claim,
|
|
57
62
|
ContractTracingDetail
|
|
58
63
|
]
|
|
59
64
|
|
|
@@ -75,6 +80,7 @@ const install = function (Vue, options) {
|
|
|
75
80
|
Vue.prototype.removeMarketContent = removeMarketContent
|
|
76
81
|
Vue.prototype.$moment = moment;
|
|
77
82
|
Vue.component('ImagePreview', ImagePreview)
|
|
83
|
+
Vue.component('ImageUpload', ImageUpload)
|
|
78
84
|
Vue.component('DictTag', DictTag)
|
|
79
85
|
|
|
80
86
|
DictData.install(Vue)
|
|
@@ -112,11 +118,11 @@ const install = function (Vue, options) {
|
|
|
112
118
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
113
119
|
install(window.Vue)
|
|
114
120
|
}
|
|
115
|
-
|
|
116
121
|
export default {
|
|
117
122
|
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
118
123
|
install,
|
|
119
124
|
// 以下是具体的组件列表
|
|
120
125
|
// XButton,
|
|
121
|
-
ContractTracingDetail
|
|
126
|
+
ContractTracingDetail,
|
|
127
|
+
Claim
|
|
122
128
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhangpengwei 15038779532@163.com
|
|
3
|
+
* @Date: 2023-08-08 16:26:32
|
|
4
|
+
* @LastEditors: zhangpengwei 15038779532@163.com
|
|
5
|
+
* @LastEditTime: 2023-08-08 16:31:42
|
|
6
|
+
* @FilePath: /doctor-admin-components/packages/src/api/biz/bizClaim.js
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
import request from '../../utils/request'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @description: 更新索赔
|
|
13
|
+
* @param {*} data
|
|
14
|
+
* @return {*}
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export function updateClaim(query) {
|
|
18
|
+
return request({
|
|
19
|
+
url: '/claim/updateClaim',
|
|
20
|
+
method: 'post',
|
|
21
|
+
params: query
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @description: 查询索赔记录
|
|
27
|
+
* @param {*} data
|
|
28
|
+
* @return {*}
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
export function queryClaimRecord(query) {
|
|
32
|
+
return request({
|
|
33
|
+
url: '/claim/queryClaimRecord',
|
|
34
|
+
method: 'get',
|
|
35
|
+
params: query
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
package/packages/src/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: error: git config user.name && git config user.email & please set dead value or install git
|
|
3
3
|
* @Date: 2022-07-25 11:24:53
|
|
4
4
|
* @LastEditors: zhangpengwei 15038779532@163.com
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-08-08 16:51:02
|
|
6
6
|
* @FilePath: /zpw-com-test/src/lib-components/index.js
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
*/
|
|
@@ -15,10 +15,18 @@
|
|
|
15
15
|
// // export { default as Test } from './views/test.vue111111111111';
|
|
16
16
|
|
|
17
17
|
import ContractTracingDetail from './views/biz/contractTracing/contractTracingDetail.vue'
|
|
18
|
+
import Claim from './views/biz/claim/Claim.vue'
|
|
19
|
+
|
|
18
20
|
// 为组件提供 install 安装方法,供按需引入
|
|
21
|
+
|
|
19
22
|
ContractTracingDetail.install = function (Vue) {
|
|
20
23
|
Vue.component(ContractTracingDetail.name, ContractTracingDetail)
|
|
21
24
|
}
|
|
25
|
+
|
|
26
|
+
Claim.install = function (Vue) {
|
|
27
|
+
Vue.component(Claim.name, Claim)
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
// 导出组件
|
|
23
|
-
export
|
|
31
|
+
export {ContractTracingDetail, Claim}
|
|
24
32
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: zhangpengwei 15038779532@163.com
|
|
3
3
|
* @Date: 2022-10-08 10:03:50
|
|
4
4
|
* @LastEditors: zhangpengwei 15038779532@163.com
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-08-11 17:57:11
|
|
6
6
|
* @FilePath: /zpw-com-test/src/utils/auth.js
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
*/
|
|
@@ -12,7 +12,7 @@ const TokenKey = 'Admin-Token'
|
|
|
12
12
|
|
|
13
13
|
export function getToken() {
|
|
14
14
|
return Cookies.get(TokenKey)
|
|
15
|
-
// return '
|
|
15
|
+
// return '9206abb810d04b678acf967175fa62df'
|
|
16
16
|
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: zhangpengwei 15038779532@163.com
|
|
3
|
+
* @Date: 2023-08-03 11:13:07
|
|
4
|
+
* @LastEditors: zhangpengwei 15038779532@163.com
|
|
5
|
+
* @LastEditTime: 2023-08-08 17:24:35
|
|
6
|
+
* @FilePath: /transaction 官网/src/pages/claim/Feedback.vue
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<div>
|
|
11
|
+
<div class="feedback-page-top">
|
|
12
|
+
<div>索赔</div>
|
|
13
|
+
<el-button type="primary" @click.stop="back">返回</el-button>
|
|
14
|
+
</div>
|
|
15
|
+
<div style="transform:translateX(-50%);margin-left:50%;margin-top:30px">
|
|
16
|
+
<el-form label-suffix=":" style="margin-top:30px" ref="selectClaim" :model="form" label-width="120px" :rules="rules">
|
|
17
|
+
<div class="title">索赔ID:{{ info && info.claimId }}</div>
|
|
18
|
+
<div class="title" style="margin-top:10px">索赔主张</div>
|
|
19
|
+
<div style="padding-left:50px;margin-top:30px;margin-bottom:10px">索赔类型:{{claimTypeCom}}</div>
|
|
20
|
+
<el-form-item label="短重重量" prop="missingWeight">
|
|
21
|
+
<el-input class="el-input-width" v-model="claimInfo.missingWeight"></el-input> MT
|
|
22
|
+
</el-form-item>
|
|
23
|
+
<el-form-item label="索赔总价" :prop="info.type == '1' ? 'weightTotalPrice' : 'qualityTotalPrice'">
|
|
24
|
+
<el-input class="el-input-width" v-model="info.type == '1' ? claimInfo.weightTotalPrice : claimInfo.qualityTotalPrice"></el-input> 美元
|
|
25
|
+
</el-form-item>
|
|
26
|
+
<el-form-item label="索赔原因" :prop="info.type == '1' ? 'weightReason' : 'qualityReason'">
|
|
27
|
+
<el-input
|
|
28
|
+
type="textarea"
|
|
29
|
+
style="width: 350px"
|
|
30
|
+
v-model="info.type == '1' ? claimInfo.weightReason : claimInfo.qualityReason"
|
|
31
|
+
:autosize="{ minRows: 4}"
|
|
32
|
+
maxlength="6000"
|
|
33
|
+
show-word-limit
|
|
34
|
+
></el-input>
|
|
35
|
+
</el-form-item>
|
|
36
|
+
|
|
37
|
+
<div class="title">合同信息</div>
|
|
38
|
+
<div style="padding-left:50px;margin:10px 0;">合同号:ARS20230207-81701</div>
|
|
39
|
+
<el-form-item label="" style="width:max-content">
|
|
40
|
+
<div>
|
|
41
|
+
<el-table
|
|
42
|
+
:data="tableData"
|
|
43
|
+
:span-method="objectSpanMethod"
|
|
44
|
+
border
|
|
45
|
+
style="width: 100%; margin-top: 20px">
|
|
46
|
+
<el-table-column
|
|
47
|
+
header-align="center"
|
|
48
|
+
align="center"
|
|
49
|
+
prop="id"
|
|
50
|
+
label="柜号"
|
|
51
|
+
width="180">
|
|
52
|
+
</el-table-column>
|
|
53
|
+
<el-table-column
|
|
54
|
+
header-align="center"
|
|
55
|
+
align="center"
|
|
56
|
+
prop="name"
|
|
57
|
+
label="商品名称">
|
|
58
|
+
</el-table-column>
|
|
59
|
+
<el-table-column
|
|
60
|
+
header-align="center"
|
|
61
|
+
align="center"
|
|
62
|
+
prop="amount1"
|
|
63
|
+
label="毛重">
|
|
64
|
+
</el-table-column>
|
|
65
|
+
<el-table-column
|
|
66
|
+
header-align="center"
|
|
67
|
+
align="center"
|
|
68
|
+
prop="amount2"
|
|
69
|
+
label="皮重">
|
|
70
|
+
</el-table-column>
|
|
71
|
+
<el-table-column
|
|
72
|
+
header-align="center"
|
|
73
|
+
align="center"
|
|
74
|
+
prop="amount3"
|
|
75
|
+
label="净重">
|
|
76
|
+
</el-table-column>
|
|
77
|
+
</el-table>
|
|
78
|
+
</div>
|
|
79
|
+
</el-form-item>
|
|
80
|
+
|
|
81
|
+
<div class="title">货物信息</div>
|
|
82
|
+
<div style="background-color:#eee;min-width:750px;padding:20px 50px 20px 0;">
|
|
83
|
+
<div style="padding-left:50px;margin:10px 0;">合同号:ARS20230207-81701</div>
|
|
84
|
+
<el-form-item label="">
|
|
85
|
+
<div>称重结果:</div>
|
|
86
|
+
<el-table
|
|
87
|
+
:data="tableData"
|
|
88
|
+
:span-method="objectSpanMethod"
|
|
89
|
+
border
|
|
90
|
+
style="width: 100%; margin-top: 20px">
|
|
91
|
+
<el-table-column
|
|
92
|
+
header-align="center"
|
|
93
|
+
align="center"
|
|
94
|
+
prop="id"
|
|
95
|
+
label="柜号"
|
|
96
|
+
width="180"
|
|
97
|
+
>
|
|
98
|
+
<template slot-scope="scope">
|
|
99
|
+
<div contenteditable="true" style="border: 1px solid #eee">
|
|
100
|
+
{{ scope.row.id }}
|
|
101
|
+
</div>
|
|
102
|
+
</template>
|
|
103
|
+
|
|
104
|
+
</el-table-column>
|
|
105
|
+
<el-table-column
|
|
106
|
+
header-align="center"
|
|
107
|
+
align="center"
|
|
108
|
+
prop="name"
|
|
109
|
+
label="商品名称">
|
|
110
|
+
</el-table-column>
|
|
111
|
+
<el-table-column
|
|
112
|
+
header-align="center"
|
|
113
|
+
align="center"
|
|
114
|
+
prop="amount1"
|
|
115
|
+
label="毛重">
|
|
116
|
+
</el-table-column>
|
|
117
|
+
<el-table-column
|
|
118
|
+
header-align="center"
|
|
119
|
+
align="center"
|
|
120
|
+
prop="amount2"
|
|
121
|
+
label="皮重">
|
|
122
|
+
</el-table-column>
|
|
123
|
+
<el-table-column
|
|
124
|
+
header-align="center"
|
|
125
|
+
align="center"
|
|
126
|
+
prop="amount3"
|
|
127
|
+
label="净重">
|
|
128
|
+
</el-table-column>
|
|
129
|
+
</el-table>
|
|
130
|
+
<div>
|
|
131
|
+
<span>码头称重:</span>
|
|
132
|
+
<file-upload v-model="arr"></file-upload>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
</el-form-item>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<div class="title">其它信息</div>
|
|
139
|
+
<div>如有其它信息需要补充,在这里补充</div>
|
|
140
|
+
<el-form-item label="">
|
|
141
|
+
<div>123123</div>
|
|
142
|
+
</el-form-item>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
<!-- submit -->
|
|
148
|
+
<el-form-item>
|
|
149
|
+
<el-button @click.stop="back">取消</el-button>
|
|
150
|
+
<el-button type="primary" @click="onSubmit">开始索赔</el-button>
|
|
151
|
+
</el-form-item>
|
|
152
|
+
</el-form>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</template>
|
|
156
|
+
|
|
157
|
+
<script>
|
|
158
|
+
import { queryClaimRecord } from "../../../api/biz/bizClaim";
|
|
159
|
+
|
|
160
|
+
export default {
|
|
161
|
+
name: "Claim",
|
|
162
|
+
components: {
|
|
163
|
+
},
|
|
164
|
+
data() {
|
|
165
|
+
return {
|
|
166
|
+
arr:[],
|
|
167
|
+
form: {
|
|
168
|
+
type: '',
|
|
169
|
+
name: '',
|
|
170
|
+
desc:''
|
|
171
|
+
},
|
|
172
|
+
rules: {
|
|
173
|
+
type: [
|
|
174
|
+
{ required: true, message: '请选择货物反馈', trigger: 'blur' }
|
|
175
|
+
],
|
|
176
|
+
name: [
|
|
177
|
+
{ required: true, message: '请选择索赔货物', trigger: 'blur' }
|
|
178
|
+
],
|
|
179
|
+
desc: [
|
|
180
|
+
{ required: true, message: '请选择索赔货物', trigger: 'blur' }
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
info: {
|
|
184
|
+
claimId: this.$route.query.claimId,
|
|
185
|
+
type: this.$route.query.type,
|
|
186
|
+
},
|
|
187
|
+
locale: this.$store.state.locale,
|
|
188
|
+
claimInfo: {
|
|
189
|
+
missingWeight: null,
|
|
190
|
+
qualityReason: null,
|
|
191
|
+
qualityTotalPrice: null,
|
|
192
|
+
weightReason: null,
|
|
193
|
+
weightTotalPrice: null
|
|
194
|
+
},
|
|
195
|
+
tableData: [{
|
|
196
|
+
id: '12987122',
|
|
197
|
+
name: '王小虎',
|
|
198
|
+
amount1: '234',
|
|
199
|
+
amount2: '3.2',
|
|
200
|
+
amount3: 10
|
|
201
|
+
}, {
|
|
202
|
+
id: '12987123',
|
|
203
|
+
name: '王小虎',
|
|
204
|
+
amount1: '165',
|
|
205
|
+
amount2: '4.43',
|
|
206
|
+
amount3: 12
|
|
207
|
+
}, {
|
|
208
|
+
id: '12987124',
|
|
209
|
+
name: '王小虎',
|
|
210
|
+
amount1: '324',
|
|
211
|
+
amount2: '1.9',
|
|
212
|
+
amount3: 9
|
|
213
|
+
}, {
|
|
214
|
+
id: '12987125',
|
|
215
|
+
name: '王小虎',
|
|
216
|
+
amount1: '621',
|
|
217
|
+
amount2: '2.2',
|
|
218
|
+
amount3: 17
|
|
219
|
+
}, {
|
|
220
|
+
id: '12987126',
|
|
221
|
+
name: '王小虎',
|
|
222
|
+
amount1: '539',
|
|
223
|
+
amount2: '4.1',
|
|
224
|
+
amount3: 15
|
|
225
|
+
}]
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
mounted() {},
|
|
230
|
+
|
|
231
|
+
created() {
|
|
232
|
+
this.queryClaimRecordFun()
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
methods: {
|
|
236
|
+
async queryClaimRecordFun () {
|
|
237
|
+
const res = await queryClaimRecord({
|
|
238
|
+
data: {
|
|
239
|
+
id: this.info.claimId
|
|
240
|
+
}
|
|
241
|
+
})
|
|
242
|
+
|
|
243
|
+
if (res.code == 200) {
|
|
244
|
+
console.log(res.data);
|
|
245
|
+
this.claimInfo = res.data
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* @description: 表格合并
|
|
251
|
+
* @param {*}
|
|
252
|
+
* @return {*}
|
|
253
|
+
*/
|
|
254
|
+
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
255
|
+
if (columnIndex === 0) {
|
|
256
|
+
if (rowIndex % 2 === 0) {
|
|
257
|
+
return {
|
|
258
|
+
rowspan: 2,
|
|
259
|
+
colspan: 1
|
|
260
|
+
};
|
|
261
|
+
} else {
|
|
262
|
+
return {
|
|
263
|
+
rowspan: 0,
|
|
264
|
+
colspan: 0
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* @description: 返回上一页面
|
|
271
|
+
* @return {*}
|
|
272
|
+
*/
|
|
273
|
+
back() {
|
|
274
|
+
this.$router.go(-1);
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @description: 反馈提交
|
|
279
|
+
* @return {*}
|
|
280
|
+
*/
|
|
281
|
+
onSubmit() {
|
|
282
|
+
this.$refs.selectClaim.validate((valid) => {
|
|
283
|
+
if (valid) {
|
|
284
|
+
console.log('submit!');
|
|
285
|
+
} else {
|
|
286
|
+
const element = document.getElementById("feedback");
|
|
287
|
+
element && element.scrollIntoView({ behavior: "smooth", block: "start", inline: "nearest" });
|
|
288
|
+
return false;
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
computed: {
|
|
294
|
+
claimTypeCom() {
|
|
295
|
+
const claimTypeMap = {
|
|
296
|
+
'1': {
|
|
297
|
+
'cn':'重量索赔',
|
|
298
|
+
'en':'Weight claim',
|
|
299
|
+
},
|
|
300
|
+
'2': {
|
|
301
|
+
'cn':'质量索赔',
|
|
302
|
+
'en':'Quality claim',
|
|
303
|
+
},
|
|
304
|
+
'3': {
|
|
305
|
+
'cn':'重量索赔+质量索赔',
|
|
306
|
+
'en':'Weight claim + Quality claim',
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
const obj = claimTypeMap[this.info.type || '1']
|
|
310
|
+
|
|
311
|
+
return this.locale === 'zh' ? obj.cn : obj.en
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
</script>
|
|
316
|
+
|
|
317
|
+
<style lang="scss" scoped>
|
|
318
|
+
.feedback-page {
|
|
319
|
+
width: 1152px;
|
|
320
|
+
padding: 100px;
|
|
321
|
+
margin: 0 auto;
|
|
322
|
+
.feedback-page-top {
|
|
323
|
+
display: flex;
|
|
324
|
+
justify-content: space-between;
|
|
325
|
+
align-items: center;
|
|
326
|
+
}
|
|
327
|
+
.el-input-width {
|
|
328
|
+
width:203px;
|
|
329
|
+
}
|
|
330
|
+
.title {
|
|
331
|
+
font-size:16px;
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
</style>
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
type="text"
|
|
102
102
|
@click="handleUserCompany(form.supplierCompanyId, 'seller')"
|
|
103
103
|
buyerAccountId
|
|
104
|
-
>Select Seller's Company
|
|
105
|
-
>
|
|
104
|
+
>Select Seller's Company
|
|
105
|
+
</el-button>
|
|
106
106
|
</el-col>
|
|
107
107
|
</el-row>
|
|
108
108
|
<el-form-item label="Company Name" label-width="120px">
|
|
@@ -440,42 +440,58 @@
|
|
|
440
440
|
v-model="form.depositDays"
|
|
441
441
|
size="mini"
|
|
442
442
|
clearable
|
|
443
|
-
style="width:
|
|
443
|
+
style="width: 130px"
|
|
444
444
|
>
|
|
445
|
-
<template slot="append">Days
|
|
445
|
+
<template slot="append">Days</template>
|
|
446
446
|
</el-input>
|
|
447
|
-
</el-form-item>
|
|
448
|
-
<el-form-item>
|
|
449
447
|
<el-input
|
|
450
|
-
v-model="form.
|
|
451
|
-
placeholder="Please enter balance"
|
|
448
|
+
v-model="form.depositPaymentForm"
|
|
452
449
|
size="mini"
|
|
453
450
|
clearable
|
|
454
|
-
|
|
451
|
+
placeholder="提示输入:after booking"
|
|
452
|
+
style="width: 170px"
|
|
455
453
|
>
|
|
456
|
-
<template slot="append">% balance</template>
|
|
457
454
|
</el-input>
|
|
455
|
+
</el-form-item>
|
|
456
|
+
<el-form-item label="" label-width="120px">
|
|
458
457
|
<el-input
|
|
459
|
-
|
|
460
|
-
v-model="form.balancePaymentType"
|
|
458
|
+
v-model="form.balance"
|
|
461
459
|
size="mini"
|
|
462
460
|
clearable
|
|
461
|
+
style="width: 200px"
|
|
463
462
|
>
|
|
464
|
-
<template slot="
|
|
463
|
+
<template slot="prepend">Balance</template>
|
|
464
|
+
<template slot="append">%</template>
|
|
465
465
|
</el-input>
|
|
466
|
+
|
|
466
467
|
<el-input
|
|
467
|
-
style="width: 30%"
|
|
468
468
|
v-model="form.balanceDays"
|
|
469
469
|
size="mini"
|
|
470
470
|
clearable
|
|
471
|
+
style="width: 130px"
|
|
471
472
|
>
|
|
472
473
|
<template slot="append">Days</template>
|
|
473
474
|
</el-input>
|
|
474
475
|
|
|
475
|
-
<el-
|
|
476
|
-
<el-
|
|
477
|
-
<el-
|
|
478
|
-
</el-
|
|
476
|
+
<el-select v-model="form.balancePaymentForm" clearable>
|
|
477
|
+
<el-option label="Before arrive" value="Before arrive"></el-option>
|
|
478
|
+
<el-option label="After arrival" value="After arrival"></el-option>
|
|
479
|
+
</el-select>
|
|
480
|
+
|
|
481
|
+
<el-row>
|
|
482
|
+
<el-input
|
|
483
|
+
style="width: 150px; margin-top: 15px"
|
|
484
|
+
v-model="form.balancePaymentType"
|
|
485
|
+
size="mini"
|
|
486
|
+
clearable
|
|
487
|
+
>
|
|
488
|
+
<template slot="append">paid</template>
|
|
489
|
+
</el-input>
|
|
490
|
+
</el-row>
|
|
491
|
+
<el-row>
|
|
492
|
+
<el-input v-model="form.otherPaymentTerm" size="mini" clearable>
|
|
493
|
+
</el-input>
|
|
494
|
+
</el-row>
|
|
479
495
|
</el-form-item>
|
|
480
496
|
|
|
481
497
|
<el-form-item label="Loading Country/Region">
|
|
@@ -709,6 +725,8 @@
|
|
|
709
725
|
placeholder="请输入标题"
|
|
710
726
|
></el-input>
|
|
711
727
|
<el-input
|
|
728
|
+
type="textarea"
|
|
729
|
+
autosize
|
|
712
730
|
style="width: 75%"
|
|
713
731
|
v-model="item.content"
|
|
714
732
|
placeholder="请输入内容"
|
|
@@ -1001,7 +1019,9 @@ export default {
|
|
|
1001
1019
|
confirmCompany(companyList, type) {
|
|
1002
1020
|
var company = companyList[0];
|
|
1003
1021
|
company.email =
|
|
1004
|
-
company.email && company.email.length > 0
|
|
1022
|
+
company.email && company.email.length > 0
|
|
1023
|
+
? company.email.join(",")
|
|
1024
|
+
: "";
|
|
1005
1025
|
company.phoneNumber =
|
|
1006
1026
|
company.phoneNumber && company.phoneNumber.length > 0
|
|
1007
1027
|
? company.phoneNumber[0]
|
|
@@ -208,12 +208,27 @@
|
|
|
208
208
|
{{ contract.freightTerms }}
|
|
209
209
|
</el-descriptions-item>
|
|
210
210
|
<el-descriptions-item label="Payment Terms">
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
211
|
+
<div
|
|
212
|
+
v-if="
|
|
213
|
+
contract.deposit &&
|
|
214
|
+
contract.depositDays &&
|
|
215
|
+
contract.depositPaymentForm &&
|
|
216
|
+
contract.balance &&
|
|
217
|
+
contract.balanceDays &&
|
|
218
|
+
contract.balancePaymentType &&
|
|
219
|
+
contract.balancePaymentForm
|
|
220
|
+
"
|
|
221
|
+
>
|
|
222
|
+
Deposit Ratio {{ contract.deposit }}%
|
|
223
|
+
{{ contract.depositDays }} Days
|
|
224
|
+
{{ contract.depositPaymentForm }} and {{ contract.balance }}%
|
|
225
|
+
balance {{ contract.balancePaymentType }} paid
|
|
226
|
+
{{ contract.balanceDays }} Days {{ contract.balancePaymentForm }}
|
|
227
|
+
{{ contract.otherPaymentTerm }}
|
|
228
|
+
</div>
|
|
229
|
+
<div v-else>
|
|
230
|
+
{{ contract.otherPaymentTerm }}
|
|
231
|
+
</div>
|
|
217
232
|
</el-descriptions-item>
|
|
218
233
|
<el-descriptions-item label="Price Fixing Option">
|
|
219
234
|
{{ contract.livePriceDays }} Days {{ contract.livePriceForm }} cargo
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: zhangpengwei 15038779532@163.com
|
|
3
3
|
* @Date: 2023-07-20 17:13:54
|
|
4
4
|
* @LastEditors: zhangpengwei 15038779532@163.com
|
|
5
|
-
* @LastEditTime: 2023-08-
|
|
5
|
+
* @LastEditTime: 2023-08-11 17:50:13
|
|
6
6
|
* @FilePath: /recycle-vue-ui再生博士后台管理/src/views/biz/contractTracing/contractTracingDetail.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
@@ -70,6 +70,8 @@ export default {
|
|
|
70
70
|
this.getContract(contractId);
|
|
71
71
|
const activeName = this.$route.query && this.$route.query.activeName;
|
|
72
72
|
this.activeName = activeName || "first";
|
|
73
|
+
localStorage.setItem("contractDetail", location.href)
|
|
74
|
+
location.href
|
|
73
75
|
},
|
|
74
76
|
mounted() {},
|
|
75
77
|
methods: {
|