Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mes
mes-ui
Commits
faf27a32
Commit
faf27a32
authored
Feb 20, 2024
by
jzc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-ui
into dev
parents
d8297f26
2394c5ec
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
252 additions
and
54 deletions
+252
-54
factoryQuote.js
src/api/mes/od/factoryQuote.js
+0
-0
index.vue
src/components/ClientSelector/index.vue
+108
-0
Account.vue
src/views/mes/md/client/components/Account.vue
+4
-2
ClientItem.vue
src/views/mes/md/client/components/ClientItem.vue
+95
-8
index.vue
src/views/mes/md/client/index.vue
+7
-5
OrderSync.vue
src/views/mes/order/sales/OrderSync.vue
+5
-21
index.vue
src/views/mes/order/salesdetail/index.vue
+31
-16
index.vue
src/views/mes/qt/factoryQuote/index.vue
+1
-1
vue.config.js
vue.config.js
+1
-1
No files found.
src/api/mes/
qt
/factoryQuote.js
→
src/api/mes/
od
/factoryQuote.js
View file @
faf27a32
File moved
src/components/ClientSelector/index.vue
0 → 100644
View file @
faf27a32
<
template
>
<el-dialog
title=
"客户选择"
:visible
.
sync=
"showFlag"
modal
width=
"80%"
center
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline
label-width=
"68px"
>
<el-form-item
label=
"客户编码"
prop=
"clientCode"
>
<el-input
v-model=
"queryParams.clientCode"
placeholder=
"请输入客户编码"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"客户名称"
prop=
"clientName"
>
<el-input
v-model=
"queryParams.clientName"
placeholder=
"请输入客户名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"客户简称"
prop=
"clientNick"
>
<el-input
v-model=
"queryParams.clientNick"
placeholder=
"请输入客户简称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"英文名称"
prop=
"clientEn"
>
<el-input
v-model=
"queryParams.clientEn"
placeholder=
"请输入客户英文名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label-width=
"0"
>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"loading"
:data=
"list"
ref=
"multipleTable"
@
select-all=
"onSelectAll"
@
select=
"onSelect"
@
row-dblclick=
"handleRowDbClick"
>
<el-table-column
type=
"selection"
/>
<el-table-column
label=
"客户编码"
prop=
"clientCode"
/>
<el-table-column
label=
"客户名称"
width=
"150px"
prop=
"clientName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"客户简称"
prop=
"clientNick"
/>
<el-table-column
label=
"客户类型"
prop=
"clientType"
>
<dict-tag
slot-scope=
"
{row}" :options="dict.type['mes_client_type']" :value="row.clientType"/>
</el-table-column>
<el-table-column
label=
"客户电话"
prop=
"tel"
/>
<el-table-column
label=
"联系人"
prop=
"contact1"
/>
<el-table-column
label=
"联系人-电话"
prop=
"contact1Tel"
/>
<el-table-column
label=
"是否启用"
prop=
"enableFlag"
>
<dict-tag
slot-scope=
"
{row}" :options="dict.type['sys_yes_no']" :value="row.enableFlag"/>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<div
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"confirmSelect"
>
确 定
</el-button>
<el-button
@
click=
"showFlag = false"
>
取 消
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
{
listClient
}
from
'@/api/mes/md/client'
export
default
{
name
:
'ClientSelector'
,
dicts
:
[
'sys_yes_no'
,
'mes_client_type'
],
data
()
{
return
{
showFlag
:
false
,
loading
:
false
,
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
},
total
:
0
,
list
:
[],
selectedRows
:
null
}
},
created
()
{
this
.
getList
()
},
methods
:
{
/** 查询物料编码列表 */
getList
()
{
this
.
loading
=
true
listClient
(
this
.
queryParams
).
then
(
response
=>
{
this
.
list
=
response
.
rows
this
.
total
=
response
.
total
}).
finally
(()
=>
this
.
loading
=
false
)
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
this
.
getList
()
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
'queryForm'
)
this
.
handleQuery
()
},
onSelect
(
rows
,
row
)
{
this
.
$refs
.
multipleTable
.
clearSelection
()
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
)
this
.
selectedRows
=
row
},
onSelectAll
()
{
this
.
$refs
.
multipleTable
.
clearSelection
()
this
.
selectedRows
=
null
},
handleRowDbClick
(
row
)
{
if
(
row
)
{
this
.
selectedRows
=
row
this
.
$emit
(
'onSelected'
,
this
.
selectedRows
)
this
.
showFlag
=
false
}
},
//确定选中
confirmSelect
()
{
if
(
!
this
.
selectedRows
)
{
return
this
.
$notify
({
title
:
'提示'
,
type
:
'warning'
,
message
:
'请至少选择一条数据!'
})
}
this
.
$emit
(
'onSelected'
,
this
.
selectedRows
)
this
.
showFlag
=
false
}
}
}
</
script
>
src/views/mes/md/client/components/Account.vue
View file @
faf27a32
...
...
@@ -128,12 +128,14 @@
<
script
>
import
{
addAccount
,
delAccount
,
getAccount
,
pageAccount
,
updateAccount
}
from
'@/api/mes/md/clientAccount'
import
{
number
}
from
"echarts/lib/export"
;
export
default
{
name
:
'Account'
,
dicts
:
[
'sys_yes_no'
],
props
:
{
clientCode
:
{
type
:
String
|
undefined
,
default
:
undefined
},
clientId
:
{
type
:
number
|
null
,
default
:
null
}
},
data
()
{
return
{
...
...
@@ -159,7 +161,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
clientCode
:
this
.
clientCode
,
bank
:
null
,
bankAccount
:
null
,
accountName
:
null
,
enableFlag
:
null
clientCode
:
this
.
clientCode
,
bank
:
null
,
bankAccount
:
null
,
accountName
:
null
,
enableFlag
:
null
,
clientId
:
this
.
clientId
},
// 表单参数
form
:
{},
...
...
@@ -268,7 +270,7 @@ export default {
},
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'md/
a
ccount/export'
,
{
this
.
download
(
'md/
mdClientA
ccount/export'
,
{
...
this
.
queryParams
},
`account_
${
new
Date
().
getTime
()}
.xlsx`
)
},
...
...
src/views/mes/md/client/components/ClientItem.vue
View file @
faf27a32
...
...
@@ -8,7 +8,6 @@
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
:disabled=
"!queryParams.clientId"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
...
...
@@ -31,12 +30,31 @@
@
click=
"handleDelete"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"info"
plain
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"handleImport"
>
导入
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"itemList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
label=
"产品"
prop=
"itemName"
/>
<el-table-column
label=
"产品编码"
prop=
"itemCode"
/>
<el-table-column
label=
"客户产品名称"
prop=
"clientItemName"
/>
<el-table-column
label=
"客户产品编码"
prop=
"clientItemCode"
/>
<el-table-column
label=
"操作"
width=
"120"
>
...
...
@@ -53,6 +71,8 @@
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -86,18 +106,65 @@
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
<!-- 产品对照组导入对话框 -->
<el-dialog
:title=
"upload.title"
:visible
.
sync=
"upload.open"
width=
"400px"
append-to-body
>
<el-upload
ref=
"upload"
:limit=
"1"
accept=
".xlsx, .xls"
:headers=
"upload.headers"
:action=
"upload.url + '?updateSupport=' + upload.updateSupport"
:disabled=
"upload.isUploading"
:on-progress=
"handleFileUploadProgress"
:on-success=
"handleFileSuccess"
:auto-upload=
"false"
drag
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
class=
"el-upload__tip text-center"
slot=
"tip"
>
<div
class=
"el-upload__tip"
slot=
"tip"
>
<el-checkbox
v-model=
"upload.updateSupport"
/>
是否更新已经存在的用户数据
</div>
<span>
仅允许导入xls、xlsx格式文件。
</span>
<el-link
type=
"primary"
:underline=
"false"
style=
"font-size: 12px; vertical-align: baseline"
@
click=
"importTemplate"
>
下载模板
</el-link
>
</div>
</el-upload>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitFileForm"
>
确 定
</el-button>
<el-button
@
click=
"upload.open = false"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
addItem
,
delItem
,
getItem
,
listItem
,
updateItem
}
from
'@/api/mes/md/clientItem'
import
{
listClient
}
from
'@/api/mes/md/client'
import
ItemSelect
from
'@/components/itemSelect/single.vue'
import
{
getToken
}
from
"@/utils/auth"
;
import
{
number
}
from
"echarts/lib/export"
;
export
default
{
components
:
{
ItemSelect
},
props
:
{
clientCode
:
{
type
:
String
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
// 遮罩层
...
...
@@ -122,7 +189,19 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
clientId
:
null
,
itemId
:
null
,
clientItemName
:
null
,
clientItemCode
:
null
,},
clientCode
:
this
.
clientCode
,
itemId
:
null
,
clientItemName
:
null
,
clientItemCode
:
null
,
},
//用户导入参数
upload
:
{
open
:
false
,
title
:
""
,
isUploading
:
false
,
updateSupport
:
0
,
// 设置上传的请求头部
headers
:
{
Authorization
:
"Bearer "
+
getToken
()
},
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/md/clientItem/importData"
,
},
// 表单参数
form
:
{},
clientList
:
[],
...
...
@@ -150,7 +229,7 @@ export default {
reset
()
{
this
.
form
=
{
id
:
null
,
client
Id
:
null
,
client
Code
:
null
,
itemId
:
null
,
clientItemName
:
null
,
clientItemCode
:
null
,
...
...
@@ -171,6 +250,17 @@ export default {
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
/** 导入按钮操作 */
handleImport
()
{
this
.
upload
.
title
=
"产品对照组导入"
;
this
.
upload
.
open
=
true
;
},
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'md/clientItem/export'
,
{
...
this
.
queryParams
},
`client_
${
new
Date
().
getTime
()}
.xlsx`
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
...
...
@@ -190,8 +280,6 @@ export default {
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
form
.
clientId
=
this
.
queryParams
.
clientId
||
0
if
(
!
this
.
form
.
clientId
)
return
this
.
open
=
true
;
this
.
title
=
"添加客户产品对照"
;
},
...
...
@@ -237,8 +325,7 @@ export default {
},
init
(
form
)
{
this
.
queryParams
.
clientId
=
form
.
clientId
||
0
console
.
log
(
form
)
this
.
queryParams
.
clientCode
=
form
.
clientCode
||
0
this
.
getList
();
},
}
...
...
src/views/mes/md/client/index.vue
View file @
faf27a32
...
...
@@ -243,19 +243,19 @@
<FinanceInfo ref="FinanceInfo" :form="form"/>
</el-tab-pane>-->
<el-tab-pane
label=
"客户联系人"
name=
"ClientContact"
>
<ClientContact
ref=
"ClientContact"
:clientCode=
"form.clientCode"
/>
<ClientContact
ref=
"ClientContact"
:clientCode=
"form.clientCode"
:clientId=
"form.clientId"
/>
</el-tab-pane>
<el-tab-pane
label=
"银行账号"
name=
"Account"
>
<Account
ref=
"Account"
:clientCode=
"form.clientCode"
/>
<Account
ref=
"Account"
:clientCode=
"form.clientCode"
:clientId=
"form.clientId"
/>
</el-tab-pane>
<el-tab-pane
label=
"产品对照"
name=
"ClientItem"
>
<ClientItem
ref=
"ClientItem"
/>
</el-tab-pane>
<el-tab-pane
label=
"催货款通知邮箱"
name=
"UrgeEmail"
>
<UrgeEmail
ref=
"UrgeEmail"
:clientCode=
"form.clientCode"
/>
<UrgeEmail
ref=
"UrgeEmail"
:clientCode=
"form.clientCode"
:clientId=
"form.clientId"
/>
</el-tab-pane>
<el-tab-pane
label=
"客户关联关系"
name=
"PaymentRelation"
>
<PaymentRelation
ref=
"PaymentRelation"
:clientCode=
"form.clientCode"
/>
<PaymentRelation
ref=
"PaymentRelation"
:clientCode=
"form.clientCode"
:clientId=
"form.clientId"
/>
</el-tab-pane>
<el-tab-pane
label=
"SAP特性"
name=
"SapProperty"
>
<SapPropertyData
ref=
"SapProperty"
/>
...
...
@@ -294,6 +294,8 @@ export default {
},
data
()
{
return
{
//单选框组的默认选项
radio
:
'是'
,
//自动生成编码
activeName
:
'BaseInfo'
,
autoGenFlag
:
true
,
...
...
@@ -534,7 +536,7 @@ export default {
},
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'md/client/export'
,
{
this
.
download
(
'm
es/m
d/client/export'
,
{
...
this
.
queryParams
},
`client_
${
new
Date
().
getTime
()}
.xlsx`
)
},
...
...
src/views/mes/order/sales/OrderSync.vue
View file @
faf27a32
...
...
@@ -34,27 +34,11 @@ export default {
this
.
$confirm
(
"确定同步该条数据记录"
).
then
(()
=>
{
if
(
this
.
loading
)
return
this
.
loading
=
true
this
.
sapInfo
.
ITEM
.
forEach
(
item
=>
{
if
(
!
item
.
MATNR
)
this
.
$message
.
error
(
"物料编号不能为空"
)
if
(
!
item
.
WERKS
)
this
.
$message
.
error
(
"工厂不能为空 不能为空"
)
if
(
!
item
.
VSTEL
)
this
.
$message
.
error
(
"装运点/收货点 不能为空"
)
if
(
!
item
.
EDATU
)
this
.
$message
.
error
(
"计划行日期 不能为空"
)
if
(
!
item
.
ZINCSUM
)
this
.
$message
.
error
(
"指令数(客户)汇总 不能为空"
)
if
(
!
item
.
SIZE
[
0
].
ZSIZE_NUM
)
this
.
$message
.
error
(
"SIZE 序号 不能为空"
)
if
(
!
item
.
SIZE
[
0
].
ZSIZE
)
this
.
$message
.
error
(
"SIZE 序号 尺码"
)
if
(
!
item
.
SIZE
[
0
].
ZINSNUM
)
this
.
$message
.
error
(
"指令数(客户) 尺码"
)
})
this
.
$refs
.
sapInfo
.
validate
(
valid
=>
{
if
(
valid
)
{
syncSapData
(
this
.
sapInfo
).
then
(()
=>
{
this
.
onGoBack
()
this
.
$message
.
success
(
"操作成功"
)
}).
finally
(()
=>
this
.
loading
=
false
)
}
else
{
this
.
loading
=
false
this
.
$message
.
error
(
"请检查表单"
)
}
})
let
sapForm
=
this
.
$refs
.
sapForm
.
sapForm
syncSapData
(
sapForm
).
then
(()
=>
{
this
.
onGoBack
()
this
.
$message
.
success
(
"操作成功"
)
}).
finally
(()
=>
this
.
loading
=
false
)
})
},
...
...
src/views/mes/order/salesdetail/index.vue
View file @
faf27a32
...
...
@@ -7,9 +7,9 @@
<el-button
type=
"primary"
size=
"mini"
:loading=
"loading"
@
click=
"onEdit"
>
提交
</el-button>
</div>
</div>
<div
class=
"page-body"
>
<div
class=
"page-body
clearfix
"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"120px"
size=
"mini"
>
<el-row
:gutter=
"10"
>
<el-row
class=
"form-row"
:gutter=
"10"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"订单编号"
prop=
"orderNo"
>
<el-input
v-model=
"form.orderNo"
placeholder=
"请输入 订单编号"
clearable
style=
"width: calc(100% - 90px);"
/>
...
...
@@ -59,17 +59,11 @@
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"客户编号"
prop=
"clientNo"
>
<el-select
v-model=
"form.clientId"
class=
"form-item"
placeholder=
"请选择 客户"
clearable
filterable
remote
:remote-method=
"getClientList"
>
<el-option
v-for=
"item in clientList"
:key=
"item.clientId"
:value=
"item.clientId"
:label=
"item.clientCode"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"客户名称"
prop=
"clientId"
>
<el-select
v-model=
"form.clientId"
class=
"form-item"
placeholder=
"请选择 客户"
clearable
filterable
remote
:remote-method=
"getClientList"
>
<el-option
v-for=
"item in clientList"
:key=
"item.clientId"
:value=
"item.clientId"
:label=
"item.clientName"
/>
</el-select>
<el-form-item
label=
"客户名称"
prop=
"clientNo"
>
<el-input
v-model=
"form.clientName"
readonly
placeholder=
"请选择客户"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"$refs['ClientSelector'].showFlag = true"
/>
</el-input>
<ClientSelector
ref=
"ClientSelector"
@
onSelected=
"onSelectClient"
/>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
...
...
@@ -200,7 +194,7 @@
<el-table-column
label=
"产品编码"
prop=
"itemNo"
show-overflow-tooltip
/>
<el-table-column
label=
"产品名称"
prop=
"itemName"
show-overflow-tooltip
/>
<el-table-column
label=
"总数量"
prop=
"totalNum"
show-overflow-tooltip
/>
<el-table-column
label=
"loss
数量"
prop=
"lossNum"
show-overflow-tooltip
/>
<el-table-column
label=
"loss
%"
prop=
"lossNum"
/>
<el-table-column
label=
"数量"
prop=
"num"
show-overflow-tooltip
/>
<el-table-column
label=
"单价"
:formatter=
"r => this.formatMoney(r.price)"
show-overflow-tooltip
/>
<!--
<el-table-column
label=
"装运点"
prop=
"shipmentPointNo"
show-overflow-tooltip
/>
...
...
@@ -281,7 +275,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
prop=
""
label=
"loss
数量
"
>
<el-form-item
prop=
""
label=
"loss
%
"
>
<el-input
v-model=
"itemForm.lossNum"
placeholder=
""
clearable
/>
</el-form-item>
</el-col>
...
...
@@ -558,15 +552,18 @@
<
script
>
import
{
addOrder
,
getOrder
,
updateOrder
}
from
'@/api/mes/od/salesOrder'
import
{
getFactoryQuote
}
from
'@/api/mes/od/factoryQuote'
import
{
getSalesOrder
}
from
'@/api/mes/od/purchaseOrder'
import
{
listUser
}
from
'@/api/system/user'
import
{
listClient
}
from
'@/api/mes/md/client'
import
ItemSelect
from
'@/components/itemSelect/single.vue'
import
ClientSelector
from
'@/components/ClientSelector'
import
{
genCode
}
from
'@/api/system/autocode/rule'
export
default
{
components
:
{
ItemSelect
ItemSelect
,
ClientSelector
,
},
dicts
:
[
'sales_order_state'
],
computed
:
{
...
...
@@ -774,14 +771,28 @@ export default {
this
.
showEditDetail
=
true
this
.
$refs
.
itemForm
&&
this
.
$refs
.
itemForm
.
resetFields
()
this
.
itemForm
=
item
||
{
itemName
:
null
,
itemNo
:
null
,
num
:
null
,
amount
:
null
,
state
:
null
,
specList
:
[]
}
this
.
itemForm
.
lossPercent
=
(
item
.
lossNum
/
item
.
totalNum
*
100
).
toFixed
(
2
)
this
.
itemForm
.
index
=
$index
},
onSelectClient
(
row
)
{
if
(
row
!=
undefined
)
{
this
.
form
.
clientId
=
row
.
clientId
;
this
.
form
.
clientCode
=
row
.
clientCode
;
this
.
form
.
clientName
=
row
.
clientName
;
this
.
form
.
sapClientCode
=
row
.
sapClientCode
;
}
},
onItemSelect
(
row
)
{
if
(
row
!=
undefined
)
{
this
.
itemForm
.
itemId
=
row
.
itemId
;
this
.
itemForm
.
itemNo
=
row
.
itemCode
;
this
.
itemForm
.
itemName
=
row
.
itemName
;
let
params
=
{
clientId
:
row
.
clientId
,
itemId
:
row
.
itemId
,
validFrom
:
new
Date
()}
getFactoryQuote
(
params
).
then
(
res
=>
{
this
.
itemForm
.
price
=
res
.
data
.
price
})
}
},
...
...
@@ -966,4 +977,8 @@ export default {
width
:
100%
;
}
.form-row
>
div
{
min-height
:
47px
;
}
</
style
>
src/views/mes/qt/factoryQuote/index.vue
View file @
faf27a32
...
...
@@ -197,7 +197,7 @@ import {
getFactoryQuote
,
listFactoryQuote
,
updateFactoryQuote
}
from
'@/api/mes/
qt
/factoryQuote'
}
from
'@/api/mes/
od
/factoryQuote'
import
{
listClient
}
from
'@/api/mes/md/client'
import
{
listMdItem
}
from
'@/api/mes/md/mdItem'
import
ItemSelect
from
'@/components/itemSelect/single.vue'
...
...
vue.config.js
View file @
faf27a32
...
...
@@ -35,7 +35,7 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://
192.168.66.110
:8080`
,
target
:
`http://
localhost
:8080`
,
// target: `http://192.168.4.122:8080`,
changeOrigin
:
true
,
pathRewrite
:
{
...
...
Write
Preview
Markdown
is supported
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