创建采购合同
This commit is contained in:
@@ -17,8 +17,8 @@ export const uploadInvoiceScan1 = `http://192.168.1.231:8411/submit/uploadInvoic
|
||||
export const download = `http://192.168.1.231:8411/submit/downloadFile.ashx` // ContractInformationManagement
|
||||
export const uploadPerson = `http://192.168.1.231:8411/submit/uploadPerson.ashx`
|
||||
export const uploadOP = `http://192.168.1.231:8411/submit/uploadOP.ashx`
|
||||
export const url = `http://192.168.0.110:8002/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
|
||||
export const ExcelDownLoad = 'http://192.168.0.110:8002/submit/downloadFile.ashx' // 导出excel
|
||||
export const url = `http://192.168.0.103:8074/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
|
||||
export const ExcelDownLoad = 'http://192.168.0.103:8074/submit/downloadFile.ashx' // 导出excel
|
||||
// 技术中心程序发布时要更改下面所有的IP到0段
|
||||
export const ServerIP = `http://192.168.1.231:8411/webpage/file/`
|
||||
export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231
|
||||
@@ -26,7 +26,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil
|
||||
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
|
||||
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
||||
const service = axios.create({
|
||||
baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`,
|
||||
baseURL: `http://192.168.0.103:8074/submit/MESCommonBase.ashx`,
|
||||
timeout: 1500000 // 请求超时时间
|
||||
})
|
||||
export default service
|
||||
|
||||
@@ -2,17 +2,24 @@
|
||||
<div class="app-container">
|
||||
<el-card class="searchContract">
|
||||
<el-row>
|
||||
<el-select v-model="contractNumValue" placeholder="请购单号/合同编号" size="small" @change="searchData">
|
||||
<el-select v-model="contractNumValue" placeholder="请购单号/合同编号" size="small" style="width: 160px" @change="searchData">
|
||||
<el-option
|
||||
v-for="item in contractNum"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-input v-model="contractName" placeholder="合同名称" size="small"/>
|
||||
<el-input v-model="supplierName" size="small" placeholder="请双击选择供应商" readonly clearable @dblclick.native="dialogVisible1=true;submitDisable=true" @clear="emptySupplierDetail"/>
|
||||
<el-input v-model="AdvanceCharge" size="small" placeholder="预付款"/>
|
||||
<el-select v-model="currencyValue" placeholder="币种" size="small" clearable>
|
||||
<el-input v-model="contractName" placeholder="合同名称" style="width: 120px" size="small"/>
|
||||
<!-- <el-input v-model="supplierName" size="small" placeholder="请双击选择供应商" readonly clearable @dblclick.native="dialogVisible1=true;submitDisable=true" @clear="emptySupplierDetail"/>-->
|
||||
<el-select v-model="supplierValue" placeholder="选择供应商" filterable style="width: 220px" size="small" clearable>
|
||||
<el-option
|
||||
v-for="item in supplierValues"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-input v-model="AdvanceCharge" size="small" style="width: 120px" placeholder="预付款"/>
|
||||
<el-select v-model="currencyValue" placeholder="币种" style="width: 120px" size="small" clearable>
|
||||
<el-option
|
||||
v-for="item in currency"
|
||||
:key="item.value"
|
||||
@@ -26,8 +33,8 @@
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="规定到货时间"/>
|
||||
<el-input v-model="name" placeholder="采购员" size="small" readonly/>
|
||||
<el-input v-model="taxRate" placeholder="税率" size="small"/>
|
||||
<el-input v-model="name" placeholder="采购员" style="width: 120px" size="small" readonly/>
|
||||
<el-input v-model="taxRate" placeholder="税率" style="width: 120px" size="small"/>
|
||||
<el-button v-show="contractNumType===0" type="success" size="small" @click="linkGroup">成组采购</el-button>
|
||||
<el-button v-show="contractNumType===1" type="danger" size="small" @click="unLinkGroup">取消成组采购</el-button>
|
||||
</el-row>
|
||||
@@ -49,7 +56,7 @@
|
||||
<el-input v-model="scope.row.数量" size="mini" style="width:100%" @change="update1(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价" align="center" width="150">
|
||||
<el-table-column label="单价" align="center" width="10">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.单价" size="mini" style="width:100%" @change="update1(scope.row)"/>
|
||||
</template>
|
||||
@@ -79,35 +86,35 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-table v-show="contractNumType===0" :data="tableData4" border style="width: 100%;max-height: 400px;" height="300px" size="mini">
|
||||
<el-table-column label="物料名称" align="center" min-width="100">
|
||||
<el-table v-show="contractNumType===0" :data="tableData4" border style="width: 1200px;max-height: 420px;" height="320px" size="mini">
|
||||
<el-table-column label="物料名称" align="center" min-width="180">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="图号或型号" align="center" min-width="100">
|
||||
<el-table-column label="图号或型号" align="center" min-width="140">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.图号或型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="材料或规格" align="center" width="200">
|
||||
<el-table-column label="材料或规格" align="center" width="140">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.规格或材料 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="订货数量" align="center" width="100">
|
||||
<el-table-column label="订货数量" align="center" width="70">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价" align="center" width="150">
|
||||
<el-table-column label="单价" align="center" width="140">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.单价" size="mini" style="width:70px"/>
|
||||
<el-input v-model="scope.row.单价" size="mini" style="width:100px" @change="calculateContractSum"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="金额" align="center" width="100">
|
||||
<el-table-column label="金额" align="center" width="140">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.金额 }}
|
||||
{{ scope.row.金额.toFixed(2) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="交货期" align="center" width="150">
|
||||
@@ -122,7 +129,7 @@
|
||||
@change="update(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" width="150">
|
||||
<el-table-column label="备注" align="center" width="180">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.备注" size="mini" style="width: 120px" @change="update(scope.row)"/>
|
||||
</template>
|
||||
@@ -337,6 +344,7 @@ export default {
|
||||
contractNumValue: '',
|
||||
contractNumType: 0,
|
||||
RequisitionNumber: '',
|
||||
supplierNames: [],
|
||||
contract: [{
|
||||
label: '合同模板1',
|
||||
value: 1
|
||||
@@ -356,6 +364,7 @@ export default {
|
||||
supplierName: '', // 供应商
|
||||
supplier: [],
|
||||
supplierValue: '', // 供应商流水号
|
||||
supplierValues: [],
|
||||
enterpriseNature: '', // 企业性质
|
||||
createDate: '', // 创立日期
|
||||
registeredCapital: '', // 注册资本
|
||||
@@ -439,6 +448,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.fetchData()
|
||||
this.searchSupplier()
|
||||
},
|
||||
methods: {
|
||||
linkGroup() {
|
||||
@@ -472,6 +482,7 @@ export default {
|
||||
})
|
||||
},
|
||||
searchData() {
|
||||
this.contractSum = 0.00
|
||||
for (let i = 0; i < this.contractNum.length; i++) {
|
||||
if (this.contractNum[i].value === this.contractNumValue) {
|
||||
this.contractNumType = this.contractNum[i].id
|
||||
@@ -486,6 +497,7 @@ export default {
|
||||
console.log(this.tableData5)
|
||||
})
|
||||
searchData2(this.contractNumValue).then(response => {
|
||||
console.log(response, 2233)
|
||||
this.tableData4 = response.data
|
||||
this.machineValue = response.data[0].机床流水号
|
||||
this.form3.机床 = response.data[0].机床图号
|
||||
@@ -570,6 +582,12 @@ export default {
|
||||
response.data[i].创立日期 = response.data[i].创立日期.split(' ')[0]
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.supplierValues.push({
|
||||
label: response.data[i].供应商名称,
|
||||
value: response.data[i].供应商流水号
|
||||
})
|
||||
}
|
||||
this.tableData01 = response.data
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user