Browse Source

材料异常-创建分卷 2022年11月17日 sxm

master
[li_she] 3 years ago
parent
commit
440ec7a2eb
  1. 3
      src/api/yieldReport/produce_report_normal.js
  2. 76
      src/views/modules/yieldReport/com_produce_report_normal.vue

3
src/api/yieldReport/produce_report_normal.js

@ -83,3 +83,6 @@ export const getScheduleShiftData = data => createAPI('schedule/getScheduleShift
//查询打印的数据
export const getSfdcFlowLabelData = data => createAPI('scheduling/getSfdcFlowLabelData', 'POST', data)
// 材料异常 创建分卷
export const rollSplit = data => createAPI('schedule/rollSplit', 'POST', data)

76
src/views/modules/yieldReport/com_produce_report_normal.vue

@ -452,7 +452,7 @@
<legend class="customer-legend">{{ buttons.otherOperation }}</legend>
<el-form style="text-align: center;">
<el-form-item style="margin-top: 20px ; margin-left: 10px">
<el-form-item style="margin-top: 10px ; margin-left: 5px">
<el-popover
placement="right"
width="150"
@ -480,6 +480,29 @@
</el-button>
</el-popover>
</el-form-item>
<el-form-item style="margin-top: 10px ; margin-left: 5px">
<el-popover
placement="right"
width="150"
content
v-model="popoverFlag2"
trigger="click">
<div style="text-align: right; margin: 0;width: 120px;">
<el-button type="primary" :disabled="this.rollSplitButton " @click="rollSplit"
style=" width: 120px; margin-bottom: 5px; margin-left: 3PX">
{{ labels.rollSplit }}
</el-button>
<el-button type="primary"
style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; ">
{{ labels.scannerMaterial }}
</el-button>
</div>
<el-button type="primary" class="controller-bun" :disabled="this.rollSplitButton "
style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag2=true"
slot="reference">{{ '材料异常处理' }}
</el-button>
</el-popover>
</el-form-item>
</el-form>
</fieldset>
</el-form>
@ -613,8 +636,11 @@ import {
finishMaterialWithNoRemainder,/*执行材料结束使用 且无剩余 */
switchrollReverse,
getSfdcFlowLabelData,
rollSplit
} from "@/api/yieldReport/produce_report_normal.js";
import {
getUserSpecialSecurity,
} from '@/api/yieldReport/produce_order.js'
/*打印标签专用的js*/
import {
printSfdcLabel,
@ -657,6 +683,8 @@ export default {
data() {
return {
titleCon: '',
popoverFlag2: false,
rollSplitButton: false, //
showDefault: false,
popoverFlag: false,
showNotOverFlag: false,
@ -3440,6 +3468,48 @@ export default {
notOverFinishRoll,/*异常下级报工*/
},
methods: {
//
getUserSpecialSecurity() {
let data = {
userSpecialSecurityNo: 240,
username: this.$store.state.user.name
}
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.rollSplitButton = false
} else {
this.rollSplitButton = true
}
})
},
rollSplit() {
//
this.$confirm(`确实要创建一个异常卷?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let dto = {
site: this.$store.state.user.site,
orderNo: this.scheduleData.orderNo,
itemNo: this.scheduleData.itemNo,
seqNo: this.scheduleData.seqNo,
userId: this.$store.state.user.name,
}
rollSplit(dto).then(({data}) => {
if (data && data.code == 0) {
this.$message.success(data.msg)
} else {
this.$message.warning(data.msg)
}
})
})
},
scannerMaterial(row) {
},
//
sfdcDefectListSummaries(param) {
const {columns, data} = param;
@ -3675,6 +3745,8 @@ export default {
this.activeTable = 'sfdc_time';
//
this.refreshPageData();
//
this.getUserSpecialSecurity();
},
//

Loading…
Cancel
Save