Browse Source

mod:动作名称

panqiuyao 7 months ago
parent
commit
a1e12a2071
1 changed files with 15 additions and 1 deletions
  1. 15 1
      frontend/src/views/Photography/shot.vue

+ 15 - 1
frontend/src/views/Photography/shot.vue

@@ -82,7 +82,7 @@
                   <div class="chaochu flex-item flex left">货号:{{ item.goods_art_no }}</div>
                   <div>
                     <el-button size="small"  type="primary" plain>重拍</el-button>
-                    <el-button size="small" click="del(goods_art_nos:[item.goods_art_no])">删除</el-button>
+                    <el-button size="small" @click="delGoods({goods_art_nos:[item.goods_art_no]})">删除</el-button>
                   </div>
                 </div>
                 <div class="flex  between flex-item  c-333">
@@ -299,6 +299,20 @@ async function delAll(){
  * 删除指定的商品货号。
  * @param params - 包含需要删除的货号列表的对象。
  */
+const delGoods = async function(params){
+
+
+  await ElMessageBox.confirm('确定要删除货号:'+params.goods_art_nos[0]+'的拍摄数据吗?', '提示', {
+    confirmButtonText: '确定',
+    cancelButtonText: '取消',
+  })
+  del(params)
+}
+
+/**
+ * 删除指定的商品货号。
+ * @param params - 包含需要删除的货号列表的对象。
+ */
 const del = async function(params){
 
   clientStore.ipc.removeAllListeners(icpList.takePhoto.delectGoodsArts);