Browse Source

线程同步 2022年12月13日 sxm

master
[li_she] 3 years ago
parent
commit
347dd75cb5
  1. 117
      src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue

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

@ -28,7 +28,8 @@
<el-option :label="labels.yes" value="Y"></el-option> <el-option :label="labels.yes" value="Y"></el-option>
<el-option :label="labels.no" value="N"></el-option> <el-option :label="labels.no" value="N"></el-option>
</el-select> </el-select>
<el-button @click="getData()" type="primary" style="margin-left: 10px;margin-top: 0px">{{buttons.search}}</el-button>
<el-button @click="getData()" type="primary" style="margin-left: 10px;margin-top: 0px">{{ buttons.search }}
</el-button>
<download-excel <download-excel
:fields="fields()" :fields="fields()"
:data="exportData" :data="exportData"
@ -57,7 +58,7 @@
width="70" width="70"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a type="text" size="small" v-if="!authAdd" @click="showModel(scope.row)">{{buttons.addRoll}}</a>
<a type="text" size="small" v-if="!authAdd" @click="showModel(scope.row)">{{ buttons.addRoll }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -71,7 +72,7 @@
:width="item.columnWidth" :width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
@ -89,7 +90,9 @@
<el-input v-model="dataForm.orderItemNo" readonly style="width: 120px;"></el-input> <el-input v-model="dataForm.orderItemNo" readonly style="width: 120px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item style="margin-top: 30px"> <el-form-item style="margin-top: 30px">
<el-button @click="saveCRoll()" type="primary" style="width: 108px;margin-left: 142px;">{{buttons.addRoll}}</el-button>
<el-button @click="saveCRoll()" type="primary" style="width: 108px;margin-left: 142px;">
{{ buttons.addRoll }}
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;"> <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;">
@ -100,7 +103,9 @@
<el-input v-model="dataForm.supplierName" readonly style="width: 255px;"></el-input> <el-input v-model="dataForm.supplierName" readonly style="width: 255px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item style="margin-top: 30px"> <el-form-item style="margin-top: 30px">
<el-button @click="modelFlag=false" type="primary" style="width: 108px;margin-left: 142px;">{{buttons.close}}</el-button>
<el-button @click="modelFlag=false" type="primary" style="width: 108px;margin-left: 142px;">
{{ buttons.close }}
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;"> <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;">
@ -114,7 +119,8 @@
<el-input v-model="dataForm.spec" readonly style="width: 180px;"></el-input> <el-input v-model="dataForm.spec" readonly style="width: 180px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item style="margin-top: 30px"> <el-form-item style="margin-top: 30px">
<el-button @click="getSaveModel()" type="primary" style="margin-left: 82px;">{{buttons.supplierBatchIn}}</el-button>
<el-button @click="getSaveModel()" type="primary" style="margin-left: 82px;">{{ buttons.supplierBatchIn }}
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;"> <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;">
@ -143,20 +149,20 @@
<el-form-item :label="labels.rollNumber"> <el-form-item :label="labels.rollNumber">
<el-input v-model="dataForm.rollNumber" type="number" style="width: 120px;"></el-input> <el-input v-model="dataForm.rollNumber" type="number" style="width: 120px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item >
<el-button style="margin-top: 24px" @click="insertData()" type="primary">{{buttons.insert}}</el-button>
<el-form-item>
<el-button style="margin-top: 24px" @click="insertData()" type="primary">{{ buttons.insert }}</el-button>
</el-form-item> </el-form-item>
<el-form-item :label="labels.C_No" style="margin-left: 208px"> <el-form-item :label="labels.C_No" style="margin-left: 208px">
<el-input v-model="dataForm.XX" style="width: 120px;"></el-input> <el-input v-model="dataForm.XX" style="width: 120px;"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<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: -10px;">
<el-form-item >
<span slot="label" style="" @click="getBaseList(92)"><a herf="#">{{labels.customerID}}</a></span>
<el-form-item>
<span slot="label" style="" @click="getBaseList(92)"><a herf="#">{{ labels.customerID }}</a></span>
<el-input v-model="dataForm.customerID" style="width: 120px;" @change="getReferenceData();"></el-input> <el-input v-model="dataForm.customerID" style="width: 120px;" @change="getReferenceData();"></el-input>
</el-form-item> </el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">{{labels.fGPartNo}}</a></span>
<el-form-item>
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">{{ labels.fGPartNo }}</a></span>
<el-input v-model="dataForm.fGPartNo" style="width: 120px;" @change="getReferenceData();"></el-input> <el-input v-model="dataForm.fGPartNo" style="width: 120px;" @change="getReferenceData();"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="labels.referencePartDesc"> <el-form-item :label="labels.referencePartDesc">
@ -171,7 +177,7 @@
<el-input v-model="dataForm.referenceSupplierName" readonly style="width: 220px;"></el-input> <el-input v-model="dataForm.referenceSupplierName" readonly style="width: 220px;"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-tabs v-model="activeName" style="font-size: 12px" class="customer-tab" type="border-card" >
<el-tabs v-model="activeName" style="font-size: 12px" class="customer-tab" type="border-card">
<el-tab-pane :label="labels.toRoll" name="first"> <el-tab-pane :label="labels.toRoll" name="first">
<el-row> <el-row>
<el-col :span="10"> <el-col :span="10">
@ -192,7 +198,7 @@
:width="item.columnWidth" :width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
@ -203,14 +209,14 @@
width="50" width="50"
:label="labels.case"> :label="labels.case">
<template slot-scope="scope"> <template slot-scope="scope">
<a type="text" size="small" @click="remove(scope.row)" herf="#">{{labels.deleteRoll}}</a>
<a type="text" size="small" @click="remove(scope.row)" herf="#">{{ labels.deleteRoll }}</a>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<span style="margin-left: 5px">{{labels.sumQty}}</span>
<span style="margin-left: 5px">{{ labels.sumQty }}</span>
<el-input v-model="sum1" style="width: 50px;" readonly></el-input> <el-input v-model="sum1" style="width: 50px;" readonly></el-input>
<span>{{labels.allQty}}</span>
<span>{{ labels.allQty }}</span>
<el-input v-model="sum2" style="width: 80px;" readonly></el-input> <el-input v-model="sum2" style="width: 80px;" readonly></el-input>
</el-form> </el-form>
</el-col> </el-col>
@ -233,7 +239,7 @@
:width="item.columnWidth" :width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
@ -263,9 +269,9 @@
</el-table> </el-table>
<el-form :inline="true" label-position="top" label-width="100px"> <el-form :inline="true" label-position="top" label-width="100px">
<div style="margin-top: 8px"> <div style="margin-top: 8px">
<span style="margin-left: 5px">{{labels.sumQty}}</span>
<span style="margin-left: 5px">{{ labels.sumQty }}</span>
<el-input v-model="sum3" style="width: 50px;" readonly></el-input> <el-input v-model="sum3" style="width: 50px;" readonly></el-input>
<span>{{labels.allQty}}</span>
<span>{{ labels.allQty }}</span>
<el-input v-model="sum4" style="width: 80px;" readonly></el-input> <el-input v-model="sum4" style="width: 80px;" readonly></el-input>
</div> </div>
</el-form> </el-form>
@ -276,15 +282,17 @@
</el-footer> </el-footer>
</el-dialog> </el-dialog>
<el-dialog width="430px" :title="labels.supplierBatchIn" :close-on-click-modal="false" v-drag :visible.sync="modelFlag2">
<el-dialog width="430px" :title="labels.supplierBatchIn" :close-on-click-modal="false" v-drag
:visible.sync="modelFlag2">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="labels.site"> <el-form-item :label="labels.site">
<el-input v-model="saveData.site" style="width: 80px"></el-input> <el-input v-model="saveData.site" style="width: 80px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="labels.rollNo"> <el-form-item :label="labels.rollNo">
<el-input v-model="saveData.rollNo" style="width: 150px"></el-input> <el-input v-model="saveData.rollNo" style="width: 150px"></el-input>
<el-button @click="goSaveSuppRollNo()" type="primary" style="margin-left: 10px;">{{buttons.save}}</el-button>
<el-button @click="modelFlag2=false" type="primary" style="margin-left: 10px;">{{buttons.close}}</el-button>
<el-button @click="goSaveSuppRollNo()" type="primary" style="margin-left: 10px;">{{ buttons.save }}
</el-button>
<el-button @click="modelFlag2=false" type="primary" style="margin-left: 10px;">{{ buttons.close }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
@ -300,39 +308,40 @@
</template> </template>
<script> <script>
import Chooselist from '@/views/modules/common/Chooselist'
import {
import Chooselist from '@/views/modules/common/Chooselist'
import {
searchSAPPurchaseOrder, searchSAPPurchaseOrder,
searchCRollInfoDetail, searchCRollInfoDetail,
saveCRollData, saveCRollData,
saveSuppRollNo, saveSuppRollNo,
doSaveSuppRollNo, doSaveSuppRollNo,
getReferenceData, getReferenceData,
} from "@/api/purchasingManagement/materialSplit.js"
} from "@/api/purchasingManagement/materialSplit.js"
/*打印标签专用的js*/
import {
/*打印标签专用的js*/
import {
printMaterialLabel, printMaterialLabel,
} from "@/views/modules/yieldReport/print_roll_label.js"
} from "@/views/modules/yieldReport/print_roll_label.js"
import {
import {
getPartNoDetail, getPartNoDetail,
checkCustomerID checkCustomerID
} from "@/api/base/site.js"
import {
} from "@/api/base/site.js"
import {
searchFunctionButtonList, searchFunctionButtonList,
} from "@/api/sysLanguage.js"
import {
} from "@/api/sysLanguage.js"
import {
saveTableDefaultList, saveTableDefaultList,
getTableDefaultListLanguage, getTableDefaultListLanguage,
getTableUserListLanguage, getTableUserListLanguage,
removerDefault, removerDefault,
removerUser removerUser
} from "@/api/table.js"
var functionId='102001002';
export default {
} from "@/api/table.js"
var functionId = '102001002';
export default {
//-SAP //-SAP
name: "searchSAPPurchaseOrder", name: "searchSAPPurchaseOrder",
components: { components: {
@ -1582,8 +1591,14 @@
}, },
// //
async getTableUserColumn(tableId, columnId) { async getTableUserColumn(tableId, columnId) {
this.queryTableUser.tableId = tableId
await getTableUserListLanguage(this.queryTableUser).then(({data}) => {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) { if (data.rows.length > 0) {
//this.columnList = [] //this.columnList = []
switch (columnId) { switch (columnId) {
@ -1638,26 +1653,26 @@
this.getMultiLanguageList()// this.getMultiLanguageList()//
// //
this.getButtonAuthData(); this.getButtonAuthData();
this.getTableUserColumn('102001002Table',1);
this.getTableUserColumn('102001002Table1',2);
this.getTableUserColumn('102001002Table2',3);
this.getTableUserColumn('102001002Table3',4);
}
this.getTableUserColumn('102001002Table', 1);
this.getTableUserColumn('102001002Table1', 2);
this.getTableUserColumn('102001002Table2', 3);
this.getTableUserColumn('102001002Table3', 4);
} }
}
</script> </script>
<style scoped >
.el-textarea__inner {
<style scoped>
.el-textarea__inner {
padding: 5px 5px; padding: 5px 5px;
}
}
/deep/ .customer-tab .el-tabs__content {
/deep/ .customer-tab .el-tabs__content {
padding: 3px !important; padding: 3px !important;
}
}
/deep/ .el-tabs__item {
/deep/ .el-tabs__item {
padding: 0 20px; padding: 0 20px;
height: 30px; height: 30px;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
@ -1669,6 +1684,6 @@
font-weight: 500; font-weight: 500;
color: #303133; color: #303133;
position: relative; position: relative;
}
}
</style> </style>
Loading…
Cancel
Save