|  | @@ -457,12 +457,12 @@
 | 
											
												
													
														|  |                  >查看</el-button
 |  |                  >查看</el-button
 | 
											
												
													
														|  |                >
 |  |                >
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -              <!-- <el-button
 |  | 
 | 
											
												
													
														|  | -                v-if="permission('/shopOperation/copyShop')"
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-button
 | 
											
												
													
														|  | 
 |  | +                v-if="permission('goods/copyGoods')"
 | 
											
												
													
														|  |                  @click="onShopOperation('copy', scope.row)"
 |  |                  @click="onShopOperation('copy', scope.row)"
 | 
											
												
													
														|  |                  type="text"
 |  |                  type="text"
 | 
											
												
													
														|  |                  >复制</el-button
 |  |                  >复制</el-button
 | 
											
												
													
														|  | -              > -->
 |  | 
 | 
											
												
													
														|  | 
 |  | +              >
 | 
											
												
													
														|  |                <!-- <el-button v-if="scope.row.status == 0"
 |  |                <!-- <el-button v-if="scope.row.status == 0"
 | 
											
												
													
														|  |                           v-permission="'goods/del'"
 |  |                           v-permission="'goods/del'"
 | 
											
												
													
														|  |                           @click="onDelete(scope.row)"
 |  |                           @click="onDelete(scope.row)"
 | 
											
										
											
												
													
														|  | @@ -808,7 +808,18 @@ export default {
 | 
											
												
													
														|  |      handleError(err, file, fileList) {
 |  |      handleError(err, file, fileList) {
 | 
											
												
													
														|  |        load.endLoading();
 |  |        load.endLoading();
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | -    onShopOperation(type, row) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    async onShopOperation(type, row) {
 | 
											
												
													
														|  | 
 |  | +      if (type === "copy") {
 | 
											
												
													
														|  | 
 |  | +        // api-web/goods/copyGoods?goodsId=106
 | 
											
												
													
														|  | 
 |  | +        try {
 | 
											
												
													
														|  | 
 |  | +          await api_goodsCopyGoods({
 | 
											
												
													
														|  | 
 |  | +            goodsId: row.id
 | 
											
												
													
														|  | 
 |  | +          });
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          this.getList();
 | 
											
												
													
														|  | 
 |  | +        } catch {}
 | 
											
												
													
														|  | 
 |  | +        return;
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |        //修改
 |  |        //修改
 | 
											
												
													
														|  |        this.addType = type;
 |  |        this.addType = type;
 | 
											
												
													
														|  |        this.addDisabled = type == "look" ? true : false;
 |  |        this.addDisabled = type == "look" ? true : false;
 |