询价单基础信息
This commit is contained in:
@@ -242,3 +242,27 @@ export function searchGroup(num) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 查询询价单基础信息维护
|
||||||
|
export function searchBaseInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '采购管理_询价单基础信息_查询数据',
|
||||||
|
param: '人员编号=' + id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 查询询价单基础信息维护
|
||||||
|
export function editBaseInfo(...params) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '采购管理_询价单基础信息_增改数据',
|
||||||
|
param: `人员编号=${params[0]}&手机=${params[1]}&传真=${params[2]}&邮箱=${params[3]}&公司地址=${params[4]}&邮编=${params[5]}&公司电话=${params[6]}&税号=${params[7]}&送货地址=${params[8]}&帐号=${params[9]}&开户行=${params[10]}`
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -330,7 +330,8 @@
|
|||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
@click="addInquirySheet">选入</el-button>
|
@click="addInquirySheet">选入</el-button>
|
||||||
</div>
|
</div>
|
||||||
<h3 style="margin-top: 0">询价单</h3>
|
<h3 style="margin-top: 0;display:inline-block;width:50%">询价单</h3>
|
||||||
|
<el-button :loading="baseInfoLoading" type="success" size="mini" style="float: right" @click="inquirySheetBaseInfoMaintain">询价单基础信息维护</el-button>
|
||||||
<el-table v-loading="" :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3">
|
<el-table v-loading="" :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3">
|
||||||
<el-table-column label="询价单编号" align="center" min-width="150">
|
<el-table-column label="询价单编号" align="center" min-width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -656,13 +657,82 @@
|
|||||||
<el-button :disabled="Number(useNumber)===0" type="primary" size="small" @click="submitUseInventory">确定</el-button>
|
<el-button :disabled="Number(useNumber)===0" type="primary" size="small" @click="submitUseInventory">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<el-dialog :visible.sync="dialogVisible5" title="询价单基础信息维护" center style="min-height: 300px;" width="620px">
|
||||||
|
<el-form ref="form3" :model="form3" label-position="right" label-width="70px" class="baseInfo">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="联系人">
|
||||||
|
<el-input v-model="form3.contact" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="手机">
|
||||||
|
<el-input v-model="form3.phone" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="传真">
|
||||||
|
<el-input v-model="form3.fax" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="邮箱">
|
||||||
|
<el-input v-model="form3.email" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<hr>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="公司地址">
|
||||||
|
<el-input v-model="form3.companyAddress" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="邮编">
|
||||||
|
<el-input v-model="form3.postCode" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="公司电话">
|
||||||
|
<el-input v-model="form3.companyPhone" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="税号">
|
||||||
|
<el-input v-model="form3.taxNumber" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="送货地址">
|
||||||
|
<el-input v-model="form3.shippingAddress" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="帐号">
|
||||||
|
<el-input v-model="form3.account" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="开户行">
|
||||||
|
<el-input v-model="form3.bank" size="small"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button size="small" @click="dialogVisible5=false">取消</el-button>
|
||||||
|
<el-button type="primary" size="small" @click="submitBaseInfo">确定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet,
|
import { searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet,
|
||||||
createInquirySheet, deleteInquirySheet, addInquirySheet1, addInquirySheet2, outInquirySheet, searchAllMaterial, materialChange, saveOrder,
|
createInquirySheet, deleteInquirySheet, addInquirySheet1, addInquirySheet2, outInquirySheet, searchAllMaterial, materialChange, saveOrder,
|
||||||
submitUseInventory, initProject, searchMachine, searchGroup } from '@/api/PurchasingCenter/CreateInquirySheet'
|
submitUseInventory, initProject, searchMachine, searchGroup, searchBaseInfo, editBaseInfo } from '@/api/PurchasingCenter/CreateInquirySheet'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { exportExcelMethod } from './exportExcel'
|
import { exportExcelMethod } from './exportExcel'
|
||||||
import $ from 'jquery'
|
import $ from 'jquery'
|
||||||
@@ -671,6 +741,21 @@ export default {
|
|||||||
name: '', // 创建询价单
|
name: '', // 创建询价单
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
baseInfoLoading: false,
|
||||||
|
dialogVisible5: false,
|
||||||
|
form3: { // 询价单基础信息表单
|
||||||
|
contact: '',
|
||||||
|
phone: '',
|
||||||
|
fax: '',
|
||||||
|
email: '',
|
||||||
|
companyAddress: '',
|
||||||
|
postCode: '',
|
||||||
|
companyPhone: '',
|
||||||
|
taxNumber: '',
|
||||||
|
shippingAddress: '',
|
||||||
|
account: '',
|
||||||
|
bank: ''
|
||||||
|
},
|
||||||
projectValue: '',
|
projectValue: '',
|
||||||
project: [],
|
project: [],
|
||||||
machineValue: '',
|
machineValue: '',
|
||||||
@@ -800,6 +885,34 @@ export default {
|
|||||||
this.searchTable2() // 查表2
|
this.searchTable2() // 查表2
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 询价单基础信息维护
|
||||||
|
inquirySheetBaseInfoMaintain() {
|
||||||
|
this.baseInfoLoading = true
|
||||||
|
searchBaseInfo(this.id).then(res => {
|
||||||
|
this.baseInfoLoading = false
|
||||||
|
this.form3.contact = res.data[0] ? res.data[0].联系人 : ''
|
||||||
|
this.form3.phone = res.data[0] ? res.data[0].手机 : ''
|
||||||
|
this.form3.fax = res.data[0] ? res.data[0].传真 : ''
|
||||||
|
this.form3.email = res.data[0] ? res.data[0].邮箱 : ''
|
||||||
|
this.form3.companyAddress = res.data[0] ? res.data[0].公司地址 : ''
|
||||||
|
this.form3.postCode = res.data[0] ? res.data[0].邮编 : ''
|
||||||
|
this.form3.companyPhone = res.data[0] ? res.data[0].公司电话 : ''
|
||||||
|
this.form3.taxNumber = res.data[0] ? res.data[0].税号 : ''
|
||||||
|
this.form3.shippingAddress = res.data[0] ? res.data[0].送货地址 : ''
|
||||||
|
this.form3.account = res.data[0] ? res.data[0].帐号 : ''
|
||||||
|
this.form3.bank = res.data[0] ? res.data[0].开户行 : ''
|
||||||
|
this.dialogVisible5 = true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 提交询价单基础信息维护
|
||||||
|
submitBaseInfo() {
|
||||||
|
editBaseInfo(this.id, this.form3.phone, this.form3.fax, this.form3.email, this.form3.companyAddress, this.form3.postCode, this.form3.companyPhone, this.form3.taxNumber, this.form3.shippingAddress, this.form3.account, this.form3.bank).then(res => {
|
||||||
|
if (res.data[0].result === '1') {
|
||||||
|
this.dialogVisible5 = false
|
||||||
|
this.$message.success('操作成功')
|
||||||
|
} else { this.$message.error('操作失败') }
|
||||||
|
})
|
||||||
|
},
|
||||||
fetchData() {
|
fetchData() {
|
||||||
initProject().then(response => {
|
initProject().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
@@ -1375,6 +1488,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.baseInfo .el-form-item {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
.inquirySheet td{
|
.inquirySheet td{
|
||||||
height: 40px;
|
height: 40px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user