|
|
|
@ -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(); |
|
|
|
}, |
|
|
|
|
|
|
|
//刷新页面的数据 |
|
|
|
|