Browse Source

申请解锁

Qukatie 1 month ago
parent
commit
93e96b9bf4
1 changed files with 36 additions and 8 deletions
  1. 36 8
      src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

+ 36 - 8
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -896,14 +896,42 @@ export default {
     },
     methods: {
         applyUnlock() {
-            this.$confirm('是否申请解锁?', '提示', {
-                confirmButtonText: '确定',
-                cancelButtonText: '取消',
-                type: 'warning'
-            }).then(() => {
-                this.submitLock({ srcId: this.form.id, businessType: 'HYCK' }).then(res => [
-                    this.$message.success('操作成功!')
-                ])
+            this.$DialogForm.show({
+                title: '申请解锁',
+                width: '30%',
+                menuPosition: 'right',
+                option: {
+                    submitText: '确认',
+                    emptyText: '取消',
+                    span: 24,
+                    column: [{
+                        label: "加锁类型",
+                        prop: "type",
+                        type: 'select',
+                        dicData: [
+                            {
+                                label: '整船',
+                                value: '整船',
+                            },
+                            {
+                                label: '单票',
+                                value: '单票',
+                            }
+                        ],
+                        dataType: 'string',
+                        span: 24,
+                    }]
+                },
+                beforeClose: (done) => {
+                    done()
+                },
+                callback: (res) => {
+                    console.log(res.data);
+                    this.submitLock({ srcId: this.form.id, businessType: 'HYCK', type: res.data.type }).then(res => [
+                        this.$message.success('操作成功!')
+                    ])
+                    res.close()
+                }
             })
         },
         inLock() {