|
|
@@ -115,6 +115,7 @@
|
|
|
<div style=" padding: 0px; align-items: center;">
|
|
|
<el-form-item label="工单编号" prop="processName" class="mab">
|
|
|
<el-input v-model="yycpzlformData['gdbh']" ref="fanganRef" @click="yycpzlProductValue({ code: 'Tab'})" @keydown="yycpzlProductValue" style="width: 23%;" />
|
|
|
+ <el-button type="primary" @click="yycppshuaxin_click" style="margin-left: 10px">刷新</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="客户代号" prop="processName" class="mab">
|
|
|
<el-input v-model="yycpzlformData['khdh']" disabled style="width: 23%;" />
|
|
|
@@ -138,8 +139,35 @@
|
|
|
<el-button @click="yycpzlhandleCancel">放弃</el-button>
|
|
|
<el-button type="primary" @click="yycpzlhandleConfirm">执行</el-button>
|
|
|
</div>
|
|
|
+ <el-table ref="multipleTable"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ :row-style="{ height: '0px' }"
|
|
|
+ :cell-style="{ padding: '0px' }"
|
|
|
+ :header-row-style="{ height: '0px' }"
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
+ @row-click="yyzltableRowClick"
|
|
|
+ highlight-current-row="true"
|
|
|
+ style="width: 100%;height: 30vh;" border tooltip-effect="dark"
|
|
|
+ :data="yyzltableData" row-key="ID">
|
|
|
+ <el-table-column align="left" label="工单编号" width="100">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.工单编号 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="客户编号" width="100">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.客户编号 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="客户名称" width="120">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.客户名称 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="产品编号" width="100">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.产品编号 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="产品名称">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.产品名称 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-dialog>
|
|
|
|
|
|
+
|
|
|
<el-dialog v-model="openFangan" title="请选择方案" style="width: 300px;" destroy-on-close>
|
|
|
<el-tree
|
|
|
:data="WorkOrderDetailCopesFangan"
|
|
|
@@ -2726,7 +2754,7 @@ const yycpzlformData = reactive({
|
|
|
fangan: 'A',
|
|
|
});
|
|
|
const onyycpzllist = ref(false);
|
|
|
-const fanganRef = ref()
|
|
|
+const fanganRef = ref();
|
|
|
//引用产品资料【按钮】
|
|
|
const onyycpzlclick = () => {
|
|
|
if(_Gd_gdbh.value == null){
|
|
|
@@ -2750,7 +2778,6 @@ const yycpzlProductValue = async (e) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-const yyzltableData = ref([]);
|
|
|
const WorkOrderDetailCopesFangan = ref([])
|
|
|
const defaultSelectionFangan = ref()
|
|
|
//引用产品资料->获取产品资料
|
|
|
@@ -2779,6 +2806,19 @@ const _WorkOrderDetailCopedata = async ()=>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const yyzltableData = ref([]);
|
|
|
+const yycppshuaxin_click = async ()=>{
|
|
|
+ let search = yycpzlformData['gdbh'];
|
|
|
+ console.log(search)
|
|
|
+ const WorkOrderDetailCope_table = await WorkOrderDetailCope({search:search});
|
|
|
+ console.log(WorkOrderDetailCope_table)
|
|
|
+ yyzltableData.value = WorkOrderDetailCope_table.data
|
|
|
+}
|
|
|
+const yyzltableRowClick = async (row)=>{
|
|
|
+ yycpzlformData['gdbh'] = row['工单编号'];
|
|
|
+ _WorkOrderDetailCopedata();
|
|
|
+}
|
|
|
+
|
|
|
const setFangan = (node) => {
|
|
|
yycpzlformData['fangan'] = node['方案']
|
|
|
defaultSelectionFangan.value = node['方案']
|