|
|
|
@ -5,7 +5,7 @@ import {
|
|
|
|
|
confirmChangeOrder, delDraftOrder, rejectChangeOrder, saveChangeOrder, saveDraftOrder,
|
|
|
|
|
generateOrderId,delOrderItem,entryOrderItem,updateOrderItem,entryOrderItemChange
|
|
|
|
|
} from "@/api/dev/deviceChangeOrderApi";
|
|
|
|
|
import {deviceChangeStatus, deviceChangeType} from "@/utils/enum";
|
|
|
|
|
import {deviceChangeStatus, deviceChangeType,ApprovalFlowEnum} from "@/utils/enum";
|
|
|
|
|
import "@/store/getters";
|
|
|
|
|
import {genDeviceCode} from "@/api/dev/deviceInfoApi";
|
|
|
|
|
import deviceInfo from "@/views/dev/deviceInfo.vue";
|
|
|
|
@ -16,6 +16,7 @@ import deptDeviceDetail from "@/views/dev/DeptDeviceDetail.vue";
|
|
|
|
|
import dialogDeviceInvProduct from "@/views/dev/DialogDeviceSelectInvProduct.vue";
|
|
|
|
|
import dialogDeviceSelectAdd from "@/views/dev/DialogDeviceSelectAdd.vue";
|
|
|
|
|
import fa from "element-ui/src/locale/lang/fa";
|
|
|
|
|
import approvalFlowDetail from "@/components/ApprovalFlow/deviceChangeOrderDestroy";
|
|
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
page: 1,
|
|
|
|
@ -36,6 +37,7 @@ let createData = {
|
|
|
|
|
type: deviceChangeType.CHANGE.key,
|
|
|
|
|
toDeptCode: null,
|
|
|
|
|
deptCode: null,
|
|
|
|
|
billNo: null,
|
|
|
|
|
destroyType: null,
|
|
|
|
|
name: null,
|
|
|
|
|
remark: null,
|
|
|
|
@ -68,7 +70,7 @@ export default {
|
|
|
|
|
required: true,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {deviceInfo, product, deviceModifyDialog,deptDeviceDetail,dialogDeviceInvProduct,dialogDeviceSelectAdd},
|
|
|
|
|
components: {deviceInfo, product, deviceModifyDialog,deptDeviceDetail,dialogDeviceInvProduct,dialogDeviceSelectAdd,approvalFlowDetail},
|
|
|
|
|
computed: {
|
|
|
|
|
deviceChangeStatus() {
|
|
|
|
|
return deviceChangeStatus
|
|
|
|
@ -76,6 +78,10 @@ export default {
|
|
|
|
|
deviceChangeType() {
|
|
|
|
|
return deviceChangeType
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
ApprovalFlowEnum() {
|
|
|
|
|
return ApprovalFlowEnum
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -87,6 +93,8 @@ export default {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
loading: false,
|
|
|
|
|
query: {...query},
|
|
|
|
|
approvalFlowDetailVisible:false,
|
|
|
|
|
idQuery: { },
|
|
|
|
|
list: [],
|
|
|
|
|
total: 0,
|
|
|
|
|
// =======详情========================================
|
|
|
|
@ -175,6 +183,14 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
closeDialog() {
|
|
|
|
|
this.approvalFlowDetailVisible = false;
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
handleClose() {
|
|
|
|
|
this.approvalFlowDetailVisible = false;
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
updateItem() {
|
|
|
|
|
this.dict.type.device_source_type.forEach((item, index) => {
|
|
|
|
|
if (this.createData.sourceType == item.value) {
|
|
|
|
@ -184,7 +200,23 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
saveCache() {
|
|
|
|
|
if (this.itemList.length == 0) {
|
|
|
|
|
this.$confirm(`请添加数据`, "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
type: "error",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (this.createData.type == deviceChangeType.ADD.key) {
|
|
|
|
|
|
|
|
|
|
} else if (this.createData.type == deviceChangeType.CHANGE.key){
|
|
|
|
|
|
|
|
|
|
}else if (this.createData.type == deviceChangeType.DESTROY.key){
|
|
|
|
|
if (this.createData.destroyType == null){
|
|
|
|
|
this.$message.warning("请选择移除类型后在立即提交")
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.createData.items = this.itemList
|
|
|
|
|
let loading = this.$loading({
|
|
|
|
|
lock: true,
|
|
|
|
@ -662,6 +694,10 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
showApprovalFlowDetail(row) {
|
|
|
|
|
this.idQuery = row
|
|
|
|
|
this.approvalFlowDetailVisible = true;
|
|
|
|
|
},
|
|
|
|
|
cancel(row) {
|
|
|
|
|
this.$prompt('请输入备注信息', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|