|
@@ -10,13 +10,13 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="客户集团简称:">
|
|
|
- <el-input placeholder="请输入客户集团简称" v-model.trim="queryParams.companyAlias" style="width: 150px" clearable @keyup.enter="handleQuery" @keydown.enter.prevent />
|
|
|
+ <el-input placeholder="请输入客户集团简称" v-model.trim="queryParams.companyAlias" style="width: 150px" clearable @keyup.enter="handleQuery" @keydown.enter.prevent />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品图号:">
|
|
|
- <el-input placeholder="请输入产品图号" v-model.trim="queryParams.drawingNumber" style="width: 150px" clearable @keyup.enter="handleQuery" @keydown.enter.prevent />
|
|
|
+ <el-input placeholder="请输入产品图号" v-model.trim="queryParams.drawingNumber" style="width: 150px" clearable @keyup.enter="handleQuery" @keydown.enter.prevent />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品规格:">
|
|
|
- <el-input placeholder="请输入产品规格" v-model.trim="queryParams.specification" style="width: 150px" clearable @keyup.enter="handleQuery" @keydown.enter.prevent />
|
|
|
+ <el-input placeholder="请输入产品规格" v-model.trim="queryParams.specification" style="width: 150px" clearable @keyup.enter="handleQuery" @keydown.enter.prevent />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="info" icon="Search" @click="handleQuery">搜索</el-button>
|
|
@@ -247,11 +247,9 @@ function getList() {
|
|
|
console.log(productList.value)
|
|
|
if (productList.value.length > 0) {
|
|
|
proxy.$refs.productTable.setCurrentRow(productList.value[0])
|
|
|
- console.log('111111111111111111111111111111111111111111111')
|
|
|
} else {
|
|
|
technologicalProcessList.value = []
|
|
|
technologicalprocessDetailList.value = []
|
|
|
- console.log("222222222222222222222222222222222222222222")
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -295,12 +293,11 @@ const getTechnologicalProcessDetails = () => {
|
|
|
*/
|
|
|
function handleCurrentProductChange(row) {
|
|
|
console.log(row)
|
|
|
- if(row){
|
|
|
+ if (row) {
|
|
|
currentProduct.value = row
|
|
|
- editStatus.value = false
|
|
|
- getTechnologicalProcesses(0)
|
|
|
+ editStatus.value = false
|
|
|
+ getTechnologicalProcesses(0)
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -432,20 +429,18 @@ function handleUpdate(row) {
|
|
|
* 添加工艺操作:添加后,执行刷新操作,重新查找工艺表内容,并通过绑定添加行的下标来选中,从而获得row
|
|
|
*/
|
|
|
function handleSaveTechnologicalProcess(row, index) {
|
|
|
- if(!row.technologyVersion) {
|
|
|
+ if (!row.technologyVersion) {
|
|
|
proxy.$modal.msgError('工艺版本不能为空!')
|
|
|
+ } else {
|
|
|
+ row.productId = currentProduct.value.id
|
|
|
+ saveTechnologicalProcess(row).then((response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ getTechnologicalProcesses(index)
|
|
|
+ proxy.$modal.msgSuccess('操作成功!')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ row.editStatus = false
|
|
|
}
|
|
|
- else {
|
|
|
- row.productId = currentProduct.value.id
|
|
|
- saveTechnologicalProcess(row).then((response) => {
|
|
|
- if (response.code == 200) {
|
|
|
- getTechnologicalProcesses(index)
|
|
|
- proxy.$modal.msgSuccess('操作成功!')
|
|
|
- }
|
|
|
- })
|
|
|
- row.editStatus = false
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/** 保存工序 */
|