|
|
@@ -3104,16 +3104,17 @@ const add_gdzlyjent = async (event,id1,id2,id3,idx) => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//===============新增工艺资料=======================
|
|
|
const addgydialogFormVisible = ref(false)
|
|
|
const searchCJModel = ref(false)
|
|
|
const searchSHModel = ref(false)
|
|
|
-
|
|
|
-const addcpgy_onclick = () => {
|
|
|
+// 点击工艺行获取数据
|
|
|
+const addcpgy_onclick = async () => {
|
|
|
+ if(_gyrow.value){
|
|
|
+ //3.6工艺资料-获取产品工艺资料
|
|
|
+ const getProductGyInfo_edit = await getProductGyInfo({UniqID:_gyrow.value.UniqID})
|
|
|
+ Object.assign(add_gyformData,getProductGyInfo_edit.data);
|
|
|
+ }
|
|
|
//新增
|
|
|
typeGy.value = 'create'
|
|
|
addgydialogFormVisible.value=true
|
|
|
@@ -3579,9 +3580,15 @@ const meshandleCancel = async () => {
|
|
|
}
|
|
|
|
|
|
//=========修改工艺资料========
|
|
|
-let gyformDataTest = reactive({})
|
|
|
+let gyformDataTest = reactive({})
|
|
|
+const _gyrow = ref('')
|
|
|
+const clickybupdate = async (row) => {
|
|
|
+ console.log(row)
|
|
|
+ _gyrow.value = row
|
|
|
+}
|
|
|
+
|
|
|
//双击修改
|
|
|
-const gyupdateCompanyFunc = async (row) => {
|
|
|
+const gyupdateCompanyFunc = async (row) => {
|
|
|
//3.6工艺资料-获取产品工艺资料
|
|
|
const getProductGyInfo_edit = await getProductGyInfo({UniqID:row.UniqID})
|
|
|
|