Browse Source

排产拓展,fqc打印修改 2022年11月24日 sxm

master
[li_she] 4 years ago
parent
commit
97a982b378
  1. 3
      src/api/schedule/order_schedule_expand.js
  2. 1
      src/views/modules/schedule/com_schedule_order_expand.vue
  3. 357
      src/views/modules/schedule/order_schedule_expand.vue
  4. 21
      src/views/modules/shopOrder/shopOrder/common/tool_add_and_edit.vue
  5. 2
      src/views/modules/shopOrder/shopOrder/shopOrder.vue
  6. 16
      src/views/modules/yieldReport/otherReport/fqc_merge_roll.vue
  7. 8
      src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue

3
src/api/schedule/order_schedule_expand.js

@ -6,5 +6,6 @@ export const getShopOrderList = data => createAPI('scheduling/getShopOrderList',
//获取当前人员的日历编码和描述 //获取当前人员的日历编码和描述
export const getCurrentWorkCenterNoByResourceId = data => createAPI('scheduling/getCurrentWorkCenterNoByResourceId', 'POST', data) export const getCurrentWorkCenterNoByResourceId = data => createAPI('scheduling/getCurrentWorkCenterNoByResourceId', 'POST', data)
// 批量拓展排产
export const batchScheduleOrderWithExpand = data => createAPI('scheduling/batchScheduleOrderWithExpand', 'POST', data)

1
src/views/modules/schedule/com_schedule_order_expand.vue

@ -66,7 +66,6 @@
<el-input v-model="pageData.scheduledQty" style="width: 120px"></el-input> <el-input v-model="pageData.scheduledQty" style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="''" style="margin-top: 20px;"> <el-form-item :label="''" style="margin-top: 20px;">
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">多语言设置</el-button>
<el-button class="customer-bun-min" type="primary" @click="startScheduleOrderBun" style="margin-left: 10px; margin-bottom: 5px;">{{buttons.scheduleButton}}</el-button> <el-button class="customer-bun-min" type="primary" @click="startScheduleOrderBun" style="margin-left: 10px; margin-bottom: 5px;">{{buttons.scheduleButton}}</el-button>
</el-form-item> </el-form-item>
</el-row> </el-row>

357
src/views/modules/schedule/order_schedule_expand.vue

@ -52,7 +52,8 @@
<!-- 排序规则 --> <!-- 排序规则 -->
<fieldset class="customer-field" style="margin-left: 520px; margin-top: -75px; width: 135px;"> <fieldset class="customer-field" style="margin-left: 520px; margin-top: -75px; width: 135px;">
<legend>{{ labels.sortNo }}</legend><br>
<legend>{{ labels.sortNo }}</legend>
<br>
<el-form :inline="true" style="margin-top: -10px; margin-bottom: 10px;" label-position="top" label-width="100px"> <el-form :inline="true" style="margin-top: -10px; margin-bottom: 10px;" label-position="top" label-width="100px">
<el-form-item :label="''" style="margin-bottom: 10px;"> <el-form-item :label="''" style="margin-bottom: 10px;">
<el-radio-group v-model="pageData.sortField"> <el-radio-group v-model="pageData.sortField">
@ -68,11 +69,18 @@
<el-form :inline="true" label-position="top" label-width="100px" <el-form :inline="true" label-position="top" label-width="100px"
style="margin-left: 660px; margin-top: -40px;"> style="margin-left: 660px; margin-top: -40px;">
<el-row> <el-row>
<el-col :span="24">
<el-form-item :label="''"> <el-form-item :label="''">
<el-form-item :label="''" style="margin-left: 30px;"> <el-form-item :label="''" style="margin-left: 30px;">
<el-button class="customer-bun-min" type="primary" @click="refreshPageTables" style="margin-left: 10px; margin-bottom: 5px;">{{buttons.refreshButton}}</el-button>
<el-button class="customer-bun-min" type="primary" @click="refreshPageTables"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.refreshButton }}
</el-button>
<el-button :disabled="dataListSelections.length <= 0" type="primary" @click="scheduleBatchDialog()"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.scheduleBatch }}
</el-button>
</el-form-item> </el-form-item>
</el-form-item> </el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
@ -87,15 +95,15 @@
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item class="customer-li" command="生产工单" <el-dropdown-item class="customer-li" command="生产工单"
:disabled="primaryMenuButton.shopOrderFlag">{{buttons.shopOrder}}</el-dropdown-item>
:disabled="primaryMenuButton.shopOrderFlag">{{ buttons.shopOrder }}
</el-dropdown-item>
<hr width="95%"/> <hr width="95%"/>
<el-dropdown-item class="customer-li" command="查看物料库存" <el-dropdown-item class="customer-li" command="查看物料库存"
:disabled="primaryMenuButton.partStockFlag">{{buttons.viewPartStock}}</el-dropdown-item>
:disabled="primaryMenuButton.partStockFlag">{{ buttons.viewPartStock }}
</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<el-button @click="userSetting" type="primary">{{ buttons.settingTable }}</el-button> <el-button @click="userSetting" type="primary">{{ buttons.settingTable }}</el-button>
<el-button v-if="showDefault" @click="saveColumnList()" type="primary">{{ buttons.defaultTable }}</el-button>
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">多语言设置</el-button>
</el-form> </el-form>
<el-table <el-table
:height="height" :height="height"
@ -103,11 +111,19 @@
border border
ref="routingTable" ref="routingTable"
highlight-current-row highlight-current-row
@selection-change="handleSelectionChange"
@row-click="setCurrentRoutingRow" @row-click="setCurrentRoutingRow"
:row-class-name="routingRowClassName" :row-class-name="routingRowClassName"
@row-dblclick="startScheduleOperation" @row-dblclick="startScheduleOperation"
v-loading="dataListLoading" v-loading="dataListLoading"
style="margin-top: -20px; width: 100%;"> style="margin-top: -20px; width: 100%;">
<el-table-column
type="selection"
header-align="center"
fixed="left"
align="center"
width="55">
</el-table-column>
<el-table-column <el-table-column
v-for="(item,index) in columnList" :key="index" v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable" :sortable="item.columnSortable"
@ -119,9 +135,18 @@
: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.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<span v-if="!item.columnHidden && item.columnProp == 'resourceList'">
<el-select class="table-select-input" v-model="scope.row.resourceId">
<el-option v-for="(item,index) in scope.row.resourceList.split(';')" :key="index"
:value="item.split(':')[0]" :label="item.split(':')[1]">
</el-option>
</el-select>
</span>
<span v-if="!item.columnHidden && item.columnProp == 'qtyToSchedule'">
<el-input v-model="scope.row.qtyToSchedule" type="number">
</el-input>
</span>
<span v-else> {{ scope.row[item.columnProp] }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -144,6 +169,67 @@
<!-- 动态列 --> <!-- 动态列 -->
<column v-if="visible" ref="column" @refreshData="getTableUserColumn" v-drag></column> <column v-if="visible" ref="column" @refreshData="getTableUserColumn" v-drag></column>
<el-dialog
width="702px"
:title="'已选工单'"
:close-on-click-modal="false"
:visible.sync="scheduleVisible">
<el-row>
<el-col :span="24">
<el-form :inline="true" label-position="top" style="height: 60px;"
label-width="80px">
<el-form-item :label=labels.scheduledDate>
<el-date-picker class="el-time-width"
style=""
v-model="scheduleDate"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item :label="''" style="margin-top: -5px;">
<el-checkbox v-model="specifiedTime" true-label="Y" false-label="N"
style="margin-top: 28px; margin-right: -20px;"></el-checkbox>
<el-time-picker
format="HH:mm"
style="margin-top: 30px; width: 65px"
v-model="scheduleTime"
value-format="HH:mm">
</el-time-picker>
</el-form-item>
</el-form>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-table
:height="300"
:data="dataListSelections"
border
style="margin-top: -15px; width: 100%;">
<el-table-column
v-for="(item,index) in scheduleColumnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">
{{ scope.row[item.columnProp] }}
</span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="batchScheduleOrderWithExpandStart()">确定</el-button>
<el-button type="primary" @click="scheduleVisible = false">取消</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -156,6 +242,7 @@
import { import {
getShopOrderList, getShopOrderList,
getCurrentWorkCenterNoByResourceId, getCurrentWorkCenterNoByResourceId,
batchScheduleOrderWithExpand
} from '@/api/schedule/order_schedule_expand.js'; } from '@/api/schedule/order_schedule_expand.js';
/*动态表头*/ /*动态表头*/
@ -190,6 +277,140 @@ export default {
authEdit: false, authEdit: false,
authAdd: false, authAdd: false,
authDelete: false, authDelete: false,
scheduleVisible: false,
scheduleDate: this.dayjs().format('YYYY-MM-DD'),
specifiedTime: 'N',
scheduleTime: '08:30',
dataListSelections: [],
scheduleColumnList: [
{
userId: this.$store.state.user.name,
functionId: 5301,
serialNumber: '5301OrderOrderNo',
tableId: "5301Order",
tableName: "工单表",
columnProp: "orderNo",
headerAlign: "center",
align: "center",
columnLabel: "订单号",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5301,
serialNumber: '5301OrderItemNo',
tableId: "5301Order",
tableName: "工单表",
columnProp: "itemNo",
headerAlign: "center",
align: "center",
columnLabel: "工序号",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5301,
serialNumber: '5301OrderItemDesc',
tableId: "5301Order",
tableName: "工单表",
columnProp: "itemDesc",
headerAlign: "center",
align: "center",
columnLabel: "工序名称",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5301,
serialNumber: '5301OrderPartNo',
tableId: "5301Order",
tableName: "工单表",
columnProp: "partNo",
headerAlign: "center",
align: "center",
columnLabel: "产品编码",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5301,
serialNumber: '5301OrderQtyToSchedule',
tableId: "5301Order",
tableName: "工单表",
columnProp: "qtyToSchedule",
headerAlign: "center",
align: "center",
columnLabel: "待排产数量",
columnWidth: 120,
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5301,
serialNumber: '5301OrderWorkCenterNo',
tableId: "5301Order",
tableName: "工单表",
columnProp: "workCenterNo",
headerAlign: "center",
align: "center",
columnLabel: "加工中心",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5301,
serialNumber: '5301OrderWorkCenterNo',
tableId: "5301Order",
tableName: "工单表",
columnProp: "resourceId",
headerAlign: "center",
align: "center",
columnLabel: "机台",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
],
menuId: this.$route.meta.menuId, menuId: this.$route.meta.menuId,
showDefault: false, showDefault: false,
visible: false, visible: false,
@ -882,6 +1103,7 @@ export default {
viewPartStock: '查看物料库存', viewPartStock: '查看物料库存',
settingTable: '设置列表', settingTable: '设置列表',
defaultTable: '设置默认配置', defaultTable: '设置默认配置',
scheduleBatch: '批量排产',
}, },
buttonList: [ buttonList: [
{ {
@ -941,6 +1163,12 @@ export default {
sortPartNo: '产品编码', sortPartNo: '产品编码',
primaryRecord: '主记录', primaryRecord: '主记录',
pleaseSelectOrder: '请选择工单!', pleaseSelectOrder: '请选择工单!',
scheduleBatchWarning: '选中的工单中,包含未选择的机台的工单!',
scheduledDate: '排产日期',
pleaseEnterThisScheduleQty: '请输入本次排产数量!',
thisScheduleQtyMustMoreThanZero: '本次排产数量必须大于零!',
pleaseSelectAvailableResourceId: '请选择可用机台!',
scheduleQtyMoreThanZeroWaitScheduleQty: '排产数量超过本次待排产数量!',
}, },
labelsList: [ labelsList: [
{ {
@ -1040,7 +1268,101 @@ export default {
}) })
}, },
methods: { methods: {
// 开始排产
batchScheduleOrderWithExpandStart() {
let newItemList = []
for (let i = 0; i < this.dataListSelections.length; i++) {
let item = this.dataListSelections[i]
let qtyToSchedule = item.qtyToSchedule;
if (qtyToSchedule == null || qtyToSchedule == '') {
this.$message.error(this.labels.pleaseEnterThisScheduleQty)
return false;
}
//判断数量是否超限
if (item.scheduledQty <= 0) {
this.$message.error(this.labels.thisScheduleQtyMustMoreThanZero)
return false;
}
//验证可用机台
let resourceId = item.resourceId;
if (resourceId == null || resourceId == '' || resourceId == '请选择') {
this.$message.error(this.labels.pleaseSelectAvailableResourceId)
return false;
}
let scheduledQty = parseFloat(item.scheduledQty);
if (qtyToSchedule > scheduledQty) {
this.$message.error(this.labels.scheduleQtyMoreThanZeroWaitScheduleQty)
return false;
}
let newItem = {
checkFlag: true,
itemNo: item.itemNo,
orderNo: item.orderNo,
qtyToSchedule: item.scheduledQty,
resourceId: item.resourceId,
scheduleDate: this.scheduleDate,
scheduleTime: this.scheduleTime,
scheduledQty: item.qtyToSchedule,
site: item.site,
specifiedTime: this.specifiedTime,
username: this.$store.state.user.name,
workCenterNo: item.workCenterNo
}
newItemList.push(newItem)
}
batchScheduleOrderWithExpand(newItemList).then(({data}) => {
if (data.code == 200) {
this.$message.success(data.msg)
} else if (data.code == 201) {
this.$confirm(data.msg, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
type: 'warning'
}).then(() => {
for (let i = 0; i < this.dataListSelections.length; i++) {
let item = this.dataListSelections[i]
let newItem = {
checkFlag: false,
itemNo: item.itemNo,
orderNo: item.orderNo,
qtyToSchedule: item.scheduledQty,
resourceId: item.resourceId,
scheduleDate: this.scheduleDate,
scheduleTime: this.scheduleTime,
scheduledQty: item.qtyToSchedule,
site: item.site,
specifiedTime: this.specifiedTime,
username: this.$store.state.user.name,
workCenterNo: item.workCenterNo
}
newItemList.push(newItem)
}
batchScheduleOrderWithExpand(newItemList).then(({data}) => {
if (data.code == 200) {
this.$message.success(data.msg)
} else if (data.code == 500) {
this.$message.error(data.msg)
}
})
});
this.$message.warning(data.msg)
} else if (data.code == 500) {
this.$message.error(data.msg)
}
})
},
// scheduleBatchDialog
scheduleBatchDialog() {
if (this.dataListSelections.find(item => item.resourceId == '' || item.resourceId == null)) {
this.$message.warning(this.labels.scheduleBatchWarning)
return
}
this.scheduleVisible = true
},
// 选中记录
handleSelectionChange(val) {
this.dataListSelections = val
},
/*刷新页面table*/ /*刷新页面table*/
refreshPageTables() { refreshPageTables() {
this.getShopOrderList(); this.getShopOrderList();
@ -1161,8 +1483,6 @@ export default {
}, },
/*判断主菜单的样式*/ /*判断主菜单的样式*/
controlPrimaryMenuBun() { controlPrimaryMenuBun() {
//没有选择行 所有的按钮都是灰色 //没有选择行 所有的按钮都是灰色
@ -1308,7 +1628,6 @@ export default {
}, },
}, },
created() { created() {
//查询工单的数据 //查询工单的数据
@ -1343,6 +1662,7 @@ export default {
.customer-card .el-form-item__content { .customer-card .el-form-item__content {
margin-top: -15px; margin-top: -15px;
} }
.customer-card .el-form-item { .customer-card .el-form-item {
height: 22px; height: 22px;
} }
@ -1355,11 +1675,13 @@ export default {
div.el-time-width { div.el-time-width {
width: 110px !important; width: 110px !important;
} }
/* 全局时间右边框*/ /* 全局时间右边框*/
.customer-css input.el-input__inner { .customer-css input.el-input__inner {
height: 22px !important; height: 22px !important;
padding-right: 0px !important; padding-right: 0px !important;
} }
/* 控制el-card标签的数据*/ /* 控制el-card标签的数据*/
div.customer-el-card { div.customer-el-card {
margin-left: 110px; margin-left: 110px;
@ -1367,6 +1689,7 @@ div.customer-el-card {
height: 20px; height: 20px;
width: 60px; width: 60px;
} }
/* 颜色控制 */ /* 颜色控制 */
div.customer-el-card-pink { div.customer-el-card-pink {
background: #FF00FF; background: #FF00FF;
@ -1401,6 +1724,7 @@ div.customer-el-card-blue {
width: 80px; width: 80px;
text-align: center; text-align: center;
} }
/*当前按钮的通用样式*/ /*当前按钮的通用样式*/
.customer-css .el-button--medium { .customer-css .el-button--medium {
padding: 5px 5px; padding: 5px 5px;
@ -1445,8 +1769,15 @@ div.customer-el-card-blue {
.el-input /deep/ .el-icon-time { .el-input /deep/ .el-icon-time {
display: none; display: none;
} }
/*控制上下间距*/ /*控制上下间距*/
hr { hr {
margin-top: 0px; margin-top: 0px;
} }
/deep/ .el-table .cell {
line-height: 20px;
font-size: 12px;
height: 20px;
}
</style> </style>

21
src/views/modules/shopOrder/shopOrder/common/tool_add_and_edit.vue

@ -309,7 +309,28 @@
this.$emit('searchShopOrderTools') this.$emit('searchShopOrderTools')
Object.assign(this.$data, this.$options.data.call(this)); Object.assign(this.$data, this.$options.data.call(this));
}) })
},
//获取多语言的信息
getMultiLanguageList() {
//首先查询当前按钮的多语言
searchFunctionButtonList(this.queryButton).then(({data}) => {
if (data && data.code == 0 ) {
this.buttons = data.data
} else {
// saveButtonList(this.buttonList).then(({data}) => {
// })
} }
});
//其次查询当前标签的多语言
searchFunctionButtonList(this.queryLabel).then(({data}) => {
if (data && data.code == 0 ) {
this.labels = data.data
} else {
// saveButtonList(this.buttonList).then(({data}) => {
// })
}
});
},
}, },
created() { created() {

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

@ -1794,7 +1794,7 @@
orderLabel: '订单', orderLabel: '订单',
bomLabel: '产品结构', bomLabel: '产品结构',
routingLabel: '工艺路线', routingLabel: '工艺路线',
toolLabel: '取消',
toolLabel: '工具',
orderList: '订单列表', orderList: '订单列表',
to: '至:', to: '至:',
}, },

16
src/views/modules/yieldReport/otherReport/fqc_merge_roll.vue

@ -421,7 +421,7 @@ export default {
} }
getRollInfList(dto).then(({data})=>{ getRollInfList(dto).then(({data})=>{
if (data && data.code == 0){ if (data && data.code == 0){
let rollList = []
let rollList = data.data
printSfdcLabel(rollList) printSfdcLabel(rollList)
}else { }else {
this.$message.warning(data.msg) this.$message.warning(data.msg)
@ -430,7 +430,7 @@ export default {
} else { } else {
// 出货标签 // 出货标签
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.comRollLabel.init(data.rollNos)
this.$refs.comRollLabel.init(data.rollNo)
}); });
} }
@ -462,7 +462,7 @@ export default {
} }
getRollInfList(dto).then(({data})=>{ getRollInfList(dto).then(({data})=>{
if (data && data.code == 0){ if (data && data.code == 0){
let rollList = []
let rollList = data.data
printSfdcLabel(rollList) printSfdcLabel(rollList)
}else { }else {
this.$message.warning(data.msg) this.$message.warning(data.msg)
@ -471,7 +471,7 @@ export default {
} else { } else {
// 出货标签 // 出货标签
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.comRollLabel.init(data.rollNos)
this.$refs.comRollLabel.init(data.rollNo)
}); });
} }
setTimeout(() => { setTimeout(() => {
@ -522,7 +522,7 @@ export default {
} }
getRollInfList(dto).then(({data})=>{ getRollInfList(dto).then(({data})=>{
if (data && data.code == 0){ if (data && data.code == 0){
let rollList = []
let rollList = data.data
printSfdcLabel(rollList) printSfdcLabel(rollList)
}else { }else {
this.$message.warning(data.msg) this.$message.warning(data.msg)
@ -531,7 +531,7 @@ export default {
} else { } else {
// 出货标签 // 出货标签
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.comRollLabel.init(data.rollNos)
this.$refs.comRollLabel.init(data.rollNo)
}); });
} }
//延时一秒关闭 --预防没有出标签 //延时一秒关闭 --预防没有出标签
@ -568,7 +568,7 @@ export default {
} }
getRollInfList(dto).then(({data})=>{ getRollInfList(dto).then(({data})=>{
if (data && data.code == 0){ if (data && data.code == 0){
let rollList = []
let rollList = data.data
printSfdcLabel(rollList) printSfdcLabel(rollList)
}else { }else {
this.$message.warning(data.msg) this.$message.warning(data.msg)
@ -577,7 +577,7 @@ export default {
} else { } else {
// 出货标签 // 出货标签
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.comRollLabel.init(data.rollNos)
this.$refs.comRollLabel.init(data.rollNo)
}); });
} }
//延时一秒关闭 --预防没有出标签 //延时一秒关闭 --预防没有出标签

8
src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue

@ -3304,9 +3304,9 @@ export default {
getScheduleNextItemNo(this.scheduleData).then(({data}) => { getScheduleNextItemNo(this.scheduleData).then(({data}) => {
if (data && data.code == 200) { if (data && data.code == 200) {
if (data.nextItemNo > 0) { if (data.nextItemNo > 0) {
this.isFinishItemNo = false
} else {
this.isFinishItemNo = true this.isFinishItemNo = true
} else {
this.isFinishItemNo = false
} }
} }
}) })
@ -3323,7 +3323,7 @@ export default {
} }
getRollInfList(dto).then(({data})=>{ getRollInfList(dto).then(({data})=>{
if (data && data.code == 0){ if (data && data.code == 0){
let rollList = []
let rollList = data.data
printSfdcLabel(rollList) printSfdcLabel(rollList)
}else { }else {
this.$message.warning(data.msg) this.$message.warning(data.msg)
@ -3889,7 +3889,7 @@ export default {
} }
getRollInfList(dto).then(({data})=>{ getRollInfList(dto).then(({data})=>{
if (data && data.code == 0){ if (data && data.code == 0){
let rollList = []
let rollList = data.data
printSfdcLabel(rollList) printSfdcLabel(rollList)
}else { }else {
this.$message.warning(data.msg) this.$message.warning(data.msg)

Loading…
Cancel
Save