doctor-admin-components 1.0.14-beta.7 → 1.0.14-beta.71
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/README.md +4 -1
- package/package.json +1 -1
- package/packages/index.js +14 -3
- package/packages/src/api/biz/bizContract.js +36 -9
- package/packages/src/api/biz/bizShipment.js +30 -1
- package/packages/src/i18n/zh-CN/message.json +1 -1
- package/packages/src/index.js +18 -2
- package/packages/src/utils/index.js +1 -1
- package/packages/src/utils/zip.js +29 -11
- package/packages/src/views/biz/bizFileInfo/contract.vue +510 -420
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +9 -7
- package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +25 -10
- package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +11 -3
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +11 -5
- package/packages/src/views/biz/bizShipment/add.vue +67 -38
- package/packages/src/views/biz/contractTracing/billInfo.vue +17 -9
- package/packages/src/views/biz/contractTracing/changrLogList.vue +67 -0
- package/packages/src/views/biz/contractTracing/companyBanks.vue +19 -8
- package/packages/src/views/biz/contractTracing/contractClause.vue +356 -0
- package/packages/src/views/biz/contractTracing/contractClauseComponenrts/TextContent.vue +53 -0
- package/packages/src/views/biz/contractTracing/contractPdf.vue +16 -175
- package/packages/src/views/biz/contractTracing/contractSummary.vue +101 -73
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +5 -77
- package/packages/src/views/biz/contractTracing/editBill.vue +35 -27
- package/packages/src/views/biz/contractTracing/info.vue +363 -0
- package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +5 -2
- package/packages/src/views/biz/contractTracing/queryDeductionRecords.vue +103 -0
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +361 -79
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmountEditDialog.vue +176 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
3
|
+
* @Date: 2024-08-19 15:46:00
|
|
4
|
+
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
+
* @LastEditTime: 2024-08-22 15:26:39
|
|
6
|
+
* @FilePath: /doctor-admin-components 公共组件/packages/src/views/biz/contractTracing/shipmentPurchaseAmountEditDialog.vue
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<el-dialog
|
|
11
|
+
:title="title"
|
|
12
|
+
v-if="dialogVisible"
|
|
13
|
+
:visible.sync="dialogVisible"
|
|
14
|
+
width="40%"
|
|
15
|
+
style="margin-top: 30vh"
|
|
16
|
+
:modal="false"
|
|
17
|
+
:before-close="handleClose">
|
|
18
|
+
<div>
|
|
19
|
+
<el-form ref="form" :model="form" label-width="200px">
|
|
20
|
+
<div v-if="prop == 'purchaseActualTotalAmount'">
|
|
21
|
+
<div>
|
|
22
|
+
由于
|
|
23
|
+
</div>
|
|
24
|
+
<el-input
|
|
25
|
+
type="textarea"
|
|
26
|
+
placeholder="请详细说明是什么业务场景导致系统无法自动计算?"
|
|
27
|
+
:autosize="{ minRows: 2, maxRows: 4}"
|
|
28
|
+
v-model="changeReason"/>
|
|
29
|
+
</div>
|
|
30
|
+
<div v-if="prop == 'purchaseActualTotalAmount'" style="margin:20px 0">
|
|
31
|
+
需要将采购总金额由$ <span style="color:#1890ff">{{ currentVal }}</span> 直接改成
|
|
32
|
+
</div>
|
|
33
|
+
<el-form-item :label="label">
|
|
34
|
+
<el-input v-decimal="decimal" v-model="form.vlaue" placeholder="请输入">
|
|
35
|
+
<template slot="prepend" v-if="unitPostion == 'pre'">{{ unit }}</template>
|
|
36
|
+
<template slot="append" v-if="unitPostion == 'append'">{{ unit }}</template>
|
|
37
|
+
</el-input>
|
|
38
|
+
</el-form-item>
|
|
39
|
+
</el-form>
|
|
40
|
+
</div>
|
|
41
|
+
<span slot="footer" class="dialog-footer">
|
|
42
|
+
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
43
|
+
<el-button type="primary" @click="confirm">确 定</el-button>
|
|
44
|
+
</span>
|
|
45
|
+
</el-dialog>
|
|
46
|
+
|
|
47
|
+
</template>
|
|
48
|
+
<script>
|
|
49
|
+
import { containerEditBatch, updateBizShipment } from '../../../api/biz/bizShipment'
|
|
50
|
+
import { MessageBox } from 'element-ui'
|
|
51
|
+
|
|
52
|
+
export default {
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
dialogVisible: false,
|
|
56
|
+
title: '',
|
|
57
|
+
label:'',
|
|
58
|
+
form: {
|
|
59
|
+
vlaue:''
|
|
60
|
+
},
|
|
61
|
+
type:0,
|
|
62
|
+
prop:'',
|
|
63
|
+
info:{},
|
|
64
|
+
unit:'',
|
|
65
|
+
unitPostion:'pre',
|
|
66
|
+
changeReason:null,
|
|
67
|
+
currentVal:null,
|
|
68
|
+
decimal:0
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
confirm() {
|
|
74
|
+
if(!this.form.vlaue) {
|
|
75
|
+
this.$message({
|
|
76
|
+
message: '请输入修改内容',
|
|
77
|
+
type: 'warning'
|
|
78
|
+
});
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
// table内容修改净重 修改单价
|
|
82
|
+
if(this.type == 1) {
|
|
83
|
+
let info = {
|
|
84
|
+
containerId: this.info.containerId,
|
|
85
|
+
containerDetailId: this.info.containerDetailId
|
|
86
|
+
}
|
|
87
|
+
info[this.prop] = this.form.vlaue;
|
|
88
|
+
|
|
89
|
+
containerEditBatch([info]).then(res => {
|
|
90
|
+
this.$message({
|
|
91
|
+
message: '修改成功',
|
|
92
|
+
type: 'success'
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
this.$emit('refresh');
|
|
96
|
+
this.dialogVisible = false;
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
// shipment信息修改
|
|
100
|
+
if(this.type == 2) {
|
|
101
|
+
let info = {
|
|
102
|
+
shipmentId: this.info.shipmentId,
|
|
103
|
+
}
|
|
104
|
+
info[this.prop] = this.form.vlaue;
|
|
105
|
+
if(this.changeReason) {
|
|
106
|
+
info.changeReason = this.changeReason;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
updateBizShipment(info).then(res => {
|
|
110
|
+
if(this.prop == 'purchaseDepositContainerNumber') {
|
|
111
|
+
this.$message({
|
|
112
|
+
message: '修改成功',
|
|
113
|
+
type: 'success'
|
|
114
|
+
});
|
|
115
|
+
this.$emit('refresh');
|
|
116
|
+
MessageBox.confirm('您修改了总柜数,系统的计算的扣减定金将不再准确,请您手动修正本次扣减定金', '', {
|
|
117
|
+
confirmButtonText: '我知道了',
|
|
118
|
+
cancelButtonText: '取消',
|
|
119
|
+
type: 'warning'
|
|
120
|
+
})
|
|
121
|
+
.then(() => {
|
|
122
|
+
this.dialogVisible = false;
|
|
123
|
+
})
|
|
124
|
+
.catch(() => {
|
|
125
|
+
this.dialogVisible = false;
|
|
126
|
+
})
|
|
127
|
+
} else {
|
|
128
|
+
this.$message({
|
|
129
|
+
message: '修改成功',
|
|
130
|
+
type: 'success'
|
|
131
|
+
});
|
|
132
|
+
this.$emit('refresh');
|
|
133
|
+
this.dialogVisible = false;
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
handlerOpen(info, type, textInfo, prop) {
|
|
139
|
+
this.title = textInfo.title;
|
|
140
|
+
this.label = textInfo.label;
|
|
141
|
+
this.unit = textInfo.unit;
|
|
142
|
+
this.type = type;
|
|
143
|
+
this.prop = prop;
|
|
144
|
+
this.info = info;
|
|
145
|
+
this.form.vlaue = info[prop];
|
|
146
|
+
this.changeReason = null;
|
|
147
|
+
this.currentVal = null;
|
|
148
|
+
|
|
149
|
+
if(prop == 'purchaseActualTotalAmount') {
|
|
150
|
+
this.currentVal = info[prop];
|
|
151
|
+
this.form.vlaue = null
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if(this.unit == 'MT' || this.unit == '柜') {
|
|
155
|
+
this.unitPostion = 'append'
|
|
156
|
+
if(this.unit == 'MT') {
|
|
157
|
+
this.decimal = 3
|
|
158
|
+
} else {
|
|
159
|
+
this.decimal = 0
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if(this.unit == '$') {
|
|
164
|
+
this.unitPostion = 'pre'
|
|
165
|
+
this.decimal = 2
|
|
166
|
+
}
|
|
167
|
+
this.dialogVisible = true;
|
|
168
|
+
},
|
|
169
|
+
handleClose(done) {
|
|
170
|
+
this.dialogVisible = false;
|
|
171
|
+
done();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
</script>
|