|
|
@@ -1832,43 +1832,49 @@
|
|
|
|
|
|
|
|
|
<el-dialog v-model="hesuanVisible" :before-close="closehesuanVisible" title="核算参数调整" destroy-on-close width="20%" style="height: 50%;">
|
|
|
- <div style="display: flex; align-items: center;">
|
|
|
- <label>参数类型:</label>
|
|
|
- <el-radio v-model="selected" label="难度调整系数"></el-radio>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div style="margin-top: 10px;margin-left: 70px;">
|
|
|
- <el-radio v-model="selected" label="凹印版距"></el-radio>
|
|
|
+ <div>
|
|
|
+ <el-radio-group v-model="selected" @change="agreeChange" style="display: flex; flex-direction: column;">
|
|
|
+ <div style="display: flex; align-items: center;">
|
|
|
+ <label>参数类型:</label>
|
|
|
+ <el-radio label="难度调整系数"></el-radio>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex; align-items: center;margin-left: 40px;">
|
|
|
+ <el-radio label="凹印版距"></el-radio>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="display: flex; align-items: center;margin-left: 25px;">
|
|
|
+ <el-radio label="色度数"></el-radio>
|
|
|
+ </div>
|
|
|
+ </el-radio-group>
|
|
|
</div>
|
|
|
|
|
|
- <div style="margin-top: 10px;margin-left: 70px;">
|
|
|
- <el-radio v-model="selected" label="色度数"></el-radio>
|
|
|
+ <div style="margin-left: 70px;">
|
|
|
+ <el-col :span="15">
|
|
|
+ <el-form-item label="缩放系数:" prop="flatFeed" class="mab" v-if="SFType === true">
|
|
|
+ <el-input v-model="hesuanValue.缩放系数" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" v-if="SFType === true"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="产品板距:" prop="flatFeed" class="mab" v-if="CPType === true">
|
|
|
+ <el-input v-model="hesuanValue.产品板距" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" v-if="CPType === true"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="印刷方式:" prop="flatFeed" class="mab" v-if="CPType === true">
|
|
|
+ <el-input v-model="hesuanValue.印刷方式" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" v-if="CPType === true"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="色度数 :" prop="flatFeed" class="mab" v-if="SDType === true">
|
|
|
+ <el-input v-model="hesuanValue.色度数" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" v-if="SDType === true" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</div>
|
|
|
|
|
|
- <div style="margin-left: 70px;">
|
|
|
- <el-col :span="15">
|
|
|
- <el-form-item label="缩放系数:" prop="flatFeed" class="mab">
|
|
|
- <el-input v-model="formData.工单编号" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="产品板距:" prop="flatFeed" class="mab">
|
|
|
- <el-input v-model="formData.工单编号" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="印刷方式:" prop="flatFeed" class="mab">
|
|
|
- <el-input v-model="formData.工单编号" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="色度数 :" prop="flatFeed" class="mab">
|
|
|
- <el-input v-model="formData.工单编号" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </div>
|
|
|
-
|
|
|
- <template #footer>
|
|
|
- <div class="dialog-footer">
|
|
|
- <el-button @click="hesuanVisiblecloseDialog">取 消</el-button>
|
|
|
- <el-button type="primary" @click="hesuanenterDialog">确 定</el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-dialog>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button @click="hesuanVisiblecloseDialog">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="hesuanenterDialog">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<Shebeizhuangtai
|
|
|
v-if="dialogSbyxgl"
|
|
|
@@ -2033,8 +2039,8 @@ const handleNodeClick = (nodeData,node) => {
|
|
|
|
|
|
const hesuanVisible = ref(false)
|
|
|
const MachineVisible = ref(false)
|
|
|
-const machineData = reactive([])
|
|
|
-
|
|
|
+const machineData = reactive([])
|
|
|
+const hesuanValue = reactive({})
|
|
|
const MachinelList = async () => {
|
|
|
const response = await MachineDetailList({workshop:CJMC.value});
|
|
|
if (response.code === 0) {
|
|
|
@@ -3739,18 +3745,57 @@ const MachineChanliang = async(value) => {
|
|
|
chanliangVisible.value=false
|
|
|
}
|
|
|
}
|
|
|
+ selected.value='难度调整系数'
|
|
|
|
|
|
+ const SFType=ref(false)
|
|
|
+ const CPType=ref(false)
|
|
|
+ const SDType=ref(false)
|
|
|
+if(selected.value=== '难度调整系数'){
|
|
|
+ SFType.value=true
|
|
|
+ CPType.value=false
|
|
|
+ SDType.value=false
|
|
|
+ }else if(selected.value=== '凹印版距'){
|
|
|
+ CPType.value=true
|
|
|
+ SFType.value=false
|
|
|
+ SDType.value=false
|
|
|
+ }else if(selected.value=== '色度数'){
|
|
|
+ SDType.value=true
|
|
|
+ SFType.value=false
|
|
|
+ CPType.value=false
|
|
|
+ }
|
|
|
+ //选择变化
|
|
|
+ const agreeChange = async () => {
|
|
|
+ if(selected.value=== '难度调整系数'){
|
|
|
+ SFType.value=true
|
|
|
+ CPType.value=false
|
|
|
+ SDType.value=false
|
|
|
+ }else if(selected.value=== '凹印版距'){
|
|
|
+ CPType.value=true
|
|
|
+ SFType.value=false
|
|
|
+ SDType.value=false
|
|
|
+ }else if(selected.value=== '色度数'){
|
|
|
+ SDType.value=true
|
|
|
+ SFType.value=false
|
|
|
+ CPType.value=false
|
|
|
+ }
|
|
|
+}
|
|
|
//核算调整弹窗确定
|
|
|
const hesuanenterDialog = async () => {
|
|
|
- console.log(selected)
|
|
|
if(selected.value=== '难度调整系数'){
|
|
|
- console.log('123')
|
|
|
+ const id=ref('')
|
|
|
+ // console.log(multipleSelection.value.length)
|
|
|
+ // console.log(multipleSelection.value[0])
|
|
|
+ for(let i=0;i<multipleSelection.value.length;i++){
|
|
|
+ id.value+=multipleSelection.value[i].UniqId+','
|
|
|
+ console.log(multipleSelection.value[i].UniqId)
|
|
|
+ }
|
|
|
+ console.log(id.value)
|
|
|
+
|
|
|
}else if(selected.value=== '凹印版距'){
|
|
|
console.log('凹印版距')
|
|
|
}else if(selected.value=== '色度数'){
|
|
|
console.log('色度数')
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
const ent1 = (event) => {
|
|
|
const inputs = document.getElementsByTagName('input');
|
|
|
@@ -3836,11 +3881,19 @@ setOptions()
|
|
|
|
|
|
|
|
|
// 多选数据
|
|
|
-const multipleSelection = ref([])
|
|
|
+const multipleSelection = reactive([])
|
|
|
// 多选
|
|
|
-const handleSelectionChange = (val) => {
|
|
|
- multipleSelection.value = val
|
|
|
- console.log(val)
|
|
|
+const handleSelectionChange = (val) => {
|
|
|
+ console.log(val)
|
|
|
+ console.log(val.length)
|
|
|
+ multipleSelection.value= val
|
|
|
+ // for(let i=0;i<val.length;i++){
|
|
|
+ // multipleSelection= val[i].UniqId
|
|
|
+ // }
|
|
|
+ console.log(multipleSelection.value)
|
|
|
+ // console.log(val.UniqId)
|
|
|
+ // multipleSelection.value = val.UniqId
|
|
|
+ // console.log(multipleSelection.value)
|
|
|
}
|
|
|
|
|
|
// 删除行
|