| | |
| | | label-width="110px" |
| | | > |
| | | <el-row> |
| | | <el-col :span="5"> |
| | | <el-col :span="6"> |
| | | <el-form-item prop="name" label="文件名称"> |
| | | <el-input |
| | | v-model="dataForm.name" |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-col :span="6"> |
| | | <el-form-item prop="number" label="文件编号"> |
| | | <el-input v-model="dataForm.number" placeholder="文件编号"> |
| | | </el-input> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <el-col :span="3"> |
| | | <el-form-item prop="version" label="版本号"> |
| | | <el-input |
| | | v-model="dataForm.version" |
| | | placeholder="版本号" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- <el-col :span="3"> |
| | | <el-form-item prop="sheathColor" label="护套颜色"> |
| | | <el-input |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="5"> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="dataForm.remark" |
| | | placeholder="备注" |
| | | style="width:360px" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item prop="version" label="版本号"> |
| | | <el-input |
| | | v-model="dataForm.version" |
| | | placeholder="版本号" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="BOM" prop="bomId"> |
| | | <el-select |
| | | :disabled="dataForm.id != null" |
| | | v-model="dataForm.bomId" |
| | | placeholder="" |
| | | style="width: 100%;" |
| | | filterable> |
| | | <el-option |
| | | v-for="item in bomList" |
| | | :key="item.id" |
| | | :label="item.number" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="工艺路线编号" prop="routingList"> |
| | | <el-select |
| | | :disabled="dataForm.id != null" |
| | | v-model="dataForm.routingId" |
| | | placeholder="" |
| | | style="width: 100%;" |
| | | filterable> |
| | | <el-option |
| | | v-for="item in routingList" |
| | | :key="item.id" |
| | | :label="item.routing_no" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="dataForm.remark" |
| | | placeholder="备注" |
| | | style="width:100%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </div> |
| | |
| | | <div class="document-detail"> |
| | | <el-tabs type="card" style="width: 100%;height: 100%"> |
| | | <el-tab-pane |
| | | label="原材用量" |
| | | label="原材料用量" |
| | | style="height: 100%" |
| | | class="orimaterial-quantity" |
| | | > |
| | |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column label="物料编号" prop="partNo" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="物料" prop="partName" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="数量" prop="quantity" align="center"> |
| | |
| | | </TeststandardDialog> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="产品结构工序参数" style="height: 100%"> |
| | | <!-- <div class="document-related-stock-part"> |
| | | <div class="document-related-stock-part"> |
| | | <div |
| | | style="padding-left:18px;font-size:14px;font-weight:700;color:#000;height:20px;line-height:20px;" |
| | | > |
| | |
| | | > |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> --> |
| | | </div> |
| | | <el-card class="document-bom" header=""> |
| | | <!-- <div slot="header"> |
| | | <span>BOM-工序参数</span> |
| | |
| | | import { delDocumentSamplingRule } from '@/api/quality/documentsamplingrule' |
| | | import { getObj as getTechnologyDetail } from '@/api/technology/routing' |
| | | import { getObj as getStructureDetail } from '@/api/technology/completeproductstructure' |
| | | import { fetchList as getBomList } from '@/api/technology/completeproductstructure' |
| | | import { getRouting } from '@/api/technology/document' |
| | | import { getTestStandardParams } from '@/api/quality/teststandard' |
| | | import { remote } from '@/api/admin/dict' |
| | | import { fetchList as getStandard } from '@/api/quality/standardbind' |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | bomList: [], |
| | | routingList: [], |
| | | operationPart: {}, |
| | | showCompleteproductstructure: false, |
| | | showTechnology: false, |
| | |
| | | ], |
| | | dataForm: { |
| | | id: null, |
| | | bomId: null, |
| | | routingId: null, |
| | | number: null, |
| | | name: null, |
| | | version: null, |
| | |
| | | window.winDbClick = this.getDbClick |
| | | // 初始化流程图实例 |
| | | this.initFlowDesign() |
| | | }, |
| | | watch: { |
| | | 'dataForm.partId'(newValue, oldValue) { |
| | | if (oldValue) { |
| | | this.dataForm.bomId = null |
| | | } |
| | | if (newValue) { |
| | | getBomList( |
| | | Object.assign({ |
| | | current: 1, |
| | | size: 999, |
| | | partId: this.dataForm.partId, |
| | | }) |
| | | ).then((response) => { |
| | | this.bomList = response.data.data.records |
| | | }) |
| | | } else { |
| | | this.bomList = [] |
| | | } |
| | | }, |
| | | 'dataForm.bomId'(newValue, oldValue) { |
| | | if (oldValue) { |
| | | this.dataForm.routingId = null |
| | | } |
| | | if (newValue) { |
| | | getRouting( |
| | | Object.assign({ |
| | | bomId: this.dataForm.bomId, |
| | | }) |
| | | ).then((response) => { |
| | | console.log(response) |
| | | this.routingList = response.data.data |
| | | }) |
| | | } else { |
| | | this.routingList = [] |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | // 查询类型字典 |
| | |
| | | allKeyValues = allKeyValues.concat(keyValues) |
| | | i = i + keyValues.length |
| | | } |
| | | console.log("aaa--",allKeyValues) |
| | | this.materialCostList = allKeyValues |
| | | }, |
| | | objectSpanMethod({ row, column, rowIndex, columnIndex }) { |
| | |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param |
| | | console.log(columns, 'A') |
| | | console.log(data, 'B') |
| | | // console.log(columns, 'A') |
| | | // console.log(data, 'B') |
| | | const sums = [] |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |