Browse Source

材料分卷删除 2022-06-21 sxm

master
[li_she] 4 years ago
parent
commit
1a93605db4
  1. 24
      src/views/modules/purchasingManagement/beginMaterialSlittedSet.vue
  2. 181
      src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue
  3. 2
      src/views/modules/shopOrder/productionReport/searchItemToBeProduct.vue

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

@ -75,7 +75,7 @@
<el-input v-model="dataForm.referenceSupplierName" readonly style="width: 200px;"></el-input>
</el-form-item>
</el-form>
<el-tabs v-model="activeName" style="font-size: 11px;width: 1000px">
<el-tabs v-model="activeName" style="font-size: 12px" class="customer-tab" type="border-card">
<el-tab-pane label="待分卷" name="first">
<div style="width: 1000px;margin-top: 0px;">
<div style="width: 100%;float: left">
@ -106,7 +106,7 @@
header-align="center"
align="center"
width="150"
:label="buttons.cz">
:label="'操作'">
<template slot-scope="scope">
<a type="text" size="small" @click="remove(scope.row)" herf="#">删除卷</a>
</template>
@ -719,7 +719,7 @@
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 360;
this.height = window.innerHeight - 330;
})
},
methods: {
@ -1144,5 +1144,23 @@
<style scoped>
/deep/ .customer-tab .el-tabs__content {
padding: 3px !important;
}
/deep/ .el-tabs__item {
padding: 0 20px;
height: 30px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 30px;
display: inline-block;
list-style: none;
font-size: 12px;
font-weight: 500;
color: #303133;
position: relative;
}
</style>

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

@ -92,7 +92,7 @@
<el-button @click="saveCRoll()" type="primary" style="width: 108px;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 :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;">
<el-form-item :label="'供应商编号:'">
<el-input v-model="dataForm.supplierID" readonly style="width: 120px;"></el-input>
</el-form-item>
@ -103,7 +103,7 @@
<el-button @click="modelFlag=false" type="primary" style="width: 108px;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 :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;">
<el-form-item :label="'物料编码:'">
<el-input v-model="dataForm.partNo" readonly style="width: 120px;"></el-input>
</el-form-item>
@ -117,7 +117,7 @@
<el-button @click="getSaveModel()" type="primary" style="margin-left: 82px;">供应商批号录入</el-button>
</el-form-item>
</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: -15px;">
<el-form-item :label="'接收日期:'">
<el-date-picker
style="width: 120px"
@ -133,15 +133,15 @@
<el-input v-model="dataForm.quantity" readonly style="width: 120px;"></el-input>
</el-form-item>
</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: -10px;">
<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-button @click="insertData()" type="primary">插入</el-button>
<el-form-item >
<el-button style="margin-top: 24px" @click="insertData()" type="primary">插入</el-button>
<!-- <el-switch-->
<!-- v-model="value1"-->
<!-- active-color="#13ce66"-->
@ -157,7 +157,7 @@
<el-input v-model="dataForm.XX" style="width: 120px;"></el-input>
</el-form-item>
</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: -10px;">
<el-form-item >
<span slot="label" style="" @click="getBaseList(92)"><a herf="#">客户编号</a></span>
<el-input v-model="dataForm.customerID" style="width: 120px;" @change="getReferenceData();"></el-input>
@ -170,7 +170,7 @@
<el-input v-model="dataForm.referencePartDesc" readonly style="width: 220px;"></el-input>
</el-form-item>
</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: -10px;">
<el-form-item :label="'供应商编码:'">
<el-input v-model="dataForm.referenceSupplierID" readonly style="width: 120px;"></el-input>
</el-form-item>
@ -178,72 +178,81 @@
<el-input v-model="dataForm.referenceSupplierName" readonly style="width: 220px;"></el-input>
</el-form-item>
</el-form>
<el-tabs v-model="activeName" style="font-size: 11px">
<el-tabs v-model="activeName" style="font-size: 12px" class="customer-tab" type="border-card" >
<el-tab-pane label="待分卷" name="first">
<div style="width: 775px;margin-top: 8px;">
<div style="width: 40%;float: left">
<el-table
height="200"
:data="dataList1"
border
:vertical-align="'middle'"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList1" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</div>
<div style="width: 58%;float: left">
<el-table
height="200"
:data="dataList2"
border
@row-dblclick="changeData"
:vertical-align="'middle'"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList2" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</div>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<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>
</el-form>
</div>
<el-row>
<el-col :span="10">
<el-table
height="200"
:data="dataList1"
border
:vertical-align="'middle'"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList1" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="50"
:label="'操作'">
<template slot-scope="scope">
<a type="text" size="small" @click="remove(scope.row)" herf="#">删除卷</a>
</template>
</el-table-column>
</el-table>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<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>
</el-form>
</el-col>
<el-col :span="14">
<el-table
height="200"
:data="dataList2"
border
@row-dblclick="changeData"
:vertical-align="'middle'"
style="width: 120%;">
<el-table-column
v-for="(item,index) in columnList2" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
</el-tab-pane>
<el-tab-pane label="已分卷" name="second">
<div style="width: 760px;margin-top: 0px">
<el-table
height="200"
height="195"
:data="dataList3"
border
:vertical-align="'middle'"
@ -257,6 +266,7 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
</el-table-column>
</el-table>
<el-form :inline="true" label-position="top" label-width="100px">
<div style="margin-top: 8px">
@ -1075,6 +1085,18 @@
this.sum1 = Number(this.sum1)+ Number(newDate.rollNumber);
this.sum2 = Number(this.sum2)+ Number(newDate.allRollQty);
},
remove(row){
this.$confirm('确认删除记录吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.sum1 = Number(this.sum1) - Number(row.rollNumber);
this.sum2 = Number(this.sum2) - Number(row.allRollQty);
this.dataList1 = this.dataList1.filter(item => item.number!=row.number)
})
},
saveCRoll() {
let inData = {
site: this.dataForm.site,
@ -1429,9 +1451,28 @@
}
</script>
<style>
<style scoped >
.el-textarea__inner {
padding: 5px 5px;
}
/deep/ .customer-tab .el-tabs__content {
padding: 3px !important;
}
/deep/ .el-tabs__item {
padding: 0 20px;
height: 30px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 30px;
display: inline-block;
list-style: none;
font-size: 12px;
font-weight: 500;
color: #303133;
position: relative;
}
</style>

2
src/views/modules/shopOrder/productionReport/searchItemToBeProduct.vue

@ -938,7 +938,7 @@
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 160;
this.height = window.innerHeight - 185;
})
},

Loading…
Cancel
Save