From 47cf5518f0f61dbf8066c2273b9f77c2cd7b1751 Mon Sep 17 00:00:00 2001
From: YLouie <929705085@qq.com>
Date: 星期五, 19 九月 2025 17:56:03 +0800
Subject: [PATCH] 销售订单plm同步
---
src/views/plan/manufacturingorder/edit-order-operation.vue | 85 +++++++++++++++++++++++++-----------------
1 files changed, 50 insertions(+), 35 deletions(-)
diff --git a/src/views/plan/manufacturingorder/edit-order-operation.vue b/src/views/plan/manufacturingorder/edit-order-operation.vue
index 8454b08..d62cc04 100644
--- a/src/views/plan/manufacturingorder/edit-order-operation.vue
+++ b/src/views/plan/manufacturingorder/edit-order-operation.vue
@@ -36,15 +36,17 @@
</el-select>
</el-form-item>
</el-col>
+ </el-row>
+ <el-row>
<el-col :span="12">
- <el-form-item label="鍥犵礌鍗曚綅" prop="runTimeCodeDb">
+ <el-form-item label="鏄惁涓撴" prop="isSpecialIns">
<el-select
- v-model="dataForm.runTimeCodeDb"
- placeholder="鍥犵礌鍗曚綅"
+ v-model="dataForm.isSpecialIns"
+ placeholder="鏄惁涓撴"
style="width: 100%"
>
<el-option
- v-for="item in runTimeCodeDbOptions"
+ v-for="item in isSpecialInss"
:key="item.id"
:label="item.label"
:value="item.value"
@@ -53,7 +55,7 @@
</el-form-item>
</el-col>
</el-row>
- <el-row>
+ <!-- <el-row>
<el-col :span="12">
<el-form-item label="鏈哄櫒杩愯浆鍥犵礌" prop="machRunFactor">
<el-input
@@ -136,7 +138,7 @@
</el-form-item>
</el-col>
<el-col :span="12"> </el-col>
- </el-row>
+ </el-row> -->
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="innerVisible = false">鍙� 娑�</el-button>
@@ -152,23 +154,24 @@
props: {
currshowlist: {
type: Boolean,
- default: false
+ default: false,
},
currOrderOperation: {
type: Object,
default: () => {
return {}
- }
- }
+ },
+ },
},
data() {
return {
innerVisible: false,
workCenterOptions: [],
- runTimeCodeDbOptions: [],
+ isSpecialInss: [{ label: '鏄�', value: true} ,{label: '鍚�', value: false }],
dataForm: {
id: 0,
workCenter: null,
+ isSpecialIns: null,
machRunFactor: 0,
machSetupTime: 0,
laborClassNo: null,
@@ -177,39 +180,39 @@
runTimeCodeDb: null,
crewSize: 1,
outsideOpItem: null,
- moId: null
+ moId: null,
},
dataRule: {
workCenter: [
- { required: true, message: '宸ヤ綔涓績涓嶈兘涓虹┖', trigger: 'change' }
+ { required: true, message: '宸ヤ綔涓績涓嶈兘涓虹┖', trigger: 'change' },
],
machRunFactor: [
{ required: true, message: '鏈哄櫒杩愯浆鍥犵礌涓嶈兘涓虹┖', trigger: 'blur' },
- { validator: validateSixDecimalPositives, trigger: 'blur' }
+ { validator: validateSixDecimalPositives, trigger: 'blur' },
],
machSetupTime: [
{ required: true, message: '鏈哄櫒璁剧疆鏃堕棿涓嶈兘涓虹┖', trigger: 'blur' },
- { validator: validateSixDecimalPositives, trigger: 'blur' }
+ { validator: validateSixDecimalPositives, trigger: 'blur' },
],
laborRunFactor: [
{ required: true, message: '鍔冲姏杩愯浆鍥犵礌涓嶈兘涓虹┖', trigger: 'blur' },
- { validator: validateSixDecimalPositives, trigger: 'blur' }
+ { validator: validateSixDecimalPositives, trigger: 'blur' },
],
laborSetupTime: [
{ required: true, message: '鍔冲姏璁剧疆鏃堕棿涓嶈兘涓虹┖', trigger: 'blur' },
- { validator: validateSixDecimalPositives, trigger: 'blur' }
+ { validator: validateSixDecimalPositives, trigger: 'blur' },
],
runTimeCodeDb: [
- { required: true, message: '鍥犵礌鍗曚綅涓嶈兘涓虹┖', trigger: 'change' }
- ]
+ { required: true, message: '鍥犵礌鍗曚綅涓嶈兘涓虹┖', trigger: 'change' },
+ ],
},
laborClassNoOptions: [],
- outsideOpItemOptions: []
+ outsideOpItemOptions: [],
}
},
methods: {
saveSelectRow() {
- this.$refs.operationDataForm.validate((valid) => {
+ /* this.$refs.operationDataForm.validate((valid) => {
if (valid) {
if (
this.dataForm.machRunFactor == 0 &&
@@ -248,29 +251,37 @@
}
if (remindFlag) {
this.$message.error(remindInfo)
- } else {
+ } else { */
moRouringOperation(this.dataForm).then((response) => {
const data = response.data
if (data.code === 0) {
this.currOrderOperation.workCenter = this.dataForm.workCenter
- this.currOrderOperation.machRunFactor = this.dataForm.machRunFactor
- this.currOrderOperation.machSetupTime = this.dataForm.machSetupTime
- this.currOrderOperation.laborClassNo = this.dataForm.laborClassNo
- this.currOrderOperation.laborRunFactor = this.dataForm.laborRunFactor
- this.currOrderOperation.laborSetupTime = this.dataForm.laborSetupTime
- this.currOrderOperation.runTimeCodeDb = this.dataForm.runTimeCodeDb
+ this.currOrderOperation.isSpecialIns = this.dataForm.isSpecialIns
+ this.currOrderOperation.machRunFactor =
+ this.dataForm.machRunFactor
+ this.currOrderOperation.machSetupTime =
+ this.dataForm.machSetupTime
+ this.currOrderOperation.laborClassNo =
+ this.dataForm.laborClassNo
+ this.currOrderOperation.laborRunFactor =
+ this.dataForm.laborRunFactor
+ this.currOrderOperation.laborSetupTime =
+ this.dataForm.laborSetupTime
+ this.currOrderOperation.runTimeCodeDb =
+ this.dataForm.runTimeCodeDb
this.currOrderOperation.crewSize = this.dataForm.crewSize
- this.currOrderOperation.outsideOpItem = this.dataForm.outsideOpItem
+ this.currOrderOperation.outsideOpItem =
+ this.dataForm.outsideOpItem
this.innerVisible = false
this.$message.success('缂栬緫鎴愬姛')
} else {
this.$message.error('缂栬緫澶辫触')
}
})
- }
+ /* }
}
}
- })
+ }) */
},
// 鑾峰彇IFS浜哄伐绫诲埆鐨勬暟鎹瓧鍏�
getLaborClassNo() {
@@ -308,7 +319,7 @@
this.outsideOpItemOptions = []
}
})
- }
+ },
},
watch: {
currshowlist() {
@@ -334,8 +345,10 @@
this.dataForm.machRunFactor = this.currOrderOperation.machRunFactor
this.dataForm.machSetupTime = this.currOrderOperation.machSetupTime
this.dataForm.laborClassNo = this.currOrderOperation.laborClassNo
- this.dataForm.laborRunFactor = this.currOrderOperation.laborRunFactor
- this.dataForm.laborSetupTime = this.currOrderOperation.laborSetupTime
+ this.dataForm.laborRunFactor =
+ this.currOrderOperation.laborRunFactor
+ this.dataForm.laborSetupTime =
+ this.currOrderOperation.laborSetupTime
this.dataForm.runTimeCodeDb =
this.currOrderOperation.runTimeCodeDb == null
? '2'
@@ -343,11 +356,13 @@
this.dataForm.crewSize = this.currOrderOperation.crewSize
this.dataForm.outsideOpItem = this.currOrderOperation.outsideOpItem
this.dataForm.moId = this.currOrderOperation.moId
+ this.dataForm.isSpecialIns = this.currOrderOperation.isSpecialIns
+
})
})
}
- }
- }
+ },
+ },
}
</script>
<style>
--
Gitblit v1.9.3