Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 39289994
authored
Sep 26, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor(purchase): 移除注释代码并优化组件属性格式
清理两个采购相关组件中的注释代码,同时优化多行组件属性的格式以提高可读性
1 parent
80780806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
37 deletions
src/views/purchase/factoryPurchaseAndDelivery.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/purchase/factoryPurchaseAndDelivery.vue
View file @
3928999
...
@@ -25,8 +25,7 @@
...
@@ -25,8 +25,7 @@
</el-button>
</el-button>
</span>
-->
</span>
-->
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"purchaseAndDeliveryTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
<d2-table
ref=
"purchaseAndDeliveryTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 查看 -->
<!-- 查看 -->
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.deliveryStatus != 1"
>
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.deliveryStatus != 1"
>
...
@@ -51,8 +50,7 @@
...
@@ -51,8 +50,7 @@
</d2-table>
</d2-table>
</div>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:record-info=
"paramsObj"
></orderDeatilDialog>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:record-info=
"paramsObj"
></orderDeatilDialog>
<EditOrderDialog
v-if=
"editVisible"
:page=
"'factory'"
:visible
.
sync=
"editVisible"
:params-obj=
"dialogData"
<EditOrderDialog
v-if=
"editVisible"
:page=
"'factory'"
:visible
.
sync=
"editVisible"
:params-obj=
"dialogData"
@
editClose=
"editClose"
>
@
editClose=
"editClose"
>
</EditOrderDialog>
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog
:is-show
.
sync=
"rejectVisible"
:dialog-config=
"rejectConfig.config"
@
handleClick=
"handleRejectConfirm"
>
<baseDialog
:is-show
.
sync=
"rejectVisible"
:dialog-config=
"rejectConfig.config"
@
handleClick=
"handleRejectConfirm"
>
...
@@ -61,8 +59,7 @@
...
@@ -61,8 +59,7 @@
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
:rows=
"3"
show-word-limit
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
:rows=
"3"
show-word-limit
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
3928999
...
@@ -302,7 +302,6 @@ export default {
...
@@ -302,7 +302,6 @@ export default {
}
}
],
],
getListApi
:
getPurchaseOrderShipmentList
,
getListApi
:
getPurchaseOrderShipmentList
,
// getListApi: getPurchaseOrderList,
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
@@ -524,13 +523,6 @@ export default {
...
@@ -524,13 +523,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
getCategory
()
this
.
getCategory
()
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
// getMerchantList({}).then((res) => {
// const opt = {
// merchantNo: "",
// merchantName: "全部"
// }
// res.unshift(opt)
// })
},
},
methods
:
{
methods
:
{
...
@@ -560,29 +552,6 @@ export default {
...
@@ -560,29 +552,6 @@ export default {
})
})
}
}
},
},
// getBaseData(res) {
// const allOpt = {
// id: "",
// label: "全部"
// }
// this.baseData = {
// defaultDeliveryStatusOptions: deepClone(defaultDeliveryStatusOptions),
// defaultPutStatusOptions: deepClone(defaultPutStatusOptions),
// purchasingPatternOptions: deepClone(purchasingPatternOptions),
// defaultStatusOptionsForTable: deepClone(defaultStatusOptionsForTable),
// distributionStatusOptions: deepClone(distributionStatusOptions)
// }
// this.showFormData.forEach((item, index) => {
// if (item.type === "select" && this.baseData[item.optionsName]) {
// this.baseData[item.optionsName].unshift(allOpt)
// this.$set(
// this.showFormData[index],
// "optionList",
// this.baseData[item.optionsName]
// )
// }
// })
// },
getCategory
()
{
getCategory
()
{
// 获取全部类目 屏蔽服务商自建类目
// 获取全部类目 屏蔽服务商自建类目
getAllCategory
({
categoryTypeList
:
this
.
selfBuildGoodsType
,
pageSize
:
9999
,
currentPage
:
1
}).
then
(
res
=>
{
getAllCategory
({
categoryTypeList
:
this
.
selfBuildGoodsType
,
pageSize
:
9999
,
currentPage
:
1
}).
then
(
res
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment