From 91ee87478341b25cd7d0107952fc6313a6b16ab6 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期五, 17 十一月 2023 18:31:42 +0800
Subject: [PATCH] modified: src/views/plan/customerorder/schedule-table.vue
---
src/views/technology/completeproductstructure/completeproductstructure-form.vue | 218 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 208 insertions(+), 10 deletions(-)
diff --git a/src/views/technology/completeproductstructure/completeproductstructure-form.vue b/src/views/technology/completeproductstructure/completeproductstructure-form.vue
index 760d492..f33ff3a 100644
--- a/src/views/technology/completeproductstructure/completeproductstructure-form.vue
+++ b/src/views/technology/completeproductstructure/completeproductstructure-form.vue
@@ -74,7 +74,7 @@
>
</el-input>
</el-form-item>
-
+<!--
<el-form-item label="鏇夸唬鍙�" prop="alternativeNo">
<el-input
v-model="treeForm.alternativeNo"
@@ -110,7 +110,7 @@
placeholder="鐗规��1"
>
</el-input>
- </el-form-item>
+ </el-form-item> -->
</el-col>
</el-row>
</el-form>
@@ -133,9 +133,9 @@
:row-class-name="tableRowClassName"
>
<el-table-column type="selection" width="55"> </el-table-column>
- <el-table-column prop="partName" label="闆朵欢鍚�" width="400">
+ <el-table-column prop="partName" label="闆朵欢鍚�" width="430">
</el-table-column>
- <el-table-column prop="partNo" label="闆朵欢鍙�" width="100">
+ <el-table-column prop="partNo" label="闆朵欢鍙�" width="120">
</el-table-column>
<el-table-column
prop="originalQpa"
@@ -151,10 +151,98 @@
</el-table-column>
<el-table-column prop="unit" label="鍗曚綅" width="100">
</el-table-column>
- <el-table-column prop="discNum" label="鐩樻暟(鐩�)" width="100">
- </el-table-column>
<el-table-column prop="operationName" label="娑堣�楀伐搴�">
</el-table-column>
+ <el-table-column label="纾ㄥ叿缂栧彿" prop="sharpenerNo" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.sharpenerNo" placeholder="璇峰~鍐欑(鍏风紪鍙�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.sharpenerNo
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="姣忔ā绌存暟" prop="caveNum" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.caveNum" placeholder="璇峰~鍐欐瘡妯$┐鏁�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.caveNum
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍏嬮噸(kg)" prop="gramWeight" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.gramWeight" placeholder="璇峰~鍐欏厠閲�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.gramWeight
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="娴囧彛鍏嬮噸(kg)" prop="gateGramWeight" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.gateGramWeight" placeholder="璇峰~鍐欐祰鍙e厠閲�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.gateGramWeight
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鎴愬瀷鍛ㄦ湡(h)" prop="moldingCycle" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.moldingCycle" placeholder="璇峰~鍐欐垚鍨嬪懆鏈�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.moldingCycle
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鏈哄彴(t)" prop="machine" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.machine" placeholder="璇峰~鍐欐満鍙�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.machine
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍥炴枡姣斾緥(%)" prop="scale" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.scale" placeholder="璇峰~鍐欏洖鏂欐瘮渚�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.scale
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鐑樻枡鏃堕棿(h)" prop="dryingTime" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.dryingTime" placeholder="璇峰~鍐欑儤鏂欐椂闂�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.dryingTime
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鐑樻枡娓╁害(鈩�)" prop="dryingTemperature" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.dryingTemperature" placeholder="璇峰~鍐欑儤鏂欐俯搴�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.dryingTemperature
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍖呰淇℃伅" prop="packingInfo" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.packingInfo" placeholder="璇峰~鍐欏寘瑁呬俊鎭�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.packingInfo
+ }}</span>
+ </template>
+ </el-table-column>
</el-table>
</div>
<div class="completeProductStructure-queryPreview"></div>
@@ -169,7 +257,7 @@
default-expand-all
class="preView-structure-table"
>
- <el-table-column prop="partName" label="闆朵欢鍚�" width="400">
+ <el-table-column prop="partName" label="闆朵欢鍚�" width="430">
</el-table-column>
<el-table-column
prop="partNo"
@@ -192,13 +280,103 @@
</el-table-column>
<el-table-column prop="unit" label="鍗曚綅" width="100">
</el-table-column>
- <el-table-column prop="discNum" label="鐩樻暟(鐩�)" width="100">
+ <!-- <el-table-column prop="discNum" label="鐩樻暟(鐩�)" width="100">
<template slot-scope="scope">
{{ scope.row.discNum || 1 }}
</template>
- </el-table-column>
+ </el-table-column> -->
<el-table-column prop="operationName" label="娑堣�楀伐搴�">
</el-table-column>
+ <el-table-column label="纾ㄥ叿缂栧彿" prop="sharpenerNo" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.sharpenerNo" placeholder="璇峰~鍐欑(鍏风紪鍙�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.sharpenerNo
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="姣忔ā绌存暟" prop="caveNum" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.caveNum" placeholder="璇峰~鍐欐瘡妯$┐鏁�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.caveNum
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍏嬮噸(kg)" prop="gramWeight" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.gramWeight" placeholder="璇峰~鍐欏厠閲�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.gramWeight
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="娴囧彛鍏嬮噸(kg)" prop="gateGramWeight" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.gateGramWeight" placeholder="璇峰~鍐欐祰鍙e厠閲�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.gateGramWeight
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鎴愬瀷鍛ㄦ湡(h)" prop="moldingCycle" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.moldingCycle" placeholder="璇峰~鍐欐垚鍨嬪懆鏈�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.moldingCycle
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鏈哄彴(t)" prop="machine" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.machine" placeholder="璇峰~鍐欐満鍙�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.machine
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍥炴枡姣斾緥(%)" prop="scale" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.scale" placeholder="璇峰~鍐欏洖鏂欐瘮渚�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.scale
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鐑樻枡鏃堕棿(h)" prop="dryingTime" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.dryingTime" placeholder="璇峰~鍐欑儤鏂欐椂闂�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.dryingTime
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鐑樻枡娓╁害(鈩�)" prop="dryingTemperature" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.dryingTemperature" placeholder="璇峰~鍐欑儤鏂欐俯搴�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.dryingTemperature
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍖呰淇℃伅" prop="packingInfo" align="center">
+ <template slot-scope="scope">
+ <el-input size="small" v-model="scope.row.packingInfo" placeholder="璇峰~鍐欏寘瑁呬俊鎭�"
+ v-show="scope.row.isUpdate"></el-input>
+ <span v-show="!scope.row.isUpdate">{{
+ scope.row.packingInfo
+ }}</span>
+ </template>
+ </el-table-column>
</el-table>
</div>
</div>
@@ -420,6 +598,16 @@
unit: org.unit,
color: org.color,
planningMethod: org.planningMethod,
+ sharpenerNo: org.sharpenerNo,
+ caveNum:org.caveNum,
+ gramWeight:org.gramWeight,
+ gateGramWeight:org.gateGramWeight,
+ moldingCycle:org.moldingCycle,
+ machine:org.machine,
+ scale:org.scale,
+ dryingTime:org.dryingTime,
+ dryingTemperature:org.dryingTemperature,
+ packingInfo: org.packingInfo,
children: haveChildren ? org.children.map((i) => mapTree(i)) : []
}
}
@@ -472,7 +660,6 @@
newObj.alternativeDesc = this.treeForm.alternativeDesc
newObj.bomTypeDb = this.treeForm.bomTypeDb
const gxqTree = this.preViewData.map((org) => mapTree(org))
-
newObj.tree = gxqTree[0]
addObj(newObj)
.then((response) => {
@@ -653,6 +840,17 @@
copyNoParent.operationId = noParent.operationId
copyNoParent.operationName = noParent.operationName
+ copyNoParent.sharpenerNo= noParent.sharpenerNo
+ copyNoParent.caveNum=noParent.caveNum
+ copyNoParent.gramWeight=noParent.gramWeight
+ copyNoParent.gateGramWeight=noParent.gateGramWeight
+ copyNoParent.moldingCycle=noParent.moldingCycle
+ copyNoParent.machine=noParent.machine
+ copyNoParent.scale=noParent.scale
+ copyNoParent.dryingTime=noParent.dryingTime
+ copyNoParent.dryingTemperature=noParent.dryingTemperature
+ copyNoParent.packingInfo= noParent.packingInfo
+
copyNoParent.discNum = noParent.discNum
copyNoParent.qpa = noParent.qpa
copyNoParent.originalQpa = noParent.originalQpa
--
Gitblit v1.9.3