| | |
| | | { |
| | | minWidth: '100', |
| | | width: '100px', |
| | | prop: 'customerOrderNo', |
| | | prop: 'contractNo', |
| | | label: '客户订单号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'customerNo', |
| | | label: '客户编号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'customerNo', |
| | | // label: '客户编号', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'customerName', |
| | |
| | | return this.coStateList |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'coLineNo', |
| | | label: '行号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'coLineNo', |
| | | // label: '行号', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | { |
| | | minWidth: '120', |
| | | width: '100px', |
| | |
| | | { |
| | | minWidth: '120', |
| | | width: '100px', |
| | | prop: 'partName', |
| | | prop: 'productName', |
| | | label: '零件名称', |
| | | sort: true, |
| | | isTrue: true, |
| | |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'requireNumber', |
| | | prop: 'buyQtyDue', |
| | | label: '已下发数量', |
| | | sort: true, |
| | | isTrue: true, |
| | |
| | | }, |
| | | { |
| | | minWidth: '80', |
| | | prop: 'unit', |
| | | prop: 'otcUnit', |
| | | label: '零件单位', |
| | | sort: true, |
| | | isTrue: true, |
| | |
| | | { |
| | | minWidth: '140', |
| | | width: '120', |
| | | prop: 'wantedDeliveryDate', |
| | | label: '期望交货时间', |
| | | prop: 'deliveryDate', |
| | | label: '交货时间', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'datetimerange', |
| | | formatter: this.formatDutyDate |
| | | }, |
| | | { |
| | | minWidth: '200', |
| | | width: '120', |
| | | prop: 'plannedDeliveryDate', |
| | | label: '计划交货时间', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'datetimerange', |
| | | formatter: this.formatDutyDate |
| | | }, |
| | | // { |
| | | // minWidth: '200', |
| | | // width: '120', |
| | | // prop: 'plannedDeliveryDate', |
| | | // label: '计划交货时间', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'datetimerange', |
| | | // formatter: this.formatDutyDate |
| | | // }, |
| | | { |
| | | minWidth: '200', |
| | | width: '120', |
| | |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id" |
| | | v-show="dataForm.id==null" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | { |
| | | minWidth: '100', |
| | | width: '100px', |
| | | prop: 'customerOrderNo', |
| | | prop: 'contractNo', |
| | | label: '合同编号', |
| | | sort: true, |
| | | isTrue: true, |
| | |
| | | <el-input |
| | | v-model="scope.row.qtyPlaned" |
| | | placeholder="" |
| | | ></el-input> |
| | | </el-form-item> --> |
| | | ></el-input> --> |
| | | </el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | this.dataForm.customer = [] |
| | | const _that = this |
| | | customer.forEach((item) => { |
| | | console.log(item); |
| | | item.qtyPlaned=item.buyQtyDue |
| | | const outPutBatchList = [] |
| | | _that.$set(item, 'outPutBatchList', outPutBatchList) |
| | | customerList.push(item) |
| | | }) |
| | | this.dataForm.customer = JSON.parse(JSON.stringify(customerList)) |
| | | console.log(this.dataForm.customer); |
| | | }) |
| | | this.dataForm.customer.forEach(item=>{ |
| | | item.qtyPlaned=item.buyQtyDue |
| | | }) |
| | | // this.dataForm.forEach(item=>{ |
| | | // console.log(1111); |
| | | // console.log("循环",item); |
| | | // item.qtyPlaned=item.buyQtyDue |
| | | // }) |
| | | console.log("data",this.dataForm); |
| | | }, |
| | | dataFormSubmit() { |
| | | this.isSubmit = true |
| | | this.$refs.dataForm.validate((valid) => { |
| | | if (valid) { |
| | | // console.log(this.dataForm); |
| | | // return |
| | | checkSchedule(this.dataForm.customer) |
| | | .then((res) => { |
| | | if (res.data.data.success) { |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="客户订单号" prop="customerOrderNo"> |
| | | <el-form-item label="客户订单号" prop="contractNo"> |
| | | <el-input |
| | | v-model="dataForm.customerOrderNo" |
| | | v-model="dataForm.contractNo" |
| | | placeholder="" |
| | | :disabled="!ediSource" |
| | | ></el-input> |
| | |
| | | :loading="loadingStructIfs" |
| | | >物料同步ERP |
| | | </el-button> --> |
| | | <el-button |
| | | <!-- <el-button |
| | | v-if="permissions.manufacturingorder_refresh_ifsorder" |
| | | @click="refreshIfsorder()" |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | :loading="refreshIfsorderLoading" |
| | | >刷新ifs车间订单号 |
| | | </el-button> |
| | | </el-button> --> |
| | | |
| | | <el-button |
| | | @click="exportExcel" |
| | |
| | | :loading="loadingExcel" |
| | | >导出 |
| | | </el-button> |
| | | <el-button |
| | | <!-- <el-button |
| | | v-if="permissions.manufacturingorder_update_orderno" |
| | | @click="updateOrderNo" |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | >更新订单号 |
| | | >更新订单号 --> |
| | | </el-button> |
| | | </template> |
| | | </ttable> |
| | |
| | | fun: this.getOperationTaskByCustomer |
| | | }) |
| | | } |
| | | if (this.permissions.manufacturingorder_order_merge) { |
| | | this.table.toolbar.push({ |
| | | text: '订单合并', |
| | | fun: this.openOrderMerge |
| | | }) |
| | | } |
| | | // if (this.permissions.manufacturingorder_order_merge) { |
| | | // this.table.toolbar.push({ |
| | | // text: '订单合并', |
| | | // fun: this.openOrderMerge |
| | | // }) |
| | | // } |
| | | |
| | | /** |
| | | * { |
| | |
| | | @refreshTestStandardInfo="refreshTestStandardInfo" |
| | | ></testStandardTable> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | <!-- <el-tab-pane |
| | | label="抽检规则" |
| | | key="tb2" |
| | | id="tb2" |
| | |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </el-tab-pane> |
| | | </el-tab-pane> --> |
| | | </el-tabs> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="备注" show-overflow-tooltip prop="remark"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | label="操作" |
| | |
| | | >保存 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="info" @click="visible = false">关闭</el-button> |