创建询价单
This commit is contained in:
@@ -76,14 +76,14 @@ export function getExport2(num) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询分配后的标准件和外购件
|
// 查询分配后的标准件和外购件
|
||||||
export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, check4, val4, check5, val5, check6, val6, val7) {
|
export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, check4, val4, check5, val5, check6, val6, val7, val8, val9, val10) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: 'xqs_采购管理_采购部采购_查询物料_分配后_带库存',
|
name: 'xqs_采购管理_采购部采购_查询物料_分配后_带库存',
|
||||||
param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}&项目流水号_check=${check4}&项目流水号=${val4}&机床流水号_check=${check5}&机床流水号=${val5}&组件流水号_check=${check6}&组件流水号=${val6}&零件类型=${val7}`,
|
param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}&项目流水号_check=${check4}&项目流水号=${val4}&机床流水号_check=${check5}&机床流水号=${val5}&组件流水号_check=${check6}&组件流水号=${val6}&零件类型=${val7}&时间_check=${val8}&开始时间=${val9}&结束时间=${val10}`,
|
||||||
Pagination: pageCurrent + '&' + pageSize
|
Pagination: pageCurrent + '&' + pageSize
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -16,8 +16,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 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 uploadPerson = `http://192.168.1.231:8411/submit/uploadPerson.ashx`
|
||||||
export const uploadOP = `http://192.168.1.231:8411/submit/uploadOP.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 url = `http://192.168.1.231:8411/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
|
||||||
export const ExcelDownLoad = 'http://192.168.0.110:8002/submit/downloadFile.ashx' // 导出excel
|
export const ExcelDownLoad = 'http://192.168.1.231:8411/submit/downloadFile.ashx' // 导出excel
|
||||||
|
|
||||||
// 技术中心程序发布时要更改下面所有的IP到0段
|
// 技术中心程序发布时要更改下面所有的IP到0段
|
||||||
export const ServerIP = `http://192.168.1.231:8411/webpage/file/`
|
export const ServerIP = `http://192.168.1.231:8411/webpage/file/`
|
||||||
@@ -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 MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
|
||||||
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`,
|
baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
|
||||||
timeout: 1500000 // 请求超时时间
|
timeout: 1500000 // 请求超时时间
|
||||||
})
|
})
|
||||||
export default service
|
export default service
|
||||||
|
|||||||
@@ -72,11 +72,29 @@
|
|||||||
<span>物料变更:</span>
|
<span>物料变更:</span>
|
||||||
<el-switch v-model="switchValue" active-color="#13ce66" inactive-color="#ff4949"/>
|
<el-switch v-model="switchValue" active-color="#13ce66" inactive-color="#ff4949"/>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="margin-bottom: 10px">
|
<el-row style="margin-bottom: 15px">
|
||||||
<span>物料规格:</span>
|
<span>物料规格:</span>
|
||||||
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
||||||
<span>物料型号:</span>
|
<span>物料型号:</span>
|
||||||
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
||||||
|
</el-row>
|
||||||
|
<el-row style="margin-bottom: 10px">
|
||||||
|
<span class="demonstration">开始时间: </span>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="startTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
size="small"
|
||||||
|
style="width: 200px"
|
||||||
|
type="date"
|
||||||
|
placeholder="选择日期"/>
|
||||||
|
<span class="demonstration">结束时间:</span>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="endTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
size="small"
|
||||||
|
style="width: 200px"
|
||||||
|
type="date"
|
||||||
|
placeholder="选择日期"/>
|
||||||
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="pageCurrent11=1;pageSize11=100;total11=0;searchTable11()">查询</el-button>
|
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="pageCurrent11=1;pageSize11=100;total11=0;searchTable11()">查询</el-button>
|
||||||
<el-button type="warning" size="small" icon="el-icon-download" style="margin-left: 10px" @click="exportUninquirySheet">导出未询价物料清单</el-button>
|
<el-button type="warning" size="small" icon="el-icon-download" style="margin-left: 10px" @click="exportUninquirySheet">导出未询价物料清单</el-button>
|
||||||
<el-popover v-model="visible" title="调整采购任务" placement="top" width="180">
|
<el-popover v-model="visible" title="调整采购任务" placement="top" width="180">
|
||||||
@@ -90,7 +108,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" size="mini" @click="visible = false;tiaozheng1()">确定</el-button>
|
<el-button type="primary" size="mini" @click="visible = false;tiaozheng1()">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-button slot="reference" type="warning" size="small" plain style="margin-left: 2px">调整采购任务</el-button>
|
<el-button slot="reference" type="success" size="small" plain style="float: right;margin-right: 20px">调整采购任务</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="margin-bottom: 10px">
|
<el-row style="margin-bottom: 10px">
|
||||||
@@ -291,7 +309,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" size="mini" @click="visible2 = false;tiaozheng2()">确定</el-button>
|
<el-button type="primary" size="mini" @click="visible2 = false;tiaozheng2()">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-button slot="reference" type="warning" size="small" plain style="margin-left: 2px">调整采购任务</el-button>
|
<el-button slot="reference" type="success" size="small" plain style="float: right;margin-right: 20px">调整采购任务</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="margin-bottom: 10px">
|
<el-row style="margin-bottom: 10px">
|
||||||
@@ -895,6 +913,8 @@ export default {
|
|||||||
name: '', // 创建询价单
|
name: '', // 创建询价单
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
startTime: '',
|
||||||
|
endTime: '',
|
||||||
标准件和外购件流水号: [],
|
标准件和外购件流水号: [],
|
||||||
基本件流水号: [],
|
基本件流水号: [],
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -1488,14 +1508,15 @@ export default {
|
|||||||
return row['供货商'].trim() === value
|
return row['供货商'].trim() === value
|
||||||
},
|
},
|
||||||
searchTable11() { // 查询外购件列表
|
searchTable11() { // 查询外购件列表
|
||||||
let check1, check2, check3, check4, check5, check6
|
let check1, check2, check3, check4, check5, check6, check7
|
||||||
this.materialName ? check1 = 1 : check1 = 0
|
this.materialName ? check1 = 1 : check1 = 0
|
||||||
this.materialSpec ? check2 = 1 : check2 = 0
|
this.materialSpec ? check2 = 1 : check2 = 0
|
||||||
this.materialModel ? check3 = 1 : check3 = 0
|
this.materialModel ? check3 = 1 : check3 = 0
|
||||||
this.projectValue ? check4 = 1 : check4 = 0
|
this.projectValue ? check4 = 1 : check4 = 0
|
||||||
this.machineValue ? check5 = 1 : check5 = 0
|
this.machineValue ? check5 = 1 : check5 = 0
|
||||||
this.groupValue ? check6 = 1 : check6 = 0
|
this.groupValue ? check6 = 1 : check6 = 0
|
||||||
searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, 2).then(response => {
|
this.startTime && this.endTime ? check7 = 1 : check7 = 0
|
||||||
|
searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, 2, check7, this.startTime, this.endTime).then(response => {
|
||||||
this.tableData11 = response.data.rows
|
this.tableData11 = response.data.rows
|
||||||
this.total11 = response.data.total
|
this.total11 = response.data.total
|
||||||
const remark = []
|
const remark = []
|
||||||
|
|||||||
Reference in New Issue
Block a user