Browse Source

20211213 某些右键功能

master
ruanqi 4 years ago
parent
commit
7a467e65fc
  1. 24
      src/views/modules/base/calendar.vue
  2. 3
      src/views/modules/base/searchPartNo.vue
  3. 131
      src/views/modules/base/workCenter.vue
  4. 32
      src/views/modules/knifemold/tool-info.vue
  5. 32
      src/views/modules/productProcessRoute/searchProcessRouteTool.vue
  6. 96
      src/views/modules/productProcessRoute/searchProductProcessRoute.vue
  7. 178
      src/views/modules/purchasingManagement/beginMaterialSlittedSet.vue
  8. 10
      src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue
  9. 8
      src/views/modules/purchasingManagement/searchSAPSlittedOrder.vue

24
src/views/modules/base/calendar.vue

@ -799,15 +799,33 @@
this.height = window.innerHeight - 190;
})
},
watch: {
'$route' (to, from) {
if(localStorage.getItem('calendar')!=undefined){
this.jump();
}
}
},
methods: {
jump(){
let data=JSON.parse(localStorage.getItem('calendar'));
localStorage.removeItem('calendar');
getCalendarData(data).then(({data}) => {
this.dataList = data.rows
})
},
//
selectionChangeHandle (val) {
this.dataListSelections = val
},
getData(){
getCalendarData(this.searchData).then(({data}) => {
this.dataList = data.rows
})
if(localStorage.getItem('calendar')!=undefined){
this.jump();
}else {
getCalendarData(this.searchData).then(({data}) => {
this.dataList = data.rows
})
}
},
newCalendarModel(){
this.newCalendarData.id=0,

3
src/views/modules/base/searchPartNo.vue

@ -5,7 +5,7 @@
<el-input v-model="searchData.site" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'物料编码:'">
<el-input v-model="searchData.partNo" style="width: 120px"></el-input>
<el-input v-model="searchData.partNo" style="width: 120px" onkeyup="this.value = this.value.toUpperCase()"></el-input>
</el-form-item>
<el-form-item :label="'物料名称:'">
<el-input v-model="searchData.partDescription" style="width: 120px"></el-input>
@ -280,6 +280,7 @@
],
}
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 180;

131
src/views/modules/base/workCenter.vue

@ -73,10 +73,15 @@
</el-form>
</el-tab-pane>
<el-tab-pane :label="'涉及产品'" name="second">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-button @click="getPartDetail()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'物料信息'}}</el-button>
</el-form>
<el-table
:height="height"
:data="dataList"
border
@row-click="clickData"
highlight-current-row
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
@ -98,10 +103,15 @@
</el-table>
</el-tab-pane>
<el-tab-pane :label="'机台'" name="third">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-button @click="jumpCalendar()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'工作日历'}}</el-button>
</el-form>
<el-table
:height="height"
:data="dataList2"
border
@row-click="clickData2"
highlight-current-row
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
@ -224,6 +234,41 @@
<el-button type="primary" @click="modelFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
<el-dialog title="物料编码" :close-on-click-modal="false" v-drag :visible.sync="partFlag" width="630px" >
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'物料编码:'">
<el-input v-model="partData.partNo" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'物料名称:'">
<el-input v-model="partData.partDescription" readonly style="width: 260px"></el-input>
</el-form-item>
<el-form-item :label="'工厂编号:'">
<el-input v-model="partData.site" readonly style="width: 130px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'新增日期:'">
<el-input v-model="partData.createDate" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'计量单位:'">
<el-input v-model="partData.umid" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'在用:'" style="margin-left: 130px">
<el-input v-model="partData.active" readonly style="width: 130px;"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'客户名称:'">
<el-input v-model="partData.configurationTemplateID" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'客户产品科号:'">
<el-input v-model="partData.remark" readonly style="width: 260px"></el-input>
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="partFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
</div>
</template>
@ -235,11 +280,28 @@
saveWorkCenterData,
deleteWorkCenterData,
}from "@/api/base/site.js"
import {
searchPartNoData,
} from "@/api/base/site.js"
export default {
//
name: "workCenter",
data() {
return {
currentRow:null,
partFlag:false,
partData:{
partNo:'',
partDescription:'',
site:'',
createDate:'',
umid:'',
active:'',
configurationTemplateID:'',
modelFlag:'',
},
currentRow2:null,
// start
exportData: [],
exportName: "加工中心涉及产品"+this.dayjs().format('YYYYMMDDHHmmss'),
@ -774,10 +836,60 @@
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 230;
this.height = window.innerHeight - 250;
})
},
watch: {
'$route' (to, from) {
if(localStorage.getItem('workCenterNo')!=undefined){
this.jump();
}
}
},
methods: {
clickData2(row){
this.currentRow2 = JSON.parse(JSON.stringify(row));
},
jumpCalendar(){
if(this.currentRow2==null){
this.$alert("请选择卷!", '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData={user:this.$store.state.user.name,site:this.currentRow2.site,calendarId:this.currentRow2.calendarID};
localStorage.setItem('calendar', JSON.stringify(inData))
this.$router.replace('base-calendar')
},
getPartDetail(){
if(this.currentRow==null){
this.$alert("请选择卷!", '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData={
user:this.$store.state.user.name,
site:this.currentRow.site,
partNo:this.currentRow.partNo
}
searchPartNoData(inData).then(({data}) => {
if (data.rows.length==0){
this.$alert("该物料编码不存在", '错误', {
confirmButtonText: '确定'
})
return false;
}
this.partData = data.rows[0];
this.partFlag=true;
})
},
first(){
if(localStorage.getItem('workCenterNo')!=undefined){
this.jump();
}
},
getData(){
let inData={
user:this.$store.state.user.name
@ -787,6 +899,21 @@
this.modelFlag2=true;
})
},
jump(){
let data=JSON.parse(localStorage.getItem('workCenterNo'));
localStorage.removeItem('workCenterNo');
getWorkCenterData(data).then(({data}) => {
this.dataList3 = data.rows;
this.modelData=data.rows[0];
getWorkCenterDataDetail(this.modelData).then(({data}) => {
this.dataList2 = data.rows2;
this.dataList = data.rows1;
})
})
},
clickData(row){
this.currentRow = JSON.parse(JSON.stringify(row));
},
addModal(){
this.modelData2={};
this.modelData2.add=0;
@ -966,7 +1093,7 @@
// end
},
created() {
this.first();
}
}
</script>

32
src/views/modules/knifemold/tool-info.vue

@ -62,7 +62,6 @@
<el-form-item >
<!-- <el-button type="primary">{{ inputLabel.leftInput.label1 }}</el-button> &lt;!&ndash;@click="initViewIfsTable('Y')"&ndash;&gt;-->
<el-button @click="initToolModel()" type="primary" v-show="showDefault">{{ buttons.edit }}</el-button>
<el-button @click="printMethod()" type="primary">{{ buttons.print }}</el-button>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px">
@ -344,7 +343,6 @@
getSfdcToolingHistList,
getToolHeaderList,
updateToolDetail,
printTool,
} from '@/api/knifemold/tool-info.js'
export default {
@ -707,8 +705,7 @@
search: '查询',
download: '导出',
settingTable: '设置列表',
defaultTable: '设置默认配置',
print : '打印',
defaultTable: '设置默认配置'
},
// start
exportData: [],
@ -814,31 +811,6 @@
this.getLanguageList()
},
methods: {
printMethod(){
if (this.currentDetailData.toolInstanceId == ''){
this.$alert('请选择工具信息!', '操作提示', {
confirmButtonText: '确定',
callback: action => {
}
});
return
}
let reportFamily = '工具标签'
let toolInstanceId = this.currentDetailData.toolInstanceId
let jsonData = {
reportFamily : reportFamily,
toolInstanceId : toolInstanceId,
}
printTool(jsonData).then(({data}) =>{
if (data.code != 0){
this.$alert(data.msg, '操作提示', {
confirmButtonText: '确定',
callback: action => {
}
});
}
})
},
rowDblclick(row, column, event){
console.log(row)
console.log(column)
@ -1070,7 +1042,7 @@
getFunctionButtonList() {
searchFunctionButtonList(this.queryButton).then(({data}) => {
if (JSON.stringify(data.data)!=='{}') {
//this.buttons = data.data
this.buttons = data.data
} else {
saveButtonList(this.buttonList).then(({data}) => {
})

32
src/views/modules/productProcessRoute/searchProcessRouteTool.vue

@ -93,6 +93,8 @@
placeholder="选择日期">
</el-date-picker>
<el-button @click="getData()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button>
<el-button @click="jumpToolInfo()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'工具信息'}}</el-button>
<el-button @click="jumpWorkCenter()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'加工中心'}}</el-button>
<download-excel
:fields="fields()"
:data="exportData"
@ -113,6 +115,8 @@
:height="height"
:data="dataList"
border
@row-click="clickData"
highlight-current-row
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
@ -176,6 +180,7 @@
user:this.$store.state.user.name
},
dataList:[],
currentRow:null,
dataListLoading: false,
buttons:{
download:'导出',
@ -640,16 +645,39 @@
})
},
methods: {
clickData(row){
this.currentRow = JSON.parse(JSON.stringify(row));
},
getData(){
searchProcessRouteTool(this.searchData).then(({data}) => {
this.dataList = data.rows
})
},
jumpToolInfo(){
if(this.currentRow==null){
this.$alert("请选择卷!", '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData={site:this.$store.state.user.site,toolId:this.currentRow.toolID,toolDescription:this.currentRow.toolDescription};
localStorage.setItem('toolInfo', JSON.stringify(inData))
this.$router.replace('knifemold-tool-info')
},
jumpWorkCenter(){
if(this.currentRow==null){
this.$alert("请选择卷!", '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData={user:this.$store.state.user.name,site:this.currentRow.site,workCenterNo:this.currentRow.workCenterNo};
localStorage.setItem('workCenterNo', JSON.stringify(inData))
this.$router.replace('base-workCenter')
},
//excel
createExportData() {
return this.dataList;
},
startDownload() {
// this.exportData = this.dataList

96
src/views/modules/productProcessRoute/searchProductProcessRoute.vue

@ -81,6 +81,8 @@
placeholder="选择日期">
</el-date-picker>
<el-button @click="getData()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button>
<el-button @click="getPartDetail()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'物料信息'}}</el-button>
<el-button @click="jumpWorkCenter()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'加工中心'}}</el-button>
<download-excel
:fields="fields()"
:data="exportData"
@ -102,6 +104,8 @@
:height="height"
:data="dataList"
border
@row-click="clickData"
highlight-current-row
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
@ -121,6 +125,43 @@
</template>
</el-table-column>
</el-table>
<el-dialog title="物料编码" :close-on-click-modal="false" v-drag :visible.sync="partFlag" width="630px" >
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'物料编码:'">
<el-input v-model="partData.partNo" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'物料名称:'">
<el-input v-model="partData.partDescription" readonly style="width: 260px"></el-input>
</el-form-item>
<el-form-item :label="'工厂编号:'">
<el-input v-model="partData.site" readonly style="width: 130px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'新增日期:'">
<el-input v-model="partData.createDate" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'计量单位:'">
<el-input v-model="partData.umid" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'在用:'" style="margin-left: 130px">
<el-input v-model="partData.active" readonly style="width: 130px;"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'客户名称:'">
<el-input v-model="partData.configurationTemplateID" readonly style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'客户产品科号:'">
<el-input v-model="partData.remark" readonly style="width: 260px"></el-input>
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="partFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
</div>
</template>
@ -130,16 +171,32 @@
searchProductProcessRoute,
} from "@/api/base/productProcessRoute.js"
import {
searchPartNoData,
} from "@/api/base/site.js"
export default {
name: "searchProductProcessRoute",
data() {
return {
partFlag:false,
partData:{
partNo:'',
partDescription:'',
site:'',
createDate:'',
umid:'',
active:'',
configurationTemplateID:'',
modelFlag:'',
},
// start
exportData: [],
exportName: "产品工艺路线"+this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["产品工艺路线"],
exportFooter: [],
// end
currentRow:null,
height: 200,
modelFlag:false,
modelInputFlag:true,
@ -613,6 +670,45 @@
this.dataList = data.rows
})
},
clickData(row){
this.currentRow = JSON.parse(JSON.stringify(row));
},
getPartDetail(){
if(this.currentRow==null){
this.$alert("请选择卷!", '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData={
user:this.$store.state.user.name,
site:this.currentRow.site,
partNo:this.currentRow.partNo
}
searchPartNoData(inData).then(({data}) => {
if (data.rows.length==0){
this.$alert("该物料编码不存在", '错误', {
confirmButtonText: '确定'
})
return false;
}
this.partData = data.rows[0];
this.partFlag=true;
})
},
jumpWorkCenter(){
if(this.currentRow==null){
this.$alert("请选择卷!", '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData={user:this.$store.state.user.name,site:this.currentRow.site,workCenterNo:this.currentRow.workCenterNo};
localStorage.setItem('workCenterNo', JSON.stringify(inData))
this.$router.replace('base-workCenter')
},
//excel
createExportData() {

178
src/views/modules/purchasingManagement/beginMaterialSlittedSet.vue

@ -1,25 +1,19 @@
<template>
<div class="mod-config">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -10px;">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'工厂编号:'">
<el-input v-model="dataForm.site" readonly style="width: 120px;"></el-input>
<el-input v-model="dataForm.site" readonly style="width: 120px;" onkeyup="this.value = this.value.toUpperCase()"></el-input>
</el-form-item>
<el-form-item :label="'采购订单号:'">
<el-input v-model="dataForm.orderNo" style="width: 120px;"></el-input>
</el-form-item>
<el-form-item style="margin-top: 30px">
<el-button @click="getDataList()" type="primary" style="width: 80px;margin-left: 290px;">列表</el-button>
<el-input v-model="dataForm.orderNo" style="width: 120px;" onkeyup="this.value = this.value.toUpperCase()"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'供应商编号:'">
<el-input v-model="dataForm.supplierID" @change="getSupplier()" style="width: 120px;"></el-input>
<el-input v-model="dataForm.supplierID" @change="getSupplier()" style="width: 120px;" onkeyup="this.value = this.value.toUpperCase()"></el-input>
</el-form-item>
<el-form-item :label="'供应商名称:'">
<el-input v-model="dataForm.supplierName" readonly style="width: 255px;"></el-input>
</el-form-item>
<el-form-item style="margin-top: 30px">
<el-button @click="saveCRoll()" type="primary" style="width: 80px;margin-left: 155px;">创建</el-button>
<el-button @click="saveCRoll()" type="primary" style="width: 80px;margin-left: 20px;">创建</el-button>
<el-button @click="getDataList()" type="primary" style="width: 80px;">列表</el-button>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
@ -27,7 +21,7 @@
<el-input v-model="dataForm.partNo" @change="getPartNo2()" style="width: 120px;"></el-input>
</el-form-item>
<el-form-item :label="'物料名称:'">
<el-input v-model="dataForm.partDescription" readonly style="width: 120px;"></el-input>
<el-input v-model="dataForm.partDescription" readonly style="width: 195px;"></el-input>
</el-form-item>
<el-form-item :label="'规格型号:'">
<el-input v-model="dataForm.spec" readonly style="width: 180px;"></el-input>
@ -35,8 +29,6 @@
<!-- <el-form-item style="margin-top: 30px">-->
<!-- <el-button @click="modelFlag=false" type="primary" style="width: 80px;margin-left: 95px;">关闭</el-button>-->
<!-- </el-form-item>-->
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'接收日期:'">
<el-date-picker
style="width: 120px"
@ -44,32 +36,32 @@
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
<el-button @click="getSaveModel()" type="primary" style="margin-left: 20px;">供应商批号录入</el-button>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'送货单号:'" style="">
<el-input v-model="dataForm.suppDeliveryNote" style="width: 120px;"></el-input>
</el-form-item>
<el-form-item style="margin-top: 30px;margin-left: 135px">
<el-button @click="getSaveModel()" type="primary" style="margin-left: 142px;">供应商批号录入</el-button>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'每卷数量:'">
<el-input v-model="dataForm.rollQty" type="number" style="width: 120px;"></el-input>
</el-form-item>
<el-form-item :label="'卷数:'">
<el-input v-model="dataForm.rollNumber" type="number" style="width: 120px;"></el-input>
</el-form-item>
<el-form-item style="margin-top: 30px">
<el-form-item :label="' '">
<el-button @click="insertData()" type="primary">插入</el-button>
<el-checkbox style="margin-left: 108px" v-model="dataForm.checked">自动打印标签</el-checkbox>
<el-checkbox style="margin-left: 60px" v-model="dataForm.checked">自动打印标签</el-checkbox>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'客户编号:'">
<el-input v-model="dataForm.customerID" @change="getCustomerID()" style="width: 120px;"></el-input>
<el-input v-model="dataForm.customerID" style="width: 120px;"></el-input>
<!-- @change="getCustomerID()"-->
</el-form-item>
<el-form-item :label="'产品编码:'">
<el-input v-model="dataForm.fGPartNo" @change="getPartNo()" style="width: 120px;"></el-input>
<el-input v-model="dataForm.fGPartNo" style="width: 120px;"></el-input>
<!-- @change="getPartNo()"-->
</el-form-item>
<el-form-item :label="'参照名称:'">
<el-input v-model="dataForm.referencePartDesc" readonly style="width: 120px;"></el-input>
@ -81,12 +73,12 @@
<el-input v-model="dataForm.supplierName" readonly style="width: 120px;"></el-input>
</el-form-item>
</el-form>
<el-tabs v-model="activeName" style="font-size: 11px;width: 775px">
<el-tabs v-model="activeName" style="font-size: 11px;width: 1200px">
<el-tab-pane label="待分卷" name="first">
<div style="width: 800px;margin-top: 8px;">
<div style="width: 1000px;margin-top: 0px;">
<div style="width: 100%;float: left">
<el-table
height="200"
:height="height"
:data="dataList1"
border
:vertical-align="'middle'"
@ -110,7 +102,7 @@
</el-table>
</div>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<span style="margin-left: 5px">合计卷数</span>
<span style="margin-left: 5px;">合计卷数</span>
<el-input v-model="sum1" style="width: 50px;" readonly></el-input>
<span>总数量</span>
<el-input v-model="sum2" style="width: 80px;" readonly></el-input>
@ -118,9 +110,9 @@
</div>
</el-tab-pane>
<el-tab-pane label="已分卷" name="second">
<div style="width: 760px;margin-top: 0px">
<div style="width: 1000px;margin-top: 0px">
<el-table
height="200"
:height="height"
:data="dataList3"
border
:vertical-align="'middle'"
@ -136,12 +128,12 @@
</el-table-column>
</el-table>
<el-form :inline="true" label-position="top" label-width="100px">
<div style="margin-top: 8px">
<span style="margin-left: 5px">合计卷数</span>
<el-input v-model="sum3" style="width: 50px;" readonly></el-input>
<span>总卷数量</span>
<el-input v-model="sum4" style="width: 80px;" readonly></el-input>
</div>
</el-form>
</div>
</el-tab-pane>
@ -477,7 +469,7 @@
sortLv: 0,
status: true,
fixed: false,
columnWidth: 80
columnWidth: 250
},
{
userId: this.$store.state.user.name,
@ -495,7 +487,7 @@
sortLv: 0,
status: true,
fixed: false,
columnWidth: 150
columnWidth: 250
},
{
userId: this.$store.state.user.name,
@ -513,7 +505,7 @@
sortLv: 0,
status: true,
fixed: false,
columnWidth: 100
columnWidth: 250
},
{
userId: this.$store.state.user.name,
@ -531,7 +523,7 @@
sortLv: 0,
status: true,
fixed: false,
columnWidth: 150
columnWidth: 249
}
],
columnList3: [
@ -684,7 +676,7 @@
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 200;
this.height = window.innerHeight - 360;
})
},
methods: {
@ -755,14 +747,87 @@
this.sum2 += newDate.allRollQty;
},
saveCRoll() {
if (this.dataList1.length == 0) {
this.$alert("没有待分卷信息!", '错误', {
confirmButtonText: '确定'
})
return false;
let bool = false
let inData = {
site: this.dataForm.site,
partNo: this.dataForm.partNo
}
getPartNoDetail(inData).then(({data}) => {
if (data.total > 0) {
this.dataForm.partDescription=data.rows[0].partDescription;
//this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
let inData2={
site : this.dataForm.site,
supplierID : this.dataForm.supplierID
}
getSupplierDetail(inData2).then(({data}) => {
let outList = data.rows
if (outList.length>0){
this.dataForm.supplierName=outList[0].supplierName;
// this.$set(this.dataForm,'supplierName',outList[0].supplierName)
let inData3 = {
site: this.dataForm.site,
partNo: this.dataForm.fGPartNo
}
getPartNoDetail(inData3).then(({data}) => {
if (data.total > 0) {
} else {
bool = true;
}
})
if (bool){
this.dataForm.fGPartNo = '';
this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
this.$alert('该物料编码不存在', '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData4 = {
site: this.dataForm.site,
configurationTemplateID: this.dataForm.customerID,
}
checkCustomerID(inData4).then(({data}) => {
if (data.total > 0) {
if (this.dataList1.length == 0) {
this.$alert("没有待分卷信息!", '错误', {
confirmButtonText: '确定'
})
return false;
}else {
this.doSaveCRoll()
}
} else {
this.dataForm.customerID = '';
this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
this.$alert('该客户编号不存在', '错误', {
confirmButtonText: '确定'
})
return false;
}
})
}
else {
this.dataForm.supplierName='';
this.dataForm.supplierID='';
this.$alert('该供应商不存在', '错误', {
confirmButtonText: '确定'
})
return false;
}
})
}
else {
this.dataForm.partNo = '';
this.$alert('该物料编码不存在', '错误', {
confirmButtonText: '确定'
})
return false;
}
})
this.doSaveCRoll()
},
doSaveCRoll() {
@ -814,6 +879,7 @@
this.$alert('该物料编码不存在', '错误', {
confirmButtonText: '确定'
})
return false;
}
})
},
@ -826,13 +892,13 @@
if (data.total > 0) {
this.dataForm.partDescription=data.rows[0].partDescription;
//this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
} else {
this.dataForm.partNo = '';
// this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
this.$alert('该物料编码不存在', '错误', {
confirmButtonText: '确定'
})
}
// else {
// this.dataForm.partNo = '';
// this.$alert('', '', {
// confirmButtonText: ''
// })
// }
})
},
getCustomerID() {
@ -848,6 +914,7 @@
this.$alert('该客户编号不存在', '错误', {
confirmButtonText: '确定'
})
return false;
}
})
},
@ -861,13 +928,14 @@
if (outList.length>0){
this.dataForm.supplierName=outList[0].supplierName;
// this.$set(this.dataForm,'supplierName',outList[0].supplierName)
}else {
this.dataForm.supplierName='';
this.dataForm.supplierID='';
this.$alert('该供应商不存在', '错误', {
confirmButtonText: '确定'
})
}
// else {
// this.dataForm.supplierName='';
// this.dataForm.supplierID='';
// this.$alert('', '', {
// confirmButtonText: ''
// })
// }
})
},
//

10
src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue

@ -912,7 +912,7 @@
let inData = {
site: row.site,
orderRef1: row.orderNo,
orderRef2: row.orderItemNo,
orderRef3: row.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@ -1018,7 +1018,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
orderRef2: this.dataForm.orderItemNo,
orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@ -1076,7 +1076,7 @@
getAllThePartNo() {
let list = [];
for (let i = 0; i < this.dataList.length; i++) {
if (this.dataList[i].partNo == this.dataForm.partNo) {
if (this.dataList[i].orderNo == this.dataForm.orderNo) {
list.push(this.dataList[i]);
}
}
@ -1101,7 +1101,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
orderRef2: this.dataForm.orderItemNo,
orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@ -1123,7 +1123,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
orderRef2: this.dataForm.orderItemNo,
orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows

8
src/views/modules/purchasingManagement/searchSAPSlittedOrder.vue

@ -1195,7 +1195,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
orderRef2: this.dataForm.orderItemNo,
orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@ -1253,7 +1253,7 @@
getAllThePartNo() {
let list = [];
for (let i = 0; i < this.dataList.length; i++) {
if (this.dataList[i].partNo == this.dataForm.partNo) {
if (this.dataList[i].orderNo == this.dataForm.orderNo) {
list.push(this.dataList[i]);
}
}
@ -1278,7 +1278,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
orderRef2: this.dataForm.orderItemNo,
orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@ -1300,7 +1300,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
orderRef2: this.dataForm.orderItemNo,
orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows

Loading…
Cancel
Save