|
|
@@ -7,7 +7,8 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn">
|
|
|
- <el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small">领料打印
|
|
|
+ <el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small"
|
|
|
+ @click="handlePrint">领料打印
|
|
|
</el-button>
|
|
|
<el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small"
|
|
|
v-if="editButton" @click="inEdit">编 辑
|
|
|
@@ -149,8 +150,9 @@
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
-
|
|
|
</trade-card>
|
|
|
+ <report-dialog :switchDialog="switchDialog" reportName="生产订单" :reportId="form.id" :ordNo="form.ordNo"
|
|
|
+ @onClose="onClose()"></report-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -163,11 +165,13 @@ import { getDicinit } from "@/api/dicSelect/index";
|
|
|
import { dateFormat } from "@/util/date";
|
|
|
import { contrastObj, contrastList } from "@/util/contrastData";
|
|
|
import _ from "lodash";
|
|
|
+import reportDialog from "@/components/report-dialog/main";
|
|
|
import { Header } from "element-ui";
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
data() {
|
|
|
return {
|
|
|
+ switchDialog: false, // 打印弹窗的开启和关闭
|
|
|
selectPickingList: [],
|
|
|
selectPickingOption: {
|
|
|
height: 300,
|
|
|
@@ -484,7 +488,8 @@ export default {
|
|
|
},
|
|
|
components: {
|
|
|
dicSelect,
|
|
|
- dicselectProduct
|
|
|
+ dicselectProduct,
|
|
|
+ reportDialog
|
|
|
},
|
|
|
props: {
|
|
|
detailData: Object
|
|
|
@@ -501,6 +506,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //打印
|
|
|
+ handlePrint() {
|
|
|
+ this.switchDialog = !this.switchDialog;
|
|
|
+ },
|
|
|
+ onClose(val) {
|
|
|
+ this.switchDialog = val;
|
|
|
+ },
|
|
|
dicChange(name, row) {
|
|
|
if (name == 'customerName') {
|
|
|
if (row) {
|
|
|
@@ -515,28 +527,28 @@ export default {
|
|
|
this.form.goodsId = row.goodsId
|
|
|
this.form.goodsName = row.goodsName
|
|
|
getGoodsDetail({ id: row.id }).then(res => {
|
|
|
- res.data.data.attributeItemsList.forEach(item=>{
|
|
|
+ res.data.data.attributeItemsList.forEach(item => {
|
|
|
delete item.id
|
|
|
})
|
|
|
- res.data.data.craftItemsList.forEach(item=>{
|
|
|
+ res.data.data.craftItemsList.forEach(item => {
|
|
|
delete item.id
|
|
|
})
|
|
|
- res.data.data.attributeItemsList.forEach(e=>{
|
|
|
- if(e.whetherOpen == 1){
|
|
|
+ res.data.data.attributeItemsList.forEach(e => {
|
|
|
+ if (e.whetherOpen == 1) {
|
|
|
this.form.attributeItemsList.push({
|
|
|
- attributeNo:e.attributeNo,
|
|
|
- attributeName:e.attributeName,
|
|
|
- attributeValue:e.attributeValue,
|
|
|
- type:e.attributeValue
|
|
|
+ attributeNo: e.attributeNo,
|
|
|
+ attributeName: e.attributeName,
|
|
|
+ attributeValue: e.attributeValue,
|
|
|
+ type: e.attributeValue
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- res.data.data.craftItemsList.forEach(e=>{
|
|
|
- if(e.whetherOpen == 1){
|
|
|
+ res.data.data.craftItemsList.forEach(e => {
|
|
|
+ if (e.whetherOpen == 1) {
|
|
|
this.form.craftItemsList.push({
|
|
|
- productionProcesses:e.productionProcesses,
|
|
|
- assemblyMileageProgress:e.assemblyMileageProgress,
|
|
|
- type:e.type
|
|
|
+ productionProcesses: e.productionProcesses,
|
|
|
+ assemblyMileageProgress: e.assemblyMileageProgress,
|
|
|
+ type: e.type
|
|
|
})
|
|
|
}
|
|
|
})
|