Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
a7ac4581
Commit
a7ac4581
authored
Sep 22, 2021
by
季圣华
Browse files
给单据增加复制功能
parent
efb1e828
Changes
28
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/AllocationOutList.vue
View file @
a7ac4581
...
...
@@ -97,6 +97,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/AssembleList.vue
View file @
a7ac4581
...
...
@@ -97,6 +97,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/DisassembleList.vue
View file @
a7ac4581
...
...
@@ -97,6 +97,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/OtherInList.vue
View file @
a7ac4581
...
...
@@ -106,6 +106,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/OtherOutList.vue
View file @
a7ac4581
...
...
@@ -106,6 +106,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/PurchaseBackList.vue
View file @
a7ac4581
...
...
@@ -106,6 +106,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/PurchaseInList.vue
View file @
a7ac4581
...
...
@@ -108,6 +108,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/PurchaseOrderList.vue
View file @
a7ac4581
...
...
@@ -107,6 +107,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/RetailBackList.vue
View file @
a7ac4581
...
...
@@ -106,6 +106,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/RetailOutList.vue
View file @
a7ac4581
...
...
@@ -106,6 +106,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/SaleBackList.vue
View file @
a7ac4581
...
...
@@ -107,6 +107,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/SaleOrderList.vue
View file @
a7ac4581
...
...
@@ -108,6 +108,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/SaleOutList.vue
View file @
a7ac4581
...
...
@@ -109,6 +109,8 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleCopyAdd(record)"
>
复制
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => myHandleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
...
...
jshERP-web/src/views/bill/mixins/BillListMixin.js
View file @
a7ac4581
...
...
@@ -33,6 +33,12 @@ export const BillListMixin = {
this
.
$refs
.
modalForm
.
action
=
"
add
"
;
this
.
handleAdd
();
},
myHandleCopyAdd
(
record
)
{
this
.
$refs
.
modalForm
.
action
=
"
copyAdd
"
;
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
复制新增
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
},
myHandleEdit
(
record
)
{
if
(
record
.
status
===
'
0
'
)
{
this
.
$refs
.
modalForm
.
action
=
"
edit
"
;
...
...
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
a7ac4581
...
...
@@ -69,6 +69,16 @@ export const BillModalMixin = {
this
.
accountMoneyList
=
[]
this
.
manyAccountBtnStatus
=
false
},
copyAddInit
(
amountNum
)
{
getAction
(
'
/sequence/buildNumber
'
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
form
.
setFieldsValue
({
'
number
'
:
amountNum
+
res
.
data
.
defaultNumber
})
}
})
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
operTime
'
:
getNowFormatDateTime
()})
})
},
initSupplier
()
{
let
that
=
this
;
findBySelectSup
({}).
then
((
res
)
=>
{
...
...
jshERP-web/src/views/bill/modules/AllocationOutModal.vue
View file @
a7ac4581
...
...
@@ -165,6 +165,12 @@
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
url
,
params
,
this
.
materialTable
);
}
//复制新增单据-初始化单号和日期
if
(
this
.
action
===
'
copyAdd
'
)
{
this
.
model
.
id
=
''
this
.
model
.
tenantId
=
''
this
.
copyAddInit
(
this
.
prefixNo
)
}
this
.
initDepot
()
},
//提交单据时整理成formData
...
...
jshERP-web/src/views/bill/modules/AssembleModal.vue
View file @
a7ac4581
...
...
@@ -167,6 +167,12 @@
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
url
,
params
,
this
.
materialTable
);
}
//复制新增单据-初始化单号和日期
if
(
this
.
action
===
'
copyAdd
'
)
{
this
.
model
.
id
=
''
this
.
model
.
tenantId
=
''
this
.
copyAddInit
(
this
.
prefixNo
)
}
this
.
initDepot
()
},
//提交单据时整理成formData
...
...
jshERP-web/src/views/bill/modules/DisassembleModal.vue
View file @
a7ac4581
...
...
@@ -166,6 +166,12 @@
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
url
,
params
,
this
.
materialTable
);
}
//复制新增单据-初始化单号和日期
if
(
this
.
action
===
'
copyAdd
'
)
{
this
.
model
.
id
=
''
this
.
model
.
tenantId
=
''
this
.
copyAddInit
(
this
.
prefixNo
)
}
this
.
initDepot
()
},
//提交单据时整理成formData
...
...
jshERP-web/src/views/bill/modules/OtherInModal.vue
View file @
a7ac4581
...
...
@@ -173,6 +173,12 @@
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
url
,
params
,
this
.
materialTable
);
}
//复制新增单据-初始化单号和日期
if
(
this
.
action
===
'
copyAdd
'
)
{
this
.
model
.
id
=
''
this
.
model
.
tenantId
=
''
this
.
copyAddInit
(
this
.
prefixNo
)
}
this
.
initSupplier
()
this
.
initDepot
()
},
...
...
jshERP-web/src/views/bill/modules/OtherOutModal.vue
View file @
a7ac4581
...
...
@@ -173,6 +173,12 @@
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
url
,
params
,
this
.
materialTable
);
}
//复制新增单据-初始化单号和日期
if
(
this
.
action
===
'
copyAdd
'
)
{
this
.
model
.
id
=
''
this
.
model
.
tenantId
=
''
this
.
copyAddInit
(
this
.
prefixNo
)
}
this
.
initCustomer
()
this
.
initDepot
()
},
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment