5 changed files with 931 additions and 217 deletions
-
6src/api/production.js
-
463src/views/modules/production/dailyPlanReport.vue
-
377src/views/modules/production/dailyPlanReport_old.vue
-
15src/views/modules/production/scheduleForSOTask.vue
-
287src/views/modules/production/searchHunlianTask.vue
@ -0,0 +1,377 @@ |
|||||
|
<template> |
||||
|
<div class="mod-config"> |
||||
|
<el-form :inline="true" label-position="top" label-width="100px" > |
||||
|
<el-form-item :label="'日计划单号:'"> |
||||
|
<el-input v-model="searchData.orderNo" style="width: 120px"></el-input> |
||||
|
</el-form-item > |
||||
|
<el-form-item :label="'订单号:'"> |
||||
|
<el-input v-model="searchData.orderRef1" style="width: 120px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item > |
||||
|
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">物料编码</a></span> |
||||
|
<el-input v-model="searchData.partNo" style="width: 120px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'计划日期:'"> |
||||
|
<el-date-picker |
||||
|
style="width: 130px" |
||||
|
v-model="searchData.startDate1" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择日期"> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item style="margin-top: 23px;"> |
||||
|
<laber style="margin-left: -9px;font-size: 19px">➞</laber> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="' '"> |
||||
|
<el-date-picker |
||||
|
style="width: 130px" |
||||
|
v-model="searchData.endDate1" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择日期"> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'状态:'"> |
||||
|
<el-select filterable v-model="searchData.finishFlag" style="width: 120px"> |
||||
|
<el-option label="全部" value=""></el-option> |
||||
|
<el-option label="可报工" value="N"></el-option> |
||||
|
<el-option label="不可报工" value="Y"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="' '"> |
||||
|
<el-button @click="search()" style="margin-left: 0px;margin-top: 0px" type="primary">查询</el-button> |
||||
|
<el-button @click="reports()" style="margin-left: 0px;margin-top: 0px" type="primary">批量报工</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-table |
||||
|
:height="height" |
||||
|
:data="tableData" |
||||
|
border |
||||
|
@selection-change="selectionChangeHandle" |
||||
|
style="width: 100%"> |
||||
|
<el-table-column |
||||
|
type="selection" |
||||
|
align="center" |
||||
|
width="30"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="80" |
||||
|
label="日计划单号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderDate" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="计划日期"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderRef1" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="90" |
||||
|
label="订单号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="partNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="物料编码"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="partDescription" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="200" |
||||
|
label="物料名称"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderQty" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="50" |
||||
|
label="计划数量"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="qtyfinished" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="50" |
||||
|
label="已完工数"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="inputQty" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="80" |
||||
|
label="输入混炼胶重量"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="userName" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="50" |
||||
|
label="录入人"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="enterDate" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="100" |
||||
|
label="录入时间"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="reportTime" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="100" |
||||
|
label="报工时间"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="" |
||||
|
header-align="center" |
||||
|
align="center" |
||||
|
min-width="30" |
||||
|
label="操作"> |
||||
|
<template slot-scope="scope" class="foo_container"> |
||||
|
<a type="text" size="small" @click="reportModal(scope.row)">报工</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
|
||||
|
<el-dialog title="保存报工" :close-on-click-modal="false" v-drag :visible.sync="reportModalFlag" width="341px"> |
||||
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
||||
|
<el-form-item :label="'日计划号:'"> |
||||
|
<el-input v-model="reportData.orderNo" disabled style="width: 130px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'混炼胶报工重量:'"> |
||||
|
<el-input v-model="reportData.reportQty" type="number" style="width: 130px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
||||
|
<el-button type="primary" @click="reportSave()">保存</el-button> |
||||
|
<el-button type="primary" @click="reportModalFlag = false">关闭</el-button> |
||||
|
</el-footer> |
||||
|
</el-dialog> |
||||
|
|
||||
|
<el-dialog title="批量报工" :close-on-click-modal="false" v-drag :visible.sync="reportsModalFlag" width="341px"> |
||||
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
||||
|
<el-form-item :label="'混炼胶总报工重量:'"> |
||||
|
<el-input v-model="qtyIn" @change="changeAverage" type="number" style="width: 130px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'平均报工重量:'"> |
||||
|
<el-input v-model="qtyAverage" disabled style="width: 130px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
||||
|
<el-button type="primary" @click="reportsSave()">保存</el-button> |
||||
|
<el-button type="primary" @click="reportsModalFlag = false">关闭</el-button> |
||||
|
</el-footer> |
||||
|
</el-dialog> |
||||
|
|
||||
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
||||
|
</div> |
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
getDailyPlanData, |
||||
|
dailyPlanReportSave, |
||||
|
dailyPlanReportsSave |
||||
|
} from "@/api/production.js" |
||||
|
import decimalUtil from '../../../utils/decimalUtil' |
||||
|
import Chooselist from '@/views/modules/common/Chooselist' |
||||
|
export default { |
||||
|
name: 'dailyPlanReport_old', |
||||
|
components: { |
||||
|
Chooselist |
||||
|
}, |
||||
|
data () { |
||||
|
return { |
||||
|
reportsModalFlag:false, |
||||
|
reportModalFlag:false, |
||||
|
reportData:{ |
||||
|
orderNo:'', |
||||
|
reportQty:'', |
||||
|
reportBy:this.$store.state.user.name, |
||||
|
site:this.$store.state.user.site, |
||||
|
orderRef1: '', |
||||
|
}, |
||||
|
orderRef1:'', |
||||
|
needQty:0, |
||||
|
height:200, |
||||
|
tableData:[], |
||||
|
qtyAverage:0, |
||||
|
qtyIn:'', |
||||
|
date1:'', |
||||
|
searchData:{ |
||||
|
finishFlag:'N', |
||||
|
orderNo:'', |
||||
|
orderRef1:'', |
||||
|
partNo:'', |
||||
|
startDate1:new Date(), |
||||
|
endDate1:'', |
||||
|
status:'all', |
||||
|
site:this.$store.state.user.site, |
||||
|
}, |
||||
|
dataListSelections:[], |
||||
|
tagNo:'', |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$nextTick(()=>{ |
||||
|
this.height = window.innerHeight - 180; |
||||
|
}) |
||||
|
}, |
||||
|
methods: { |
||||
|
getBaseList (val,type) { |
||||
|
this.tagNo = val |
||||
|
this.$nextTick(() => { |
||||
|
let strVal = '' |
||||
|
if (val === 5) { |
||||
|
strVal = this.searchData.partNo |
||||
|
} |
||||
|
this.$refs.baseList.init(val, strVal) |
||||
|
}) |
||||
|
}, |
||||
|
/* 列表方法的回调 */ |
||||
|
getBaseData (val) { |
||||
|
if (this.tagNo === 5) { |
||||
|
this.searchData.partNo = val.PartNo |
||||
|
} |
||||
|
}, |
||||
|
selectionChangeHandle (val) { |
||||
|
this.dataListSelections = val |
||||
|
}, |
||||
|
search(){ |
||||
|
getDailyPlanData(this.searchData).then(({data}) => { |
||||
|
this.tableData = data.rows; |
||||
|
}) |
||||
|
}, |
||||
|
reportModal(row){ |
||||
|
if(row.orderQty<=row.qtyfinished){ |
||||
|
this.$alert('此日计划已报工完毕!', '错误', { |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
return false |
||||
|
} |
||||
|
this.reportData.orderNo=row.orderNo; |
||||
|
this.needQty=decimalUtil.sub(row.orderQty,row.qtyfinished); |
||||
|
this.reportData.reportQty=0; |
||||
|
this.reportData.orderRef1=row.orderRef1; |
||||
|
this.reportModalFlag=true; |
||||
|
}, |
||||
|
reportSave(){ |
||||
|
// if(this.reportData.reportQty<this.needQty){ |
||||
|
// this.$alert('报工数量小于计划数量无法报工!', '错误', { |
||||
|
// confirmButtonText: '确定' |
||||
|
// }) |
||||
|
// return false; |
||||
|
// } |
||||
|
dailyPlanReportSave(this.reportData).then(({data}) => { |
||||
|
if (data && data.code === 0) { |
||||
|
this.search(); |
||||
|
this.reportModalFlag=false; |
||||
|
this.$message({ |
||||
|
message: '操作成功', |
||||
|
type: 'success', |
||||
|
duration: 1500, |
||||
|
onClose: () => { |
||||
|
} |
||||
|
}) |
||||
|
} else { |
||||
|
this.$alert(data.msg, '错误', { |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
//批量报工 |
||||
|
reports(){ |
||||
|
if(this.dataListSelections.length==0){ |
||||
|
this.$alert('请勾选需要报工的日计划!','错误',{ |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
return false; |
||||
|
} |
||||
|
let orderRef=this.dataListSelections[0].orderRef1; |
||||
|
for (let i = 0; i <this.dataListSelections.length ; i++) { |
||||
|
if(orderRef!=this.dataListSelections[i].orderRef1){ |
||||
|
this.$alert('请选择同一订单的日计划!','错误',{ |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
return false; |
||||
|
} |
||||
|
if(this.dataListSelections[i].orderQty<=this.dataListSelections[i].qtyfinished){ |
||||
|
this.$alert('存在已报工完成的订单!','错误',{ |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
return false; |
||||
|
} |
||||
|
} |
||||
|
this.qtyIn=''; |
||||
|
this.qtyAverage='0'; |
||||
|
this.orderRef1=orderRef; |
||||
|
this.reportsModalFlag=true; |
||||
|
}, |
||||
|
changeAverage(){ |
||||
|
this.qtyAverage=this.decimalUtil.div(this.qtyIn,this.dataListSelections.length); |
||||
|
if(this.qtyAverage!=Math.ceil(this.qtyAverage)){ |
||||
|
this.qtyAverage=this.decimalUtil.div(this.qtyIn,this.dataListSelections.length).toFixed(1); |
||||
|
} |
||||
|
}, |
||||
|
reportsSave(){ |
||||
|
// for (let i = 0; i <this.dataListSelections.length ; i++) { |
||||
|
// if(this.dataListSelections[i].orderQty>this.qtyAverage){ |
||||
|
// this.$alert('存在计划数量大于平均报工数量的订单!','错误',{ |
||||
|
// confirmButtonText: '确定' |
||||
|
// }) |
||||
|
// return false; |
||||
|
// } |
||||
|
// } |
||||
|
let inList=[]; |
||||
|
for (let i = 0; i <this.dataListSelections.length ; i++) { |
||||
|
let indata={ |
||||
|
orderNo:this.dataListSelections[i].orderNo, |
||||
|
reportQty:this.qtyAverage, |
||||
|
reportBy:this.$store.state.user.name, |
||||
|
site:this.$store.state.user.site, |
||||
|
orderRef1:this.orderRef1 |
||||
|
} |
||||
|
inList.push(indata) |
||||
|
} |
||||
|
dailyPlanReportsSave(inList).then(({data}) => { |
||||
|
if (data && data.code === 0) { |
||||
|
this.search(); |
||||
|
this.reportsModalFlag=false; |
||||
|
this.$message({ |
||||
|
message: '操作成功', |
||||
|
type: 'success', |
||||
|
duration: 1500, |
||||
|
onClose: () => { |
||||
|
} |
||||
|
}) |
||||
|
} else { |
||||
|
this.$alert(data.msg, '错误', { |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
}, |
||||
|
created() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style > |
||||
|
.el-table .cell { |
||||
|
padding: 0px; |
||||
|
} |
||||
|
</style> |
||||
@ -0,0 +1,287 @@ |
|||||
|
<template> |
||||
|
<div class="mod-config"> |
||||
|
<el-form :inline="true" label-position="top" label-width="100px" > |
||||
|
<el-form-item :label="'混炼任务单号:'"> |
||||
|
<el-input v-model="searchData.taskNo" style="width: 120px"></el-input> |
||||
|
</el-form-item > |
||||
|
<el-form-item > |
||||
|
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">物料编码</a></span> |
||||
|
<el-input v-model="searchData.partNo" style="width: 120px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'合并日期:'"> |
||||
|
<el-date-picker |
||||
|
style="width: 130px" |
||||
|
v-model="searchData.startDate" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择日期"> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item style="margin-top: 23px;"> |
||||
|
<laber style="margin-left: -9px;font-size: 19px">➞</laber> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="' '"> |
||||
|
<el-date-picker |
||||
|
style="width: 130px" |
||||
|
v-model="searchData.endDate" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择日期"> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'是否报工:'"> |
||||
|
<el-select filterable v-model="searchData.reportFlag" style="width: 120px"> |
||||
|
<el-option label="全部" value=""></el-option> |
||||
|
<el-option label="否" value="N"></el-option> |
||||
|
<el-option label="是" value="Y"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="' '"> |
||||
|
<el-button @click="search()" style="margin-left: 0px;margin-top: 0px" type="primary">查询</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-table |
||||
|
:height="height" |
||||
|
:data="tableData" |
||||
|
border |
||||
|
style="width: 100%"> |
||||
|
<el-table-column |
||||
|
prop="" |
||||
|
header-align="center" |
||||
|
align="center" |
||||
|
min-width="100" |
||||
|
label="操作"> |
||||
|
<template slot-scope="scope" class="foo_container"> |
||||
|
<a type="text" size="small" @click="printPartCard(scope.row)">物料标识卡</a> |
||||
|
<a type="text" size="small" @click="detailModal(scope.row)">查看周计划明细</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="taskNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="80" |
||||
|
label="混炼任务单号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="partNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="混炼物料编码"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="partDesc" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="100" |
||||
|
label="混炼胶名称"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="taskQty" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="100" |
||||
|
label="混炼胶数量"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="createDate" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="合并日期"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="createBy" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="创建人"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="reportFlag" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="是否报工"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="reportQty" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="70" |
||||
|
label="报工数量"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="wareHouseFlag" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="是否入库"> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag title="周计划清单" :visible.sync="detailFlag" width="600px"> |
||||
|
<el-table |
||||
|
height="300" |
||||
|
:data="detailList" |
||||
|
border |
||||
|
style="width: 100%"> |
||||
|
<el-table-column |
||||
|
prop="taskNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="80" |
||||
|
label="混炼任务单号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="周计划号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="partDesc" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="100" |
||||
|
label="混炼胶名称"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="70" |
||||
|
label="周计划号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderQty" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="70" |
||||
|
label="周计划数量"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="hunlianQty" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="70" |
||||
|
label="混炼胶数量"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="orderDate" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="100" |
||||
|
label="周计划日期"> |
||||
|
</el-table-column> |
||||
|
|
||||
|
</el-table> |
||||
|
<span slot="footer" class="dialog-footer"> |
||||
|
<el-button @click="detailFlag = false" type="primary">关闭</el-button> |
||||
|
</span> |
||||
|
</el-dialog> |
||||
|
|
||||
|
|
||||
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
||||
|
</div> |
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
getHunlianTaskData,getHunlianTaskDetailData |
||||
|
} from "@/api/production.js" |
||||
|
import { |
||||
|
printPartLabel, |
||||
|
} from "@/views/modules/production/print_part_label.js" |
||||
|
import decimalUtil from '../../../utils/decimalUtil' |
||||
|
import Chooselist from '@/views/modules/common/Chooselist' |
||||
|
export default { |
||||
|
components: { |
||||
|
Chooselist |
||||
|
}, |
||||
|
data () { |
||||
|
return { |
||||
|
searchData:{ |
||||
|
taskNo:'', |
||||
|
partNo:'', |
||||
|
startDate:'', |
||||
|
endDate:'', |
||||
|
reportFlag:'N', |
||||
|
}, |
||||
|
height:200, |
||||
|
tagNo:'', |
||||
|
tableData:[], |
||||
|
detailList:[], |
||||
|
detailFlag:false, |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$nextTick(()=>{ |
||||
|
this.height = window.innerHeight - 180; |
||||
|
}) |
||||
|
}, |
||||
|
methods: { |
||||
|
getBaseList (val,type) { |
||||
|
this.tagNo = val |
||||
|
this.$nextTick(() => { |
||||
|
let strVal = '' |
||||
|
if (val === 5) { |
||||
|
strVal = this.searchData.partNo |
||||
|
} |
||||
|
this.$refs.baseList.init(val, strVal) |
||||
|
}) |
||||
|
}, |
||||
|
/* 列表方法的回调 */ |
||||
|
getBaseData (val) { |
||||
|
if (this.tagNo === 5) { |
||||
|
this.searchData.partNo = val.PartNo |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
search(){ |
||||
|
getHunlianTaskData(this.searchData).then(({data}) => { |
||||
|
this.tableData = data.rows; |
||||
|
}) |
||||
|
}, |
||||
|
detailModal(row){ |
||||
|
let inData={ |
||||
|
site:row.site, |
||||
|
taskNo:row.taskNo, |
||||
|
} |
||||
|
getHunlianTaskDetailData(inData).then(({data}) => { |
||||
|
this.detailList = data.rows; |
||||
|
}) |
||||
|
this.detailFlag=true; |
||||
|
|
||||
|
}, |
||||
|
printPartCard(row){ |
||||
|
let array=[]; |
||||
|
let data={ |
||||
|
printerName:'大标签打印机', |
||||
|
orderNo:'*', |
||||
|
userId:this.$store.state.user.name, |
||||
|
partNo:row.partNo, |
||||
|
sScheduledDate:row.createDate, |
||||
|
operatorName:this.$store.state.user.name, |
||||
|
partDesc:row.partDesc, |
||||
|
qtyRequired:row.taskQty, |
||||
|
toExpireDays:row.toExpireDays, |
||||
|
} |
||||
|
array.push(data) |
||||
|
printPartLabel(array) |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
}, |
||||
|
created() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style > |
||||
|
.el-table .cell { |
||||
|
padding: 0px; |
||||
|
} |
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue