Commit 08454e86 authored by hiyonx's avatar hiyonx

优化样式

parent 83a6bb39
...@@ -17,6 +17,23 @@ export function getOrder(id) { ...@@ -17,6 +17,23 @@ export function getOrder(id) {
}) })
} }
// 查询销售订单详细
export function getSapInfo(id) {
return request({
url: '/od/salesOrder/getSapInfo/' + id,
method: 'get'
})
}
// 查询销售订单详细
export function syncSapData(sapData) {
return request({
url: '/od/salesOrder/syncSapInfo/',
method: 'post',
data: sapData
})
}
// 查询销售订单详细 // 查询销售订单详细
export function getOrderDetail(params) { export function getOrderDetail(params) {
return request({ return request({
......
<template> <template>
<div class="el-input-all"> <div class="el-input-all">
<el-input v-if="item.dataType === 1" v-model="value" :placeholder="'请输入' + item.name" clearable :disabled="!!item.relationField"/> <el-input v-if="item.dataType === 1" v-model="value" class="input-item" :placeholder="'请输入' + item.name" clearable :disabled="!!item.relationField"/>
<el-input-number v-if="item.dataType === 2" v-model="value" :placeholder="'请输入' + item.name" clearable :disabled="!!item.relationField"/> <el-input-number v-if="item.dataType === 2" v-model="value" class="input-item" :placeholder="'请输入' + item.name" clearable :disabled="!!item.relationField"/>
<el-input-money v-if="item.dataType === 3" v-model="value" :placeholder="'请输入' + item.name" clearable :disabled="!!item.relationField"/> <el-input-money v-if="item.dataType === 3" v-model="value" class="input-item" :placeholder="'请输入' + item.name" clearable :disabled="!!item.relationField"/>
<el-date-picker v-if="item.dataType === 4" v-model="value" :placeholder="'请选择' + item.name" clearable :disabled="!!item.relationField" type="date"/> <el-date-picker v-if="item.dataType === 4" v-model="value" class="input-item" :placeholder="'请选择' + item.name" clearable :disabled="!!item.relationField" type="date"/>
<el-time-picker v-if="item.dataType === 5" v-model="value" :placeholder="'请选择' + item.name" clearable :disabled="!!item.relationField"/> <el-time-picker v-if="item.dataType === 5" v-model="value" class="input-item" :placeholder="'请选择' + item.name" clearable :disabled="!!item.relationField"/>
<el-date-picker v-if="item.dataType === 6" v-model="value" :placeholder="'请选择' + item.name" clearable :disabled="!!item.relationField" type="datetime"/> <el-date-picker v-if="item.dataType === 6" v-model="value" class="input-item" :placeholder="'请选择' + item.name" clearable :disabled="!!item.relationField" type="datetime"/>
<el-select v-if="item.dataType === 7" v-model="value" :placeholder="'请选择' + item.name" clearable filterable :disabled="!!item.relationField"> <el-select v-if="item.dataType === 7" v-model="value" class="input-item" :placeholder="'请选择' + item.name" clearable filterable :disabled="!!item.relationField">
<el-option v-for="option in item.dictDataList" :key="option.id" :value="option.value" :label="option.name"/> <el-option v-for="option in item.dictDataList" :key="option.id" :value="option.value" :label="option.name"/>
</el-select> </el-select>
</div> </div>
...@@ -45,5 +45,7 @@ export default { ...@@ -45,5 +45,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.input-item {
width: 100%;
}
</style> </style>
<template> <template>
<div class="base-info"> <div class="base-info">
<el-form :model="sapData" ref="form" label-width="120px" size="mini"> <el-form :model="sapData" ref="form" label-width="130px" size="mini">
<el-row class="form-wrap" :gutter="gutter"> <el-row class="form-wrap" :gutter="gutter">
<div> <div>
<template v-for="(sapProperties, key) in sapPropertyMap"> <template v-for="(sapProperties, key) in sapPropertyMap">
......
...@@ -23,18 +23,6 @@ ...@@ -23,18 +23,6 @@
show-word-limit v-model="form.address" placeholder="请输入客户送货地址"/> show-word-limit v-model="form.address" placeholder="请输入客户送货地址"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item
label="客户工作时间"
prop="clientWorkTime"
:label-width="labelWidth"
>
<el-input
v-model="form.clientWorkTime"
placeholder="请输入客户工作时间"
/>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="城市" prop="city" :label-width="labelWidth"> <el-form-item label="城市" prop="city" :label-width="labelWidth">
<el-input v-model="form.city" placeholder="请输入城市"/> <el-input v-model="form.city" placeholder="请输入城市"/>
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
/> />
<!-- 添加或修改客户对话框 --> <!-- 添加或修改客户对话框 -->
<el-dialog :title="title" :visible.sync="open" width="960px"> <el-dialog :title="title" :visible.sync="open" width="1200px">
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="8"> <el-col :span="8">
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
<el-tab-pane label="催货款通知邮箱" name="UrgeEmail"> <el-tab-pane label="催货款通知邮箱" name="UrgeEmail">
<UrgeEmail ref="UrgeEmail" :clientId="form.clientId"/> <UrgeEmail ref="UrgeEmail" :clientId="form.clientId"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="客户付款信息" name="PaymentRelation"> <el-tab-pane label="客户关联关系" name="PaymentRelation">
<PaymentRelation ref="PaymentRelation" :clientId="form.clientId"/> <PaymentRelation ref="PaymentRelation" :clientId="form.clientId"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="SAP特性" name="SapProperty"> <el-tab-pane label="SAP特性" name="SapProperty">
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible="showSpec" title="采购详情产品特性值" width="650px"> <el-dialog :visible.sync="showSpec" title="采购详情产品特性值" width="650px">
<el-form label-width="100px"> <el-form label-width="100px">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="12" v-for="spec in specList" :key="spec.specKey"> <el-col :span="12" v-for="spec in specList" :key="spec.specKey">
...@@ -229,6 +229,7 @@ export default { ...@@ -229,6 +229,7 @@ export default {
this.multiple = !selection.length this.multiple = !selection.length
}, },
toSalesEdit(row) { toSalesEdit(row) {
if (row.state != 0) return this.$message.error("该采购单单已生成销售订单")
let id = row ? row.id : this.ids[0] let id = row ? row.id : this.ids[0]
this.$router.push('/order/sales/detail?purchaseId=' + id) this.$router.push('/order/sales/detail?purchaseId=' + id)
}, },
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment