master
lion 1 week ago
parent 6ab5ebf42e
commit d5dd4b7051

@ -1065,6 +1065,12 @@ export default {
color: #666;
}
.menu-list {
width: 100%;
height: calc(100vh - 0px);
min-height: 100%;
}
@media print {
.white-container {
padding: 0;

@ -886,6 +886,26 @@
<printFundApproval ref="printFundApproval" />
<printPaymentForm ref="printPaymentForm" />
<!-- 编辑供应商弹窗 -->
<Modal
v-model="isShowSupplyDialog"
title="编辑供应商/服务商"
@on-ok="submitSupply"
@on-cancel="cancelSupplyDialog"
>
<div style="padding: 20px 0;">
<div style="margin-bottom: 15px;">
<span style="display: inline-block; width: 100px; text-align: right; margin-right: 10px;">供应商/服务商</span>
<Input
v-model="editingSupplyValue"
placeholder="请输入供应商/服务商"
style="width: 300px;"
@on-enter="submitSupply"
/>
</div>
</div>
</Modal>
<!-- OA流程流水号弹窗 -->
<Modal
v-model="isShowFlowDialog"
@ -1554,7 +1574,24 @@ export default {
label: '供应商/服务商',
width: 220,
prop: 'supply',
align: 'left'
align: 'left',
customFn: (row) => {
return (
<div style="display: flex; align-items: center; justify-content: space-between;">
<span style="flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
{row.supply || '-'}
</span>
<i
class="el-icon-edit"
style="cursor: pointer; color: #409EFF; margin-left: 5px; flex-shrink: 0;"
on-click={(e) => {
e.stopPropagation()
this.openSupplyDialog(row)
}}
/>
</div>
)
}
},
{
label: '业务科室',
@ -1780,7 +1817,9 @@ export default {
flowId: '', //
flowStatus: 0, // : 0, 1
oatoken: '', // OA token
isShowSupplyDialog: false, //
editingSupplyRow: null, //
editingSupplyValue: '', //
isShowEditor: false,
contractTypes: [
{ label: '设备采购', value: 'equipment' },
@ -2688,6 +2727,46 @@ export default {
this.flowId = ''
this.flowStatus = 0
},
//
openSupplyDialog(row) {
this.editingSupplyRow = row
this.editingSupplyValue = row.supply || ''
this.isShowSupplyDialog = true
},
//
cancelSupplyDialog() {
this.isShowSupplyDialog = false
this.editingSupplyRow = null
this.editingSupplyValue = ''
},
//
async submitSupply() {
if (!this.editingSupplyRow || !this.editingSupplyRow.id) {
return
}
try {
await editorContract({
id: this.editingSupplyRow.id,
supply: this.editingSupplyValue || ''
})
Message({
type: 'success',
message: '保存成功'
})
//
this.editingSupplyRow.supply = this.editingSupplyValue
//
this.cancelSupplyDialog()
//
this.getContracts()
} catch (error) {
console.error('保存供应商失败:', error)
Message({
type: 'error',
message: '保存失败,请重试'
})
}
},
// OA
async submitFlowId() {
if (!this.flowId || !this.flowId.trim()) {

Loading…
Cancel
Save